generic: reduce squashfs block size to 256KiB
In OpenWrt 19.07, the block size was increased to 1024KiB for "tiny" devices by default to save flash. Unfortunately, this also significantly increases the cache memory required by squashfs. In my test, the increased block size reduced the image size by ~64KiB, but increased the RAM usage by ~2.6MiB. As most tiny devices have only 32MiB of RAM, this is not a reasonable tradeoff. The ar71xx-generic target already defines an even lower block size of 64KiB.
This commit is contained in:
parent
1cb97ad63e
commit
7e8af99cf5
@ -42,6 +42,8 @@ config '# CONFIG_BUSYBOX_CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not set'
|
|||||||
|
|
||||||
config 'CONFIG_PACKAGE_ATH_DEBUG=y'
|
config 'CONFIG_PACKAGE_ATH_DEBUG=y'
|
||||||
|
|
||||||
|
try_config 'CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=256'
|
||||||
|
|
||||||
config '# CONFIG_KERNEL_IP_MROUTE is not set'
|
config '# CONFIG_KERNEL_IP_MROUTE is not set'
|
||||||
config '# CONFIG_KERNEL_IPV6_MROUTE is not set'
|
config '# CONFIG_KERNEL_IPV6_MROUTE is not set'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user