Hi,
Related to PR #4410, but a thought on allowing sysupgrade to be larger (as the flash partitions are using mtd-concat, sysupgrade should support a larger size than TFTP ... right @xabolcs???).
To not break TFTP images, which will typically (or can be ) built with less packages / additions, but once up ... allow sysupgrade to be larger, make use of the full combined (concatenated) flash partition size, how about this slight change to the Device definition?
define Device/sunvalley_filehub_common
SOC := mt7620n
IMAGE_SIZE := 6144k
SYSUPGRADE_SIZE := 7744k
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-i2c-ralink
LOADER_TYPE := bin
LOADER_FLASH_OFFS := 0x200000
COMPILE := loader-$(1).bin
COMPILE/loader-$(1).bin := loader-okli-compile | pad-to 64k | lzma | \
uImage lzma
KERNEL := $(KERNEL_DTB) | uImage lzma -M 0x4f4b4c49
KERNEL_INITRAMFS := $(KERNEL_DTB) | uImage lzma
IMAGES += kernel.bin rootfs.bin
IMAGE/kernel.bin := append-loader-okli $(1) | check-size 64k
IMAGE/rootfs.bin := $$(sysupgrade_bin) | check-size
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
check-size 7744k | append-metadata
endef
I tried to replace the hard coded 7744k with $(SYSUPGRADE_SIZE) ... but it's not working for some reason - likely me . But I did try this build - and it does work => allows sysupgrade up to 7744k, but if rootfs.bin tries to cross 6144k ... nope! This is using the already existing check-size argument (i.e. it can be passed a value, if not it defaults to IMAGE_SIZE).
Thoughts?
Thanks!