Where is flash size defined?
Sven Eckelmann
sven at narfation.org
Sun Jun 21 01:21:43 PDT 2026
On Sunday, 21 June 2026 08:59:20 CEST Mark Ter Morshuizen wrote:
> "WARNING: Image file
> /home/mark/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/tmp/openwrt-ath79-mikrotik-mikrotik_routerboard-sxt-2nd-r3-squashfs-sysupgrade.bin
> is too big: 6684676 > 0"
>
> Obviously 6684676 is indeed greater than 0, but where is the 0 coming from?
Often from IMAGE_SIZE:
$ git grep -W 'WARNING: Image file.*is too big'
include/image-commands.mk=define Build/check-size
include/image-commands.mk- @imagesize="$$(stat -c%s $@)"; \
include/image-commands.mk- limitsize="$$(($(call exp_units,$(if $(1),$(1),$(IMAGE_SIZE)))))"; \
include/image-commands.mk- [ $$limitsize -ge $$imagesize ] || { \
include/image-commands.mk: $(call ERROR_MESSAGE, WARNING: Image file $@ is too big: $$imagesize > $$limitsize); \
include/image-commands.mk- rm -f $@; \
include/image-commands.mk- }
Regards,
Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20260621/95604f44/attachment.sig>
More information about the openwrt-devel
mailing list