-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firmware-upgrade fails (with brick) on 32MB RAM devices #806
Labels
4MB-flash / 32MB-Ram
Problems related to boards with low ressources
Comments
SvenRoederer
added
the
4MB-flash / 32MB-Ram
Problems related to boards with low ressources
label
May 29, 2020
order of services shutdown during sysupgrade:
|
i have experienced the same behavior on an XW-NSM2. |
but the XW-version is 64MB, right? So it should be not a RAM-issue on these boards. |
SvenRoederer
added a commit
to SvenRoederer/freifunk-berlin-firmware
that referenced
this issue
Oct 25, 2020
freeup as much ram as possible before upgrade to cause less bricks on 32Mb RAM devices. Initial idea for freifunk-berlin#806
SvenRoederer
added a commit
to SvenRoederer/freifunk-berlin-firmware
that referenced
this issue
Oct 3, 2021
freeup as much ram as possible before upgrade to cause less bricks on 32Mb RAM devices. Initial idea for freifunk-berlin#806
SvenRoederer
added a commit
to SvenRoederer/freifunk-berlin-firmware
that referenced
this issue
Nov 24, 2021
freeup as much ram as possible before upgrade to cause less bricks on 32Mb RAM devices. Initial idea for freifunk-berlin#806
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
What is the problem?
Recently I upgraded a NSM2 (32MB RAM) from v1.0.2 to a newer v1.0.x and the device did not boot up anymore. With console I could see that the written squashfs was invalid.
Reflashing to v1.0.2 via tftp fixed the device and restarting the sysupgrade was also successful.
What is the expected behaviour?
A simple sysupgrade should not brick the device, esp. when it's mounted on a pole.
As I have seen a similar thing on a WD1043-v1 (also 32MB) my assumption is the OOM-killer. I assume when commencing the sysupgrade most services gets stopped. This includes both olsrd-versions, which frees a lot of RAM, and the cron. There is a chance of a race condition:
In such sequence we have 2 times the sysupgrade-file in RAM (the file in /tmp, the unpacked version in RAM during pipe to mtd tool) and olsr running again. This situation has a high chance to cause an OOM during flashing.
I've seen some devices starting to reboot after the sysupgrade-file was loaded to /tmp (ram-disk), which is also an indication for this OOM-thing.
Firmware Version:
flashing from v1.0.2, but I assume it affect all v1.0.0+ releases
Site Configuration:
Not sure on the size of the backup-file, but isn't this also kept in RAM during flashing, which adds to the RAM-shortage, too.
The text was updated successfully, but these errors were encountered: