[OpenWrt-Devel] [RFC] at91: do not check kernel size

Mathias Kresin dev at kresin.me
Sun Jul 8 06:04:10 EDT 2018


08.07.2018 11:37, Hauke Mehrtens:
> The at91/legacy build in build bot is failing since some months now
> because it can not create openwrt-at91-legacy-at91-q5xr5-squashfs-
> factory.bin.
> See http://phase1.builds.lede-project.org/builders/at91%2Flegacy
> This is caused by this warning:
> WARNING: Image file linux-at91_legacy/at91-q5xr5-kernel.bin is too big
> When the size check is removed it is working again.
> 
> I do not have this device and do not know if we can just remove this
> size check or if we should solve this problem in a different way.
> 
> Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
> ---
>   target/linux/at91/image/legacy.mk | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/target/linux/at91/image/legacy.mk b/target/linux/at91/image/legacy.mk
> index c6d9ed8108..2ed866dddc 100644
> --- a/target/linux/at91/image/legacy.mk
> +++ b/target/linux/at91/image/legacy.mk
> @@ -113,7 +113,6 @@ TARGET_DEVICES += ethernut5
>   define Device/at91-q5xr5
>     $(Device/production-dtb)
>     DEVICE_TITLE := Exegin Q5XR5
> -  KERNEL_SIZE := 2048k
>   endef
>   TARGET_DEVICES += at91-q5xr5

IMHO the wrong fix for the issue. The kernel size is restricted by the 
kernel partition defined in at91-q5xr5.dts[0]. Removing the variable 
would create a not working image.

The following fixes for the target build error comes in mind:

- disable the build of an image for the at91-q5xr5 completely
- set the IMAGES variable to nothing for the at91-q5xr5, to prevent the 
build of a sysupgrade image (not sure if it would allow to build 
initramfs images without hitting the kernel size error)
- add a preloader to use a better compression (not checked if kernel is 
already LZMA compressed)

Mathias


[0] 
https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/at91/files/arch/arm/boot/dts/at91-q5xr5.dts;h=728553bce0bf58bdde6a14088910db5547d1c614;hb=HEAD

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



More information about the openwrt-devel mailing list