fritz-tools
fritz-tools copied to clipboard
Add support for more fritz devices and tftp
this feature adds support for more fritz devices:
- FR1200
- FB7412
- FB7430
- FB7362sl
- FB7520/7530
- FR3000
- FR1750e
this includes copying and writing the sysupgrade image if existing and doing all TFTP related extras for 7520/7530/1200.
And also executes the sysupgrade after booting initramfs if --sysupgrade $IMAGENAME
is given.
It is currently completely tested for all added devices and additionally:
- FB7360SL
- FB7362sl
- FB4040
- FB4020
@herbetom could you please look into this and give feedback?
I think it would be cool to have an easier flashing method for the 7520 in the upstream fritzflash project :)
@maurerle I've merged some "docs stuff" in the past, but thats about it. Most of the code is from @blocktrron.
I appreciate you trying to add new features. Hoewer, tbh i'm not sure how i should even start to review this PR. Multiple things are being adjusted / features added, but the docs ( /docs
- fritz-tools.readthedocs.io) have not been adjusted for the most part and the commits don't seem to have been squashed into sensible pieces.
(I haven't looked to deeply, but i'm not a fan of adding+deleting an ip address where it's unclear if fritzflash is even responsible for configuring it in the first place.)
idk, maybe @blocktrron has some advice
@maurerle I was not able to get this to work with the FB7520 on a Windows host. It was never able to complete the auto-discovery on LAN1 (there was never a link), LAN2, LAN3 but I think it did work once on LAN4.
When I forced the autodiscovery by manually starting tftp and logging into the device (that effectively halts the boot), then I got the following error:
Once you're ready to flash, press enter, disconnect power from your AVM device and reconnect the power-supply.
Trying to autodiscover! Abort via Ctrl-c.
FritzBox found at 192.168.178.1
Autodiscovery succesful!
-> Device detected at 192.168.178.1.
Providing initramfs and sysupgrade is required for this device
Element not found.
The launch parameters were:
python3 fritzflash.py --image $env:USERPROFILE\Downloads\openwrt-23.05.4-ipq40xx-generic-avm_fritzbox-7530-initramfs-uImage.itb --sysupgrade $env:USERPROFILE\Downloads\avm-fritz-box-7520-sysupgrade.bin