OpenWrt Forum Archive

Topic: Is this router based on the infineon danube?

The content of this topic has been archived between 1 Oct 2014 and 1 May 2018. Unfortunately there are posts – most likely complete pages – missing.

Hi o71,

you have to give the device as option to mtd.
e.g.

# mtd write arv4518_MAC_2.bin  /dev/mtd6



By the way there is a patch that seems to address endianess issues of the wlan firmware:
https://dev.openwrt.org/browser/trunk/t … ling.patch

Good luck
Lars

I also have an ARV4518PW2, but can't get uboot working for it. It can't initialize the lan controller (ar8216)

U-Boot 2010.03 (Oct 03 2011 - 11:29:05)

Board: ARV4518PW
SoC: Danube/Twinpass/Vinax-VE V1.3, DDR Speed 166 MHz, CPU Speed 333 MHz
DRAM:  32 MB
Flash:  4 MB
*** Warning - bad CRC, using default environment

Net:   initializing ar8216 switch... failed ...
lq_cpe_eth
 

Any ideas?

(Last edited by Ntalton on 6 Jun 2013, 18:58)

I have a ZTE ZXV10 201HL router. Its original firmware is modified by the ISP. I replaced that firmware with this: 12.09/openwrt-lantiq-ar9-H201L-squashfs.image
Replacing means that I erased the flash (0xB0000000 - 0xB07FFFFF) from the beginning of the original firmware (0xB0060000) to 0xB07FFFFF, then I wrote the openwrt image to the begining of the original firmware.

Now U-Boot sees the image, but can't boot it:

AMAZON_S # imls
Image at B0060000:
   Image Name:   MIPS OpenWrt Linux-3.3.8
   Created:      2013-04-03   9:00:26 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1022841 Bytes = 998.9 kB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
AMAZON_S # bootm
foundVer = 0
 no image is available

What should I do to make this image bootable?

labu01wx wrote:

What should I do to make this image bootable?

It seems to me that the manufacturer has modified the U-Boot to do some additional checks on the firmware image. I'm afraid the only way to proceed is by replacing U-Boot with a vanilla version. I'm pretty sure the U-Boot in trunk has support for AR9, but I have no personal experience on how it works...

admrt wrote:

Hi everyone,

After reading a lot I've been able to load OpenWRT on my ARV4518PW. I've used the latest official image from the official release 12.09 (http://downloads.openwrt.org/attitude_a … shfs.image), but after booting up wifi doesn't work. On the boot log I can see this:

[   26.696000] ath5k: phy0: failed to warm reset the MAC Chip
[   26.700000] ath5k: phy0: can't reset hardware (-5)
[   26.716000] device wlan0 entered promiscuous mode
[   27.160000] ath5k: phy0: failed to warm reset the MAC Chip
[   27.164000] ath5k: phy0: can't reset hardware (-5)

Does anyone have any idea what the problem is? Thanks in advance.

The wifi issue was corrected two or three months ago, but the image you have downloaded was generated before the correction.

Anyone got Annex B DSL working with passing isdn to the isdn-connector on ARV752DPW?
I managed to switch one of the relays with echo 0 > /sys/class/gpio/gpio101/value
but i can't manage to get isdn passthrough working.
i also tried echo 0 > /sys/class/gpio/gpio102/value by debugfs it is called sysfs

root@OpenWrt:~# cat /tmp/debugfs/gpio
GPIOs 0-15, ltq_gpio:
gpio-1   (pci-exin1           ) in  hi
gpio-3   (soc:blue:power      ) out lo
gpio-5   (soc:red:internet    ) out lo
gpio-6   (soc:red:power       ) out hi
gpio-8   (soc:red:wps         ) out hi
gpio-12  (btn0                ) in  hi
gpio-13  (btn1                ) in  hi

GPIOs 16-31, ltq_gpio:
gpio-21  (pci-reset           ) out hi
gpio-28  (btn2                ) in  hi
gpio-29  (pci-req1            ) in  lo
gpio-30  (pci-gnt1            ) out lo
gpio-31  (pci-req2            ) in  lo

GPIOs 100-115, ltq_ebu:
gpio-100 (usb_power           ) out ? 
gpio-101 (relay               ) out ? 
gpio-102 (sysfs               ) out ? 
gpio-103 (soc:red:fxo         ) out ? 
gpio-104 (soc:red:voice       ) out ? 
gpio-105 (soc:green:usb       ) out ? 
gpio-106 (soc:green:wifi      ) out ? 
gpio-107 (soc:green:wifi1     ) out ? 
gpio-108 (soc:blue:wifi       ) out ? 
gpio-109 (soc:blue:wifi1      ) out ? 
gpio-111 (soc:green:eth1      ) out ? 
gpio-112 (soc:green:eth2      ) out ? 
gpio-113 (soc:green:eth3      ) out ? 
gpio-114 (soc:green:eth4      ) out ?

(Last edited by godofdream on 30 Sep 2013, 14:33)

i flashed the U-Boot 2010.03-svn33312, but i can't access the box over network, no ping, no tftp

so there is no loadb or loady, ist there anything i could do or ist an uart the only solution ?

ROM VER: 1.0.3
CFG 01
Read
ROM VER: 1.0.3
CFG 01
Read EEPROMX
 X


U-Boot 2010.03-svn33312 (Sep 03 2012 - 19:21:24)

Board: ARV752DPW
SoC: Danube/Twinpass/Vinax-VE V1.3, DDR Speed 166 MHz, CPU Speed 333 MHz
DRAM:  64 MB
Flash:  8 MB
Net:   
searching for rtl8306 switch ... found
Reset Hard
Done
Reset Soft
Success

lq_cpe_eth
Hit any key to stop autoboot:  0 

ARV752DPW =>   printenv
bootcmd=run flash_flash
bootdelay=2
baudrate=115200
loads_echo=
rootpath="/export"
gatewayip=192.168.1.254
netmask=255.255.255.0
ram_addr=0x80500000
kernel_addr=0xb0020000
flashargs=setenv bootargs rootfstype=squashfs,jffs2
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} 
addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off
addmisc=setenv bootargs ${bootargs} init=/etc/preinit console=ttyS1,115200 ethaddr=${ethaddr} ${mtdparts}
flash_flash=run flashargs addip addmisc;bootm ${kernel_addr}
flash_nfs=run nfsargs addip addmisc;bootm ${kernel_addr}
net_flash=run load_kernel flashargs addip addmisc;bootm ${ram_addr}
net_nfs=run load_kernel nfsargs addip addmisc;bootm ${ram_addr}
load_kernel=tftp ${ram_addr} ${tftppath}openwrt-ifxmips-uImage
update_uboot=tftp 0x80500000 ${tftppath}u-boot-ARV752DPW.bin;era 0xb0000000 +${filesize};cp.b 0x80500000 0xb0000000 ${filesize}
update_openwrt=tftp ${ram_addr} ${tftppath}ARV752DPW-squashfs.image;era ${kernel_addr} +${filesize};cp.b ${ram_addr} ${kernel_ad}
ethaddr=7a:e8:eb:a8:3b:ae
ethact=lq_cpe_eth
serverip=192.168.2.1
ipaddr=192.168.2.2
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2010.03-svn33312 (Sep 03 2012 - 19:21:24)

Environment size: 1276/65532 bytes

ARV752DPW => ?
?       - alias for 'help'
base    - print or set address offset
bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
cmp     - memory compare
cp      - memory copy
crc32   - checksum calculation
erase   - erase FLASH memory
flinfo  - print FLASH memory information
go      - start application at address 'addr'
help    - print command description/usage
httpd   - httpd - start webserver
iminfo  - print header information for application image
loop    - infinite loop on address range
md      - memory display
mm      - memory modify (auto-incrementing address)
mtest   - simple RAM read/write test
mw      - memory write (fill)
nm      - memory modify (constant address)
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv  - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor version

ARV752DPW => loadb
Unknown command 'loadb' - try 'help'
ARV752DPW => loady
Unknown command 'loady' - try 'help'

@ icarus
give yourself a static ip with 192.168.2.1 and then run httpd on the serialconsole.
Or copy files to the uboot using the serialconnection and this python-script: https://forum.openwrt.org/viewtopic.php … 15#p183315 so you can copy a new uboot, erase the old one and copy the new one.

i tried it with a static ip with linux and windows, but tftp, httpd and ping to box didn't work.
pgid69 had have the same problems, so i will try his script

Edit:

I tried it, and i bricked it...

# python ubootwrite.py --serial=/dev/ttyUSB0 --write=u-boot-bootstrap.bin --addr=0x80500000
File successfully written. You should run command 'crc32 80500000 00010000' on the modem and the result must be 0853d0f3.
ARV752DPW => crc32 80500000 00010000
CRC32 for 80500000 ... 8050ffff ==> 0853d0f3
ARV752DPW => protect off 0xb0010000 0xb001FFFF
Un-Protected 1 sectors
ARV752DPW => erase 0xb0000000 0xb001FFFF

......... done
Erased 9 sectors
ARV752DPW => cp.b 0x80500000 0xb0000000 1000
Copy to Flash... 9....8....7....6....5....4....3....2....1....done
ARV752DPW => protect on 0xb0010000 0xb001FFFF
Protected 1 sectors
ARV752DPW => reset
ROM VER: 1.0.3
CFG 01
Read EEPROMX
 X

so now i will need the uart.... must i remove it after successful boot and flashing ?

(Last edited by icarus on 1 Oct 2013, 11:26)

@icarus
you didn't copy the whole 10000 but only 1000
i don't know how to use uart, i think you boot with the uart image in ram and then copy the flash image just as you did in your post
good luck. I'm still struggling with passing my isdn lines to the isdn-port.

oh, okay, thanks for the hint

i have now a running uart an i am ready for copy, but did somebody have a uboot  with running network ?

i have problems with the uart

i got the output

ROM VER: 1.0.3
CFG 04
Read EEPROMX
 X
UART

with R80

and without

ROM VER: 1.0.3
CFG 05
Read EEPROMX
 X
SFLASH
X
SFLAS�
X
SFLASH
X

so it seems that i solder it right, but i didn't got the ram uboot loaded.
I tried

screen /dev/ttyUSB0 115200
STRG+A + K - y
cat u-boot_wiki.asc > /dev/ttyUSB0 
screen /dev/ttyUSB0 115200

and with minicom and STRG-A + S - ascii

I got no success with uboot with uart.
Have I need to use a switch on R80 ? or on both ?

Is there any tested uboot.asc ? I think I made it correct, but it won't be startup.

With my 2. box everything works fine, it was flashable with uboot httpd and it is running. If somebody else will use it without DSL, I used this in /etc/config/network

config switch "eth0"
        option reset 1
        option enable_vlan 1

config switch_vlan "eth0_1"
        option device   eth0
        option vlan     1
        option ports    "1 2 3 5t"

config switch_vlan "eth0_2"
        option device   eth0
        option vlan     2
        option ports    "4 5t"

so the 4. Port (LAN/TV) is used as WAN

can i use Port 10 for UART ?

 6  7  8  9  10
[ ][ ][ ][ ] +3.3V
[ ]Rx Tx [ ]Gnd
 1  2  3  4  5

i use Port 10 also as VCC for my MAX3232.

icarus wrote:

can i use Port 10 for UART ?

You mean if you can tap it to get the 3.3V you need for R65?
Yes, I believe this is the easiest way and has been decribed that way a number of times in different forums.

BTW: I know it does not help much, but if it comforts you: you are not the only one to struggle with the Easyboxes. ;-)
I have an ARV752DPW and an ARV752DPW22....
1. can't find a uboot image with working network,
2. compiled openwrt from trunk => no wireless on my ARV752DPW22
3. compiled openwrt from trunk => no network on my ARV752DPW

(Last edited by Samweis on 23 Oct 2013, 17:38)

I want only know whether its my error with soldering or its a software error with the uboot file

I have never done it - I stayed way from the UART method so far. "Inspired" by your and other's problems I am doing everything  "non-invasive" via the serial port right now. (Uploading uboot, then uploading an uImage to a high address, loading uboot and then booting the image from uboot. All in RAM.

But I think your soldering is correct - unless there is some shortage due to spread lead. I think soldering is not even necessary: you could short R80 with a metal brace or tweezers and then bring 3.3V to R65 with a needle. You only need a friendly assistent who plugs in the power plug ;-)
AFAIK you only need to hold tweezers and needle in place for the first few seconds.

Following the docs I would try this image. Or one from trunk or AA rc1.
AV4518PW has the same switch. These images should be fine, too.
Did you try the *.asc file or also the *.img? It looks like you have to use the *.asc - but I have not found an explanation.

Again - I have never done it myself.

Hi Icarus,

Now I have tried UART - of course for no other reason than to help you. ;-)

First I ran into the same kind of problems as you did. I used  a wire that I pressed to R65 while R80 was shortened by a bit of lead.
So I thought it might not have contact and switched on and off numerous times and tried with minicom. It would seemingly upload the file, but u-boot did not boot.

Then I succeeded with cat u-boot.asc > /dev/ttyUSB0.
My minicom was configured to call 'ascii-xfr -dsv'. Turning CR->CRLF conversion off helped. I also turned off 0x04 as EOF and used

ascii-xfr -nsv

I also noticed that in the beginning of my experiments one of the LEDs (the second blue one) remained dark, while in the end, when everything worked, all LEDs were lit. Don't know wether this was a coincidence.

sounds great, did you use the u-boot.asc from wiki ?
Did you use a usb-ttl ?
on which chip based ? ch341, ftdi, pl2303 ?

1. yes
2. yes
3. pl2303
It worked so well that I experimented a while with it and even forgot to remove the solder - until I found out that this apparently shorts a bit in the address line, so that the upper 4MB of the flash are "mapped" to the lower 4MB. wink
Each time I wrote beyond 0xb0400000 I wiped out my bootloader again. big_smile

perfect, i got it too

ascii-xfr -nsv

with this change i was able to boot with ramboot over minicom and could flash u-boot again, the cat version didn't work

I have written tools to fix the headers of firmware files for arv4510 (should work for arv7510) in order to use the original bootloader and to root the routers. https://github.com/trndr/ARVx510-tools

However it seems I need to move the kernel entrypoint in order to run an openWRT image. Can someone give me an hint how to change it?

is anybody here with a working multi-ssid wlan ? I was able to create a secound wlan, but i can't connect to it.