[OpenWrt-Devel] [PATCH] ipq40xx: clean up netgear-dni image generation
Christian Lamparter
chunkeey at gmail.com
Tue Dec 18 18:14:55 EST 2018
On Tuesday, December 18, 2018 2:27:20 AM CET David Bauer wrote:
> The NETGEAR EX61x0v2 does only validate the DNI header, neither it needs
> the kernel to be a specific size nor a fake filesystem header to be
> present.
>
> This has been tested using the NETGEAR Web-UI and the pushbutton TFTP
> recovery.
I had no luck with a loaned EX6150v2 and this patch. I tried to sysupgrade
from the current -snapshot to a newly compiled image with the patch applied.
But sadly, the device didn't boot (power led stayed orange). I had to
initiaite the tftp firmware recovery after waiting 15 minutes through the
hold "Factory Reset" on boot until the light flashes green in order to get
it back.
Sadly, I can't really help with any bootlogs since I can't "void its warranty" :(.
> Signed-off-by: David Bauer <mail at david-bauer.net>
> ---
> target/linux/ipq40xx/image/Makefile | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/target/linux/ipq40xx/image/Makefile b/target/linux/ipq40xx/image/Makefile
> index eaf9f68395..af953def41 100644
> --- a/target/linux/ipq40xx/image/Makefile
> +++ b/target/linux/ipq40xx/image/Makefile
> @@ -40,8 +40,8 @@ define Device/DniImage
> NETGEAR_BOARD_ID :=
> NETGEAR_HW_ID :=
> IMAGES := factory.img sysupgrade.bin
> - IMAGE/factory.img := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | netgear-dni
> - IMAGE/sysupgrade.bin := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
> + IMAGE/factory.img := append-kernel | append-rootfs | pad-rootfs | netgear-dni
> + IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
> endef
> DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID
>
> @@ -144,7 +144,6 @@ TARGET_DEVICES += meraki_mr33
>
> define Device/netgear_ex61x0v2
> $(call Device/DniImage)
> - KERNEL_SIZE := 3080192
> DEVICE_DTS_CONFIG := config at 4
> NETGEAR_BOARD_ID := EX6150v2series
> NETGEAR_HW_ID := 29765285+16+0+128+2x2
>
_______________________________________________
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