openwrt / asu

An image on demand server for OpenWrt based distributions
https://sysupgrade.openwrt.org
GNU General Public License v2.0
309 stars 78 forks source link

[raspberrypi,4-model-b] | Error building the firmware image #790

Open mrinmaydhar opened 4 months ago

mrinmaydhar commented 4 months ago

Server response: Error: Selected packages exceed device storage

Request Data: Request Data.json

STDOUT: STDOUT.txt

STDERR: STDERR.txt

error: ext4_allocate_best_fit_partial: failed to allocate 2246 blocks, out of space? make[3]: *** [/builder/include/image.mk:350: /builder/build_dir/target-aarch64_cortex-a72_musl/linux-bcm27xx_bcm2711/root.ext4] Error 1 make[2]: *** [Makefile:208: build_image] Error 2 make[1]: *** [Makefile:146: _call_image] Error 2 make: *** [Makefile:262: image] Error 2

mrinmaydhar commented 4 months ago

784 similar error. If required, can close this as duplicate (however the error is different in this case)

Moreover, current squashfs usage is 94.13MiB / 1.68GiB (5%). If this is cause for issue, please do let me know. Thank you

RicardoJCMarques commented 3 months ago

I've got the same error trying to upgrade Snapshot on a RP5.. I'm just getting used to openwrt but I expanded the default partition size on my sd-card. Guessing that might have something to do with this? Does it need a bigger boot partition too?

mrinmaydhar commented 3 months ago

As mentioned by @aparcar here, the default root allocation is for 100MB, and any expand operations that are performed are after the fact (after initial boot, etc.). So, expanding the boot partition would not be of help (90% sure).

If an attended sysupgrade is something of a priority, then you could remove some packages that you don't need.

I, however, have a custom build environment setup to deal with this limitation.