OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
  • Task Type Bug Report
  • Category Kernel
  • Assigned To No-one
  • Operating System All
  • Severity Medium
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Aleksandr Fakhrutdinov - 04.01.2019

FS#2047 - Swap kernel option doesn't work and /proc/swap endpoint is absent on ar71xx device

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-a54129d
Steps to reproduce:
1) Install block-mount and swap-utils
2) 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)

3) 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.

Yaroslav Tikhonov commented on 06.01.2019 21:29

Got same issue on TL-MR3220 v2 OpenWrt SNAPSHOT r8996-634c733065

Petr Štetiar commented on 06.01.2019 21:52

To me it looks like it's not a bug, both devices have small flash (firmware images for tiny TP Link devices) and for this devices is swap disabled to save some flash space.


Available keyboard shortcuts


Task Details

Task Editing