[OpenWrt-Devel] Increase default squashfs blocksize for devices with small flash?

Felix Fietkau nbd at openwrt.org
Tue Sep 9 15:32:08 EDT 2014


On 2014-09-09 21:21, Mathias Adam wrote:
> Hi,
> 
> just noticed that the pre-built image for Huawei E970 (brcm47xx-legacy,
> openwrt-e970-squashfs-gz.bin) is too large for its 4MiB flash.
> This is true for both BB-rc3 and trunk snapshots.
> 
> Apparently Imagebuilder creates squashfs with 64kiB blocksize. However I
> usually used 256kiB or even 1MiB on this device, which in my experience
> saves some 100kiB.
> 
> Up to now I mostly used trunk builds; now I was able to create working
> images with ImageBuilder as well after manually changing .config.
> 
> What is the recommended way to deal with this?
> E.g. is it possible to set squashfs blocksize in a profile?
It's not possible to set it in a profile. You can change it via make
menuconfig, but keep in mind that increasing the block size will
significantly increase RAM usage. That's the main reason why
brcm47xx-legacy uses a smaller block size than other targets.

- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list