From a92f57599cea2f1cd3db88b49031b2de1eb3859e Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@nbd.name>
Date: Tue, 18 Oct 2016 09:29:50 +0200
Subject: [PATCH] ipq806x: add back end-of-UBI marker for a few factory images
 (FS#228)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 target/linux/ipq806x/image/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/ipq806x/image/Makefile b/target/linux/ipq806x/image/Makefile
index 7703a62339..b74f1a77c2 100644
--- a/target/linux/ipq806x/image/Makefile
+++ b/target/linux/ipq806x/image/Makefile
@@ -70,6 +70,7 @@ define Device/DniImage
 	KERNEL_NAME := zImage
 	NETGEAR_BOARD_ID :=
 	NETGEAR_HW_ID :=
+	UBINIZE_OPTS := -E 5
 	IMAGES := factory.img sysupgrade.tar
 	IMAGE/factory.img := append-kernel | append-ubi | netgear-dni
 	IMAGE/sysupgrade.tar = sysupgrade-tar
@@ -154,6 +155,7 @@ define Device/EA8500
 	KERNEL = kernel-bin | append-dtb | uImage none | append-file $(KDIR)/root.dummy
 	PROFILES += $$(DEVICE_NAME)
 	BOARD_NAME := ea8500
+	UBINIZE_OPTS := -E 5
 	IMAGES := factory.bin sysupgrade.tar
 	IMAGE/factory.bin := append-kernel | pad-to $$$${KERNEL_SIZE} | append-ubi
 	IMAGE/sysupgrade.tar := sysupgrade-tar
-- 
GitLab