OpenWrt on Fritzbox 7412

Hello, so i recently found out that it is possible to install openwrt on my fritzbox 7412 and i would like to do exactly that. I am using Ubunto just so everyone knows. The thing is this is my first time doing anything like this and i need a lot of help. I am able to connect my router to my pc with ftp but after that i basically dong know what i am doing. If anyone can send me a step for step explanation it would be very helpful so i dont brick my router.

Does this help? How to install OpenWrt on AVM Fritzbox 7412?

EDIT: See also https://openwrt.org/toh/avm/avm_fritz_box_7412#installation

Unfortunalely I already tried both of these and uppon executing Eva_ramboot.py i get this error message:

Traceback (most recent call last):
  File "Eva_ramboot.py", line 29, in <module>
    ftp = FTP(args.ip, 'adam2', 'adam2')
  File "/usr/lib/python3.8/ftplib.py", line 117, in __init__
    self.connect(host)
  File "/usr/lib/python3.8/ftplib.py", line 152, in connect
    self.sock = socket.create_connection((self.host, self.port), self.timeout,
  File "/usr/lib/python3.8/socket.py", line 808, in create_connection
    raise err
  File "/usr/lib/python3.8/socket.py", line 796, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

From https://openwrt.org/toh/avm/avm_fritz_box_7412#installation

Use the eva_ramboot.py script to load the initramfs image on the device. Run it a few seconds after turning the device on.

Have you done that?

If it fails to find the device try the ip address 169.254.120.1

Have you done that?

Yes, I have done both of those steps and still I get the same error

I installed it recently several times.
set IP of the corresponding eth-interface to 192.168.178.2.
2 bash windows. one with ping 192.168.178.1, second with the eva_rambot.py command. If ping succeeds, immediately execute eva_rambot.
you can try to connect to the box via a switch. according heise-article, this could help, if lan is not working fast enough.

I already had my IP set to 192.168.178.2. And I tried the method with oppening 2 terminals 1 for pinging and as soon as it got a response i ran eva_ramboot.py and still got the same error message unfortunately

Have you tried this already?

I don't have one so I cant try it out

Once I had problems also. I thought, it was related to detection of a connection on LAN. I do not remember right but I solved it either with fixed IP or DHCP on LAN. I performed the ping, which took a while. Once I received an answer I disconnected power of 7412, reconnected immediatly and the second time I received the ping again (this time much faster), I could upload openWrt to ram. I think, via this approach I hijacked the timeout of disconnecting / reconnecting LAN.
Are you able to perform a recovery via AVM firmware recover tools?

Thank you for the info i will try your method and let u know.
I tried to factory reset the box and start from scratch but the avm firmware recower tool doesn't allow me to.

I performed the ping, which took a while. Once I received an answer I disconnected power of 7412, reconnected immediatly and the second time I received the ping again (this time much faster), I could upload openWrt to ram.

I tried this but with no luck unfortunately
still got the same error message:

> SETENV memsize 0x07b93000
< 200 SETENV command successful
> SETENV kernel_args_tmp mtdram1=0x87b93000,0x88000000
< 200 SETENV command successful
> MEDIA SDRAM
< 200 Media set to MEDIA_SDRAM
Traceback (most recent call last):
  File "Eva_ramboot.py", line 43, in <module>
    ftp.storbinary('STOR 0x%08x 0x88000000'%(haddr), img)
  File "/usr/lib/python3.8/ftplib.py", line 498, in storbinary
    return self.voidresp()
  File "/usr/lib/python3.8/ftplib.py", line 253, in voidresp
    resp = self.getresp()
  File "/usr/lib/python3.8/ftplib.py", line 248, in getresp
    raise error_perm(resp)
ftplib.error_perm: 553 Execution failed.