sociedad horizontal

Openwrt and Livebox (howto)

HOWTO UPDATED IN THIS LINK
Openwrt and LIVEBOX, openwrt forum


This is an old howto, please use the link above.
In this post i will bring you the clues to convert your inventel Livebox (Inventel DV4210) into an Openwrt machine. First of all you will need a telnet command line access to your Livebox, there are several howtos on internet to do this. Also you will need access over your serial port in the Livebox, this is done with special cable, a serial TTL (most routers have one serial port and Openwrt is loaded sending commands through this device). I use an old usb to serial cable data phone (a Sony Ericcsson one), many people use a Nokia one, the most important is to identify the pinout: TX, RX and GND. The software I use to control this serial port is CuteCom.

This is a schema of our target SoC BCM6348



This is how I connected the serial port to a cellphone data cable.
Livebox Pin-out:
1       data in (3V)
2       data out (3V)
3       button "2" input
4       button "1" input
5       +5V
6       ground
Parameters: 115200 baud, 8 databits, no parity, 1 stopbit
(I needed to plug the phone because this crap cable does not transmit if the phone is not plugged, probably you don't will need to do this with your cable)

First we need access via telnet because we will need to change the Redboot loader with another one that let us to break into the command line while the Livebox boots.

This is the redboot that we will flash to mtd0:
redboot.20040719 from my.opera server
redboot.20040719 from andyp webpage

Check these files and be sure the file is not corrupted, it is very important, you can make a brick with an improper Redboot loader.
Telnet you livebox load (wget) the redboot file and flash it (cross fingers):
# fcp -v redboot.20040719 /dev/mtd0
Erasing blocks: 3/3 (100%)
Writing data: 192k/192k (100%)
Verifying data: 192k/192k (100%)
#
# reboot
Sending SIGTERM to adsld and pppd.

Another thing you will need of course is a GNU-Linux environment. I use kubuntu karmic-koala. And a tftp server installed. You can install it simply with:
sudo apt-get install atftp

The directory where atftp works serving files is in my system located at /var/lib/tftpboot. That is where you will put yor openwrt image. Make it writeable:
sudo chmod ugo+rwx /var/lib/tftpboot


Be sure you use an ip that the Redboot of your livebox will understand, default is 10.7.58.114, you can make a virtual interface in your pc with this ip:
sudo ifconfig eth0:10 10.7.58.114

Once you have flashed the new Redboot check that you can break into it, conect the serial port, start CuteCom and press Ctrl+C while the livebox boots up, you must see the redboot command line. Review the config
fconfig -l -n

You can change the ip of redboot, if you need to do so, this is an example:
fconfig bootp_my_ip 10.7.58.1
fconfig bootp_server_ip 10.7.58.114


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...

Make a directory somewhere called "kamikaze" and open a terminal there. Enter this comand
svn -r r18708 co svn://svn.openwrt.org/openwrt/trunk/

Put the ruff's kernel patch 046-cramfs_endianness.patch to enable cramfs endiannes in:
/trunk/target/linux/brcm63xx/patches-2.6.30
Open another terminal in trunk subdirectory and enter the command:
make menuconfig

Then search in the menus the following stuff and check it.
   ┌────────────────────────── Target System ───────────────────────────┐
   │  Use the arrow keys to navigate this window or press the hotkey of │
   │  the item you wish to select followed by the <SPACE BAR>. Press    │
   │  <?> for additional information about this option.                 │
   │ ┌───────────────────^(-)─────────────────────────────────────────┐ │
   │ │               ( ) Atheros AR231x/AR5312                        │ │
   │ │               ( ) Atheros AR71xx/AR7240/AR913x                 │ │
   │ │               ( ) Atmel AVR32                                  │ │
   │ │               (X) Broadcom BCM63xx                             │ │
   │ │               ( ) Broadcom BCM947xx/953xx                      │ │
   │ │               ( ) Broadcom BCM947xx/953xx [2.4]                │ │
   │ └───────────────────v(+)─────────────────────────────────────────┘ │
   ├────────────────────────────────────────────────────────────────────┤
   │                       <Select>      < Help >                       │
   └────────────────────────────────────────────────────────────────────┘

┌─────────────────────────────── Target Images ──────────────────────────┐
│ ┌───────────────────────────────────────────────────────────────────── │
│ │ [ ] ramdisk (NEW)                                                  │ │
│ │ [ ] jffs2                                                          │ │
│ │ [*] squashfs (NEW)                                                 │ │
│ │ [*] tgz                                                            │ │
│ │ [ ] cpiogz (NEW)                                                   │ │
│ │ [ ] ext2 (NEW)                                                     │ │
│ └─v(+)───────────────────────────────────────────────────────────────┘ │
├────────────────────────────────────────────────────────────────────────┤
│                      <Select>    < Exit >    < Help >                  │
└────────────────────────────────────────────────────────────────────────┘

disable the switch, livebox doesn't have one

┌───────────────────────────────── 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-pcmcia-serial.................. Serial devices support (NEW)│ │
│ │ < >   kmod-pcmcia-yenta...................... yenta socket driver (NEW)│ │
│ │ < > 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
┌───────────────────────────── 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 >                    │
└────────────────────────────────────────────────────────────────────────┘

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 >                       │
  └────────────────────────────────────────────────────────────────────┘

I enabled this option, i don't know why, but i did it.
[*] Force read-only for RedBoot system images

     
┌──────────────────── Memory Technology Device (MTD) support ────────────────┐
│ ┌────────────────────────────────────────────────────────────────────────┐ │
│ │    --- Memory Technology Device (MTD) support                          │ │
│ │    [ ]   Debugging                                                     │ │
│ │    <*>   MTD concatenating support                                     │ │
│ │    [*]   MTD partitioning support                                      │ │
│ │    < >   MTD tests support                                             │ │
│ │    [*]   Automatically set 'rootfs' partition to be root filesystem    │ │
│ │    [*]   Automatically split 'rootfs' partition for squashfs           │ │
│ │    <*>   RedBoot partition table parsing                               │ │
│ │    (-1)    Location of RedBoot partition table                         │ │
│ │    [*]     Include unallocated flash regions                           │ │
│ │    [ ]     Force read-only for RedBoot system images                   │ │
│ │    [*]   Command line partition table parsing                          │ │
│ │    < >   TI AR7 partitioning support                                   │ │
│ │          *** User Modules And Translation Layers ***                   │ │
│ │    <*>   Direct char device access to MTD devices                      │ │
│ │    -*-   Common interface to block layer for MTD 'translation layers   │ │
│ │    <*>   Caching block device access to MTD devices                    │ │
│ │    < >   FTL (Flash Translation Layer) support                         │ │
│ │    < >   NFTL (NAND Flash Translation Layer) support                   │ │
│ │    < >   INFTL (Inverse NAND Flash Translation Layer) support          │ │
│ │    < >   Resident Flash Disk (Flash Translation Layer) support         │ │
│ │    < >   NAND SSFDC (SmartMedia) read only translation layer           │ │
│ │    < >   Log panic/oops to an MTD buffer                               │ │
│ │          RAM/ROM/Flash chip drivers  --->                              │ │
│ │          Mapping drivers for chip access  --->                         │ │
│ │          Self-contained MTD device drivers  --->                       │ │
│ │    < >   NAND Device Support  --->                                     │ │
│ │    < >   OneNAND Device Support  --->                                  │ │
│ │          LPDDR flash memory drivers  --->                              │ │
│ │          UBI - Unsorted block images  --->                             │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
├────────────────────────────────────────────────────────────────────────────┤
│                        <Select>    < Exit >    < Help >                    │
└────────────────────────────────────────────────────────────────────────────┘

  ┌────────────────────── 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 (NO)  --->                   │ │
  │ │    [*]   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 >                     │
  └─────────────────────────────────────────────────────────────────────────┘




This is the most important:
┌────────────────────── Mapping drivers for chip access ───────────────────┐
│ ┌──────────────────────────────────────────────────────────────────────┐ │
│ │    [*] Support non-linear mappings of flash chips                    │ │
│ │    <*> Flash device in physical memory map                           │ │
│ │    [*]   Physmap compat support                                      │ │
│ │    (0x1e400000) Physical start address of flash mapping              │ │
│ │    (0x00800000) Physical length of flash mapping                     │ │
│ │    (2)     Bank width in octets (NEW)                                │ │
│ │    < > BCM963xx Flash device                                         │ │
│ │    < > PCI MTD driver                                                │ │
│ │    < > NOR flash on Intel Vermilion Range Expansion Bus CS0          │ │
│ │    < > Map driver for platform device RAM (mtd-ram)                  │ │
│ └──────────────────────────────────────────────────────────────────────┘ │
├──────────────────────────────────────────────────────────────────────────┤
│                        <Select>    < Exit >    < Help >                  │
└──────────────────────────────────────────────────────────────────────────┘



here we will enable usb for our board
┌───────────────────────────────── USB support ─────────────────────────────┐
│ ┌───────────────────────────────────────────────────────────────────────┐ │
│ │    --- USB support                                                    │ │
│ │    <*>   Support for Host-side USB                                    │ │
│ │    [ ]     USB verbose debug messages                                 │ │
│ │    [ ]     USB announce new devices                                   │ │
│ │            *** Miscellaneous USB options ***                          │ │
│ │    [*]     USB device filesystem                                      │ │
│ │    [ ]     USB device class-devices (DEPRECATED)                      │ │
│ │    [ ]     Dynamic USB minor allocation                               │ │
│ │    [ ]     Rely on OTG Targeted Peripherals List                      │ │
│ │    [ ]     Disable external hubs                                      │ │
│ │    < >     USB Monitor                                                │ │
│ │    < >     Enable Wireless USB extensions (EXPERIMENTAL)              │ │
│ │    < >     Support WUSB Cable Based Association (CBA)                 │ │
│ │            *** USB Host Controller Drivers ***                        │ │
│ │    < >     Cypress C67x00 HCD support                                 │ │
│ │    < >     EHCI HCD (USB 2.0) support (NEW)                           │ │
│ │    < >     OXU210HP HCD support                                       │ │
│ │    < >     ISP116X HCD support                                        │ │
│ │    < >     ISP 1760 HCD support                                       │ │
│ │    <*>     OHCI HCD support                                           │ │
│ │    [ ]       OHCI support for Broadcom SSB OHCI core                  │ │
│ │    < >     UHCI HCD (most Intel and VIA) support (NEW)                │ │
│ │    < >     SL811HS HCD support                                        │ │
│ │    < >     R8A66597 HCD support                                       │ │
│ └────v(+)───────────────────────────────────────────────────────────────┘ │
├───────────────────────────────────────────────────────────────────────────┤
│                        <Select>    < Exit >    < Help >                   │
└───────────────────────────────────────────────────────────────────────────┘

Kernel hacking, this is very important too
┌───────────────────── Default kernel command string ─────────────────────────────────────┐
│  Please enter a string value. Use the <TAB> key to move from the input                  │
│  field to the buttons below it.                                                         │
│ ┌─────────────────────────────────────────────────────────────────────────────────────┐ │
│ │root=/dev/mtdblock1 rootfstype=cramfs,squashfs init=/etc/preinit console=ttyS0,115200│ │
│ └─────────────────────────────────────────────────────────────────────────────────────┘ │
│                                                                                         │
├─────────────────────────────────────────────────────────────────────────────────────────┤
│                         <  Ok  >      < Help >                                          │
└─────────────────────────────────────────────────────────────────────────────────────────┘

now exit and save changes, and make the world
dani@NEXUS:/media/ext4/kamikaze/trunk$ make V=99

Next step is to convert our stuff into a cramfs image to flash the Livebox
Download the ruff's script to your kamikaze directory, mkcramfs binary, etccramfs and network (edit this to your preferences). Change permisions of these files (chmod ugo+rwx file). Make the cramfs image.
dani@NEXUS:/media/ext4/kamikaze$ ./kamk.sh

We will get openwrt.cramfs image ready to flash. This is mine http://files.myopera.com/danitool/linux/openwrt.cramfs (use it only for testing purpose)
put openwrt.cramfs into the atftp server directory /var/lib/tftpboot. Plug an ethernet cable from your computer to the yellow port in the livebox.

Open cutecom and flash it
Plug your serial interface to the livebox, an power on the livebox, push control+c to break into redboot
First check your partition table. This is mine:
RedBoot> fis list
Name              FLASH addr  Mem addr    Length      Entry point
RedBoot           0xBE400000  0xBE400000  0x00030000  0x00000000
user_fs           0xBE430000  0xBE430000  0x00720000  0x80545FB0
jffs_system       0xBEB50000  0xBEB50000  0x000A0000  0x80545FB0
FIS directory     0xBEBF0000  0xBEBF0000  0x0000F000  0x00000000
RedBoot config    0xBEBFF000  0xBEBFF000  0x00001000  0x00000000

As you see I have jffs_system with flash adress=0xBEB50000 and length=0x000A0000. Then:
erase jffs_system
fis erase -f 0xBEB50000 -l 0x000A0000

load openwrt.cramfs
load -r -v -b 0x80800000 openwrt.cramfs

flash openwr.cramfs
fis create -b 0x80800000 user_fs



Reboot your device, and telnet it in your computer
telnet 10.7.58.1

This is my log
Linux version 2.6.30.9 (dani@NEXUS) (collect2: ld returned 1 exit status) #17 Thu Nov 19 21:18:34 CET 2009
Detected Broadcom 0x6348 CPU revision b0                                                                  
CPU frequency is 256000000 Hz                                                                             
16MB of RAM installed                                                                                     
registering 37 GPIOs                                                                                      
console [early0] enabled                                                                                  
CPU revision is: 00029107 (Broadcom BCM6348)                                                              
board_livebox: board name: Livebox                                                                        
Determined physical RAM map:                                                                              
 memory: 01000000 @ 00000000 (usable)                                                                     
Initrd not found or empty - disabling initrd                                                              
Zone PFN ranges:                                                                                          
  Normal   0x00000000 -> 0x00001000                                                                       
Movable zone start PFN for each node                                                                      
early_node_map[1] active PFN ranges                                                                       
    0: 0x00000000 -> 0x00001000                                                                           
On node 0 totalpages: 4096                                                                                
free_area_init_node: node 0, pgdat 80283910, node_mem_map 802e7000                                        
  Normal zone: 32 pages used for memmap                                                                   
  Normal zone: 0 pages reserved                                                                           
  Normal zone: 4064 pages, LIFO batch:0                                                                   
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064                                
Kernel command line: root=/dev/mtdblock1 rootfstype=cramfs,squashfs init=/etc/preinit console=ttyS0,115200
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.                                           
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes                                        
NR_IRQS:128                                                                                               
PID hash table entries: 64 (order: 6, 256 bytes)                                                          
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)                                              
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)                                               
Memory: 13268k/16384k available (2088k kernel code, 3116k reserved, 428k data, 124k init, 0k highmem)     
Calibrating delay loop... 252.41 BogoMIPS (lpj=504832)                                                    
Mount-cache hash table entries: 512                                                                       
net_namespace: 332 bytes                                                                                  
NET: Registered protocol family 16                                                                        
registering PCI controller with io_map_base unset                                                         
bio: create slab <bio-0> at 0                                                                             
usbcore: registered new interface driver usbfs                                                            
usbcore: registered new interface driver hub                                                              
usbcore: registered new device driver usb                                                                 
pci 0000:00:01.0: reg 10 32bit mmio: [0x000000-0x001fff]                                                  
Switched to high resolution mode on CPU 0                                                                 
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)                                                          
PCI: Setting latency timer of device 0000:00:01.0 to 64                                                   
ssb: Sonics Silicon Backplane found on PCI device 0000:00:01.0                                            
NET: Registered protocol family 2                                                                         
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                                            
TCP established hash table entries: 512 (order: 0, 4096 bytes)                                            
TCP bind hash table entries: 512 (order: -1, 2048 bytes)                                                  
TCP: Hash tables configured (established 512 bind 512)                                                    
TCP reno registered                                                                                       
NET: Registered protocol family 1                                                                         
audit: initializing netlink socket (disabled)                                                             
type=2000 audit(0.650:1): initialized                                                                     
squashfs: version 4.0 (2009/01/31) Phillip Lougher                                                        
Registering mini_fo version $Id$                                                                          
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.                                            
msgmni has been set to 25                                                                                 
alg: No test for stdrng (krng)                                                                            
io scheduler noop registered                                                                              
io scheduler deadline registered (default)                                                                
bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0300 (irq = 10) is a bcm63xx_uart                                     
console handover: boot [early0] -> real [ttyS0]                                                           
bcm63xx_enet MII bus: probed                                                                              
physmap platform flash device: 00800000 at 1e400000                                                       
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Searching for RedBoot partition table in physmap-flash.0 at offset 0x7f0000
5 RedBoot partitions found on MTD device physmap-flash.0
Creating 5 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000030000 : "RedBoot"
0x000000030000-0x000000750000 : "user_fs"
0x000000750000-0x0000007f0000 : "jffs_system"
0x0000007f0000-0x0000007ff000 : "FIS directory"
0x0000007ff000-0x000000800000 : "RedBoot config"
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
bcm63xx_ohci bcm63xx_ohci.0: BCM63XX integrated OHCI controller
bcm63xx_ohci bcm63xx_ohci.0: new USB bus registered, assigned bus number 1
bcm63xx_ohci bcm63xx_ohci.0: irq 20, io mem 0xfffe1b00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
bcm63xx_wdt started, timer margin: 30 sec
TCP westwood registered
NET: Registered protocol family 17
VFS: Mounted root (cramfs filesystem) readonly on device 31:1.
Freeing unused kernel memory: 124k freed
Please be patient, while OpenWrt loads ...
mini_fo: using base directory: /jffs/etc-ro
mini_fo: using storage directory: /jffs/etc
bcm63xx_enet bcm63xx_enet.0: attached PHY at address 1 [Broadcom BCM63XX (1)]
device eth0 entered promiscuous mode
eth0: link UP - 100/full - flow control off
br-lan: port 1(eth0) entering forwarding state
eth1: link forced UP - 100/full - flow control off/off
cfg80211: Calling CRDA to update world regulatory domain
SCSI subsystem initialized
b43-phy0: Broadcom 4318 WLAN found (core revision 9)
phy0: Selected rate control algorithm 'minstrel'
Registered led device: b43-phy0::tx
Registered led device: b43-phy0::rx
Registered led device: b43-phy0::radio
Broadcom 43xx driver loaded [ Features: PL, Firmware-ID: FW13 ]
Driver 'sd' needs updating - please use bus_type methods
usbcore: registered new interface driver snd-usb-audio
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
b43 ssb0:0: firmware: requesting b43/ucode5.fw
b43 ssb0:0: firmware: requesting b43/pcm5.fw
b43 ssb0:0: firmware: requesting b43/b0g0initvals5.fw
b43 ssb0:0: firmware: requesting b43/b0g0bsinitvals5.fw
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
BusyBox v1.14.4 (2009-11-17 12:55:07 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
 KAMIKAZE (bleeding edge, r18440) ------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:/# 


You can probe this steps if you are sure enough. I hope this howto will be outdated soon, and developers from Openwrt will make images ready to flash in a easier way.

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

enjoy
(danitool)


external links: andyp website
                      dbzoo
                      darkfader
                      kamikaze latest trunk br63xx
                      pinouts






An easier way to flash without serial connection, but more dangerous:
You can flash the built image of Kamikaze without serial, simply in your telnet command line with the old original firmware working you can do this:
fcp -v openwrt.cramfs /dev/mtd1

I didn't try this yet, and i don't know if it is possible with original redboot. Maybe less dangerous because if it doesn't work, always you will be able to load the original firmware again using the button 1.

I'm sure that is possible with the old redboot but if you do not have serial access you can make a brick with a wrong openwrt.cramfs (a simple error in network configuration in the image is catastrofic). The button 1 to load firmwares will not work, openwrt.cramfs needs to be encrypted, and an original firmware will not load neither.
As always be care
Regards.


La medicina del abueloNO a las patentes de software

Comments

Unregistered user Sunday, November 22, 2009 2:24:21 PM

Javier writes: Muy, pero que muy buen post. Tengo dos routers Livebox DV4210 y estaba esperando que desde openwrt hicieran algo con ellos. He visto en sus foros que ya lo habias conseguido, asi que he ido a tu perfil y he llegado hasta aqui. Mis felicitaciones por el gran trabajo que has hecho, si esta tarde encuentro un hueco me voy a poner con tu howto a ver si lo consigo. Gracias y sigue asi. Javier.-

Unregistered user Saturday, November 28, 2009 1:02:45 PM

Javier writes: Hola Dani He seguido tu Howto y funciona todo muy bien, pero tengo un problemilla, a ver si me puedes ayudar. Si cargo tu archivo, openwrt.cramfs, el router arranca y parece todo correcto, mientras arranca le hago un iwconfig para ver si carga la tarjeta wireless, y lo hace, pero al cabo de 1 minuto desaparece. He compilado mi propio OpenWRT (que por cierto, mis imagenes ocupan 6MB, no se como has hecho para que la tuya ocupe menos) y he probado los distintos drivers que tiene esta tarjeta (bcm4318) y nada, a mi nunca me llega a cargar. Si hago un lspci me la detecta, pero no me la carga. Me he fijado que en tu imagen, en el arranque saca lo siguiente: Please press Enter to activate this console. mini_fo: using base directory: /jff s/etc-ro mini_fo: using storage directory: /jffs/etc A mi no me llega a salir y no se si sera por eso o que puede ser. A mayores le he metido a mi OpenWRT compilado LUCI, para administrar OpenWRT via web. Espero que me puedas guiar un poco mas. Muchas gracias! Javier.-

danitool Sunday, November 29, 2009 8:04:41 PM

Existen 2 pequeños problemas con kamikaze:
1. No existen drivers para la parte adsl, así que este no funcionará
2. Para la parte wifi existen drivers para broadcom aunque no parece que funcionen muy bien, tal vez se acabe solucionando el problema pero de momento la cosa no va como se espera.

Aunque los drivers de broadcom funcionar funcionan, son un poco rebeldes. Yo al menos en modo cliente me funcionó. Es necesario editar el archivo /etc/config/wireless. Para mí esto no fue suficiente, y además edité también el archivo /etc/rc.local para que activase correctamente el wifi. Para mí en modo cliente introduje esta secuencia:
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
iwconfig wlan0 channel 10
iwconfig wlan0 essid somormujo
iwconfig wlan0 key s:myclave
iwconfig wlan0 txpower 20
sleep 10
iwconfig wlan0 ap 00:1A:A9:12:10:36
sleep 15
iwconfig wlan0 ap 00:1A:A9:12:10:36
exit 0 

En cuanto a al mini_fo:

new kernels has mini_fo driver, built-in by default, which smoothly resolves problem with squashfs split


Es raro si no te lo carga pienso que debería hacerlo, de lo contrario no podrías almacenar datos en jffs_system, y por lo tanto editar configuraciones.

Lo del tamaño de la imagen que compilas, en cuanto seleccionas varios paquetes a más de los que hay por defecto, sí se desmadra un poquito y engorda hasta los 6 megas. Pienso que esto es debido a usar el sistema de archivos cramfs.

Esta es la primera vez que compilo openwrt. Si quieres agregarme como contacto a algún servicio de mensajería instantánea (jabber-gmail, hotmail..) estaría bien para compartir experiencias sobre el Livebox.

Saludos

Unregistered user Tuesday, December 1, 2009 6:46:50 PM

seraser writes: buenas tengo un livebox como el descrito y voy a meterle open wrt gracias a tu tutorial ya contare y un tema para un router casi identico el comtrend 536+ he compilado mi version con drivers usb y usb wireless haciendole la mod usb todo bien pero un problema con el wireless en verdad te funciona el modo cliente o sea no me refiero a conectar el wireless y autentificar solo eso si lo hago con scripts si no a redireccionar para salir por cable a internet si fuera asi te molestaria mucho poner lo necesario para conseguirlo etc/config/wireless etc/config/network y las demas configuraciones necesarias perdona el tocho pero he gogleado horas y horas y si en verdad consigues el modo cliente con el bcm96xx creo eres el unico y de paso me animaria con el livebox ya que montan el mismo chipset saludos

Unregistered user Tuesday, December 1, 2009 9:08:59 PM

Javier writes: Hola dani Por mas que intento averiguar tu correo electronico me devuelven todos los mensajes. Escribeme a j5boot en gmail. Saludos.

danitool Thursday, December 3, 2009 12:50:40 PM

Seraser, estos son mis archivos de configuración
(Ten en cuenta que el Livebox usa un wifi minipci bcm4318, no sé que usa el comtrend..)
/etc/config/network
# Copyright (C) 2008 OpenWrt.org

config interface loopback
        option ifname   lo
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0

config interface lan
        option type     bridge
        option ifname   eth0
        option proto    static
        option ipaddr   10.200.200.1
        option netmask  255.0.0.0
        option nat      1

config interface wifi
        option ifname   wifi0
        option proto    static
        option ipaddr   192.168.1.231
        option netmask  255.255.255.0
        option gateway  192.168.1.1
        option dns      192.168.1.1

config interface wan
        option ifname   eth1
        option proto    dhcp

/etc/config/wireless
config wifi-device  wifi0
        option type     mac80211
        option channel  10
        option macaddr  00:1f:3a:63:08:fb
        option hwmode   11b
        # REMOVE THIS LINE TO ENABLE WIFI:
#       option disabled 1


config wifi-iface
        option device   wifi0
        option network  wifi
        option mode     sta
        option ssid     somormujo
        option encryption wep
        option key 1
        option key1 miclavewepenformatoHEX

Aunque esta configuración no hace nada, tuve como ya he dicho, que meter comandos "manuales" en rc.local para que se active correctamente el wifi al iniciarse el livebox
/etc/rc.local
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
iwconfig wlan0 channel 10
iwconfig wlan0 essid somormujo
iwconfig wlan0 key s:myclavewepformatoASCII
iwconfig wlan0 txpower 20
sleep 10
iwconfig wlan0 ap 00:12:A9:12:10:36
sleep 15
iwconfig wlan0 ap 00:12:A9:12:10:36
exit 0

"iwconfig wlan0 ap 00:12:A9:12:10:36" fuerza a conectarse en modo cliente al ap que tiene esa mac. Quizás lo mejor sería hacer un script para que ejecute ese comando cada vez que se desconecta.

También comentar que yo lo configuro con wifi separado, vamos que no hay bridge con el resto de interfaces de red... va con su propia ip, etc, etc..


Unregistered user Thursday, December 3, 2009 2:25:55 PM

Anónimo writes: gracias danitool esta noche se lo meto al comtrend que gasta la misma minipci entonces dices que no habra comunicacion entre la interfaz wifi y la de red que creo seria lo que realmente daria utilidad al modo cliente que pena bueno por otro lado ya tengo el livebox liberado y preparado para meterle el cable serie tengo uno montado con el max 232 que use en su dia para debrickear foneras creo que valdra si no pues a comprar el max 3232 ya contare avances de nuevo gracias danitool

Unregistered user Thursday, December 3, 2009 7:34:18 PM

seraser writes: pues ya he probado tu configuracion en el comtrend y no hay manera de salir por cable a internet desde el propio comtrend si pero desde cable no y pienso es problema del firm que no esta muy pulido aun puesto que nadie lo consigue y sopeso que en el livebox pasara los mismo siendo la misma arquitectura por otro lado he flasheado el redboot del livebox y bueno he intentado entrar con el max232 y salen caracteres ilegibles por lo que mañana si puedo comprare el max3232 saludos

danitool Thursday, December 3, 2009 7:49:16 PM

Si puedes salir desde el propio comtrend también podrás desde el pc. Uno de los problemas del modo cliente es que no es transparente del todo, solo una mac puede usar el modo cliente, en este caso si ya está saliendo a internet el comtrend mismo con su mac tú no podrás.

Existe una forma de solucionar el problema y es hacer NAT en la interfaz wifi. El puente de red también podría servir pero en este caso yo lo tengo configurado de forma separada porque me interesa en lo que estoy tratando de hacer. La solución más fácil por supuesto es el puente de red pero la falta de transparencia del puente puede hacer que no llegue a funcionar. Ahora mismo no sabría cual sería la configuración exacta a probar. Pero en principio para añadir al puente con lan el wifi habría al menos que poner en /etc/config/wireless
option network  lan

y tal vez modificar algo mas en /etc/config/network
pienso que la sección de "config interface wifi" debiera ser eliminada o modificada...

Unregistered user Friday, December 4, 2009 8:32:50 PM

seraser writes: bueno gracias danitool pero de momento voy a aparcar el comtrend muchisismas horas para nada cambios ejecutados en interface web que no valen le cuesta conectar lo que no hay en los escritos y demas esperare a que haya una version mas funcional por otro lado sigo tu tutorial todo bien y meto la imagen de open wrt tuya descargada de el blog de javi muchas gracias a el tambien pero cuando me dispongo a compilar mi propio firm pues me da error en el make kernel_menuconfig te pongo las ultimas lineas por si supieras como arreglarlo if [ -s "/home/seraser/kamikaze/trunk/build_dir/linux-brcm63xx/linux-2.6.30.9/patches/series" ]; then (cd "/home/seraser/kamikaze/trunk/build_dir/linux-brcm63xx/linux-2.6.30.9"; if quilt --quiltrc=- next >/dev/null 2>&1; then quilt --quiltrc=- push -a; else quilt --quiltrc=- top >/dev/null 2>&1; fi ); fi make[2]: *** [/home/seraser/kamikaze/trunk/build_dir/linux-brcm63xx/linux-2.6.30.9/.quilt_checked] Error 127 make[2]: Leaving directory `/home/seraser/kamikaze/trunk/target/linux/brcm63xx' make[1]: *** [menuconfig] Error 2 make[1]: Leaving directory `/home/seraser/kamikaze/trunk/target/linux' make: *** [kernel_menuconfig] Error 2 seraser@equipo:~/kamikaze/trunk$ en fin esto es todo de momento jeje me parece que de momento sera casi mejor esperar mas soporte desde open wrt que de actualmente es nulo o muy escaso cosa muy normal teniendo en cuenta lo fresco que esta el tema un saludo

danitool Friday, December 4, 2009 8:49:40 PM

instala quilt

Unregistered user Saturday, December 5, 2009 7:53:43 PM

seraser writes: bueno he podido compilar al fin pero lastima el log de arranque me da kernel panic no se si sera por que el archivo pesa 4.2 mb si es como el comtrend la imagen maxima seria de 3.88 mb es un dato que no se gracias por tu ayuda danitool y me quedo de momento con tu firm esperando soporte de open wrt o poder compilar sin tener que parchear ni historias por otro lado una duda si en las foneras una vez que se le asigna ip al redboot se puede acceder al mismo por cable de red al puerto 9000 no seria posible hacer lo mismo con el livebox y no tener que estar con el cable serie que es algo mas engorroso saludos

danitool Sunday, December 6, 2009 2:23:33 PM

El livebox puede admitir hasta imágenes de unos 7 megas. He probado algunas que ocupaban 6.5 y funcionan correctamente. El chip flash es de 8 MiB, hay que restarle un poco por el redboot y la configuración. Diría que el máximo que admite son 7.2 megas.

En cuanto a flashear sin cable serie, tal vez sea posible con openwrt arrancado y accediendo por cable de red, usando el comando mtd (lo probé una vez pero no me funcionó..). Otra posibilidad sería usando el botón 1 al lado del puerto usb, puedes pulsarlo mientras arranca y ver lo que te devuelve la conexión serie, eso puede darte algunas pistas. Pero pienso que usando ese botón el redboot solo flashea imágenes encriptadas dwb (el formato de thomson), hay información acerca de esto en http://www.dbzoo.com/wiki/livebox/firmware

Para acceder por puerto 9000 o algo parecido a eso me temo que habría que modificar algo del redboot. No me atrevo con este tipo de cosas porque no tengo JTAG y es la única forma de restaurar el redboot en caso de hacer algo mal.

Unregistered user Monday, December 7, 2009 7:25:11 PM

Anónimo writes: bueno danitool lo del flasheo creo que sera mejor que siga con el cable serie te cuento he vuelvo a compilar y bueno me mosquean dos datos al salir del make kernel_menuconfig me arroja muchos errores sobre el uclibc y por otro lado cuando ejecuto el script kamk.sh me da esta salida que no es limpia es normal o no seraser@equipo:~/kamikaze$ ./kamk.sh ~/kamikaze/root/etc/rc.d ~/kamikaze ~/kamikaze Directory data: 21940 bytes Everything: 6352 kilobytes Super block: 76 bytes CRC: 6fb93ed0 warning: gids truncated to 8 bits (this may be a security concern) un saludo y si soy pesado me lo dices

Unregistered user Monday, December 7, 2009 8:19:18 PM

seraser writes: pues nada que no doy con la tecla el mismo resultado y lo hago todo igual va a ser tema del uclibc ese por que otra cosa no se 802.1Q VLAN Support v1.8 Ben Greear All bugs added by David S. Miller VFS: Cannot open root device "mtdblock1" or unknown-block(0,0) Please append a correct "root=" boot option; here are the available partitions: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) una pregunta no tendras una de esas imagenes que dices por ahi con interfaz web

danitool Monday, December 7, 2009 10:04:50 PM

De momento no probé a hacer ninguna con interfaz web. La salida del script kamk.sh es normal. Javi me ha comentado que él sí ha compilado imágenes con luci.
Saludos

Unregistered user Tuesday, December 8, 2009 4:57:46 PM

seraser writes: vale danitool lo estoy intentando por penultima vez pues si la salida del script es normal dime si eres tan amable si la salida del make kernel_menuconfig es tambien normal # # configuration written to .config # /bin/sh: mips-openwrt-linux-uclibc-gcc: not found /bin/sh: mips-openwrt-linux-uclibc-gcc: not found make[4]: mips-openwrt-linux-uclibc-gcc: Command not found make[4]: mips-openwrt-linux-uclibc-gcc: Command not found /bin/sh: mips-openwrt-linux-uclibc-gcc: not found /bin/sh: mips-openwrt-linux-uclibc-gcc: not found scripts/kconfig/conf -s arch/mips/Kconfig /bin/sh: mips-openwrt-linux-uclibc-gcc: not found /bin/sh: mips-openwrt-linux-uclibc-gcc: not found /bin/sh: mips-openwrt-linux-uclibc-gcc: not found make[4]: mips-openwrt-linux-uclibc-gcc: Command not found make[4]: mips-openwrt-linux-uclibc-gcc: Command not found make[4]: mips-openwrt-linux-uclibc-gcc: Command not found CHK include/linux/version.h UPD include/linux/version.h make[4]: mips-openwrt-linux-uclibc-gcc: Command not found CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h make[4]: mips-openwrt-linux-uclibc-gcc: Command not found SYMLINK include/asm -> include/asm-mips make[4]: mips-openwrt-linux-uclibc-gcc: Command not found make[4]: mips-openwrt-linux-uclibc-gcc: Command not found make[4]: mips-openwrt-linux-uclibc-gcc: Command not found CC kernel/bounds.s /bin/sh: mips-openwrt-linux-uclibc-gcc: not found make[5]: *** [kernel/bounds.s] Error 127 make[4]: *** [prepare0] Error 2 make[3]: *** [prepare] Error 2 make[3]: Leaving directory `/home/seraser/kamikaze/trunk/build_dir/linux-brcm63xx/linux-2.6.30.9' make[2]: [menuconfig] Error 2 (ignored) rm -rf /home/seraser/kamikaze/trunk/build_dir/linux-brcm63xx/modules make[2]: Leaving directory `/home/seraser/kamikaze/trunk/target/linux/brcm63xx' make[1]: Leaving directory `/home/seraser/kamikaze/trunk/target/linux' seraser@equipo:~/kamikaze/trunk$ yo creo que no lo es y por eso la imagen que obtengo al compilar me da kernel panic siempre no se que pasa para el comtrend compilo sin problemas y sin embargo para el livebox nanai un saludo y si no consigo compilar pues le tendre que pedir el favor a javi

danitool Tuesday, December 8, 2009 6:30:18 PM

A mí en "fresco", sin compilar nada aún también me devuelve esa salida. Aunque después de compilar y configurando por segunda vez ya no. Esta es la salida cuando configuro por primera vez el kernel:

http://files.myopera.com/danitool/linux/make_kernel_menuconfig.log

Unregistered user Tuesday, December 8, 2009 7:04:23 PM

seraser writes: pues en esta compilacion me ha dado error en modulos bluetooth que habia escogido he hecho de nuevo make kernel-menuconfig y he deseleccionado el soporte bluetooth y ahora como tu bien dices de segundas no da ese error con uclibc en fin a ver que pasa.......

danitool Tuesday, December 8, 2009 7:18:39 PM

El módulo bluetooth que trae enchufado el Livebox no creo que sea utilizable, aunque tal vez sí un usb bluetooth. Este módulo es ciertamente raro por lo que he podido intuir va conectado por SPI (serial peripheral interface), no sé que drivers puede llevar tampoco encontré espedificaciones de esta tarjeta. Y en las configuraciones de openwrt solo encontré SPI para controlar memorias mmc. Aunque casi preferiría poner una mmc y aumentar tener otra flash donde montar las aplicaciones para el kamikaze en lugar del bluetooth, ya que el bluetooth trabajando a la misma frecuencia que wifi provoca interferencias en éste.... mala idea por parte de quien diseñó este aparato.

Unregistered user Tuesday, December 8, 2009 7:45:15 PM

seraser writes: pues nada el resultado el mismo kernel panic en fin no pasa nada ya llegara al menos ya lo tengo con open wrt que para llegar hasta ahi es un caminito no sencillo digamos de momento me quedo con tu firm y si javi quiere pasarme uno con interface web pues bienvenido sea en lo del bluetooth llevas razon mal se llevara con el wifi pues nada un placer danitool seguire pasando por aqui en busca de buenas nuevas saludos y suerte

danitool Tuesday, December 8, 2009 8:46:50 PM

Acabo de compilar el último trunk de kamikaze con luci

http://files.myopera.com/danitool/linux/Kamikaze_r18701_luci.cramfs

Parece que va bastante lenta la interfaz web.

Unregistered user Tuesday, December 8, 2009 9:00:36 PM

seraser writes: descargando muchisimas gracias danitool de veras te lo digo

Unregistered user Tuesday, December 8, 2009 9:45:47 PM

seraser writes: pues ya esta cargado y bien ha arrancado por cable serie lo he visto pero mmmmmm por cable red no puedo entrar no hay dhcp para la lan digo yo y he probado con ip 10.200.200.1 de puerta de enlace y nada jeje saludos

Unregistered user Tuesday, December 8, 2009 10:19:18 PM

seraser writes: pues disculpa he tardado pero he entrado con dhcp llevas razon la interfaz web se lleva mal con el livebox incluso se queda pillado el firm bueno poco a poco iran puliendo digo yo los de open wrt

Unregistered user Thursday, December 10, 2009 3:43:25 PM

Javier writes: Hola a todos chicos. Seraser, ya colgue mi version de OpenWRT en mi web, y por lo que he estado viendo parece que algo ya has debido hacer... Yo ya he conseguido conectarme como cliente con el router y ese internet pasarle al cable de red, desde luci se hace fenomenal. Ahora mismo estoy "destripando" otro livebox para ver que comandos utiliza para el tema del bluetooth, voip, etc... aun de momento la cosa esta complicada. SALIDA DE UN LIVEBOX ORIGINAL # ps PID TTY Uid Size State Command 1 root 1472 S init 2 root 0 S [keventd] 3 root 0 R [ksoftirqd_CPU0] 4 root 0 S [kswapd] 5 root 0 S [bdflush] 6 root 0 S [kupdated] 7 root 0 S [mtdblockd] 8 root 0 S [khubd] 39 root 0 S [jffs2_gcd_mtd2] 129 root 692 S adsld 279 root 1192 S websrv 296 root 624 S /etc/u -p 23 -l /bin/sh -d 308 root 856 S nas -H 34954 -P /var/run/nas.pid -l br0 -i 335 root 720 S dnsmasq 346 root 1004 S /bin/pairingd -r 1 -b 0 -h bcm -i wl0 390 root 2064 S /usr/bin/upnpd abc0 br0 397 root 2064 S /usr/bin/upnpd abc0 br0 398 root 2064 S /usr/bin/upnpd abc0 br0 404 root 2064 S /usr/bin/upnpd abc0 br0 406 root 2064 S /usr/bin/upnpd abc0 br0 425 root 0 S [krfcommd] 461 root 1180 S hciattach -p -t 2 -w 60 /dev/ttySPI bcsp 96 490 ttyS0 root 1472 S init 491 ttyp0 root 1488 S /bin/sh 503 root 2064 S /usr/bin/upnpd abc0 br0 515 ttyp1 root 1488 S /bin/sh 517 ttyp1 root 1468 R ps # lsmod Module Size Used by Not tainted tty_spi 9648 1 sco 11636 0 (unused) hci_uart 15836 2 bnep 10736 0 (unused) rfcomm 40672 0 (unused) l2cap 21948 1 [bnep rfcomm] bluez 41096 2 [sco hci_uart bnep rfcomm l2cap] bt_reset 528 0 (unused) watchdog 736 0 (unused) switch 1136 0 wl 383848 0 (unused) bcm_usb 17184 2 bcm_enet 20608 4 blaa 8980 0 (unused) adsldd 133028 0 (unused) atmapi 50400 0 [blaa adsldd] # cat bluetooth_version Hardware version: 0x31303032 - Software version: 0x33313537 # cat adsl_status ERR=2 STATUS=1 # cat adsl_version ADSL_VERSION=A2pB017l.d15b-1 # cat upnp_device abc0 # cat wifi_hwtype HWTYPE=bcm Como podemos ver, he listado los modulos que carga, y que el Bluetooth va por SPI (esto ya me lo dijo danitool), pero lo que intento sacar adelante es el tema de VoIP, a ver si logramos entre todos algo. Tengo algo mas, a ver si encuentro un rato y me pongo mas con ello, que llevo una semana "OFF"

danitool Thursday, December 10, 2009 5:11:52 PM

por cierto, Javi, te funciona el puerto eth1? el puerto rojo. A mí no aunque ya he enviado el fallo a dev.openwrt...

Unregistered user Friday, December 11, 2009 8:11:31 AM

Javier writes: No, tampoco me funciona y ya he visto tu fallo que se lo has mandado a los desarrolladores de openwrt :D Hay algo al respecto que me extraña con el eth1 y no se si tiene que ver. En el momento del arranque aparece algo asi como FACTORY SWITCH: OFF (ahora no lo tengo delante) y no se si tendra algo que ver. Espero que desde openwrt den una solucion pronto, estaria bien poder utilizar el otro puerto.

Unregistered user Friday, December 11, 2009 8:27:50 AM

seraser writes: efectivamente javi el redboot es como si capara eth1 no se si cambiando a on se arreglaria pues eso cuando tenga un poco de tiempo yo tambien lo intentare por que ya he modificado varios parametros con fconfig desde el redboot javi sigo sin conseguir el modo cliente es solo cabezoneria para saber si funciona podrias describir como lo consigues y desde luci solo mmmmm si para que me conecte he de hacerle lo descrito desde ssh por danitool seria interesante ver como lo haces parece que solo tocamos en españa este router nosotros tres no jeje saludos

Unregistered user Friday, December 11, 2009 11:03:41 PM

Hektor writes: Hola, Por cierto, gran thread!! He instalado la imagen de danitool y tengo problemas con el opkg: root@OpenWrt:/# opkg update Collected errors: * Could not obtain administrative lock (ERR: Bad file descriptor) at /usr/lib/opkg/lock Sabeis algo de esto? El sistema de ficheros es read-only pero no paso de ahi. Gracias.

danitool Friday, December 11, 2009 11:22:15 PM

No funciona opkg, esto es normal, únicamente son modificables los archivos de configuración. Sería necesario montar /usr/lib/opkg/ en un directorio con escritura (tal vez una memoria adicional para tener más espacio), y hacer que las librerías también se instalen de forma similar en un directorio de escritura y que el sistema sepa que están ahí (esto no sé como se haría, tal vez con links). De momento es mejor olvidarse de opkg. Al menos hasta que esté un poco más avanzado el tema y alguien por ejemplo sepa como usar la interfaz SPI para conectar una memoria SD/MMC, esto ampliaría mucho las posibilidades, ya que tendríamos memoria accesible continuamente para instalar aplicaciones o el sistema entero, entonces yo al menos vería bastante más interesante tratar de hacer que opkg funcione. Así conservamos el puerto usb libre que da bastantes más posibilidades que tenerlo ocupado permanentemente con una memoria que no podemos sacar por tener aplicaciones de sistema instaladas.

Saludos Hektor.

Unregistered user Sunday, December 20, 2009 9:59:07 AM

Hector writes: Hola otra vez, Alguien ha conseguido levantar y configurar la interfaz wireless al arrancar? Lo puedo hacer con ifconfig/iwconfig una vez arrancado, pero no consigo configurar el etc/config/network y wireless adecuadamente. Otra cosa, he montado el /usr/lib/opkg como rw y he estado instalando paquetes :D , supongo que sera necesario el b43-firmware que no viene en tu imagen danitool. Un saludo!

danitool Sunday, December 20, 2009 2:24:51 PM

No sé si te refieres al b43-legacy, igual podría funcionar con estos drivers. En un howto de openwrt explican como
https://forum.openwrt.org/viewtopic.php?id=22841
No lo he probado, tal vez funcione correctamente, sería cuestión de probar.

Por cierto, en el último trunk el wifi va nombrado como radio0 no como anteriormente wifi0. Esto como apunte.

Héctor, únicamente con montar /usr/lib/opkg en un directorio con escritura ya te funcionó opkg o hiciste algo adicional?

Saludos

Unregistered user Sunday, December 20, 2009 3:30:37 PM

seraser writes: buenas yo os sigo pues danitool si el ultimo trunk ya renombra como radio0 tampoco seria correcto verdad habria de ser wlan0 unas dudas sigue con la misma lentitud de carga el firm y la interfaz luci y la ultima tu consigues que al arrancar el firm conecte wlan0 mediante rc.local yo no lo consigo siempre lo he de hacer a mano por otro lado ya he visto tu reporte sobre eth1 y que florian parece tiene el tema un poco parado saludos

danitool Sunday, December 20, 2009 3:45:19 PM

asegúrate de que rc.local tiene permisos de ejecución
chmod +x /etc/rc.local

Unregistered user Sunday, December 20, 2009 5:01:29 PM

seraser writes: ok luego probare gracias

Unregistered user Sunday, December 20, 2009 8:00:56 PM

seraser writes: bueno los permisos se los di y nada no conectaba de inicio asi que como vi que haciendolo a mano si conectaba pues pense en hacer un sleep largo para repetir la cadena de ordenes efectivamente con un sleep 120 ya conecta voy a ir acortando ese sleep hasta ver el minimo posible gracias danitool sigo leyendote por todos lados

Unregistered user Tuesday, December 22, 2009 8:18:18 AM

Hector writes: Danitool, gracias por el link, luego lo pruebo en casa. Lo de montar un dispositivo usb en /usr/lib/opkg funciona a medias: cuando instalas paquetes no te deja crear los links en /lib, /usr/lib etc, asi que te los tienes que crear a mano en /usr/lib/opkg/lib, /usr/lib/opkg/usr/lib y luego exportar LD_LIBRARY_PATH de forma acorde. La ventaja es que puedo instalar clientes de torrent y un monton de utilidades :D Habia pensado copiar el sistema de ficheros de tu imagen a un dispositivo usb y luego montarlo en / desde /etc/rc.local y empezar a trabajar con eso pero todavia no me he puesto. Un saludo.

Unregistered user Thursday, December 24, 2009 8:01:51 PM

Specs writes: "seraser writes: pues ya he probado tu configuracion en el comtrend y no hay manera de salir por cable a internet desde el propio comtrend si pero desde cable no y pienso es problema del firm que no esta muy pulido aun puesto que nadie lo consigue y sopeso que en el livebox pasara los mismo siendo la misma arquitectura" Hola seraser, tengo una configuración guardada para el contrend CT-5361 hecha con el opwnwrt (http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/brcm63xx/default/openwrt-96348GW-11-squashfs-cfe.bin) y que funciona como cliente, puedes conectar un equipo por puerto ethernet. No asi, como repetidor wifi (este chipset bcm6348) está limitado en este sentido. También está limitado para hacer un "puente cliente" por el tema de la transparencia que comenta Danitool. Por lo que es necesario configurarlo en una subred distinta del principal y comunicarlo por NAT. Esto, por desgracia, provoca la perdida de la funcionalidad uPNP que es para lo que yo quería el router. Por otra banda, veo que habéis evolucionado con el Livebox y yo dispongo de 2 unidades, así que probaré a ver a donde llego. Un saludo.

Unregistered user Friday, December 25, 2009 3:17:08 PM

seraser writes: buenas Specs estaria encantado de poder probar ese backup que describes para el ct-5361 si eres tan amable me lo podrias mandar a servitalia@hotmail.com si resultara ya trastearia de nuevo con el ya que acabe muy harto de darle vueltas al tema otra pregunta el tema de puente cliente es posible del mismo modo que con ddwrt o sea crea una red en otro rango como ap tanto para lan como para wireless o solo lan saludos y te agradeceria el backup

Unregistered user Sunday, December 27, 2009 12:24:41 PM

Javier writes: Hola de nuevo danitool Sigo probando cosas nuevas en el livebox y sin mucho exito, pero hoy me ha dado por probar a cargarle el openwrt en otro livebox y para mi sorpresa la eth0 tenia la misma mac que el otro router con el que estaba haciendo mas pruebas: 00:07:3a:00:00:00 De hecho antes de cargarle el firmware mire la mac de la tarjeta de red y era otra. No se si por ahi podran ir los tiros de porque no funciona la eth1. Ya he visto la respuesta de modificar el archivo bc63xx_enet.c pero todavia no me he puesto con ello. Me voy a poner a intentar desarrollar un linux con un kernel 2.4 que es el que tiene originalmente los livebox y parece que les va de lujo. Segun vaya teniendo algun avance os comento por aqui. Un saludo.

Unregistered user Wednesday, January 13, 2010 8:01:20 PM

seraser writes: por reflotar un poco el tema danitool has leido la ultima respuesta de florian sobre tu ticket https://dev.openwrt.org/ticket/6326 saludos

Unregistered user Sunday, January 24, 2010 10:14:05 AM

RollerDK writes: Hola Danitool, Seraser ;) Seraser.., gracias por la ayuda con el cable. El problema era de este. Por fin ya he conseguido meter el openwrt (la revisión 18454) Ahora para los 2, a ver si os pasa lo mismo :) Estoy intentando compilarlo yo mismo con la revisión (19311) de hoy (24/10) y el problema que tengo es que da un error por causa de que el patch de ruff's solo contiene basura, no se si excluirlo de la conpilación. Os ha pasado? Gracias

Unregistered user Sunday, January 24, 2010 10:57:33 AM

RollerDK writes: Para concretar el error que me sale al compliar: Applying patch platform/046-cramfs_endianness.patch patch: **** Only garbage was found in the patch input. Patch platform/046-cramfs_endianness.patch does not apply (enforce with -f) make[2]: *** [/home/-------/livebox/kamikaze/trunk/build_dir/linux-brcm63xx/linux-2.6.30.10/.quilt_checked] Error 1 make[2]: Leaving directory `/home/-------/livebox/kamikaze/trunk/target/linux/brcm63xx' make[1]: *** [menuconfig] Error 2 make[1]: Leaving directory `/home/-------/livebox/kamikaze/trunk/target/linux' make: *** [kernel_menuconfig] Error 2

Unregistered user Sunday, January 24, 2010 11:37:34 AM

Anónimo writes: buenas RollerDK yo en esto de compilar solo soy un novato pero bueno segun veo la ruta donde pones el patch difiere de la que se indica tu lo alojas en /livebox/kamikaze/trunk/build_dir/linux-brcm63xx/linux-2.6.30.10 y se indica que ha de alojarse en /trunk/target/linux/brcm63xx/patches-2.6.30 espero no equivocarme pero creo que la ruta es distinta y afecta

Unregistered user Sunday, January 24, 2010 12:01:29 PM

RollerDK writes: Hola Anónimo, el parche lo he metido en la ruta correcta que es la que tu indicas. Gracias. lo que ocurre, es que al compilar la debe mover/copiar a ese directorio "build_dir" que se crea durante la compilación. Yo creo que el problema reside en que esta revisión solo encuentra basura (garbage) en ese parche. A ver que comentan Danitool y Seraser. He estado viendo este post: https://forum.openwrt.org/viewtopic.php?pid=88690 pero ya es antiguo para esta revisión. Gracias

Unregistered user Monday, February 15, 2010 11:21:28 PM

raikol writes: aupi toy intentando conectarme por serie .... pero la primera en la frente xD despues de haber compilado el kernel perfect .... (a la primera no se habia generado el tgz xD) me estoy topando con que e lserial no funciona :S me salen cuadrados y letras raras todo el rato :S 115200 8N1 ... y no veo un character decente :S alguna idea? mi cable funciona bien con otros modems :S

danitool Tuesday, February 16, 2010 2:30:47 PM

raikol, los parámetros que has puesto son correctos, entonces adivino que el problema está en tu adaptador serie a TTL. Si lo has construido tú mismo ten en cuenta que el livebox es ligeramente diferente a otros routers en cuanto a este aspecto de comunicación serie, creo que debido a voltajes.

Yo siempre he usado un adaptador de teléfono móvil para este propósito, tanto usb a serie de un sony ericsson como uno por puerto serie de un móvil Samsumg me funcionaron bien con cualquier dispositivo que use comunicación serie TTL, incluido el livebox.

Saludos

Unregistered user Tuesday, February 16, 2010 10:15:43 PM

raikol writes: @danitool mi aparato .. funciona a 3.3 xk lo he probado con modemes y otros temas :) asi que ... es TTL fijo, esta comprado hecho, es un ftdi rs232 de esos por usb .... ahora ando a ver si soy capaz de flasear el deco de nuevo con el firm original aunke sea ... aunke como tiene el redboot nuevo .... (o antiguo) me parece que necesita el firm sin cifrar ... a ver si puedo usar algo para mandarselo descifrado y ver que pasa _:S

danitool Tuesday, February 16, 2010 10:43:19 PM

http://www.andyp.uwclub.net/livebox_serial_schematic2.png
Esto puede clarificar un poco mejor como debe ser el serial TTL para el livebox cuando necesitamos constuirlo nosotros mismos. Esto para uno por puerto serie. Por puerto usb creo que los ftdi no debieran tener problema, además usando usb NO es necesario alimentación ya que la toma del propio ordenador, vamos que el pin de 5 V del livebox no hay que enchufarlo en este caso.

Unos contactos sucios también puede ocasionar que salgan caracteres raros, más no se me ocurre la verdad.

Write a comment

New comments have been disabled for this post.