steppi@steppi:~/freetz-ng$ ./tools/push_firmware ./images/firmware.image -cmd ncftp
* Analyzing './images/firmware.image' ...
* Warning: It seems your network is not able to reach
192.168.178.1 directly. This command could help to fix:
$ sudo ifconfig enp4s0:0 192.168.178. up
Proceed anyway? ([y]/n) y
* Product: Fritz_Box_HW272 (FRITZ!Box 5590 Fiber)
* Using command: ncftpput
* Target host: 192.168.178.1
* Outgoing IP: unknown
* Flash mode: fit-boot
* Allowed memory size: 1024 MB
* Designated linux_fs_start: <other>
!!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!!
!!! THERE IS NO WARRANTY AT ALL !!! USE AT YOUR OWN RISK !!!
* Are you sure, that you want to flash this file to the device?
./images/firmware.image
Proceed? (y/[n]) y
* You should now reboot your box (192.168.178.1). Waiting for shut down.
Switch off, if reboot is not detected because it happens too quickly.
Some newer bootloader versions allow to flash on power-cycle only.
* MAPSTART=0x40000000
* FULLSIZE=0x40000000 (1024 MB)
* MAPLIMIT=0x80000000
* FILESIZE=0x03451509 (~52 MB)
* ALIBYTES=0x0000eaf7 (~58 kB)
* FREESIZE=0x3cba0000 (~971 MB)
* MTDSTART=0x7cba0000
* No reply from box, assuming switch-off or restart. Trying to re-detect box.
Waiting ..............ping: connect: Das Netzwerk ist nicht erreichbar
.ping: connect: Das Netzwerk ist nicht erreichbar
... found!
* Box is back up again, initiating transfer.
LibNcFTP 3.2.5 (January 17, 2011) compiled for linux-x86_64-glibc2.31
Uname: Linux|steppi|5.15.0-94-generic|#104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024|x86_64
Contents of /etc/debian_version:
bookworm/sid
Contents of /etc/issue:
Linux Mint 21.3 Virginia \n \l
Glibc: 2.35 (stable)
220: ADAM2 FTP Server ready
Connected to 192.168.178.1.
Cmd: USER adam2
331: Password required for adam2
Cmd: PASS xxxxxxxx
230: User adam2 successfully logged in
Logged in to 192.168.178.1 as adam2.
Cmd: MEDIA SDRAM
200: Media set to MEDIA_SDRAM
Cmd: SETENV memsize 0x3cba0000
200: SETENV command successful
Cmd: SETENV kernel_args_tmp "avm_fwupdate mtdram1=0x7cba0000,0x80000000 mtdparts_ext=update-image.0:0x3451509@0x0(fit-image)"
200: SETENV command successful
Cmd: TYPE I
200: Type set to BINARY
Cmd: MLST 0x7cba0000 0x80000000
502: Command not implemented
Cmd: PASV
227: Entering Passive Mode (192,168,178,1,41,224)
Cmd: STOR 0x7cba0000 0x80000000
150: Opening BINARY data connection
/tmp/freetz_X5H/fitboot.flash: ETA: 0:00 0.03/ 52.32 MB 297.62 MB/s 226: Transfer complete
/tmp/freetz_X5H/fitboot.flash: 52.32 MB 2.44 MB/s
Cmd: QUIT
221: Thank you for using the FTP service on ADAM2
Cmd: QUIT
221: Goodbye.
done