551

Re: Is this router based on the infineon danube?

happyelement wrote:

I have some new progress ...

finally got the openwrt running ........... big thanks to all


USB working
Wifi not working ... missing the correct kernel network drivers

what exactly did you get running? which box and how?

Re: Is this router based on the infineon danube?

I have openwrt on my EasyBox802

What I have done:

1) Serial connection to the board
2) Flashed a brn uboot from angrybb (with loady support) to memory
3) Jump to this upload memory address
=> Uboot starts
4) Send via loady the flash uboot to memory address
5) run update_uboot (from the printenv parameters, copy the string after the tftp boot)
=> Uboot is flashed as primary bootloader
6) Send via loady a openwrt squash image and flash it (printenv; update_openwrt; also here copy the string after tftp sequence)
7) et voila ... it is booting


My problems:
- How you can read the ethernet port is not working well in my uboot's therefore I have to upload everything with Loady
- openwrt image gives me everytime a new mac address for my wifi card


@Angrybb: which files I have to touch/change for loady support in uboot?

Re: Is this router based on the infineon danube?

Hi, maybe someone can clarify a doubt (when I read in English always I have a reasonable doubt about misunderstood): I've been checking this -¡very long!- thread looking for information about old Arcadyan AR4505 (or SMC7904) and seems not only not supported, also flash memory is only 2 MB, insufficient for a version of openwrt. If I understand correctly, I'm afraid this is going to be gathering dust along with the rest of the mountain of hardware for recycling smile -factory WDS is too basic for my taste-. Regards.

Re: Is this router based on the infineon danube?

@happyelement
For loady(and loadb) you need to add line #define CONFIG_CMD_LOADB in package/uboot-lantiq/files/include/configs/ifx-common.h if you want loady for all boards or put that line in board specific .h file in the same directory if you want it only for specific board.

Could someone confirm that uboot for arv752DPW22 from trunk is working? I cant acces router over eth when i use latest uboot from http://downloads.openwrt.org/snapshots/trunk/lantiq/uboot-lantiq-arv752DPW22_ramboot/ or http://downloads.openwrt.org/snapshots/trunk/lantiq/uboot-lantiq-arv752DPW22_flash/. It says that switch is detected but i cant access httpd from browser.

Re: Is this router based on the infineon danube?

I'm using u-boot arv752DPW22 in ARV7518 board and it works fine, but my board uses AR-8216 switch. Make sure your board uses the Atheros switch, because other boards use ADM6996 or RTL8306 switchs.
If your board has RTL8306 try with uboot-lantiq-arv4518PW.
If you can, post the bootlog with your actual u-boot.

Re: Is this router based on the infineon danube?

After a reboot my wifi interface MAC address is always changing

I have found following code in

openwrt\target\linux\lantiq\files-3.1\arch\mips\lantiq\xway\mach-arv45xx.c

static void __init
arv4518pw_init(void)
{
#define ARV4518PW_EBU            0
#define ARV4518PW_USB            14
#define ARV4518PW_SWITCH_RESET        13
#define ARV4518PW_MADWIFI_ADDR        0xb07f0400

    ltq_register_gpio_ebu(ARV4518PW_EBU);
    ltq_add_device_gpio_leds(-1, ARRAY_SIZE(arv4518pw_gpio_leds), arv4518pw_gpio_leds);
    ltq_register_gpio_keys_polled(-1, LTQ_KEYS_POLL_INTERVAL,
                ARRAY_SIZE(arv4518pw_gpio_keys), arv4518pw_gpio_keys);
    ltq_register_nor(&arv45xx_flash_data);
    ltq_pci_data.gpio = PCI_GNT2 | PCI_REQ2;
    ltq_register_pci(&ltq_pci_data);
    ltq_register_madwifi_eep(ARV4518PW_MADWIFI_ADDR);
    ltq_register_ath5k(arv45xx_ath5k_eeprom_data, arv45xx_ath5k_eeprom_mac);
    xway_register_dwc(ARV4518PW_USB);
    arv45xx_register_ethernet();

    gpio_request(ARV4518PW_SWITCH_RESET, "switch");
    gpio_direction_output(ARV4518PW_SWITCH_RESET, 1);
    gpio_export(ARV4518PW_SWITCH_RESET, 0);
}

The define is saying to search on a position .... but I guess for me this is the wrong position.
I have scanned my mtd6_dump for my mac address and found it at position of my dump 0x16 .



What is the define (with the offset) which I have to write in the code?
Or is the variable

arv45xx_ath5k_eeprom_mac

responsible for the mac address, and the define on top just the interrupt register?

Re: Is this router based on the infineon danube?

Are you using ath5k or madwifi?, add arv45xx_register_ath5k(); after arv45xx_register_ethernet();

Re: Is this router based on the infineon danube?

I think I am using madwifi ....

but is there a method to find exactly what I'm using?

Re: Is this router based on the infineon danube?

https://dev.openwrt.org/browser/trunk/target/linux/lantiq/danube/profiles/002-arcadyan.mk
define Profile/ARV4518PW
by default it is kmod-madwifi., it should work when you add that line beceuse madwifi uses macaddr from arv45xx_ath5k_eeprom_mac.

Re: Is this router based on the infineon danube?

Pteridium wrote:

I'm using u-boot arv752DPW22 in ARV7518 board and it works fine.

Really?
Is there a safe way to upgrade the u-boot I flashed a while ago?

561 (edited by Pteridium 2012-03-13 23:47:49)

Re: Is this router based on the infineon danube?

pippolippi wrote:
Pteridium wrote:

I'm using u-boot arv752DPW22 in ARV7518 board and it works fine.

Really?
Is there a safe way to upgrade the u-boot I flashed a while ago?

Maybe with dd command, but i don't know exactly how to do it.
I can send you the first mtd partition of the arv4518 and arv7518. The switch is correctly detected in both boards and tftp works, but in this moment i don't remember if httpd works well; i'll make some tests and tell you if it works too.

EDIT: In both boards i have u-boot as primary bootloader, not BRNBoot.

562 (edited by pippolippi 2012-03-14 10:31:02)

Re: Is this router based on the infineon danube?

@Pteridium, yes, I currently have uboot as a primary bootloader, but it's an u-boot that I built myself when the stock one still didn't support my switch, and it's bigger than the one available in downloads.
I just wanted to know if is there a way to flash the new uboot using the old one (and don't brick the router while doing it).

Re: Is this router based on the infineon danube?

I always upgrade my uboot with "run update_uboot" from "old" uboot prompt, via tftp. If switch is not recognized i use loady and proced as happyelement explained here https://forum.openwrt.org/viewtopic.php?pid=160433#p160433

Re: Is this router based on the infineon danube?

Well, I flashed the u-boot from here:
http://downloads.openwrt.org/snapshots/trunk/lantiq/uboot-lantiq-arv752DPW22_flash/

but while it boots, the switch doesn't work, so I'm f*cked :-(

U-Boot 2010.03 (Mar 12 2012 - 16:00:30)

Board: ARV752DPW22
SoC: Danube/Twinpass/Vinax-VE V1.5, DDR Speed 166 MHz, CPU Speed 333 MHz
DRAM:  64 MB
Flash:  8 MB
Net:   bring up ebu gpio
initializing ar8216 switch... initialized
lq_cpe_eth
Hit any key to stop autoboot:  0
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Failed to execute bootcmd (maybe invalid u-boot environment?), starting httpd to update firmware...
starting httpd server from server 192.168.10.168
http start
...
Abort
ARV752DPW22 => tftp 0x80800000 openwrt
Using lq_cpe_eth device
TFTP from server 192.168.10.5; our IP address is 192.168.10.168
Filename 'openwrt'.
Load address: 0x80800000
Loading: T T T

565 (edited by pippolippi 2012-03-14 19:50:09)

Re: Is this router based on the infineon danube?

Luckily enough, I have an old kernel flashed at 0xb0050000 with ethernet working. How can I flash u-boot back from the working kernel? (hoping I don't shoot myself in the foot again).

Edit:
I suppose that

mtd write /tmp/uboot.bin uboot

should do the trick.
Also, Pteridium, could you send me the exact image with tftp working? Maybe the snapshot I downloaded has some problem (though the package uboot-lantiq hasn't been updated in several months).

Re: Is this router based on the infineon danube?

just wanting to know if i am right
I am having an arcardyan AR7505 board here with an Infineon PSB 50601HL V1.2 SOC

it has 2M Flash - EON EN29LV160AB
and a RTL8306 Switch

it runs a BRN Bootloader: Wireless ADSL Gateway AMAZON_SE Loader V0.02.06 build Jul 23 2010 00:32:10

i was able to connect a Serial connector and managed to download the firmware as a backup.

after this was trying to run u-boot from memory (this is where i hit the wall)
from my understanding i do upload an uboot.bin (BRN-Version) version via xmodem to RAM Memory and execute it from there - since this was only a test, i "just" tried any danube/lantiq uboot to see if it might work.... but it does not. (most of the time the system just reboots . the rest of the time i get an output on the serial console that does not seem to be in the correct speed .... and the system sticks in limbo)

can you give me a brief hint what i need to do.

thanks for your help

BTW: it is a German Alice ADSL Wlan 1421 Modem

567 (edited by pippolippi 2012-03-14 20:48:47)

Re: Is this router based on the infineon danube?

IIRC, the brn version doesn't run from memory but from flash, at the location where the stock firmware should be.

Edit:
according to this message
https://forum.openwrt.org/viewtopic.php?pid=117112#p117112
the right uboot is the ramboot one.

568 (edited by pippolippi 2012-03-14 21:45:11)

Re: Is this router based on the infineon danube?

I checked the configuration of my old, working, uboot, and found that it didn't use CONFIG_RMII, while the configuration for the ARV752DPW22 has it set.
@Pteridium, are you sure the ARV752DPW22 uboot works on an arv7518 router (i.e the white yacom one)?

Edit: oops, CONFIG_RMII is defined for the arv752DPW, not for the arv752DPW22.

Edit2: found this code that is run for the arv752DPW22 before initializing the ethernet port (CONFIG_SWITCH_PORT1 is defined), which wasn't there in my uboot:

#ifdef CONFIG_SWITCH_PORT0
        *DANUBE_GPIO_P0_ALTSEL0 &= ~(1<<CONFIG_SWITCH_PIN);
        *DANUBE_GPIO_P0_ALTSEL1 &= ~(1<<CONFIG_SWITCH_PIN);
        *DANUBE_GPIO_P0_OD |= (1<<CONFIG_SWITCH_PIN);
        *DANUBE_GPIO_P0_DIR |= (1<<CONFIG_SWITCH_PIN);
        *DANUBE_GPIO_P0_OUT |= (1<<CONFIG_SWITCH_PIN);
#elif defined(CONFIG_SWITCH_PORT1)
        *DANUBE_GPIO_P1_ALTSEL0 &= ~(1<<CONFIG_SWITCH_PIN);
        *DANUBE_GPIO_P1_ALTSEL1 &= ~(1<<CONFIG_SWITCH_PIN);
        *DANUBE_GPIO_P1_OD |= (1<<CONFIG_SWITCH_PIN);
        *DANUBE_GPIO_P1_DIR |= (1<<CONFIG_SWITCH_PIN);
        *DANUBE_GPIO_P1_OUT |= (1<<CONFIG_SWITCH_PIN);
#endif

569 (edited by angrybb 2012-03-15 19:49:39)

Re: Is this router based on the infineon danube?

I checked revision 28388 and uboot works, switch is recognized, tftp and httpd works on all ethernet ports on Easybox 803A(arv752DPW22). I checked u-boot.asc(ramboot) and u-boot-bootstrap(flash). I also compared some files from package/uboot-lantiq/files/include (arv752DPW22.h, arcadyan-common.h and ifx-common.h), latest trunk vs revision 28388, there is no difference so my guess would be some other files or maybe upstream u-boot.

EDIT: It is 803A wink sorry for mistake.

Re: Is this router based on the infineon danube?

Take into account that mine is a different board (arv7518PW) so maybe that gpio configuration is messing things up.
OTOH Pteridium has the same board as mine....

Re: Is this router based on the infineon danube?

But why uboot from latest trunk wont work for my board and r28388 works? It boots kernel but no response on ethernet ports altough switch gets recognised. Should i report a bug?

572 (edited by pippolippi 2012-03-15 15:47:37)

Re: Is this router based on the infineon danube?

Ah, I see, you have the same problem I have, albeit with a different board. I'll check if revision 28388 already supports my switch.
BTW, why 28388?
Edit: I checked the differences between current trunk (30950) and 28388

https://dev.openwrt.org/changeset?old_p … ;new=28388

and they don't seem relevant. Both use the same upstream uboot.

Re: Is this router based on the infineon danube?

pippolippi wrote:

BTW, why 28388?

I choosed that one based on date. I have one working uboot for arv4518pw, and its date of compilation was around r28388 (september/october 2011)

pippolippi wrote:

Edit: I checked the differences between current trunk (30950) and 28388

https://dev.openwrt.org/changeset?old_p … ;new=28388

and they don't seem relevant. Both use the same upstream uboot.

I saw that later. But some diffrence must exist, because one work and another don't.

Re: Is this router based on the infineon danube?

angrybb wrote:

I choosed that one based on date. I have one working uboot for arv4518pw, and its date of compilation was around r28388 (september/october 2011)

Built from the repository or with some patches?
I also have a working one but I made it myself adding the ar8216 switch to the arv4518pw code, so it's different to what was on the repository at the time (at the end of 2010).

575 (edited by angrybb 2012-03-15 18:56:26)

Re: Is this router based on the infineon danube?

You could call it "patched", but all that was "patched" are three lines added to arv4518pw.h One for autocompletition of commands, one extra line for ar8216 switch and enabled loadb(loady). I builded it using buildroot, so yes it is one from the openwrt repository.
End of 2010.? I built my in october 2011.

EDIT:
I now compiled u-boot from trunk for my other board, arv4518pw2, with same settings as in uboot compiled in october 2010., and it also does not work (lan ports, httpd, tftp).
This should be reported.