[OpenWrt-Devel] [PATCH] ipq40xx: fritz4040 depends on uboot-fritz4040
chunkeey at gmail.com
Sat Nov 9 19:10:33 EST 2019
On Saturday, 9 November 2019 23:52:17 CET Sven Roederer wrote:
> The "append-uboot" macro is looking for the file "$(STAGING_DIR_IMAGE)/uboot-fritz4040.bin"
> which is provided by the u-boot-fritz4040 package. If this is not build, image creation
> will fail with "file not found".
The FRITZ!Box 4040 is a special case as the "eva.bin" image file needs the
u-boot binary to work as intended.
In OpenWrt's u-boot.mk, the u-boots for a target are usually get built/enabled
adds something like this to the u-boot packages:
|Default: y if (TARGET_ipq40xx_generic_Default || TARGET_ipq40xx_generic_DEVICE_avm_fritzbox-4040 || TARGET_DEVICE_ipq40xx_generic_DEVICE_avm_fritzbox-4040)
This causes the needed u-boot package to be included automatically.
Unless the package is either deselected actively, or accidentally.
(This can happen when a existing .config in which the device was
previously disabled, is grandfathered in. Because the existing
"not set" will take preference [the diffconfig.pl will catch this]).
Technically, the eva.bin isn't necessary. It allows for an easier
installation, but nobody apart from the 4040 uses the append-uboot
and there have been issues in the past with this as well.
Question is: should we add that dependency, ditch the eva.bin image
(or make it so that it's optional - this requires some changes to
the builtsystem) or decide that "this is a bug elsewhere"?
> target/linux/ipq40xx/image/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/target/linux/ipq40xx/image/Makefile b/target/linux/ipq40xx/image/Makefile
> index a9c5e625af..7ae6f36baa 100644
> --- a/target/linux/ipq40xx/image/Makefile
> +++ b/target/linux/ipq40xx/image/Makefile
> @@ -130,7 +130,7 @@ define Device/avm_fritzbox-4040
> IMAGES = eva.bin sysupgrade.bin
> IMAGE/eva.bin := append-uboot | pad-to $$$$(UBOOT_PARTITION_SIZE) | append-kernel | append-rootfs | pad-rootfs
> IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
> - DEVICE_PACKAGES := fritz-tffs fritz-caldata
> + DEVICE_PACKAGES := fritz-tffs fritz-caldata u-boot-fritz4040
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel