From: Marcin Gajda Date: Sat, 24 Feb 2024 16:49:49 +0000 (+0100) Subject: ipq40xx: Netgear LBR20 fix for proper img builds X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6d8b36bfd821aecc32a4357062ae83a6b3bcd2a9;p=openwrt%2Fstaging%2Fstintel.git ipq40xx: Netgear LBR20 fix for proper img builds Without UBINIZE_OPTS it is possile to have error: "ubi0 error: ubi_attach_mtd_dev: failed to atach mtd23, error -22" This solve this problem. Signed-off-by: Marcin Gajda --- diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk index 61bc0ad619..8a83e27f54 100644 --- a/target/linux/ipq40xx/image/generic.mk +++ b/target/linux/ipq40xx/image/generic.mk @@ -849,6 +849,7 @@ define Device/netgear_lbr20 KERNEL_SIZE := 7340032 BLOCKSIZE := 128k PAGESIZE := 2048 + UBINIZE_OPTS := -E 5 IMAGE/factory.img := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \ append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | \ append-ubi | netgear-dni