Differences

This shows you the differences between two versions of the page.

toh:pirelli:drg_a226m [2013/01/24 19:11]
claudyus flash error
toh:pirelli:drg_a226m [2013/07/31 02:02] (current)
leag
Line 1: Line 1:
====== Pirelli FastWeb DRG A226M ====== ====== Pirelli FastWeb DRG A226M ======
 +Supported, but without ADSL.
 +  * Attitude Adjustment (12.09):\\ [[http://downloads.openwrt.org/attitude_adjustment/12.09/brcm63xx/generic/openwrt-A226M-cfe-squashfs-cfe.bin|openwrt-A226M-cfe-squashfs-cfe.bin]]
 +  * Trunk:\\ [[http://downloads.openwrt.org/snapshots/trunk/brcm63xx/openwrt-A226M-cfe-squashfs-cfe.bin|openwrt-A226M-cfe-squashfs-cfe.bin]]
===== Hardware ===== ===== Hardware =====
-| CPU |  [[http://www.broadcom.com/products/DSL/xDSL-CPE-Solutions/BCM6358|BCM6358KFBG ]] |  +==== Info ==== 
-| Flash | 16 MByte |  +| **[[wp>Instruction set|Architecture]]:**    | [[wp>MIPS architecture|MIPS]] | 
-| SDRAM | 32 MByte |  +| **Vendor:**          | [[wp>Broadcom]] | 
-LAN MAC/PHY Switch | ??  |  +| **[[doc:techref:Bootloader]]:**    | [[doc:techref:bootloader:CFE|CFE]] | 
-Wi Fi Card | None but mini-pci connector is available | +| **Board ID:**      | DWV-S0 | 
 +| **[[doc:hardware:soc|System-On-Chip]]:** | [[http://www.broadcom.com/products/DSL/xDSL-CPE-Solutions/BCM6358|BCM6358KFBG ]] | 
 +| **[[doc:hardware:cpu|CPU]]/Speed**        | BMIPS4350 V1.0 / 300 Mhz [[doc:hardware:soc:soc.broadcom.bcm63xx:smp|BMIPS Dual Core]] | 
 +| **Flash-Chip:**      | :?:
 +| **Flash size:**      | 8 MiB | 
 +| **RAM:**            | 32 MiB 
 +| **Wireless:**        | miniPCI (no card connected) | 
 +| **Ethernet:**        | Broadcom [[http://wiki.openwrt.org/_media/toh/bcm5325_pinout.png|BCM5325]] w/ vlan support [[doc:uci:network#swconfig]]
 +| **Internet:**        | ADSL2+ | 
 +| **USB:**            | 1x2.0H + 1x1.1D | 
 +| **[[doc:hardware:port.serial|Serial]]:**          | [[#Serial|Yes]] | 
 +| **[[doc:hardware:port.jtag|JTAG]]:**            | [[#JTAG|Yes]]  |
-===== Boot Time ===== +==== Photos ====
-This is some output at boot time before OpenWrt flash: +
-<code> +
-CFE version 1.0.37-8.7 for BCM96358 (32bit,SP,BE) +
-Build Date: lun apr  2 10:48:55 CEST 2007 (gpaolo@buildserver) +
-Copyright (C) 2000-2005 Broadcom Corporation.+
-Boot Address 0xbe000000+{{https://dl.dropbox.com/u/16893292/pirelli_a226m_owrt.jpg?300}}
-Initializing Arena. +==== Serial ==== 
-Initializing Devices. +The serial port is J10, on the left of the switch chip, [[#photos|see photos]]
-Parallel flash device: name AM29LV320MT, id 0x2201, size 8192KB +
-CPU type 0x2A010: 300MHz, Bus: 133MHz, Ref: 64MHz +
-CPU running TP0 +
-Total memory: 33554432 bytes (32MB) +
- +
-Total memory used by CFE:  0x80401000 - 0x80527ED0 (1208016) +
-Initialized Data:          0x8041D940 - 0x8041F700 (7616) +
-BSS Area:                  0x8041F700 - 0x80425ED0 (26576) +
-Local Heap:                0x80425ED0 - 0x80525ED0 (1048576) +
-Stack Area:                0x80525ED0 - 0x80527ED0 (8192) +
-Text (code) segment:      0x80401000 - 0x8041D938 (117048) +
-Boot area (physical):      0x00528000 - 0x00568000 +
-Relocation Factor:        I:00000000 - D:00000000 +
- +
-Resetting Secondary CPU...  +
- +
-Board IP address                  : 192.168.1.1:ffffff00   +
-Host IP address                  : 192.168.1.100   +
-Gateway IP address                :   +
-Run from flash/host (f/h)        : f   +
-Default host run file name        : vmlinux   +
-Default host flash file name      : bcm963xx_fs_kernel   +
-Boot delay (0-9 seconds)          : 1   +
-Boot image (0=latest, 1=previous) : 0   +
-Board Id (0-6)                    : DWV-S0   +
-Number of MAC Addresses (1-32)    : 13   +
-Base MAC Address                  : 02:10:18:xxxxxxxxx   +
-PSI Size (1-64) KBytes            : 24   +
-Main Thread Number [0|1]          : 0   +
- +
-*** Press any key to stop auto run (1 seconds) *** +
-Auto run second count down: 1 +
-web info: Waiting for connection on socket 0. +
-CFE>  +
-</code> +
- +
-The board id for the kernel is DWV-SO. +
- +
-===== Serial Console ===== +
-The serial port is J10, on the left of the switch chip, [[#Picture with highlighted Serial and Jtag|see]]+
|  6 |  GND |  RX |  5 | |  6 |  GND |  RX |  5 |
Line 68: Line 37:
**NB:** a short circuit between pins ''RX'' and ''TX'' at power up puts the device in a recovery mode with IP ''192.168.1.1'' from where a new firmware can be uploaded.  OpenWrt binaries are refused, though, because of invalid CRC. **NB:** a short circuit between pins ''RX'' and ''TX'' at power up puts the device in a recovery mode with IP ''192.168.1.1'' from where a new firmware can be uploaded.  OpenWrt binaries are refused, though, because of invalid CRC.
-===== JTAG ===== +==== JTAG ==== 
-Jtag port is J9 near the SoC and the minipci socket, [[#Picture with highlighted Serial and Jtag|see]]+Jtag port is J9 near the SoC and the minipci socket, [[#photos|see photos]]
It seems to be a mips e-jtag 14 pin connector with columns swapped (used from the other side?). It seems to be a mips e-jtag 14 pin connector with columns swapped (used from the other side?).
Line 87: Line 56:
You should probably try the [[http://openocd.berlios.de/web/|Open On-Chip Debugger]] You should probably try the [[http://openocd.berlios.de/web/|Open On-Chip Debugger]]
-===== OpenWrt on the machine :-) ===== +Install OpenWrt on this router :-) 
-You will need a serial adpater!!+ 
 +===== Requirement to install OpenWRT ===== 
 + 
 +To install OpenWRT you have to stop the system loading through the serial console 
 + 
 +To do that you need a serial adapter/converter (that convert TTL +3.3V of router serial console to RS232 (+/-12V) or USB). I suggest to use USB serial converter!!
Don't even try to go further without a serial adapter!! Don't even try to go further without a serial adapter!!
 +You can buy USB serial converter adapter on Ebay (find CP2102 chispet)
-==== Backup of the original firmware ====+[[http://www.ebay.com/sch/i.html?_from=R40&_sacat=0&_nkw=cp2102&_sop=15|USB serial adapter based on Silicon Labs CP2102 (Ebay)]] 
 + 
 +===== Backup of the original firmware =====
The firmware is based on OpenRG, I don't know how to backup this firmware. **Continue at  your risk!!!** The firmware is based on OpenRG, I don't know how to backup this firmware. **Continue at  your risk!!!**
Line 99: Line 76:
You can try [[doc:hardware:soc:soc.broadcom.bcm63xx#dump.the.flash|bcm63xx#dump.the.flash]] It isn't a firmware backup but a whole flash backup --- //danitool 2013/01/23 15:23// You can try [[doc:hardware:soc:soc.broadcom.bcm63xx#dump.the.flash|bcm63xx#dump.the.flash]] It isn't a firmware backup but a whole flash backup --- //danitool 2013/01/23 15:23//
-==== Restore original firmware ====+===== Restore original firmware =====
We need a way to backup it first. =) We need a way to backup it first. =)
-==== Installing OpenWrt ====+===== Installing OpenWrt ====
You need to setup a tftp server on some host (I can suggest to use dnsmasq for this) to serve the firmware image to the router. You need to setup a tftp server on some host (I can suggest to use dnsmasq for this) to serve the firmware image to the router.
-Now just download the image for //A226M// from [[http://downloads.openwrt.org/snapshots/trunk/brcm63xx]], skip the jffs2 with 64k erase block as the flash use 128k block, anyway using 64k should not give much problem, just some wasted space and some errors messages. Put the choose image in the right place (see your tftp server configuration), and go to the CFE prompt.+Now just download the image for //A226M// from  
 + 
 +[[http://downloads.openwrt.org/snapshots/trunk/brcm63xx|OpenWRT firmware - Broadcom BRCM63xxx CPU]] 
 + 
 +You have firmwares for two filesystems (squashfs and jffs2) 
 + 
 +**squashfs** is a filesytem that have system files readonly. more stable and less problems. you cannot destroy importan file 
 + 
 +**jffs2** is a file system completly writable. more powerfull but you can destroy system files. 
 + 
 +to start as novice I sugegst to use squasfs firmwares. 
 + 
 +Skip the jffs2 with 64k erase block as the flash use 128k block, anyway using 64k should not give much problem, just some wasted space and some errors messages. Put the choose image in the right place (see your tftp server configuration), and go to the CFE prompt. 
 + 
 + 
 +[[http://downloads.openwrt.org/snapshots/trunk/brcm63xx/openwrt-A226M-squashfs-cfe.bin|OpenWRT DRGA226M firmware -  CFE squashfs]] 
 + 
 +[[http://downloads.openwrt.org/snapshots/trunk/brcm63xx/openwrt-A226M-cfe-squashfs-cfe.bin|OpenWRT DRG A226M firmware - squashfs CFE]] 
 + 
 + 
 +[[http://downloads.openwrt.org/snapshots/trunk/brcm63xx/openwrt-A226M-cfe-jffs2-128k-cfe.bin|OpenWRT DRG A226M firmware - jffs2 128K CFE]] 
 + 
 +[[http://downloads.openwrt.org/snapshots/trunk/brcm63xx/openwrt-A226M-jffs2-128k-cfe.bin|OpenWRT DRGA226M firmware - CFE jffs2 128K]] 
 + 
 + 
 +==== Poweron the router - Stop the boot process ===== 
 + 
 +Through the serial console and a terminal program (like Hyperterminal, Putty portable, Teraterm) setup as 115200, 8 bit data, no parity bit, 1 stop bit, poweron the router and press any key to stop the system loading. 
 + 
 +==== Flash the new firmware via TFTP ===== 
 + 
 +__I suggest to rename the firmware file downloaded as **firmware.bin**__
Now you have to use the //flashimage// command to load the openwrt image, please don't use the //f// command. If you configure (with command //c//) the host ip address you can avoid it in the //flashimage// argument. Now you have to use the //flashimage// command to load the openwrt image, please don't use the //f// command. If you configure (with command //c//) the host ip address you can avoid it in the //flashimage// argument.
Line 113: Line 122:
    eg. flashimage [hostip:]compressed_image_file_name     eg. flashimage [hostip:]compressed_image_file_name
 +or
 +    es: flashimage 192.168.1.100:firmware.bin
 +or
 +    es: flashimage firmware.bin 
</code> </code>
Line 118: Line 131:
Using dnsmasq: Using dnsmasq:
 +
<code> <code>
dnsmasq -d --enable-tftp --tftp-root=`pwd` #fron the directory where firmware is previously downloaded dnsmasq -d --enable-tftp --tftp-root=`pwd` #fron the directory where firmware is previously downloaded
</code> </code>
 +where the 192.168.1.100 is your server tftp
 +After the flashing of new firmware the router will reboot.
 +
 +You can use also TFTP server like tftp32. Install tftpd32 and put the firmware file (I suggest to rename it as **firmware.bin**) in the same folder where you installed tftpd32.
 +
 +==== OpenWRT - First boot =====
:!: :!: :!: ATM (24 jan 2013) the OPENWRT image is rejected due to wrong CRC in kernel  :!: :!: :!: :!: :!: :!: ATM (24 jan 2013) the OPENWRT image is rejected due to wrong CRC in kernel  :!: :!: :!:
Line 148: Line 168:
Entry at 0x80010000 Entry at 0x80010000
</code> </code>
 +If you receive this error with the test file: openwrt-A226G-cfe-squashfs-cfe.bin I had also prevents this problem and I solved it with this. (31/07/2013)
-===== Picture of the board DRG A226M =====+===== Specific OpenWrt configuration =====
-{{https://dl.dropbox.com/u/16893292/pirelli_a226m_owrt.jpg?300}}+==== Network configuration ====
-===== Specific OpenWrt configuration ===== +To have a better match with DRG A226M functions, I suggest you to use it with the following network configuration. 
-====== Network configuration ====== +Using the interneal editor vi, check and edit **/etc/config/system** file. 
-I can suggest you to use it with the following network configuration.+ 
 +For more info read [[doc/switch]] config. FIXME To be reviewed
-For more info read [[doc/switch]] config. 
-FIXME To be reviewed 
<code> <code>
config interface loopback                                                      config interface loopback                                                     
Line 194: Line 214:
</code> </code>
-====== Leds config ====== +==== Modify the leds config ==== 
-Inside /etc/config/system add:+ 
 +To have the led matching DRG A226M features, using the internal editor vi edit the **/etc/config/system** file. Add: 
<code> <code>
config 'led' config 'led'
Line 216: Line 238:
</code> </code>
-=== Links === 
-http://wiki.ninux.org/Hackalicegate 
-http://www.youtube.com/watch?v=GL5tMry0DlU+==== Web interface (Luci) ==== 
 + 
 +The OpenWRT firmware don't provide by default webui. just telnet interface. 
 +To configure the modem through the web interface you should install WebUI (like Luci). 
 +To do that you can follow the instructions 
 + 
 +[[http://wiki.openwrt.org/doc/howto/luci.essentials|OpenWRT - Install WebUI (Luci)]] 
 +<code> 
 +opkg update 
 + 
 +opkg install luci 
 +</code> 
 + 
 +==== Module for mini-pci Wifi Ralink RT2661T ==== 
 +<code> 
 + 
 +opkg update 
 + 
 +opkg install kmod-rt61-pci 
 +  
 +</code> 
 +Reboot system for activate WiFi 
 + 
 +===== Bootlogs ===== 
 +==== OEM bootlog ==== 
 +<HTML> 
 +<p style="padding: 10px;border:1px solid grey;height:600px;font:10px/14px Georgia, Garamond, Serif;overflow:Auto;background-color:#FFFFFF"> 
 +<code>CFE version 1.0.37-8.7 for BCM96358 (32bit,SP,BE) 
 +Build Date: lun apr  2 10:48:55 CEST 2007 (gpaolo@buildserver) 
 +Copyright (C) 2000-2005 Broadcom Corporation. 
 + 
 +Boot Address 0xbe000000 
 + 
 +Initializing Arena. 
 +Initializing Devices. 
 +Parallel flash device: name AM29LV320MT, id 0x2201, size 8192KB 
 +CPU type 0x2A010: 300MHz, Bus: 133MHz, Ref: 64MHz 
 +CPU running TP0 
 +Total memory: 33554432 bytes (32MB) 
 + 
 +Total memory used by CFE:  0x80401000 - 0x80527ED0 (1208016) 
 +Initialized Data:          0x8041D940 - 0x8041F700 (7616) 
 +BSS Area:                  0x8041F700 - 0x80425ED0 (26576) 
 +Local Heap:                0x80425ED0 - 0x80525ED0 (1048576) 
 +Stack Area:                0x80525ED0 - 0x80527ED0 (8192) 
 +Text (code) segment:      0x80401000 - 0x8041D938 (117048) 
 +Boot area (physical):      0x00528000 - 0x00568000 
 +Relocation Factor:        I:00000000 - D:00000000 
 + 
 +Resetting Secondary CPU...  
 + 
 +Board IP address                  : 192.168.1.1:ffffff00   
 +Host IP address                  : 192.168.1.100   
 +Gateway IP address                :   
 +Run from flash/host (f/h)        : f   
 +Default host run file name        : vmlinux   
 +Default host flash file name      : bcm963xx_fs_kernel   
 +Boot delay (0-9 seconds)          : 1   
 +Boot image (0=latest, 1=previous) : 0   
 +Board Id (0-6)                    : DWV-S0   
 +Number of MAC Addresses (1-32)    : 13   
 +Base MAC Address                  : 02:10:18:xxxxxxxxx   
 +PSI Size (1-64) KBytes            : 24   
 +Main Thread Number [0|1]          : 0   
 + 
 +*** Press any key to stop auto run (1 seconds) *** 
 +Auto run second count down: 1 
 +web info: Waiting for connection on socket 0. 
 +CFE>  
 +</code> 
 + 
 + 
 + 
 +====== Links ====== 
 + 
 +[[http://www.fastweb.it/downloads/PDF/famiglia/installazione/pirelli.pdf|Pirelli A226M - User manual (italian)- PDF]] 
 + 
===== Tags ===== ===== Tags =====
-{{tag>bcm63xx bcm6358 5port pirelli accesspoint gpio serial}}+{{tag>bcm63xx bcm6358 5port pirelli gpio serial}}

Back to top

toh/pirelli/drg_a226m.1359051076.txt.bz2 · Last modified: 2013/01/24 19:11 by claudyus