openwrt / asu

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

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

Open mrinmaydhar opened 7 months ago

mrinmaydhar commented 7 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 7 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 6 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 6 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.

GETandSELECT commented 1 month ago

I have the same issue

Error Selected packages exceed device storage

packages

base-files busybox ca-bundle dnsmasq dropbear e2fsprogs firewall4 fstools kmod-gpio-button-hotplug kmod-nft-offload kmod-r8169 libc libgcc libustream-mbedtls logd luci mkf2fs mtd netifd nftables odhcp6c odhcpd-ipv6only opkg partx-utils ppp ppp-mod-pppoe procd procd-seccomp procd-ujail uboot-envtools uci uclient-fetch urandom-seed urngd parted losetup resize2fs podman kmod-crypto-ecb kmod-crypto-xts kmod-crypto-seqiv kmod-crypto-misc kmod-crypto-user cryptsetup kmod-fs-ext4 e2fsprogs

Is there no other workaround than removing packages or build locally?

mrinmaydhar commented 1 month ago

Sorry I won't be able to help you with this anymore. I've moved on to opnsense for my needs.