User Tools

Site Tools


toh:arcadyan:arv752dpw

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
toh:arcadyan:arv752dpw [2012/12/26 23:09]
toh:arcadyan:arv752dpw [2014/10/13 23:16] (current)
guido grammar
Line 8: Line 8:
 ===== OpenWRT Status ===== ===== OpenWRT Status =====
 **BAUSTELLE** **BAUSTELLE**
-The Device is not tested ​ with OpenWrt. **Do not** follow the Informations here if you don't have a backup router inplace, ​may you end with a bricked device... you've been warned.+The Device is not thorougly ​tested with OpenWrt. **Do not** follow the Informations here if you don't have a backup router inplace, you may end up with a bricked device... you've been warned.
  
-This site here is Work in Progress ​(Baustelle). Please help if you have some usefull Informations,​ any help is welcome!+This site here is Work in Progress. Please help if you have some usefull Informations,​ any help is welcome!
  
 ===== Hardware info ===== ===== Hardware info =====
Line 35: Line 35:
 | **Power:** | external PSU, 15V DC, 1,6A (25W max, 16W typical) polarity: -(+) | | **Power:** | external PSU, 15V DC, 1,6A (25W max, 16W typical) polarity: -(+) |
  
-===== Flash to OpenWRT without opening the device ===== 
-**WIP: DO NOT FOLLOW THIS INFORMATIONS AT THE MOMENT: SIGNED FIRMWARE IS NOT WORKING** (uboot can't find the ethernet devices, a bugreport is opened, stay tuned, we are working on this issue) 
  
-   * download a prebuild, signed firmware image from http://​nanl.de/​todo.. (alternative download location: https://​belug.de/​~lutz/​pub/​todo..) 
-   * press and hold the "​reset"​-button:​ use a toothpick or paper clip to press and **hold** the button 
-   * power on the device (hold the reset button while power on the device) 
-   * release the reset-Button 3 seconds after power on 
-   * use an ethernet cable that forms a direct connection between the router and your computer or notebook (you **MUST NOT** use a switch, you will need a direct cabled connection. WLAN will also **not** work at this state) 
-   * configure your ethernet device to a static ip address 192.168.2.100,​ netmask is 255.255.255.0 (/24) 
-   * open a browser and navigate to http://​192.168.2.1 
-   * you will see the "​Recovering Tool" user interface shown in the picture below: {{:​toh:​arcadyan:​recovering_tool.png|}} 
-   * select "​Firmware"​ as upgrade target, pick up the previously downloaded firmware file, and press the "​APPLY"​ button 
-   * confirm the messages: the firmware will be uploaded and flashed onto the device 
- 
-**DO NOT POWER OFF THE DEVICE!** Drink some coffee, tea... simply do nothing, just wait. The first reboot will take some time, because the device will be flashed with new firmware. **AGAIN: DO NOT POWER OFF THE DEVICE!** The LED in front of the device will show you the status and success of the process: 
-   - a permanent white glowing of the "​Power"​ LED (approximately 50 sec)  
-   - flashing (approximately 1 flash per second) of the "​Power"​ LED (white light, approximately 30 sec) 
- 
-  * reload/​refresh your browser, if you see the power LED flashing for ~30 seconds: you will see the "​Recovering Tool" user interface again 
-  * select reboot from the "​Recovering Tool" user interface 
- 
-Drink more tea now... wait, and do not power off the device. The second reboot will take a bit longer, compared with the first one. The LED in front of the device will show you the current state of the process again: 
-   - a permanent **red** glowing of the "​Power"​ LED (approximately 3 sec) 
-   - all lights are off (approximately 40 sec) 
-   - a permanent **blue** glowing of the "​internet"​ LED (approximately 2 sec) 
-   - all lights are off 
- 
-Power off the device now, its bricked :)  
- 
-just kidding... powercycle your device now. 
- 
-   * reconfigure your ethernet device to a static ip 192.168.1.100,​ netmask 255.255.255.0 
-   * navigate in your browser from http://​192.168.2.1 to http://​192.168.1.1 
- 
-Congratulations:​ you will see the failsafe interface of uboot: {{:​toh:​arcadyan:​failsafe_ui.png|}} 
  
 ===== Pictures ===== ===== Pictures =====
    * [[http://​www.google.com/​search?​q=vodafone+easybox+802&​tbm=isch| Random pictures of Arcadyan ARV752DPW (google picture search)]]    * [[http://​www.google.com/​search?​q=vodafone+easybox+802&​tbm=isch| Random pictures of Arcadyan ARV752DPW (google picture search)]]
 +
 +   * [[http://​ftp.maddes.net/​hardware/​DSL_EasyBox_802/​| Some HRES pictures]]
  
   * Serial console connectors in the middle of the mainboard: The serial cable is the selfmade black thick one, connected with 3 Pins to the serial port. The thinner gray cable (4 pin) in the downer right is one of three usb-connectors of this board)   * Serial console connectors in the middle of the mainboard: The serial cable is the selfmade black thick one, connected with 3 Pins to the serial port. The thinner gray cable (4 pin) in the downer right is one of three usb-connectors of this board)
-{{:​toh:​arcadyan:​arv752dpw.jpg|}}+{{  :​toh:​arcadyan:​arv752dpw.jpg?640  }} 
 +{{  :​media:​easybox.802.pcb.map.jpg  ​}}
  
 ===== serial console pin layout ===== ===== serial console pin layout =====
-''​1 ​        6  ​ +<​code>​ 
-2 - RX    ​7 + 6  7    10 
-3 - TX    ​8 +[ ][ ][ ][ ][ ] 
-4         9 +[ ]Rx Tx [ ]Gnd 
-5 - GND   10 3,​3V''​+ ​1 ​ 2  ​ ​4 ​ 5 
 +</​code>​
  
 Pin 1 is marked with an small arrow on the motherboard,​ speed is 115200 8N1 Pin 1 is marked with an small arrow on the motherboard,​ speed is 115200 8N1
Line 91: Line 61:
 After connect and power on the device you should see something like this: After connect and power on the device you should see something like this:
  
-''​[root@localhost]#​ screen /​dev/​ttyUSB0 115200+    ​[root@localhost]#​ screen /​dev/​ttyUSB0 115200
  
 +<​code>​
 ROM VER: 1.0.3 ROM VER: 1.0.3
 CFG 01 CFG 01
Line 109: Line 80:
 Yes, Enter command mode ... Yes, Enter command mode ...
  
-[DANUBE Boot]:''​+[DANUBE Boot]: 
 +</​code>​ 
 + 
 + 
 +===== Layout of the original Flash Image ===== 
 +If you select "''​[E] Erase Flash''"​ in the bootloader you can see the original flash layout: 
 + 
 +''​[DANUBE Boot]:E 
 +ERASE Flash 
 +--------------------------------------- 
 +    Area            Address ​     Length  
 +--------------------------------------- 
 +[0] Boot            0xB0000000 ​    ​128K 
 +[1] Configuration ​  ​0xB0020000 ​    ​256K 
 +[2] None            0xB0060000 ​     64K 
 +[3] Special Area    0xB0070000 ​     64K 
 +[4] Primary Setting 0xB0080000 ​     64K 
 +[5] Code Image 0    0xB0090000 ​   3776K 
 +[6] Code Image 1    0xB0440000 ​   3776K 
 +[7] Boot Params ​    ​0xB07F0000 ​     64K 
 +[8] Flash Image     ​0xB0000000 ​   8192K 
 +--------------------------------------- 
 +Enter area to ERASE: **ESC pressed**  
 +ERROR: Not a valid area.''​ 
 + 
 +===== U-Boot ===== 
 + 
 +There are three ways to get U-Boot running on the device. Each approach requires different uboot images. At the moment trunk snapshot does not contain those images.  
 +See [[arv752dpw#​Downloads|Downloads]] for copies. 
 + 
 +In case your u-boot supports loady, you can upload everything you need via YModem Transfer. 
 +If loady is not supported, the user pgid69 has written a nice [[arv752dpw#​Downloads|python script]] to easily write data to your router: 
 + 
 +[[https://​forum.openwrt.org/​viewtopic.php?​pid=183315#​p183315|Is this router based on the infineon danube?]] 
 + 
 +==== 1. BRNBOOT ==== 
 +Temporarily load U-Boot as second stage bootloader from within the vendor Bootloader (brnboot) Requires: **uboot-lantiq-arv752DPW_brnboot**  
 + 
 +(taken and tested from [[http://​wiki.openwrt.org/​toh/​astoria/​arv752dpw22|ARV752DPW22 Wiki Article]] 
 + 
 +=== run u-boot noninvasive via serial port === 
 + 
 +  - download uboot-lantiq-arv752DPW_brnboot version for u-boot ( [[arv752dpw#​Downloads|see Downloads]] ) 
 +  - get into administrative mode of bootloader (hit exclamation mark "​!"​) 
 +  - choose\\ ''​[M] Upload to Memory''​\\ at default address 0x80002000 
 +  - exit terminal (screen: Ctrl-a-k , minicom: ctrl-a-z ) 
 +  - send u-boot.bin via XMODEM protocoll:​\\ ''​sx u-boot.bin </​dev/​ttyUSB0 >/​dev/​ttyUSB0''​ 
 +  - get to the console via terminal egain & type **[Return]** 
 +  - choose\\ ''​[Y] Go to Memory''​\\ to default address 0x80002000 
 + 
 +u-boot starts like this:\\  
 +<​code>​ 
 +[DANUBE Boot]:Y 
 + 
 +Go to Memory Address: (default:​0x80002000) : 0x 
 +Jump to address 0x80002000 ... 
 + 
 + 
 +U-Boot 2010.03 (Sep 29 2012 - 18:24:13) 
 + 
 +Board: ARV752DPW 
 +SoC: Danube/​Twinpass/​Vinax-VE V1.5, DDR Speed 166 MHz, CPU Speed 333 MHz 
 +DRAM:  64 MB 
 +Flash: ​ 8 MB 
 +*** Warning - bad CRC, using default environment 
 +</​code>​ 
 + 
 +You can hit **[Ctrl]** + **[C]** to get to the command line or hitting a key at the requested time. 
 + 
 +==== 2. FLASH ==== 
 +Use this image when you want to put the u-boot permanently on the flash. Requires: **uboot-lantiq-arv752DPW_flash** 
 + 
 +From a running u-boot (see instructions above) 
 + 
 +1. copy flash image to ram (see steps 2-6 [[http://​wiki.openwrt.org/​toh/​arcadyan/​arv752dpw#​run.u-boot.noninvasive.via.serial.port|from above]] with 0x80500000 as address before executing the u-boot at address 0x80002000, download u-boot.bin, see [[arv752dpw#​Downloads|Downloads]] ) 
 + 
 +2. unprotect the sector where the U-BOOT config is being stored. 
 +  protect off 0xb0010000 0xb001FFFF 
 + 
 +2. erase the flash 
 +  erase 0xb0000000 0xb001FFFF 
 + 
 +3. write the uploaded u-boot.bin to flash (here; 0x80500000 is the RAM adress, where i've uploaded my file) 
 +  cp.b 0x80500000 0xb0000000 10000 
 + 
 +4. protect the config sector 
 +  protect on 0xb0010000 0xb001FFFF 
 + 
 +5. reboot device and hope for the best :)   
 +  reset 
 + 
 + 
 +* If kernel ignores parameters from u-boot, remove the preceding - in linux'​s hardcoded cmdline 
 + 
 +**PANIC! i flashed U-Boot, now TFTP/HTTP in U-BOOT is not working anymore** 
 + 
 + 
 +calm down, you can upload everything you need via your serial connection. 
 + 
 + 
 + 
 + 
 + 
 +==== 3. UART  ==== 
 + 
 +Hand over the u-boot directly to the cpu with UART, this requires soldering and is intended for rescue purposes. ​ Requires: **uboot-lantiq-arv752DPW_ramboot** 
 + 
 +You need to shortcut R80 and bring +3.3V on the left side of R65, see picture.  
 +{{:​toh:​arcadyan:​arv752dpw-uart.jpg?​512|}} 
 + 
 +If you power on the device you will see this on serial console: 
 + 
 +  ROM VER: 1.0.3 
 +  CFG 04 
 +  Read EEPROMX 
 +   X 
 +  UART 
 + 
 +Jumpstart your Device by getting a suitable u-boot.asc File ( **uboot-lantiq-arv752DPW_ramboot** ). 
 +see [[arv752dpw#​Downloads|Downloads]] 
 + 
 +send this file via your serial connection to the router. 
 +  cat u-boot.asc > /​dev/​ttyUSB0 
 + 
 +or by using cutecom, send file - plain 
 + 
 +after the file is transmitted,​ uboot should load. 
 +Beware, u-boot is being currently loaded only in the ram. 
 +powering off your router will kill your u-boot, you will need to start again with this procedure. 
 + 
 +To restore u-boot completely, upload u-boot via your serial connection and write it back to flash using the u-boot functions (see 2. FLASH) 
 +---- 
 + 
 +===== FXS/FXO ===== 
 +There are some parts for telephony on the PCB. This parts are currently not supported. 
 + 
 +==== Links ==== 
 +Sip client for infineon danube based routers running openwrt: 
 +http://​code.google.com/​p/​danube-voip/​ 
 + 
 +Some research on university of freiburg germany (german): 
 +http://​lab.ks.uni-freiburg.de/​issues/​515 
 + 
 +A "​map"​ of the PCB: 
 +http://​lab.ks.uni-freiburg.de/​attachments/​download/​431/​baugruppen.jpg 
 + 
 +==== Parts ==== 
 +ISDN 
 +   * XHFC-2SU ISDN 3409 or XHFC-2SU ISDN 3109 
 +   * http://​www.colognechip.com/​isdn/​controllers/​frame-xhfc-2su.htm (Datasheet/​Linux driver) 
 +NTBA 
 +   * PEF80902 
 + 
 +POTS 
 +   * Si3011 
 +   * Si3050
  
-===== better backup than sorry =====+===== Backup ​=====
 Please Backup your original firmware! Please Backup your original firmware!
  
Line 193: Line 319:
  
  
 +===== Flash to OpenWRT without opening the device =====
  
-===== UART ===== +** This information is really oldCan someone please comment ​on this? Is this still possible to do?**
-You need to shortcut R80 and bring +3.3V on the left side of R65, see picture.  +
-{{:​toh:​arcadyan:​arv752dpw-uart.jpg|}}+
  
-If you power on the device you will see this on serial console:+**WIP: DO NOT FOLLOW THIS INFORMATIONS AT THE MOMENT: SIGNED FIRMWARE IS NOT WORKING** (uboot can't find the ethernet devices, a bugreport is opened, stay tuned, we are working ​on this issue)
  
-''​ROM VER1.0.3 +   * download a prebuild, signed firmware image from http://nanl.de/todo.. (alternative download location: https://​belug.de/​~lutz/​pub/​todo..) 
-CFG 04 +   * press and hold the "​reset"​-button:​ use a toothpick or paper clip to press and **hold** the button 
-Read EEPROMX +   * power on the device (hold the reset button while power on the device) 
- X +   * release the reset-Button ​seconds after power on 
-UART +   * use an ethernet cable that forms a direct connection between the router and your computer or notebook (you **MUST NOT** use a switch, you will need a direct cabled connection. WLAN will also **not** work at this state) 
-''​+   * configure your ethernet device to a static ip address 192.168.2.100,​ netmask is 255.255.255.0 (/24) 
 +   * open a browser and navigate to http://​192.168.2.1 
 +   * you will see the "​Recovering Tool" user interface shown in the picture below: ​ 
 +   {{:​toh:​arcadyan:​recovering_tool.png?​512|}} 
 +   * select "​Firmware"​ as upgrade target, pick up the previously downloaded firmware file, and press the "​APPLY"​ button 
 +   * confirm the messages: the firmware will be uploaded and flashed onto the device
  
-Jumpstart your Device by getting a suitable u-boot.asc File from the openwrt repository (folder uboot-lantiq-arv752DPW_ramboot/​). +**DO NOT POWER OFF THE DEVICE!** Drink some coffee, tea... simply do nothing, just waitThe first reboot will take some time, because the device will be flashed with new firmware**AGAIN: DO NOT POWER OFF THE DEVICE!** The LED in front of the device will show you the status and success of the process: 
-i.e[[http://​downloads.openwrt.org/​attitude_adjustment/​12.09-rc1/​lantiq/​danube/​uboot-lantiq-arv752DPW_ramboot/​u-boot.asc|OpenWRT Attitude Adjustment 12.09 RC1 u-boot Link]]+   a permanent white glowing of the "​Power"​ LED (approximately 50 sec)  
 +   flashing (approximately 1 flash per second) of the "​Power"​ LED (white light, approximately 30 sec)
  
 +  * reload/​refresh your browser, if you see the power LED flashing for ~30 seconds: you will see the "​Recovering Tool" user interface again
 +  * select reboot from the "​Recovering Tool" user interface
  
-send this file via your serial connection to the router+Drink more tea now... wait, and do not power off the deviceThe second reboot will take a bit longer, compared with the first one. The LED in front of the device will show you the current state of the process again: 
-cat u-boot.asc > /​dev/​ttyUSB0+   ​a permanent **red** glowing of the "​Power"​ LED (approximately 3 sec) 
 +   - all lights are off (approximately 40 sec) 
 +   - a permanent **blue** glowing of the "​internet"​ LED (approximately 2 sec) 
 +   - all lights are off
  
-or by using cutecomsend file - plain+Power off the device nowits bricked :) 
  
-after the file is transmitted,​ uboot should load. +just kidding... powercycle ​your device now.
-Beware, u-boot is being currently loaded only in the ram. +
-powering off your router will kill your u-boot, you will need to start again with this procedure.+
  
-To restore u-boot completelyupload u-boot via your serial connection and write it back to flash using the u-boot functions.+   * reconfigure your ethernet device to a static ip 192.168.1.100netmask 255.255.255.0 
 +   * navigate in your browser from http://​192.168.2.1 ​to http://​192.168.1.1
  
-**the following memory addresses need some refining, although they work.**+Congratulations:​ you will see the failsafe interface of uboot:  
 +{{:​toh:​arcadyan:​failsafe_ui.png?512|}}
  
  
-1. unprotect the sector where the U-BOOT config is being stored.+===== Downloads =====
  
-protect off 0xb0010000 0xb001FFFF+Successfully flashed and tested Attitude Adjustment image (bootloader is still missing here!) : 
 +   * http://​downloads.openwrt.org/​attitude_adjustment/​12.09/​lantiq/​danube/​openwrt-lantiq-danube-ARV752DPW-squashfs.image
  
-2. erase the flash+U-Boot snapshots are broken at the moment (August 2013), here is a backup for some working images:
  
-erase 0xb0000000 0xb001FFFF+   * uboot-lantiq-arv752DPW_ramboot : http://​www.galax.is/​files/​802/​u-boot.asc 
 +   * uboot-lantiq-arv752DPW_flash :   ​http://​www.galax.is/​files/​802/​flash-uboot.bin 
 +   * uboot-lantiq-arv752DPW_brnboot : http://​www.galax.is/​files/​802/​brnboot-uboot.bin
  
-3write the uploaded u-boot.bin to flash (here; 0x80500000 is the RAM adress, where i've uploaded my file)+Also, 12.09-rc1 still contains some automatically built images:
  
-cp.b 0x8050000 0xb0000000 10000+   * http://​downloads.openwrt.org/​attitude_adjustment/​12.09-rc1/​lantiq/​danube/​
  
-4. protect the config sector 
  
-protect on 0xb0010000 0xb001FFFF+The lantiq snapshot repo may contain some useful images: 
 +   * http://​downloads.openwrt.org/​snapshots/​trunk/​lantiq/​
  
-reboot. +Alternativelytry this repo to build u-boot ​yourself
- +   ​* ​https://github.com/Pteridium/U-boot_Lantiq_Danube
-===== Layout of the original Flash Image ===== +
-If you select "''​[E] Erase Flash''"​ in the bootloader you can see the original flash layout: +
- +
-''​[DANUBE Boot]:E +
-ERASE Flash +
---------------------------------------- +
-    Area            Address ​     Length  +
---------------------------------------- +
-[0] Boot            0xB0000000 ​    ​128K +
-[1] Configuration ​  ​0xB0020000 ​    ​256K +
-[2] None            0xB0060000 ​     64K +
-[3] Special Area    0xB0070000 ​     64K +
-[4] Primary Setting 0xB0080000 ​     64K +
-[5] Code Image 0    0xB0090000 ​   3776K +
-[6] Code Image 1    0xB0440000 ​   3776K +
-[7] Boot Params ​    ​0xB07F0000 ​     64K +
-[8] Flash Image     ​0xB0000000 ​   8192K +
---------------------------------------- +
-Enter area to ERASE: **ESC pressed**  +
-ERROR: Not a valid area.''​ +
- +
-===== U-Boot ===== +
-Downloads: [[http://​downloads.openwrt.org/​snapshots/​trunk/​lantiq/​|OpenWrt Trunk uboot]] +
- +
-   * **uboot-lantiq-arv752DPW_brnboot** meant to be loaded from brnboot as a 2nd stage bootloaderon memory +
-   * **uboot-lantiq-arv752DPW_flash** meant to be flashed into the unit as the main bootloader, (at 0xB0000000-0xB000FFFF ???) +
-   * **uboot-lantiq-arv752DPW_ramboot** meant to be uploaded via UART by the cpu if flash'​s bootloader is broken, for rescue purposes +
-   * If kernel ignores parameters from u-boot, remove the preceding - in linux'​s hardcoded cmdline +
- +
- +
-**PANIC! i flashed U-Boot, now TFTP/HTTP in U-BOOT is not working anymore** +
- +
- +
-calm down, you can upload everything you need via your serial connection. +
-in case your u-boot supports loady, you can upload everything you need via YModem Transfer. +
- +
-if loady is not supported, the user pgid69 has written a nice python script to easily write data to your router: +
- +
-[[https://​forum.openwrt.org/​viewtopic.php?​pid=183315#​p183315|Is this router based on the infineon danube?]] +
- +
-==== TODO: U-Boot in Memory as second stage bootloader ==== +
-**not tested yet** +
- +
-   ​* ​Connect to the serial console (you still have the router turned on and with the administrative command line on!). +
-''​screen /​dev/​ttyUSB0 115200''​ +
-   * Select the option to "Load code from memory"​ or something like that (I can't access it anymore...). It should tell you it is waiting for the code. +
-   * Close the screen sessionpress CTRL+A, K, and confirm you want to "kill this window"​ by pressing Y +
-   * Send the u-boot.bin with xmodem: +
-''​sx u-boot.bin </dev/ttyUSB0 >/​dev/​ttyUSB0 +
-Sending u-boot.bin, 1024 blocks: Give your local XMODEM receive command now. +
-Bytes Sent: 131072 ​  ​BPS:​8007''​ +
-   * Connect again to the serial console: +
-''​screen ​/dev/ttyUSB0 115200''​ +
-   * You shouldn'​t see anything... press "​y"​ and "​Enter"​... ​U-Boot should load! +
- +
-===== Downloads =====+
  
-   * http://​downloads.openwrt.org/​snapshots/​trunk/​lantiq/​openwrt-lantiq-danube-ARV752DPW-uImage +Python script to transfer over serial:  
-   * http://downloads.openwrt.org/snapshots/trunk/lantiq/​openwrt-lantiq-danube-ARV752DPW-jffs2-128k.image +   * http://www.galax.is/files/802/write-to-uboot.py 
-   * http://​downloads.openwrt.org/​snapshots/​trunk/​lantiq/​openwrt-lantiq-danube-ARV752DPW-jffs2-256k.image +     (original sourcehttps://forum.openwrt.org/​viewtopic.php?​pid=183315#​p183315 )
-   * http://downloads.openwrt.org/​snapshots/​trunk/​lantiq/​openwrt-lantiq-danube-ARV752DPW-jffs2-64k.image +
-   * http://​downloads.openwrt.org/​snapshots/​trunk/​lantiq/​openwrt-lantiq-danube-ARV752DPW-squashfs.image +
-   * http://​downloads.openwrt.org/​snapshots/​trunk/​lantiq/​uboot-lantiq-arv752DPW_brnboot/​ +
-   * http://​downloads.openwrt.org/​snapshots/​trunk/​lantiq/​uboot-lantiq-arv752DPW_flash/​ +
-   * http://​downloads.openwrt.org/​snapshots/​trunk/​lantiq/​uboot-lantiq-arv752DPW_ramboot/​+
  
 +===== Tags =====
 +{{tag>​FastEthernet 1NIC 1WNIC 4Port USB ath5k 64RAM 4Flash MIPS32 24K ADSL2+ fxo lantiq danube}}
toh/arcadyan/arv752dpw.1356559796.txt.bz2 · Last modified: 2012/12/26 23:09 (external edit)