OpenWrt Forum Archive

Topic: HOWTO: Openwrt and LIVEBOX (opkg+free space)

The content of this topic has been archived on 21 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Detailed information about the livebox at:
http://wiki.openwrt.org/toh/inventel/dv4210
(please contribute to this wiki if you have some relevant info about this board, or related stuff)

http://wiki.openwrt.org/_media/toh/inventel/livebox_case.jpg?w=120


Improvements since the first howto (the older one at my blog) I made :

- Telnet access to Redboot without serial cable
- CPU: icache and dcache activated (now the board is much faster)
- The new Redboot is able to read Big and Little endian cramfs partitions (no longer needed since we use a gz compressed kernel)
- RAM redboot for flashing Redboot itself (without bricking the board)
- New script for generating a single combined image: script+partitions
- Now we only need to put the image into the tftp server and flash without entering commands manually.
- Lot of room inside the flash thanks to the script using (squashfs)+(gz compressed kernel), generating the smaller possible partitions.
- NEW: READAHEAD CACHE ENABLED, MEMORY WRITE-BACK. Now the Performance is even better.

**************
I will explain the steps for installing Openwr with the most free space available in the flash chip. After this you'll be able to install packages in that free space.

You'll need this modified redboot installed into your livebox (redbootelnet04).
http://files.myopera.com/danitool/liveb … lnet04.rom

For installling this redboot:
1. First of all you will need a telnet command line access to your Livebox, there are several howtos on internet to do this.
2. A ftp or http server to load redboot

Put redbootelnet04.rom in your ftp server.

Telnet you livebox load (wget) the redboot:

# /etc/init.d/ramdisk start 16
# cd /mnt/ramdisk/rd1
# wget http://url_to_get/redbootelnet04.rom
# fcp -v redbootelnet04.rom /dev/mtd0
Erasing blocks: 3/3 (100%)
Writing data: 192k/192k (100%)
Verifying data: 192k/192k (100%)
#

Also as always you will need to build your own Openwrt firmware. Or you can test my compiled images
http://files.myopera.com/danitool/liveb … 1_luci.zip (Backfire_10.03.1)
http://files.myopera.com/danitool/liveb … t30414.zip (with luci, kernel 3.0.18)
http://files.myopera.com/danitool/liveb … t29978.zip (with luci)
http://files.myopera.com/danitool/liveb … t29366.zip (with luci)

Before start building the OpenWrt image for livebox you will need some stuff:
svn gcc g++ binutils patch make automake gettext pkg-config unzip bzip2 flex bison libz-dev quilt gawk flex libghc6-zlib-dev...

Here we go again
Make a directory somewhere called "openwrt" and open a terminal there. Enter this comands

[dani@tool openwrt]$ svn co svn://svn.openwrt.org/openwrt/branches/backfire
[dani@tool openwrt]$ cd backfire
[dani@tool backfire]$ grep LINUX_VERSION target/linux/brcm63xx/Makefile
LINUX_VERSION:=2.6.32.27

Put the new livebox patch
170-board_livebox.patch
in:
target/linux/brcm63xx/patches-2.6.3x/      (2.6.3x is the current linux version, grep told us it is 2.6.32)

If you are building openwrt with the trunk branch you won't need the patch since it's already merged in latest versions. However maybe better idea tu use the backfire branch since it should be more stable.

I'll assume you are using a fresh Openwrt environment with default settings:
Open another terminal in backfire (or trunk) subdirectory and enter the command:

[dani@tool backfire]$ make menuconfig

Then search in the menus the following stuff and check it.

??????????????????????????? Target System ????????????????????????????
?                                                                    ?
? ????????????????????^(-)?????????????????????????????????????????? ?
? ?               ( ) Atheros AR231x/AR5312                        ? ?
? ?               ( ) Atheros AR71xx/AR7240/AR913x                 ? ?
? ?               ( ) Atmel AT91                                   ? ?
? ?               ( ) Atmel AVR32                                  ? ?
? ?               ( ) Axis ETRAX 100LX                             ? ?
? ?               (X) Broadcom BCM63xx                             ? ?
? ????????????????????v(+)?????????????????????????????????????????? ?
??????????????????????????????????????????????????????????????????????
?                       <Select>      < Help >                       ?
??????????????????????????????????????????????????????????????????????

If you don't need iptables, I recomend to disable it. This allows us to disable the netfilter modules, it really improves the network performance, and avoids the high cpu loads when transfering data.

Location:
     -> Network
?????????????????????????????????????? Network ???????????????????????????????????????
? ?????????????????????????????????????????????????????????????????????????????????? ?
? ? < > arptables....................................... ARP firewalling software  ? ?
? ? --- crda.............................. Central Regulatory Domain Agent (CRDA)  ? ?
? ? < > ebtables................. Ethernet bridge firewall administration utility  ? ?
? ? < > ebtables-utils........................... ebtables save/restore utilities  ? ?
? ? < > genl.................................... General netlink utility frontend  ? ?
? ? < > hostapd................................. IEEE 802.1x Authenticator (full)  ? ?
? ? < > hostapd-mini.................... IEEE 802.1x Authenticator (WPA-PSK only)  ? ?
? ? < > hostapd-utils.......................... IEEE 802.1x Authenticator (utils)  ? ?
? ? < > ifenslave........ A utility to manipulate kernel ethernet bonding devices  ? ?
? ? < > ip............................................... Routing control utility  ? ?
? ? < > ipset....................................... IPset administration utility  ? ?
? ? <*> iptables............................... IPv4 firewall administration tool  ? ?
? ? --- iw.............................. cfg80211 interface configuration utility  ? ?
? ? < > ppp........................................................... PPP daemon  ? ?
? ? < > ppp-multilink........................ PPP daemon (with multilink support)  ? ?
? ? < > pptp......................................................... PPTP client  ? ?
? ??v(+)???????????????????????????????????????????????????????????????????????????? ?
??????????????????????????????????????????????????????????????????????????????????????
?                          <Select>    < Exit >    < Help >                          ?
??????????????????????????????????????????????????????????????????????????????????????

Disable all netfilter modules, it will bring you better performance:

Location: 
    -> Kernel modules 
       -> Netfilter Extensions   
????????????????????????????????? Netfilter Extensions ??????????????????????????????????   
? ????????????????????????????????????????????????????????????????????????????????????? ?   
? ? < > kmod-arptables................................... ARP firewalling modules     ? ?   
? ? < > kmod-ebtables................................. Bridge firewalling modules     ? ?   
? ? < > kmod-ip6tables.............................................. IPv6 modules     ? ?   
? ? --- kmod-ipt-core............................................. Netfilter core     ? ?   
? ? ---   kmod-ipt-conntrack..................... Basic connection tracking modules   ? ?   
? ? < >   kmod-ipt-conntrack-extra............... Extra connection tracking modules   ? ?   
? ? < >   kmod-ipt-extra............................................. Extra modules   ? ?   
? ? < >   kmod-ipt-filter.................... Modules for packet content inspection   ? ?   
? ? < > kmod-ipt-hashlimit............................. Netfilter hashlimit match     ? ?   
? ? < > kmod-ipt-ipopt........... Modules for matching/changing IP packet options     ? ?   
? ? < > kmod-ipt-iprange........................... Module for matching ip ranges     ? ?   
? ? < > kmod-ipt-ipsec........................ Modules for matching IPSec packets     ? ?   
? ? < > kmod-ipt-ipset................................... IPset netfilter modules     ? ?   
? ? --- kmod-ipt-nat........................................... Basic NAT targets     ? ?   
? ? < > kmod-ipt-nat-extra..................................... Extra NAT targets     ? ?   
? ? < > kmod-ipt-nathelper....................... Basic Conntrack and NAT helpers     ? ?   
? ? < > kmod-ipt-nathelper-extra................. Extra Conntrack and NAT helpers     ? ?   
? ? < > kmod-ipt-queue..................... Module for user-space packet queueing     ? ?   
? ? < > kmod-ipt-tproxy............................. Transparent proxying support     ? ?   
? ? < > kmod-ipt-ulog....................... Module for user-space packet logging     ? ?   
? ? < > kmod-nf-conntrack-netlink.......... Connection tracking netlink interface     ? ?   
? ? < > kmod-nfnetlink......................... Netlink-based userspace interface     ? ?   
? ? < > kmod-nfnetlink-log................ Netfilter LOG over NFNETLINK interface     ? ?   
? ? < > kmod-nfnetlink-queue............ Netfilter QUEUE over NFNETLINK interface     ? ?   
? ????????????????????????????????????????????????????????????????????????????????????? ?   
?????????????????????????????????????????????????????????????????????????????????????????   
?                           <Select>    < Exit >    < Help >                            ?   
?????????????????????????????????????????????????????????????????????????????????????????

disable the switch, the Livebox doesn't have one

Location:
     -> Kernel modules  
       -> Other modules
?????????????????????????????????? Other modules ?????????????????????????????
? ??^(-)???????????????????????????????????????????????????????????????????? ?
? ? < > kmod-ledtrig-netdev.............................. LED NETDEV Trigge? ?
? ? < > kmod-mmc........................................ MMC/SD Card Suppor? ?
? ? < > kmod-mmc-over-gpio.................... MMC/SD card over GPIO suppor? ?
? ? < > kmod-pcmcia-core............................ PCMCIA/CardBus support? ?
? ? < > kmod-pcmcia-bcm63xx.............. Broadcom BCM63xx PCMCIA support? ? ?
? ? < > kmod-pcspkr...................................... PC speaker suppor? ?
? ? < > kmod-softdog............................... Software watchdog drive? ?
? ? < > kmod-switch.......................................... Switch driver? ?
? ? < > kmod-textsearch.............Textsearch support is selected if neede? ?
? ?????????????????????????????????????????????????????????????????????????? ?
??????????????????????????????????????????????????????????????????????????????
?                   <Select>    < Exit >    < Help >                         ?
??????????????????????????????????????????????????????????????????????????????

Select modules that you need for usb. Note that bcm6348 has usb 1.1 then it uses OHCI drivers

Location:
     -> Kernel modules
       -> USB Support
?????????????????????????????? USB Support ???????????????????????????????
? ?????????????????????????????????????????????????????????????????????? ?
? ? <*> kmod-usb-core................................... Support for US? ?
? ? < >   kmod-usb-acm................ Support for modems/isdn controll? ?
? ? < >   kmod-usb-atm......................... Support for ATM on USB ? ?
? ? < >   kmod-usb-audio.................... Support for USB audio devi? ?
? ? < >   kmod-usb-cm109......................... Support for CM109 dev? ?
? ? < >   kmod-usb-hid................ Support for USB Human Input Devi? ?
? ? < >   kmod-usb-net...... Kernel modules for USB-to-Ethernet convert? ?
? ? <*>   kmod-usb-ohci...................... Support for OHCI controll? ?
? ? < >   kmod-usb-phidget............................. USB Phidget Dri? ?
? ? < >   kmod-usb-printer........................... Support for print? ?
? ? < >   kmod-usb-serial............ Support for USB-to-Serial convert? ?
? ? <*>   kmod-usb-storage............................ USB Storage supp? ?
? ? < >   kmod-usb-uhci...................... Support for UHCI controll? ?
? ? < >   kmod-usb-video.................... Support for USB video devi? ?
? ? < >   kmod-usb-yealink......................... USB Yealink VOIP ph? ?
? ? < >   kmod-usb2.......................... Support for USB2 controll? ?
? ?????????????????????????????????????????????????????????????????????? ?
??????????????????????????????????????????????????????????????????????????
?                    <Select>    < Exit >    < Help >                    ?
??????????????????????????????????????????????????????????????????????????

If you want to mount external storage on the usb don't forget to enable the Native Language Support

Location:
     -> Kernel modules
       -> Native Language Support
????????????????????????????? Native Language Support ??????????????????????????????   
? ???????????????????????????????????????????????????????????????????????????????? ?   
? ? --- kmod-nls-base.................................... Native Language Support? ?   
? ? < > kmod-nls-cp1250........................... Codepage 1250 (Eastern Europe)? ?   
? ? < > kmod-nls-cp1251.................................. Codepage 1251 (Russian)? ?   
? ? <*> kmod-nls-cp437...................... Codepage 437 (United States, Canada)? ?   
? ? < > kmod-nls-cp775................................. Codepage 775 (Baltic Rim)? ?   
? ? < > kmod-nls-cp850..................................... Codepage 850 (Europe)? ?   
? ? < > kmod-nls-cp852..................................... Codepage 852 (Europe)? ?   
? ? < > kmod-nls-cp866................................... Codepage 866 (Cyrillic)? ?   
? ? <*> kmod-nls-iso8859-1...... ISO 8859-1 (Latin 1; Western European Languages)? ?   
? ? < > kmod-nls-iso8859-13........................ ISO 8859-13 (Latin 7; Baltic)? ?   
? ? < > kmod-nls-iso8859-15..... ISO 8859-15 (Latin 9; Western, with Euro symbol)? ?   
? ? < > kmod-nls-iso8859-2...... ISO 8859-2 (Latin 2; Central European Languages)? ?   
? ? < > kmod-nls-koi8r.......................................... KOI8-R (Russian)? ?   
? ? <*> kmod-nls-utf8...................................................... UTF-8? ?   
? ???????????????????????????????????????????????????????????????????????????????? ?   
????????????????????????????????????????????????????????????????????????????????????   
?                         <Select>    < Exit >    < Help >                         ?   
????????????????????????????????????????????????????????????????????????????????????

and the mount-utils:

Location:  
     -> Utilities
???????????????????????????????????? Utilities ?????????????????????????????????????   
? ??^(-)?????????????????????????????????????????????????????????????????????????? ?
? ? < > haserl............ A CGI wrapper to embed shell scripts in HTML documents? ?
? ? <*> hwclock........................ Utilities for managing the hardware clock? ?
? ? < > jshn................................................. JSON SHell Notation? ?
? ? < > kexec-tools.......................................... Kernel boots kernel? ?
? ? < > ldconfig............................... Shared library path configuration? ?
? ? < > ldd.................................................... LDD trace utility? ?
? ? < > losetup....................... Loopback devices setup and control utility? ?
? ? <*> mount-utils........................... Devices mount/unmounting utilities? ?
? ? < > mountd.......................................... OpenWrt automount daemon? ?
? ? < > ocf-crypto-headers............................ OCF-Linux cryptodev header? ?
? ? < > openssl-util........................... Open source SSL toolkit (utility)? ?
? ? < > px5g.............................. Standalone X.509 certificate generator? ?
? ? < > robocfg....................... BCM5325E/536x switch configuration utility? ?
? ? < > spidev-test.......................................... SPI testing utility? ?
? ??v(+)?????????????????????????????????????????????????????????????????????????? ?
????????????????????????????????????????????????????????????????????????????????????
?                         <Select>    < Exit >    < Help >                         ?
????????????????????????????????????????????????????????????????????????????????????

Exit and save, next do:

make kernel_menuconfig
??????????????????????????????? CPU support ????????????????????????????????
? ???????????????????????????????????????????????????????????????????????? ?
? ?    [ ] support 6338 CPU                                              ? ?
? ?    [ ] support 6345 CPU                                              ? ?
? ?    [*] support 6348 CPU                                              ? ?
? ?    [ ] support 6358 CPU                                              ? ?
? ?                                                                      ? ?
? ???????????????????????????????????????????????????????????????????????? ?
????????????????????????????????????????????????????????????????????????????
?                     <Select>    < Exit >    < Help >                     ?
????????????????????????????????????????????????????????????????????????????
??????????????????????????? Board support ????????????????????????????
? ?????????????????????????????????????????????????????????????????? ?
? ?               ( ) Generic Broadcom 963xx boards                ? ?
? ?               (X) Inventel Livebox(es) boards                  ? ?
? ?                                                                ? ?
? ?????????????????????????????????????????????????????????????????? ?
??????????????????????????????????????????????????????????????????????
?                       <Select>      < Help >                       ?
??????????????????????????????????????????????????????????????????????

Adjust settings to our flash memory chip:

Location:
     -> Device Drivers
       -> Memory Technology Device (MTD) support (MTD [=y])
         -> RAM/ROM/Flash chip drivers 
??????????????????????? RAM/ROM/Flash chip drivers ????????????????????????
? ??????????????????????????????????????????????????????????????????????? ?
? ?    <*> Detect flash chips by Common Flash Interface (CFI) probe     ? ?
? ?    <*> Detect non-CFI AMD/JEDEC-compatible flash chips              ? ?
? ?    [*] Flash chip driver advanced configuration options             ? ?
? ?          Flash cmd/query data swapping (BIG_ENDIAN_BYTE)  --->      ? ?
? ?    [*]   Specific CFI Flash geometry selection                      ? ?
? ?    [ ]     Support  8-bit buswidth                                  ? ?
? ?    [*]     Support 16-bit buswidth                                  ? ?
? ?    [ ]     Support 32-bit buswidth                                  ? ?
? ?    [ ]     Support 64-bit buswidth                                  ? ?
? ?    [ ]     Support 128-bit buswidth                                 ? ?
? ?    [ ]     Support 256-bit buswidth                                 ? ?
? ?    [*]     Support 1-chip flash interleave                          ? ?
? ?    [ ]     Support 2-chip flash interleave                          ? ?
? ?    [ ]     Support 4-chip flash interleave                          ? ?
? ?    [ ]     Support 8-chip flash interleave                          ? ?
? ?    [ ]   Protection Registers aka one-time programmable (OTP) bits  ? ?
? ?    <*> Support for Intel/Sharp flash chips                          ? ?
? ?    <*> Support for AMD/Fujitsu/Spansion flash chips                 ? ?
? ?    <*> Support for ST (Advanced Architecture) flash chips           ? ?
? ?    < > Support for RAM chips in bus mapping                         ? ?
? ?    < > Support for ROM chips in bus mapping                         ? ?
? ?    < > Support for absent chips in bus mapping                      ? ?
? ??????????????????????????????????????????????????????????????????????? ?
???????????????????????????????????????????????????????????????????????????
?                    <Select>    < Exit >    < Help >                     ?
???????????????????????????????????????????????????????????????????????????

now exit and save changes, and make the world

[dani@tool backfire]$ make V=99

Wait until the compilation ends (maybe 1 hour).

We will get lot of binaries in the bin subdirectory under backfire. Don't worry I've made a script to copy the ones we need and combine them into a single scripted file.
http://files.myopera.com/danitool/liveb … enimage.sh
Put my wrtgenimage.sh script in the backfire directory, and execute it:

[dani@tool backfire]$ chmod +x wrtgenimage.sh
[dani@tool backfire]$ ./wrtgenimage.sh

The script will generate openwrt-livebox.bin
And the console returns some instructions to flash it

Instructions:
- Before flashing be sure you have redbootelnet03.rom installed and a tftp server running in 
  your PC. Also you need to have the 10.7.58.114 IP in your PC (it can be a virtual interface)
- Put openwrt-livebox.bin into your tftp server
- Press button1, plug the power cord, wait 5 seconds and release the button
- Watch at your tftpd log to check if the livebox has loaded openwrt-livebox.bin
- Wait 2 minutes or more until the flashing process is complete and telnet openwrt (192.168.1.1)

Ok that's all

Note: the tftp directory is at /var/lib/tftpboot (in Ubuntu) or /var/tftpboot/ (in Arch). Plug the ethernet cable from your computer to the yellow port in the livebox for flashing, but use the red one to access Openwrt.

telnet 192.168.1.1

Configure the internet access, and use opkg

opkg update
opkg install package

This is my log

5432SDRAM16bitX10120123456+678ESA: 30:78:30:30:3a:30
WEP KEY : FFFFFFFFFFFFFFFFFFFFFFFFFF
Auto-negotiation timed-out
10 MB Half-Duplex (assumed)
Ethernet eth0: MAC address 30:78:30:30:3a:30
IP: 10.7.58.112, Default server: 10.7.58.114
Hardware version 0x0A BLUE5G.6 WITHOUT OPTION
Factory Settings Recovery Switch OFF

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version release-wanadoo-fr - built 22:10:16, Jan 31 2011

Platform: Blue_5g (MIPS32 4Kc) 
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x80000000-0x81000000, [0x80434d10-0x80fe2000] available
FLASH: 0xbe400000 - 0xbec00000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 20.000 seconds - enter ^C twice to abort
hit '' (0x01)
== Executing boot script in 19.990 seconds - enter ^C twice to abort
RedBoot> fis load -b 0x80010000 -d kernel
 ---- VERSION SANS SECURITE ---- AUCUN TEST N'EST EFFECTUE ---- 
Image loaded from 0x80010000-0x8027b780
RedBoot> exec -c "noinitrd mem=16M" 0x80010000
Now booting linux kernel:
 Base address 0x8000fc00 Entry 0x80010000
 Cmdline : noinitrd mem=16M
[    0.000000] Linux version 2.6.35.11 (dani@tool) (gcc version 4.5.2 (Linaro GCC 4.5-2011.02-0) ) #2 Sun Mar 13 19:46:04 CET 2011
[    0.000000] Detected Broadcom 0x6348 CPU revision b0
[    0.000000] CPU frequency is 256 MHz
[    0.000000] 16MB of RAM installed
[    0.000000] registering 37 GPIOs
[    0.000000] board_livebox: enabling icache and dcache...
[    0.000000] board_livebox: resetting gpio6 for eth1...
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00029107 (Broadcom BCM6348)
[    0.000000] board_livebox: board name: Livebox
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 01000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00001000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00001000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
[    0.000000] Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] Memory: 13552k/16384k available (1988k kernel code, 2832k reserved, 348k data, 140k init, 0k highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]     RCU-based detection of stalled CPUs is disabled.
[    0.000000]     Verbose stalled-CPUs detection is disabled.
[    0.000000] NR_IRQS:128
[    0.000000] Calibrating delay loop... 254.46 BogoMIPS (lpj=508928)
[    0.084000] pid_max: default: 32768 minimum: 301
[    0.088000] Mount-cache hash table entries: 512
[    0.120000] NET: Registered protocol family 16
[    0.164000] registering PCI controller with io_map_base unset
[    0.184000] bio: create slab <bio-0> at 0
[    0.216000] pci 0000:00:01.0: BAR 0: assigned [mem 0x30000000-0x30001fff]
[    0.220000] pci 0000:00:01.0: BAR 0: set to [mem 0x30000000-0x30001fff] (PCI address [0x30000000-0x30001fff]
[    0.228000] Switching to clocksource MIPS
[    0.260000] PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
[    0.344000] ssb: Sonics Silicon Backplane found on PCI device 0000:00:01.0
[    0.352000] NET: Registered protocol family 2
[    0.360000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.368000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.376000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.384000] TCP: Hash tables configured (established 512 bind 512)
[    0.388000] TCP reno registered
[    0.392000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.408000] NET: Registered protocol family 1
[    0.424000] audit: initializing netlink socket (disabled)
[    0.432000] type=2000 audit(0.432:1): initialized
[    0.440000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.448000] Registering mini_fo version $Id$
[    0.452000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.464000] msgmni has been set to 26
[    0.468000] io scheduler noop registered
[    0.472000] io scheduler deadline registered (default)
[    0.488000] gpiodev: gpio device registered with major 254
[    0.496000] bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0300 (irq = 10) is a bcm63xx_uart
[    0.504000] console [ttyS0] enabled, bootconsole disabled
[    0.504000] console [ttyS0] enabled, bootconsole disabled
[    0.532000] bcm963xx_flash: 0x00800000 at 0x1fc00000
[    0.536000] Found: AMD AM29LV640MB
[    0.540000] bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
[    0.548000]  CFI mfr 0x00000001
[    0.552000]  CFI id  0x0000227e
[    0.552000] number of JEDEC chips: 1
[    0.556000] bcm963xx_flash: Read Signature value of 
[    0.564000] bcm963xx_flash: assuming RedBoot bootloader
[    0.568000] bcm963xx_flash: Support for extended flash memory size : 0x1471 - livebox virt->be400000
[    0.580000] Searching for RedBoot partition table in bcm963xx at offset 0x7f0000
[    0.604000] Creating 6 MTD partitions on "bcm963xx":
[    0.612000] 0x000000000000-0x000000030000 : "RedBoot"
[    0.628000] 0x000000030000-0x000000150000 : "kernel"
[    0.648000] 0x000000150000-0x000000390000 : "user_fs"
[    0.664000] 0x000000390000-0x0000007f0000 : "rootfs_data"
[    0.684000] 0x0000007f0000-0x0000007ff000 : "FIS directory"
[    0.700000] 0x0000007ff000-0x000000800000 : "RedBoot config"
[    0.740000] bcm63xx_enet MII bus: probed
[    0.756000] bcm63xx_enet MII bus: probed
[    0.772000] bcm63xx_wdt started, timer margin: 30 sec
[    0.796000] TCP westwood registered
[    0.800000] NET: Registered protocol family 17
[    0.804000] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[    0.812000] All bugs added by David S. Miller <davem@redhat.com>
^@[    0.852000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.864000] Freeing unused kernel memory: 140k freed
awk: /proc/cpuinfo: No such file or directory
awk: /proc/cpuinfo: No such file or directory
[    8.404000] bcm63xx_enet bcm63xx_enet.1: attached PHY at address 31 [Generic PHY]
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
switching to jffs2
[   15.556000] mini_fo: using base directory: /
[   15.560000] mini_fo: using storage directory: /overlay
- init -
^@
Please press Enter to activate this console. [   22.160000] bcm63xx_enet bcm63xx_enet.0: attached PHY at address 1 [Broadcom BCM63XX (1)]
[   24.628000] bcm63xx_enet bcm63xx_enet.1: attached PHY at address 31 [Generic PHY]
[   24.692000] eth0: link UP - 100/full - flow control off
[   25.572000] device eth1 entered promiscuous mode
[   29.868000] Compat-wireless backport release: compat-wireless-2011-01-31-19-g74d6d79
[   29.876000] Backport based on wireless-testing.git master-2011-02-25
[   31.592000] cfg80211: Calling CRDA to update world regulatory domain
[   34.792000] cfg80211: World regulatory domain updated:
[   34.796000] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   34.808000] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   34.816000] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   34.824000] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   34.832000] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   34.840000] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   36.072000] SCSI subsystem initialized
[   37.312000] usbcore: registered new interface driver usbfs
[   37.316000] usbcore: registered new interface driver hub
[   37.336000] usbcore: registered new device driver usb
[   40.444000] b43-phy0: Broadcom 4318 WLAN found (core revision 9)
[   40.544000] Broadcom 43xx driver loaded [ Features: PL, GPIO LED Mask: 0x000f, Firmware-ID: FW13 ]
[   46.796000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   49.460000] nf_conntrack version 0.5.0 (213 buckets, 852 max)
[   52.056000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   52.064000] bcm63xx_ohci bcm63xx_ohci.0: BCM63XX integrated OHCI controller
[   52.072000] bcm63xx_ohci bcm63xx_ohci.0: new USB bus registered, assigned bus number 1
[   52.080000] bcm63xx_ohci bcm63xx_ohci.0: irq 20, io mem 0xfffe1b00
[   52.148000] hub 1-0:1.0: USB hub found
[   52.156000] hub 1-0:1.0: 1 port detected
[   52.568000] Initializing USB Mass Storage driver...
[   52.572000] usbcore: registered new interface driver usb-storage
[   52.580000] USB Mass Storage support registered.
[   53.600000] input: gpio-buttons as /devices/platform/gpio-buttons.0/input/input0
[   88.976000] eth0: link DOWN
[   90.984000] eth1: link UP - 100/full - flow control off
[   90.992000] br-lan: port 1(eth1) entering forwarding state
[   90.996000] br-lan: port 1(eth1) entering forwarding state

Escape character is '^]'.
 === IMPORTANT ============================
  Use 'passwd' to set your login password
  this will disable telnet and enable SSH
 ------------------------------------------


BusyBox v1.17.3 (2011-03-13 12:36:27 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 ATTITUDE ADJUSTMENT (bleeding edge, r26044) ----------
  * 1/4 oz Vodka      Pour all ingredents into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@OpenWrt:/#

You can probe this steps if you are sure enough.

Be care, and of course don't blow me if you make a brick.

                                           enjoy
                                         (danitool)

external links:
psidoc
andyp website
dbzoo
darkfader
kamikaze latest trunk br63xx
pinouts
old openwrt thread

(Last edited by danitool on 10 Jun 2012, 21:24)

I have livebox sagem v1.1 can i use this build to use this router as  a repeater,client bridge setup

thanks in advance

The sagem version is still not supported by openwrt. The hardware seems to be different to the thomson version we are using.

More info about the sagem version ----> http://fijam.eu.org/blog/?tag=livebox

Totally different hardware, so not supported and probably never will.

(Last edited by danitool on 19 Jul 2011, 23:07)

Hi,
I have livebox dv4210-ws, and i want to install a wireless usb network adapter. The chipset of the adapter is: rt2500 (for the device: Linksys Wireless Usb Network Adapter WUSB54GV6). I have been looking about how installing it in my router, but i don´t find anything...
I have found files like : rt2500usb.c and rt2500usb.h but I don´t know what to do with them!

Plz help me!

(Last edited by bocatasinpan on 25 Jul 2011, 18:23)

bocatasinpan wrote:

Hi,
I have livebox dv4210-ws, and i want to install a wireless usb network adapter. The chipset of the adapter is: rt2500 (for the device: Linksys Wireless Usb Network Adapter WUSB54GV6). I have been looking about how installing it in my router, but i don´t find anything...
I have found files like : rt2500usb.c and rt2500usb.h but I don´t know what to do with them!

Plz help me!

Use opkg to install the modules for that device. If the livebox is already connected to Internet:

opkg update 
opkg install kmod-rt2500-usb

Or you can download the package and install it with opkg once you have copied it into your router
http://downloads.openwrt.org/snapshots/ … cm63xx.ipk

opkg install kmod-rt2500-usb_2.6.39.2+2011-06-22-2_brcm63xx.ipk

Or you can compile the entire firmware selecting this package.

Hi again,
I have install the next modules:
kernel_2.6.39.2-1_brcm63xx.ipk
kmod-crc-itu-t_2.6.39.2-1_brcm63xx.ipk
kmod-rt2x00-lib_2.6.39.2+2011-06-22-2_brcm63xx.ipk
kmod-rt2x00-usb_2.6.39.2+2011-06-22-2_brcm63xx.ipk
kmod-rt2500-usb_2.6.39.2+2011-06-22-2_brcm63xx.ipk

Successfully! Now, I have plugged in the usb adapter.... but, nothing has happened... Is there a way to mount it, or something?

Thanks for replying!;)

Try to regenerate the wireless config with the usb adapter plugged.

rm -f /etc/config/wireless
wifi detect > /etc/config/wireless

Or guess yourself if there is something more missed.

I have tried doing it, but unsuccessfully...
If I type:

ifconfig

When the integrated wifi card is disabled, it doesn´t appear on the list...
But when I activate the Wifi from the web-interface, appears the device wlan0.
I think that I have to activate the usb wireless adapter, and it will appear there... But I don´t know how...
In the web interface: Network>Wifi, only appears "Generic 802.11bg Wireless Controller (radio0)"

And if I go to /sys/bus/usb/ and cat the devices

1-0:1.0  1-1      1-1:1.0  usb1

Appears more devices than usually, when the USB Wifi adapter is plugged in.

Could you give me a clue to start looking for any solution?

Thanks

(Last edited by bocatasinpan on 26 Jul 2011, 22:15)

thanks for replying and for the link very nice indeed why is there no support for this version ?

(Last edited by drekthar on 28 Jul 2011, 10:56)

Nice work danitool! Now my livebox is running open wrt !
But there is still some problems: when following step by step your howto with the latest trunk version, it doesn't work, well the kernel boots but there is a problem with the root partition (the livebox respond at 192.168.1.1 for a second and then nothing even no arp reponse, probably a misconfigured /etc/ file or something, I'v seen by sniffing a udp packet from 192.168.1.1 to 192.168.1.255 and I think it's an /etc/preinit emergencie procedure but that's all I know)
Btw, I used my own kernel (2.6.39.4) with your boot partition (from openwrt27618.zip) and everything works fine... unless I want to use the pcmcia slot! Every modules load just fine but it's like there is no pcmcia, here is the output of my lsmod :
root@OpenWrt:~# lsmod
Module                  Size  Used by    Not tainted
tulip                  44304  0
bcm63xx_pcmcia          2512  0
pcmcia_rsrc              560  1 bcm63xx_pcmcia
pcmcia_core             8160  1 bcm63xx_pcmcia
bcm63xx_spi             2016  0
sit                     8208  0
tunnel4                 1600  1 sit
tun                    11760  2
ipv6                  230032 19 sit

there is a tulip net card in the pcmcia slot but the driver doesn't tell anything ! here is all dmesg since all insmod for pcmcia and tulip:
"Linux Tulip driver version 1.1.15-NAPI (Feb 27, 2007)"
There is no kernel log when I load pcmcia_core pcmcia_rsrc bcm63xx_pcmcia

Anybody tried to make the pcmcia works ?

Thanks

(Last edited by alois54 on 22 Aug 2011, 21:09)

Well, most livebox boards don't have a pcmcia slot, neither mine. As a result of this I cannot test it. Perhaps to detect the problem you need to use the serial port for debugging, and then locate which is your error exactly when you use your own built firmware.

Please help me to flash Livebox dv4210 to openwrt. I downgraded original firmware to 5.04. Able to telnet device, but cannot load openwrt firware.
By far I got Livebox, windows xp laptop, patch cable. do I need something else to flash the box to danitool's ready firmware. Guys please guide me step by step.
Thanks and I hope for your help.

Hi,
Is it possible to install an OpenVPN server in Livebox?

Thanks

hello here is the info on livebox sagem v1.1 router

CPU: Analog devices AD6833XB MMU with 200MHz MIPS32 AD6833XB BigEndian
Memory: Two MICRON MT48LC8M16A2 16mb SD RAM.....   TOTAL 32 MB SDRAM
Disk space: 8 MB Flash (slow speed, limited write life)
Communication interfaces: 2 Ethernet port
WiFi :Wireless PCMCIA card BroadCom BCM4306KFB  Wi-Fi 802.11b /g
BLUETOOTH:TECOM BT3014 CLASS 1 HCI MODULE
USB 1.1 M / S - FXS (RJ11)-FXO (RJ11)
SWITCH:88E6021-RCJ
Software
Kernel: Bi-OS VxWorks, Linux (HYPERVERISON)
bootloader:  ?  (i think it is u-boot though)

The gpl sources release can be found fro here http://www.livebox-opensource.com


here is a list of sources they release for the livebox sagem

bluez-2.13.tar
e2fsprogs-1.38.tar
net-tools-1.60.tar_2
rp-l2tp-0.4.tar
toolchain-mips-linux-uclibc-prebuilt.tar
busybox-1.01.tar
iproute2-2.6.15-060110.tar
openssl-0.9.8e.tar
toolchain-mips-linux-uclibc.tar
wireless_tools-28.tar

NO LINUX KERNEL IS SEEN................WTF

virtualized Linux 2.4.18 running

i don't know where the jtag or the serial pads are there on this router can anybody provide information regarding this

is it possible to port openwrt on this router i am no linux expert so i don't know what to do.... although i can be a tester and report stufff

MORE INFORMATION :
http://fijam.eu.org/blog/

is it possible to port this hardware to openwrt

where is the serial console and jtag port ?
thanks  in advance
any help is greatly appreciated

Hello,

I followed your tutorial step by step and I have successfully compiled the .bin file and load into the router. Now, when I try to reset the router to the default configuration (holding button 1), I can´t (wifi light does not flash). Anyone know the solution for that? Alternative way using Redboot?

Thanks

(Last edited by bocatasinpan on 27 Jan 2012, 19:59)

Hi, i follow the indications and i the image compiles succesfully, but when i flash it the router does not boot correctly(double triangle light instead of warning one), using your images is ok but i need one that can mount remote shares, ¿could you compile one with that feature support?,thanks.

Hello there, i have a livebox DV4210 WA, with redboot02 & Openwrt provided by danitool.
I wanna UPDATE to the new release, it's possible?
If yes, someone can explain the method?

PS: Actually i can't access to the redboot provided by the telnet 10.7.58.112:9000 (nmap says "host up" and see the 9000 port, but does not meet)


2 *Hours later... "I'm VERY bad..." all works fine!


THANKS DANITOOL !

(Last edited by redblood4all on 21 Aug 2012, 22:03)

I don't want to bring up old posts but I got a question

I just built attitude_adjustment following your guide, I am trying to use a Bcm4322 miniPci card in my livebox and included all the relevant drivers, now when I have flashed and booted the kernel I made none of the kernel modules I set are in the openwrt image, they have been created as seperate ipkg packages!?

so if i do lsmod I get:

root@OpenWrt:/# lsmod
Module                  Size  Used by    Tainted: P 
gpio_keys_polled        2064  0
wl                   1470192  0
wl_glue                 1632  1 wl
input_polldev           1680  1 gpio_keys_polled
input_core             20608  3 gpio_keys_polled,input_polldev


Also there is no Luci in this build even tho I'm sure i included it,

So my question is really how can I install these kernel packages?

and is your wrtgenimage.sh script compatable with the new attitude adjustment?

Thanks for the awesome guide,

Thank you danitool for this brilliant guide. I built several configurations of attitude_adjustment following this guide and I have it running successfully in two liveboxes.

One of them is a webserver with a CLID (caller line identification) receiver, the other one is a media box with a sound card (following the instructions here: http://wiki.openwrt.org/doc/howto/usb.audio) and an OLED display connected to the USB port through an ATtiny45 using usbtiny (http://wiki.openwrt.org/doc/howto/usb.i2c-tiny-usb). Programming the microcontroller was the tough part.

For LIRC I just followed your instructions here: http://wiki.openwrt.org/doc/howto/lirc-audio_alsa.

In spite of this note on https://openwrt.org/: "Lower end devices with only 16 MiB RAM will easily run out of Memory..." my experience is that you can use attitude_adjustment perfectly as long as you don't use Luci. I configure the router through an SSH connection.

Thank you for your investigations and for sharing the results with us.

Kind regards from Coruña, (si chaval!)

Hi,

please update the links
myopera has been closed

@danitool
if u have redboot or unlocked CFE for BT HomeHub 2A (6358) then also please post

daemon123 wrote:

Hi,

please update the links
myopera has been closed

@danitool
if u have redboot or unlocked CFE for BT HomeHub 2A (6358) then also please post

Have the same problem here, Does someone keep a backup of the files?

I have got this device, and I want to get my hands dirty. Currently I have the livebox DV4210-ws Unlocked.
Can anybody recommend a cheap JTAG programmer/emulator for this particular Broadcom6348?

As It is my only piece of hardware for this kind of development I would be interested in secure a way to restore it.

Regards

First I am somehow assuming this would be the main thread for the Inventel LiveBox.

Before disabling the password of the root account I made a copy of the OEM /etc/passwd file.

So these are the users that were meant initially:

root:azn4qkq7LzvFU:0:0:root:/root:/bin/sh
test:ona6KiTKFJQgw:0:0:TEST:/root:/usr/bin/dt

If am I not wrong, and all units have the same password, this would make not necessary the downgrade to have the control of the Livebox.

Has anybody tried to find out the password out of these hashes?

Regards

Hi urnen, about the bootloaders, the links are at the wiki

https://docs.google.com/uc?export=downl … klkU19XY1k

About the hashes, I did try to brute force using john the ripper about 1 month without luck (my computer isn't powerful enough for brute force).

Hi,
I tried to follow this but with files from the wiki as your links are dead. -> http://wiki.openwrt.org/toh/inventel/dv4210

The flashing seemed to work, but now only the "Warning" led stay on and I can't telnet 192.168.1.1 on any of the 4 RJ45 ports... I tried to reflash the original firmware with RGWRepair but it didn't work. Trying to flash another openwrt file the same way (Without change redboot) does not work

"Client 10.7.58.112:7701 C:\OpenTFTPServer\factory_script, File not found or No A
ccess
Client 10.7.58.112:7702 C:\OpenTFTPServer\inventel\blue_5g\factory_script, File
not found or No Access"

I can acces redboot prompt by telnet 10.7.58.112 9000 after booting with 1 pressed but that's all.

Can I still do something or it's good for the bin ?
PS : The stiker under the box says DV4210 but the board looks like DV4410 and it had livebox pro firmware on it. The board name is "Blue 5G8".

Thanks for you help.

(Last edited by Arnold0 on 30 Sep 2014, 02:50)

The discussion might have continued from here.