Unable to use swap in ZRAM in trunk (brcm47xx).
Username: Average Joe
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2035
I’ve gave a try to “trunk” build from 30 DEC on WL500GPv1 (brcm47xx - legacy). It generally works but swap-related things appear to be broken in trunk. At least some builds before this date also known to suffer from same problem.
To reproduce, easiest way:
-
Install trunk on WL500GP V1.
-
Install zram-swap script (opkg update; opkg install zram-swap).
-
Observe what happens.
-
Try to enable swap on zram manually to see what happens.
Result:
-
When install of zram-swap script finishes, swap activation fails with the following: block: failed to swapon /dev/zram0 (-1)
-
Exactly same issue if I try to mkswap & swapon manually or use my own custom scripting to bring up zram swap, etc (these were known to work earlier/in other systems).
I can see “zram” module is loaded, accepted all parameters, mkswap succeeds, but swapon always fails with obscure -1 error. Same for attempt to swapoff, etc. Seems that “block” thing backfires or so?