* Hauke Mehrtens <ha...@hauke-m.de> [03.01.2013 21:30]: > I would not add it as a global option, but as a module, so it could also > be used by someone not building his own image, but using a prebuild > image, with kernel 3.6.11 I had a problem building this as a module. > > The swap utils e.g. from busybox are also needed, this increases the > busybox binary by 3.2K uncompressed. > CONFIG_BUSYBOX_CONFIG_MKSWAP=y > CONFIG_BUSYBOX_CONFIG_SWAPONOFF=y > > Attached is a patch adding zram as a module. The default image without > zram should be 3.2K bigger (uncompressed) but there are no more > influences to a image without zram support. Bastian could you test this > and give feedback?
i compiled it for 2 different platforms (ar7xxx + brcm47xx) and it mostly works, these are my issues: - zram initfile is not enabled by default, there is some magic needed in the Makefile, e.g. '$(INSTALL_BIN) ./files/zram.init $(1)/etc/init.d/zram' - the minor "error during uci calls an unset var" is fixed: https://github.com/bittorf/kalua/blob/master/openwrt-addons/etc/init.d/zram diff: https://github.com/bittorf/kalua/commit/078b53388f08cf752b32e4606bf8c60ce7630847 - MKSWAP and SWAPONOFF has to be a dependency, the old package compcache does this via DEPENDS:=@BUSYBOX_CONFIG_SWAPONOFF @BUSYBOX_CONFIG_MKSWAP but: gogogo! it's working - we want it 8-) bye, bastian _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel