Belgacom Box 2 (Bbox2)

Hardware

  • 1 USB2
  • 2 FXS
  • 1 switch 4 ports
  • 1 serial
  • 1 wifi atheros
  • VDSL2
  • Flash 16MB
  • RAM 64MB

Pictures

full.jpg
full.jpg
full.jpg
27112009663.jpg

Gallery

Serial port

Put here some pictures on where to solder a 4 pins header for obtaining the serial console.

Pinout:

  • GND
  • TX
  • RX
  • 3.3V (optional)

Put a picture of the pinout here.

Serial messages

Watchdog process control started...
dev_if_ad68xx_adsl_status_poll: case 0

SAGEM Secure-boot v2.4.8 for ADI chipset

CPU: ADI Fusiv 160 Family
DRAM:  64 MB
Flash: 16 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
voxEmac
_PORT0_PHY_CTRL_REG=12288_good regular firmware
partition not moved
Launch regular code from flash
## Booting image at bf960140 ...
   Image Name:   FAST3464_6000G0
   Created:      2008-07-09  14:59:33 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    6770449 Bytes =  6.5 MB
   Load Address: 80010000
   Entry Point:  80261000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.15 #34 Wed Jul 9 16:59:28 CEST 2008
SDRAM size: 64Mb
FLASH size: 16Mb
CPU revision is: 6836c400
Init USB Host
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
 memory: 01000000 @ 1f000000 (ROM data)
Built 1 zonelists
Kernel command line: console=ttyS0,57600 
Primary instruction cache 16kB, linesize 32 bytes.
Primary data cache 8kB, linesize 32 bytes.
Synthesized TLB refill handler (17 instructions).
Synthesized TLB load handler fastpath (31 instructions).
Synthesized TLB store handler fastpath (31 instructions).
Synthesized TLB modify handler fastpath (25 instructions).
PID hash table entries: 512 (order: 9, 8192 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 55972k/65536k available (2065k kernel code, 9500k reserved, 306k data, 104k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction...  unavailable.
NET: Registered protocol family 16
Fusiv PCI: starting...
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
GPIO Initialisation (led/buttons/relays)
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
Random: 0xd2b106e5
Serial: 8250/16550 driver $Revision: 1.1.4.1.2.1 $ 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xb9020000 (irq = 6) is a 16450
vox160-ehci-hcd vox160-ehci-hcd.0: Ikanos On-Chip EHCI Host Controller
vox160-ehci-hcd vox160-ehci-hcd.0: new USB bus registered, assigned bus number 1
vox160-ehci-hcd vox160-ehci-hcd.0: irq 35, io mem 0x19230000
vox160-ehci-hcd vox160-ehci-hcd.0: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
vox160-ohci-hcd vox160-ohci-hcd.0: ADI VOX160 OHCI
vox160-ohci-hcd vox160-ohci-hcd.0: new USB bus registered, assigned bus number 2
vox160-ohci-hcd vox160-ohci-hcd.0: irq 35, io mem 0x19240800
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new driver usblp
/filer1_vol5/dev_projets2/adsl_adi/fast_3464_vdsl2/dev/soft/pwe/verchere/FR/checkoutdir/openrg/package/rg/os/linux-2.6/drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
u32 classifier
    OLD policer on 
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 8
NET: Registered protocol family 20
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
fusiv_flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
fusiv_flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 2 MTD partitions on "fusiv_flash":
0x00000000-0x01000000 : "openrg"
0x00180000-0x00280000 : "jffs2"
fusiv_flash: detected at 0x1f000000 size 16777216 bytes
Freeing unused kernel memory: 104k freed
fusiv library initializing...
fusiv library initialized SUCCESSFULLY... 
periApDriverInit: done
 *******LOAD firmware to AP:PERI_ID result:0Load into PERI_AP APU Successful !!!

 Buffer Manager is initializing...
Load into BM APU Successful !!!
 Buffer Manager initialized SUCCESSFULLY...
Timers are getting initalized
Timers are initilized SUCCESSFULLY...
Ethernet Driver is initialized SUCCESSFULLY
ADI ATM driver registered, number=0
ATM Driver Initialized SUCCESSFULLY...
loading license key: 34ab8923211d0b2de5d3d0b527e8e204cf095886cdab51635b07f7222b565eb03491a37a19864f125d3bf8b5838ce291e6cc9907678ec674b5d1cee0a0fbd19115f3bd3d3a0ee7f89b9af02f
hardware_read_fs OK for /dev/mtdblock0 !!! It's [b-box2] 
hardware_read_fs OK for /dev/mtdblock0 !!! It's [bbox2-5C1C] 
leds_setup : Hardware is BBOX!!!
ath_hal: 0.9.17.1 (AR5212, RF5111, RF5112, RF2413, RF5413)
wlan: 0.8.4.2 (Atheros/multi-bss)
ath_rate_atheros: Version 2.0.1
Copyright (c) 2001-2004 Atheros Communications, Inc, All Rights Reserved
ath_dfs: Version 2.0.0
Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
wlan: mac acl policy registered
ath_pci: 0.9.4.5 (Atheros/multi-bss)
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
ath_attach: Fast Path Test Code Compiled Jul  9 2008 16:53:56
Setting ah_eepromDetach
**** Going to ath_hal_readEepromIntoDataset
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: mac 7.8 phy 4.5 radio 5.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0x1a000000, irq=25
Press ESC to enter BOOT MENU mode.
ffs: entry:0: successfully mounted dev:/dev/mtdblock1 fs:jffs2 mount point:/mnt/ffs/A.
IPV4 device driver registered
Initializing Watchdog module
Initializing Watchdog module1 
Initializing Watchdog module2
Initializing Watchdog module3

##################################################

# DSP Voice Module Part 1 Loading ...

Register /sys/sagem/voice SysCtl ... OK
Using: Software Build(voice_2_6 : Thu Dec  8 10:33:40 PST 2005)
# DSP Voice Module Part 1 Loading Ok
##################################################
##################################################
# DSP Voice Module Part 2 Loading ...
Could not find DSP configuration file, setting to defaults
Save and reboot the system to effect the Codec Mode : 2
Total words found in /dsp/dsp218x_1ch_g729only.dsp Image 31948
Registering Call Back Handlers
 DSP TIME SLOT Assigned:260
 DSP CLock Assigned:22
 DSP Codec Type  Assigned:2
 DSP TIME SLOT Assigned:40
 DSP CLock Assigned:22
 DSP Codec Type  Assigned:2
ADSP218x DOWNLOAD DONE !!!!
DSP Ver No:1.1  
 Initialization SLIC system
 Initializing Voice 
 Initializing SPI Module 
 Initialization SLIC device
  Product Code: ff ff
  Assuming SLIC card as SILABS 
 Codec[0] => Chip Type [0]  Chip Version [3]
 BELGIUM SI3216 Initialization. codecNo 0
 Codec[1] => Chip Type [0]  Chip Version [3]
 BELGIUM SI3216 Initialization. codecNo 1
# DSP Voice Module Part 2 Loading Ok
##################################################
##################################################
# RTP Stack Module Loading ...
Register /dev/rtp Device ...Register /sys/sagem/rtp SysCtl ...Relay Driver Starting...
Ikanos BME  is registered as char device Major No 254
Switch Hard Reset
Writing GPIO conf file
Successfully opened GPIO conf file /mBME Unknown ioctl cmd 540d..
nt/ffs/A/gpio.conf
Successfully wrote hardware into file
Done writing GPIO conf fileVDSL Daemon starting...
VDSL Daemon started
Atheros Wifi card found.
eth2
eth3
opening reconfentity Entity

MAIN AUTOM ID IS 100 warning #1 :new rg_conf entry but not signaled
warning #1 :new rg_conf entry but not signaled
warning #1 :new rg_conf entry but not signaled
warning #1 :new rg_conf entry but not signaled
warning #1 :new rg_conf entry but not signaled
warning #1 :new rg_conf entry but not signaled
warning #1 :new rg_conf entry but not signaled
dev_control:50: PPPoE relay ioctl failed - No such device
eth1.10: Setting MAC address to  00 1b bf 79 5c 1d.

device eth1 entered promiscuous mode

eth1.20: Setting MAC address to  00 1b bf 79 5c 1d.

ipos system initialized 
CreateTimer15Mins(): success 
CreateTimer3Mins(): success 
start autoRestart from UI Task

BME 1 is coming up
Fusiv oampBmeStart() ../
device eth0 entered promiscuous mode

INI RESETHello 2 

Downloading BME eth1.10: Setting MAC address to  00 1b bf 79 5c 1d.

eth1.20: Setting MAC address to  00 1b bf 79 5c 1d.

vendor_id_tmp : Sagem,3664,6000G0,LK08229DP370330DHCP Init : Sagem,3664,6000G0,LK08229DP370330

__BEI_mode_hybride:sup_dslmod_main_ok

Resetting adsl DSP

Screenlog

$ screen /dev/ttyUSB0 57600 8N1

The output is here (long).

Dump of the flash

Via a USB key dd if=/dev/mtdblock0 of=mtdblock0

Files:

Toolchain

Thomson has a Microsoft Word file (Google HTML copy) where they explain the procedure to get a copy of the toolchain Sources-toolchain-3.2.2.tar:

Free software released under the GNU Lesser General Public License (LGPL) Version 2.1 (available at http://www.gnu.org/licenses/lgpl.txt);

Vlan
Updatedd-1.6
Sources-toolchain-3.2.2.tar

Anyone may obtain from us a copy of the source code for the free software packages listed above. The source packages for these programs are available for download at http://www.thomson.net/open-software. Those individuals without Internet access may request that a CD-ROM or DVD containing the source code be sent to them by mail. To reimburse the expenses incurred by creation, handling and postage, we will charge a €12 fee. To request a CD ROM or DVD of the source code, send an e-mail to ten.nosmoht|terttoc.eivlys#ten.nosmoht|terttoc.eivlys or mail the request, with payment, to Thomson Sylvie Cottret – Open Software Source Code Request, 46 Quai Alphonse Le Gallo 92100 Boulogne-Billancourt, France.

They do not put it online for download:

LV24 sources-toolchain-3.2.2.tar GPL V2 LGPL V2.1 Oversized Available on request

Compile Helloworld.c

  1. Install the toolchain from Jungo -> done
  2. Compile Helloworld.c in static -> done, Hello world works!
  3. Compile a busybox in static with OpenWRT external toolchain option -> does not find some includes…

Compile openwrt packages

Put some static binaries here.

Kernel sources

There seems to be some kernel sources here:

http://www.livebox-opensource.com/livebox1.2/thomson/src/linux-2.6.12.zip

It contains some adi_fusiv directory:

linux-2.6.12.zip#uzip/linux-2.6/arch/mips/adi_fusiv

There seems to be also an interesting patch here:

http://freetz.mhampicke.de/trunk/make/linux/patches/2.6.19.2/7270_04.76/120-remove_fusiv.patch

Trying to find the sources to which the patch relates to…

FXS interface

The VillageTelco project seems to use the same kind of FXS chip (Si3215 instead of the Si3216 inside the bbox2):

ProSLIC module is Si3215
Start manual calibration
Module 0: Installed -- AUTO FXS
Registered mp char driver on major 34

Some interesting code about the Si Labs 3215 chipset:

/*
   mp.c
   David Rowe 17 May 2009

   Mesh Potato kernel mode driver for the Si Labs 3215 FXS chipset.  A
   bit bashed SPI interface is constructed using the Atheros AR2317
   (aka AR5315) SoC GPIO pins.  The SPI port is used for
   initialisation and signalling of the FXS port, the TDM speech data
   is transferred through the SoC RS232 port (via a hacked version of
   8250.c driver).

   Credits: lots of SPI code and Si labs init code borrowed from
   Zaptel wcfxs.c driver (Wildcard TDM400P TDM FXS/FXO Interface
   Driver) written by Mark Spencer and Matthew Fredrickson.
*/

Links

Comments

Toolchain available from Livebox-floss.com
zoobabzoobab 1266837206|%e %b %Y, %H:%M %Z|agohover

Toolchain available from Livebox-floss.com:

http://www.livebox-floss.com/Products/LiveBox/LiveBox2/vFAST3XXX_6813E2/toolchain-mips-linux-uclibc-prebuilt.tar.bz2

zoobab@buzek /home/zoobab/soft/bbox2/mips-linux-uclibc [57]$ grep lx4 -R *
[…]
bin/mips-linux-gccbug:configured with: /home/floss/FLOSS/orange-floss/Products/LiveBox/LiveBox2/Sagem/.tmp.28720/toolchain-mips-linux-uclibc/toolchain_build_mips_nofpu/gcc-3.4.3/configure —prefix=/home/floss/FLOSS/orange-floss/Products/LiveBox/LiveBox2/Sagem/.tmp.28720/toolchain-mips-linux-uclibc/build_mips_nofpu/staging_dir —build=i386-pc-linux-gnu —host=i386-pc-linux-gnu —target=mips-linux-uclibc —enable-languages=c,c++ —enable-shared —disable-__cxa_atexit —enable-target-optspace —with-gnu-ld —disable-nls —enable-multilib —with-float=soft —with-arch=lx4189

The sources are there:

http://www.livebox-floss.com/Products/LiveBox/LiveBox2/vFAST3XXX_6813E2/toolchain-mips-linux-uclibc.tar.bz2

Reply  |  Options
Unfold Toolchain available from Livebox-floss.com by zoobabzoobab, 1266837206|%e %b %Y, %H:%M %Z|agohover
drivers?
anonymous (guest) 1267023621|%e %b %Y, %H:%M %Z|agohover

does this provide the drivers for the components (VDSL, ethernet, wifi) ?

Reply  |  Options
Unfold drivers? by anonymous (guest), 1267023621|%e %b %Y, %H:%M %Z|agohover
Closed source drivers for VDSL I presume
zoobabzoobab 1267183047|%e %b %Y, %H:%M %Z|agohover

As far as I know, there are no open source drivers for the VDSL2 module.

But for the Wifi, the Atheros chipset is well supported by Linux, ethernet I have no idea, but probably yes.

I am trying to solder a JTAG, and I will request the complete sources to Belgacom soon.

Reply  |  Options
Unfold Closed source drivers for VDSL I presume by zoobabzoobab, 1267183047|%e %b %Y, %H:%M %Z|agohover
Zwintje (guest) 1267656197|%e %b %Y, %H:%M %Z|agohover

This is great work. Hope you succeed with the jtag.

Thx from a Bbox2 user.

Zwintje

Reply  |  Options
Unfold by Zwintje (guest), 1267656197|%e %b %Y, %H:%M %Z|agohover
Add a New Comment