Why swap is disabled on imagebuilder-ath79-tiny kernels

I'm trying generate an image to my old router tplink_tl-wr841-v7.
make image PROFILE=tplink_tl-wr841-v7 PACKAGES="-opkg kmod-zram zram-swap"

But I can not use zram:

swapon: /dev/zram0: Function not implemented

in last snapshot:


# CONFIG_SWAP is not set



Is there any reason to keep it disabled on last imagebuilders?
This router have only 32Mb ram. I think it is a good idea use zram. But I can not mount zram without swap support.


Because it's one of the things that do get disabled (swap support is rather large and does depend on further, large, infrastructure to support block devices, filesystems et al) for targets that define small_flash and thereby select SMALL_FLASH, in order to reduce the image size. If you do want to change this, the existing binaries consumed by imagebuilder can't accomplish this, you'll have change this on the source level and build from source.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.