Skip to content
Snippets Groups Projects
Commit 7e8af99c authored by Matthias Schiffer's avatar Matthias Schiffer Committed by David Bauer
Browse files

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.
parent 1cb97ad6
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,8 @@ config '# CONFIG_BUSYBOX_CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not set'
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_IPV6_MROUTE is not set'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment