AVM 7530 eva_ramboot.py errors

Hello,

I'm following this guide: https://openwrt.org/toh/avm/avm_fritz_box_7530?s[]=fritzbox&s[]=7530#oem_installation_using_the_tftp_method

I have assigned the correct IP address to my computer, I can connect via browser to the router. In step 3 I enter the command:

./eva_ramboot.py --offset 0x85000000 192.168.178.1 uboot-fritz7530.bin

I get:

Traceback (most recent call last): File "/home/brot/Downloads/AVM7530/./eva_ramboot.py", line 28, in <module> ftp = FTP(args.ip, 'adam2', 'adam2') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/ftplib.py", line 121, in __init__ self.connect(host) File "/usr/lib/python3.11/ftplib.py", line 158, in connect self.sock = socket.create_connection((self.host, self.port), self.timeout, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/socket.py", line 851, in create_connection raise exceptions[0] File "/usr/lib/python3.11/socket.py", line 836, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused

What is the problem?

Thank you!

the one you posted
[Errno 111] Connection refused

Ok so what now?

I guess it's only a matter of timing

Thank you, it was indeed a timing problem, now I get:

brot@brotkorb:~/Downloads/AVM7530 $ ./eva_ramboot.py --offset 0x85000000 192.168.178.1 uboot-fritz7530.bin 
> SETENV memsize 0x00080000
< 200 SETENV command successful
> SETENV kernel_args_tmp mtdram1=0x85000000,0x88000000
< 200 SETENV command successful
> MEDIA SDRAM
< 200 Media set to MEDIA_SDRAM

But I'm stuck on the next step now:

brot@brotkorb:~/Downloads/AVM7530 $ sudo dnsmasq --listen-address=0.0.0.0 --port=0 --enable-tftp --tftp-root=/home/brot/Downloads/AVM7530/tftp --tftp-no-blocksize --user=root --group=root 
brot@brotkorb:~/Downloads/AVM7530 $ netstat -lunp | grep 69
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
udp        0      0 0.0.0.0:69              0.0.0.0:*                           -                   
udp6       0      0 :::69                   :::*                                -                   
brot@brotkorb:~/Downloads/AVM7530 $ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.158 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.173 ms
^C
--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1029ms
rtt min/avg/max/mdev = 0.158/0.165/0.173/0.007 ms
brot@brotkorb:~/Downloads/AVM7530 $ scp -P22 uboot-fritz7530.bin root@192.168.1.1:/tmp/
ssh: connect to host 192.168.1.1 port 22: Connection timed out
scp: Connection closed

Another timing problem? How can I check if the router pulled the file? I pinged it and this works but the file transer via scp is not working.

shouldn't be, wiki says it's pulling it every 5 sec.

don't demonize dnsmasq, or check the logs.

I'd also try to ssh to 192.168.1.1.
Check if the TFTP host have a fw blocking the incoming TFTP requests.

It worked with atftp, thank you :slight_smile:
Also I had to use scp with -O.

1 Like

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