Differences

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

toh:pirelli:a125g [2013/05/13 14:15]
toh:pirelli:a125g [2013/05/13 14:50] (current)
Line 1: Line 1:
-| FIXME Please see [[meta:template_device]].  It will help you!  --- //orca 2011/03/11 16:39//  | 
- 
====== Pirelli DRG A125G ====== ====== Pirelli DRG A125G ======
Line 10: Line 8:
https://forum.openwrt.org/viewtopic.php?id=28625 https://forum.openwrt.org/viewtopic.php?id=28625
- 
-The only screw that holds it all together is hidden under the label... 
-{{:toh:pirelli:a125g_outside.jpg?400|}} 
===== Hardware ===== ===== Hardware =====
Line 25: Line 20:
| **Flash Type (b)** | [[http://html.alldatasheet.com/html-pdf/143147/MCNIX/MX29LV320CBTC-90G/160/1/MX29LV320CBTC-90G.html|MX29LV320CBTC-90G ]], 32Mbit (4M x 8 / 2M x 16) | | **Flash Type (b)** | [[http://html.alldatasheet.com/html-pdf/143147/MCNIX/MX29LV320CBTC-90G/160/1/MX29LV320CBTC-90G.html|MX29LV320CBTC-90G ]], 32Mbit (4M x 8 / 2M x 16) |
| **Flash size:**      | 4 MiB | | **Flash size:**      | 4 MiB |
-| **RAM-chip:**            | Winbond [[http://www.alldatasheet.com/datasheet-pdf/pdf/207175/WINBOND/W9812G6GH-6.html|W9812G6GH-6 ]]  (2M x 4 Banks x 16 Bits) +| **RAM-chip:**            | Winbond [[http://www.alldatasheet.com/datasheet-pdf/pdf/207175/WINBOND/W9812G6GH-6.html|W9812G6GH-6 ]]  / SDR-166
-| **RAM size:**      | 16 MiB | +| **RAM size:**      | 16 MiB
-| **Wireless:**        | Broadcom 4318 rev. 9, 802.11b/g (mini-pci) |+| **Wireless:**        | Broadcom 4318 (onboard) |
| **Ethernet:**        | Broadcom  {{:toh:bcm5325_datasheet.pdf|BCM5325}} w/ vlan support [[doc:uci:network#swconfig]] | | **Ethernet:**        | Broadcom  {{:toh:bcm5325_datasheet.pdf|BCM5325}} w/ vlan support [[doc:uci:network#swconfig]] |
| **Internet:**        | ADSL2+  | | **Internet:**        | ADSL2+  |
Line 35: Line 30:
==== Photos ==== ==== Photos ====
-{{:toh:pirelli:a125g_inside_front.jpg?400|}}+=== Opening the case === 
 +**Note:** This will void your warranty! 
 + 
 +The only screw that holds it all together is hidden under the label...\\ 
 +{{:toh:pirelli:a125g_outside.jpg?400|}} 
 + 
 +**Photo of PCB**\\ 
 + 
 +| Top View | Bottom View | 
 +{{:toh:pirelli:a125g_inside_front.jpg?400x300|}}  | {{:toh:pirelli:a125g_inside_back.jpg?400x300|}} | 
 + 
 + 
 + 
 +==== Serial ==== 
 + 
 +This is a hardware hack. You need to make a serial cable and attach it to the circuit board, by following the  instructions here: [[http://wiki.openwrt.org/doc/hardware/port.serial]] . 
 + 
 +As can be seen on the detailed picture (below), the serial connector is located in the upper right-hand side of the router, close to the DSL connector. It is marked **CON3** on the PCB. In order to connect the serial you also need to solder in the missing resistors; **R106** and **R157** as outlined. The value of these are (probably) 1 KΩ @ 1/16 W and of SMD type 0603. However, these are so small and close to the serial solder pads, that it is highly recommended to just put a solder blob to short circuit the resistor pads and then add two standard-sized resistors either directly to the T/RX serial pads or as a part of your cable. In addition, if you do decide to solder on the SMT resistors, make sure you either have a temperature controlled iron or a soldering iron of max 25W or you risk burning off the extremely fine copper-soldering pads, AND use solder flux! 
 + 
 +The pins from left-to-right are: 
 + 
 +^ Pin  ^ Function  ^ 
 +| 1 | Vcc (3.3 V) |   
 +| 2 | TX ? |   
 +| 3 | RX ? |   
 +| 4 | GND | 
 + 
 +{{:toh:pirelli:a125g_inside_detail.jpg?400|}} 
 + 
 +==== JTAG ==== 
 +This is a difficult & expert hardware hack. Please read [[http://wiki.openwrt.org/doc/hardware/port.jtag 
 +|port.jtag]] first! 
 + 
 +If you don't already have a JTAG adaptor (connector/dongle), it is strongly recommended to get one that is both compatible with the free //OpenOCD// [[http://openocd.berlios.de/web/|Open On-Chip Debugger]] software **AND** is a native "high-speed" (usually USB2) JTAG device, and not only "supported" or "full-speed", as it may be excruciatingly slow for flashing devices with more than a megabyte of memory, considering flash speeds on the order of ~1 Kbps! Do the math! 
 + 
 +A few recommended adapters are: 
 +  * [[http://www.amontec.com/jtagkey-tiny.shtml|Amontec JTAGkey-Tiny]]  
 +  * [[http://www.embedded-projects.net/index.php?module=artikel&action=gruppe&id=16|OpenOCD USB Adapter Kit (+Cabelset)]]  
 +  * [[http://www.embedded-projects.net/index.php?page_id=135|USBprog v3.0]]  
 +  * [[http://www.seeedstudio.com/depot/bus-blaster-v2-jtag-debugger-p-807.html|Bus Blaster v2]]  
 + 
 +There is some additional very useful JTAG information and links including a practical example on: [[http://www.neufbox4.org/wiki/index.php?title=Interface_JTAG|"Neuf Box 4 JTAG"]].  
 +(Although, mostly in French.) 
 + 
 +The JTAG port is called **J201** and is located near the SoC, on the right-hand-side of the router PCB, as shown in the detailed picture (above). It is unclear at this time, whether or not the empty, but outlined resistors (**R86, <del>R99,</del> R231, R234** and possibly also <del>**R3**</del>) need to be soldered. This seem to be a MIPS standard EJTAG 2.5, 14 pin connector. The PCB solder pads as shown in the picture are as follows.  **Check These!** 
 + 
 +**R3 and R99** not required others can be shorted ( 0 Ohm ) 
 + 
 +^Pin  ^  Function    ^^Pin ^ 
 +|  1  | nTRST | GND  | 2  | 
 +|  3  | TDI  | GND  | 4  | 
 +|  5  | TDO  | GND  | 6  | 
 +|  7  | TMS  | GND  | 8  | 
 +|  9  | TCK  | GND  | 10 | 
 +|  11 | nSRST | --  | 12 | 
 +|  13 | DINT  | Vref | 14 | 
 + 
 +Where pin **12** is often missing or not used, and **13** is often not used, but sometimes used for Debug Introduction (DINT). 
 + 
 +<del>CPU Chip ID: 00000110001101011000000101111111 (0635817F)</del> 
 + 
 +Note, when you flash from JTAG the BASE ADDRESS is <del>0x1E000000</del> 
 + 
===== Original Firmware Releases ===== ===== Original Firmware Releases =====
Line 69: Line 127:
Romania: ??? Romania: ???
- 
-===== Default Boot Messages ===== 
-This is some output at boot time that you should be able to see on your serial interface.  
-You may also be able to see this after boot-up by: //dmesg// . 
-<code> 
-None 
-</code> 
- 
- 
- 
===== Router Login ===== ===== Router Login =====
Line 106: Line 154:
''DRG A125G>'' ''DRG A125G>''
- 
-==== Serial Console Access ==== 
- 
-This is a hardware hack. You need to make a serial cable and attach it to the circuit board, by following the  instructions here: [[http://wiki.openwrt.org/doc/hardware/port.serial]] . 
- 
-As can be seen on the detailed picture (below), the serial connector is located in the upper right-hand side of the router, close to the DSL connector. It is marked **CON3** on the PCB. In order to connect the serial you also need to solder in the missing resistors; **R106** and **R157** as outlined. The value of these are (probably) 1 KΩ @ 1/16 W and of SMD type 0603. However, these are so small and close to the serial solder pads, that it is highly recommended to just put a solder blob to short circuit the resistor pads and then add two standard-sized resistors either directly to the T/RX serial pads or as a part of your cable. In addition, if you do decide to solder on the SMT resistors, make sure you either have a temperature controlled iron or a soldering iron of max 25W or you risk burning off the extremely fine copper-soldering pads, AND use solder flux! 
- 
-The pins from left-to-right are: 
- 
-^ Pin  ^ Function  ^ 
-| 1 | Vcc (3.3 V) |   
-| 2 | TX ? |   
-| 3 | RX ? |   
-| 4 | GND | 
- 
- 
- 
-<del>Serial console settings should be: 115200 8N1.</del> 
- 
-{{:toh:pirelli:a125g_inside_detail.jpg|}} 
- 
-==== JTAG interface ==== 
-This is a difficult & expert hardware hack. Please read [[http://wiki.openwrt.org/doc/hardware/port.jtag 
-|port.jtag]] first! 
- 
-If you don't already have a JTAG adaptor (connector/dongle), it is strongly recommended to get one that is both compatible with the free //OpenOCD// [[http://openocd.berlios.de/web/|Open On-Chip Debugger]] software **AND** is a native "high-speed" (usually USB2) JTAG device, and not only "supported" or "full-speed", as it may be excruciatingly slow for flashing devices with more than a megabyte of memory, considering flash speeds on the order of ~1 Kbps! Do the math! 
- 
-A few recommended adapters are: 
-  * [[http://www.amontec.com/jtagkey-tiny.shtml|Amontec JTAGkey-Tiny]]  
-  * [[http://www.embedded-projects.net/index.php?module=artikel&action=gruppe&id=16|OpenOCD USB Adapter Kit (+Cabelset)]]  
-  * [[http://www.embedded-projects.net/index.php?page_id=135|USBprog v3.0]]  
-  * [[http://www.seeedstudio.com/depot/bus-blaster-v2-jtag-debugger-p-807.html|Bus Blaster v2]]  
- 
-There is some additional very useful JTAG information and links including a practical example on: [[http://www.neufbox4.org/wiki/index.php?title=Interface_JTAG|"Neuf Box 4 JTAG"]].  
-(Although, mostly in French.) 
- 
-The JTAG port is called **J201** and is located near the SoC, on the right-hand-side of the router PCB, as shown in the detailed picture (above). It is unclear at this time, whether or not the empty, but outlined resistors (**R86, <del>R99,</del> R231, R234** and possibly also <del>**R3**</del>) need to be soldered. This seem to be a MIPS standard EJTAG 2.5, 14 pin connector. The PCB solder pads as shown in the picture are as follows.  **Check These!** 
- 
-**R3 and R99** not required others can be shorted ( 0 Ohm ) 
- 
-^Pin  ^  Function    ^^Pin ^ 
-|  1  | nTRST | GND  | 2  | 
-|  3  | TDI  | GND  | 4  | 
-|  5  | TDO  | GND  | 6  | 
-|  7  | TMS  | GND  | 8  | 
-|  9  | TCK  | GND  | 10 | 
-|  11 | nSRST | --  | 12 | 
-|  13 | DINT  | Vref | 14 | 
- 
-Where pin **12** is often missing or not used, and **13** is often not used, but sometimes used for Debug Introduction (DINT). 
- 
-<del>CPU Chip ID: 00000110001101011000000101111111 (0635817F)</del> 
- 
-Note, when you flash from JTAG the BASE ADDRESS is <del>0x1E000000</del> 
- 
-===== Default Configuration ===== 
To see the default configuration of the original compiled code: To see the default configuration of the original compiled code:
Line 233: Line 225:
  * (Fail!?) Restore your original firmware   * (Fail!?) Restore your original firmware
  * Configure OpenWrt   * Configure OpenWrt
- 
----- 
- 
==== Backup of original firmware ==== ==== Backup of original firmware ====
-FIXME +Build a RAMDISK openwrt firmware less than 4MB size, and run it from CFE, then just copy whole flash using netcat to your PC. FIXME
- +
-Connect the serial adapter and let the device complete the boot procedure. +
- +
-<del> +
-At the login prompt use //admin// as username and password to get to the openrg //Discus// prompt. +
-From the //Discus// prompt you can do a lot of useful things, but I've not explored it due to some lack of interest. To obtain the shell just digit //system shell//. +
-<code> +
-Password: ***** +
- +
-Discus> system shell +
- +
-BusyBox v1.01 (2005.09.07-07:38+0000) Built-in shell (lash) +
-Enter 'help' for a list of built-in commands. +
- +
-/ # +
-</code> +
- +
-Insert an USB flash key into the usb port of the router and mount the new device somewhere, for example in /mnt/backup +
-<code> +
-/ # cd mnt/ +
-/mnt # mkdir backup +
-/mnt # mount /dev/sda +
-/mnt # mount /dev/sda1 backup/ +
-[  90.535] VFS: Can't find ext3 filesystem on dev sda1. +
-[  90.590] VFS: Can't find an ext2 filesystem on dev sda1. +
-[  90.655] cramfs: wrong magic +
-/mnt # +
-</code> +
- +
-Now just copy the content of the flash in some files on the usb key. +
-<code> +
-/mnt # ls /dev/mtd* +
-/dev/mtd0        /dev/mtd_rgconf0  /dev/mtdblock2    /dev/mtdr2 +
-/dev/mtd1        /dev/mtd_rgconf1  /dev/mtdblock3    /dev/mtdr3 +
-/dev/mtd2        /dev/mtdblock0    /dev/mtdr0 +
-/dev/mtd3        /dev/mtdblock1    /dev/mtdr1 +
-/mnt # dd if=/dev/mtdblock0 of=/mnt/backup/mtdblock +
-32768+0 records in +
-32768+0 records out +
-</code> +
- +
-This will create a 16M file named MTDBLOCK (due to fat limitation). If you prefer you can use an ext2 or ext3 formatted filesystem. +
- +
-From this file you can extract all you need to do a full restore of your device, both via jtag or via CFE. +
- +
-Now //unmount// your flash key, put the file in a safe place and reboot the Alice stopping the boot process at the bootloader prompt pressing some keys. +
-<code> +
-/mnt # sync +
-/mnt # umount backup/ +
-/mnt # exit                                           +
- +
-Returned 0 +
-Discus> system reboot<Jan  1 01:22:52>  +
-Going to reboot! +
-</code> +
-</del>+
==== Restore original firmware (not tested!) ==== ==== Restore original firmware (not tested!) ====
Line 320: Line 253:
dnsmasq -d --enable-tftp --tftp-root=<dir> dnsmasq -d --enable-tftp --tftp-root=<dir>
</code> </code>
- 
-==== Bottom Side of the PCB ==== 
- 
-The bottom side is rather boring, except for the SDRAM chip. 
-{{:toh:pirelli:a125g_inside_back.jpg|}} 
Line 341: Line 269:
I'm supplying this info here since it's extremely hard to get any tech support on A125G, and I've spend countless days to make this one working. I'm supplying this info here since it's extremely hard to get any tech support on A125G, and I've spend countless days to make this one working.
-====== Network configuration ======+===== Network configuration =====
I can suggest you to use Alice gate with the following network configuration using serial console: I can suggest you to use Alice gate with the following network configuration using serial console:
Line 381: Line 309:
</code> </code>
-====== Leds config ======+===== Leds config =====
Inside /etc/config/system add: Inside /etc/config/system add:
<code> <code>
Line 403: Line 331:
</code> </code>
-=== Links ===+===== Notes ===== 
https://forum.openwrt.org/viewtopic.php?id=28625 https://forum.openwrt.org/viewtopic.php?id=28625

Back to top

toh/pirelli/a125g.1368447354.txt.bz2 · Last modified: 2013/05/13 14:15 (external edit)