I encountered a situation where the router only had just enough RAM for the firmware, but not enough to flash it. This will need to be investigated or at least find a way to free memory or just stop the script if RAM is too low.
See this post:
https://www.linksysinfo.org/index.php?threads/freshtomato-upgrade-script-v0-51.78326/post-365849
The router was already acting weird and the script already had difficulties downloading the firmware.
I ran the free command before retrying the upgrade:
root@AC68U-Relais:/tmp/home/root# free
total used free shared buff/cache available
Mem: 255572 29688 37724 0 188160 0
-/+ buffers/cache: 29688 225884
Swap: 0 0 0
POINT OF NO RETURN
WARNING: Make sure you are using the right firmware before proceeding!
Current:
Router : Asus RT-AC68R/U
NVRAM : 64K
Version : 2026.1 K26ARM USB AIO-64K
Filename: freshtomato-RT-AC68U-K26ARM-2026.1-AIO-64K.trx
Upgrade with:
freshtomato-RT-AC68U-K26ARM-2025.5-AIO-64K.trx
WARNING: JFFS content might be lost, make sure to have backups!
WARNING: Do not interrupt the router!
Proceed dirty upgrade?
To continue type [yes], to cancel type [n]: yes
Starting dirty upgrade with firmware 'freshtomato-RT-AC68U-K26ARM-2025.5-AIO-64K.trx'
Stopping services... Done
[8/10] Flash firmware... Writing firmware... 1
ERROR: Something went wrong. The router is NOT upgraded. The router will reboot.
To cancel the reboot and retry the upgrade manually press 'Ctrl+C'
[7/10] Rebooting now... Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
Rebooting @ , uptime =
Segmentation fault
Segmentation fault
Connection to 192.168.1.2 closed.
~ $ ssh root@192.168.1.2
kex_exchange_identification: read: Connection reset by peer
Connection reset by 192.168.1.2 port 22
After the script stopped, SSH connection was NOT possible anymore. My Wireless Ethernet Bridge also died, but the second band AP was still up and httpd was still running to, so I could reboot from the GUI. But the GUI was broken too. The reboot button acted weird. The GUI ports where broken...
Miraculously the upgrade went fine and after rebooting the router was OK and running the right firmware.
I encountered a situation where the router only had just enough RAM for the firmware, but not enough to flash it. This will need to be investigated or at least find a way to free memory or just stop the script if RAM is too low.
See this post:
https://www.linksysinfo.org/index.php?threads/freshtomato-upgrade-script-v0-51.78326/post-365849
The router was already acting weird and the script already had difficulties downloading the firmware.
I ran the
freecommand before retrying the upgrade:root@AC68U-Relais:/tmp/home/root# free total used free shared buff/cache available Mem: 255572 29688 37724 0 188160 0 -/+ buffers/cache: 29688 225884 Swap: 0 0 0After the script stopped, SSH connection was NOT possible anymore. My Wireless Ethernet Bridge also died, but the second band AP was still up and httpd was still running to, so I could reboot from the GUI. But the GUI was broken too. The reboot button acted weird. The GUI ports where broken...
Miraculously the upgrade went fine and after rebooting the router was OK and running the right firmware.