openwrt/target/linux/ath79/image
Petr Štetiar b14eeccdfe ath79: image: fix initramfs for safeloader devices
Currently it's not possible to tftpboot initramfs image on archer-c7-v5
as the image contains tplink-v1-header which leads to:

 ath> bootm
 ## Booting image at 81000000 ...
 Bad Magic Number

as U-Boot expects uImage wrapped image. This is caused by following
inheritance issue:

  define Device/Init
    KERNEL_INITRAMFS = $$(KERNEL)

  define Device/tplink-v1
    KERNEL := kernel-bin | append-dtb | lzma
    KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | tplink-v1-header

  define Device/tplink-safeloader
    $(Device/tplink-v1)

  define Device/tplink-safeloader-uimage
    $(Device/tplink-safeloader)
    KERNEL := kernel-bin | append-dtb | lzma | uImageArcher lzma

  define Device/tplink_archer-c7-v5
    $(Device/tplink-safeloader-uimage)

where tplink-v1 defines KERNEL_INITRAMFS with tplink-v1-header and it's
then used by all devices inheriting from tplink-safeloader. Fix this by
overriding KERNEL_INITRAMFS to KERNEL variable again.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit ceeece9ffa)
2020-12-17 15:51:43 +01:00
..
lzma-loader ath79: lzma-loader: sync with ar71xx target 2018-06-06 22:25:53 +02:00
common-buffalo.mk ath79: add hwver parameter to buffalo-tag 2018-10-07 15:44:19 +02:00
common-netgear.mk ath79: add support for Netgear EX6400 and EX7300 2019-04-09 11:09:26 +02:00
common-tp-link.mk ath79: image: fix initramfs for safeloader devices 2020-12-17 15:51:43 +01:00
common-yuncore.mk ath79: add support for YunCore TFTP image generation 2019-11-26 17:28:37 +01:00
generic-tp-link.mk ath79: add support for TP-Link TL-WR710N v2.1 2020-08-24 19:56:10 +02:00
generic-ubnt.mk ath79: update WA/XC devices UBNT_VERSION to 8.5.3 2020-06-03 15:29:20 +02:00
generic.mk ath79: enable forceless sysupgrade from ar71xx on fritz300e 2020-02-21 14:12:30 +01:00
Makefile ath79: add support for Buffalo BHR-4GRV2 2018-08-09 18:44:57 +02:00
nand.mk ath79: disable building future NAND images for GL-AR300M/GL-AR750S 2019-11-07 19:06:57 +01:00
tiny-netgear.mk ath79: WNR612v2: improve device support 2020-08-17 15:49:57 +02:00
tiny-tp-link.mk ath79: add support for TP-Link TL-WA801ND v3/v4 2020-06-21 21:34:09 +02:00
tiny.mk ath79: modify mtd partitions for Buffalo BHR-4GRV2 2018-11-26 12:28:17 +01:00