Flashing Fritzbox 7520 struggling with eva_ramboot

Hi There,

Im trying to flash Fritzbox 7520, but Im struggling with eva_ramboot.py execution.

How to I execute "./eva_ramboot.py --offset 0x85000000 192.168.178.1 uboot-fritz7520.bin" on macOS.

Im trying

netrunner@netsBoard FritzWRT7520 % ./eva_ramboot.py --offset 0x85000000 192.168.178.1 uboot-fritz7520.bin
netrunner@netsBoard FritzWRT7520 % 

terminal confirms, but no output no message. I pretty get the same when I use different methods like python3 ./...., sudo python3, sudo ./eva...

When I run the command I'm in the folder where the script is stored.

I have no clue what Im doing wrong.

Any help appreciated.

thx

ok, i just found this in first line of the script

#!/usr/bin/python

I guess I need to change this to #!/usr/bin/python3 in order to get it running

and another thing I wanted to mention

avm_fritzbox-7530-initramfs-uImage.itb & avm_fritzbox-7530-squashfs-sysupgrade.bin

there is no file that specifies 7520 analog to 7530.

I mean both devices are identical, is renaming ok... Im not sure? -- its fine.. just double checked.

Can anyone help with this error: AssertionError

Traceback (most recent call last):
  File "/Users/netrunner/FritzWRT7520/./eva_ramboot.py", line 7, in <module>
    assert len(argv) == 3
AssertionError

Yes, there is no separate OpenWrt firmware for these two devices. Just rename the initramfs image so it matches the bootloader image you used. You don't need to rename the sysupgrade image.

This means you are using a version of the script that is at least 5 years old with the wrong number of arguments (proper argument parsing was implemented at that time, and the assertion was removed).

Here is the current version: https://raw.githubusercontent.com/openwrt/openwrt/refs/heads/master/scripts/flashing/eva_ramboot.py

I downloaded from here https://github.com/sown/openwrt/blob/master/scripts/flashing/eva_ramboot.py. And indeed last update six years ago...lol

Thanks for the new link. I'll give a try.

@janh thanks again.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.