Swap kernel option doesn't work and /proc/swap endpoint is absent on ar71xx device
Username: Aleksandr Fakhrutdinov
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2047
Device: TP-LINK TL-MR3420 v2 with replaced NAND flash chip (8MB ROM now) + USB hub with external power + 8Gb flash drive + 1Tb USB hdd
OpenWRT version: Trunk, OpenWrt GCC 7.4.0 r8982-a54129d8
Steps to reproduce:
-
Install block-mount and swap-utils
-
Create swap partition and try to enable it
root@OpenWrt:~# mkswap /dev/sdb2
mkswap: /dev/sdb2: warning: wiping old swap signature.
Setting up swapspace version 1, size = 256 MiB (268431360 bytes)
no label, UUID=3068f953-a060-41cd-a09b-bcc2c531bf40
root@OpenWrt:~# swapon /dev/sdb2
block: failed to swapon /dev/sdb2 (-1)
- Try to get /proc/swaps file
root@OpenWrt:~# cat /proc/swaps
cat: can’t open ‘/proc/swaps’: No such file or directory
“dmesg” output is attached.