Skip to content

Commit

Permalink
ipq40xx: enable UBI size checks for some Linksys NAND devices
Browse files Browse the repository at this point in the history
Add correct NAND_SIZE in device definitions for EA6350v3, EA8300, MR8300,
WHW01 and WHW03v2, to enable improved image size checks wrt UBI reserved
blocks on NAND devices.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
  • Loading branch information
guidosarducci committed Nov 12, 2023
1 parent b785370 commit a4ec2bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions target/linux/ipq40xx/image/generic.mk
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ define Device/linksys_ea6350v3
PAGESIZE := 2048
KERNEL_SIZE := 5120k
IMAGE_SIZE := 35840k
NAND_SIZE := 128m
UBINIZE_OPTS := -E 5
IMAGES += factory.bin
IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
Expand All @@ -694,6 +695,7 @@ define Device/linksys_ea8300
SOC := qcom-ipq4019
KERNEL_SIZE := 5120k
IMAGE_SIZE := 84992k
NAND_SIZE := 256m
BLOCKSIZE := 128k
PAGESIZE := 2048
UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
Expand All @@ -711,6 +713,7 @@ define Device/linksys_mr8300
SOC := qcom-ipq4019
KERNEL_SIZE := 5120k
IMAGE_SIZE := 84992k
NAND_SIZE := 256m
BLOCKSIZE := 128k
PAGESIZE := 2048
UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
Expand All @@ -728,6 +731,7 @@ define Device/linksys_whw03v2
SOC := qcom-ipq4019
KERNEL_SIZE := 6144k
IMAGE_SIZE := 158720k
NAND_SIZE := 512m
BLOCKSIZE := 128k
PAGESIZE := 2048
UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
Expand All @@ -743,6 +747,7 @@ define Device/linksys_whw01
DEVICE_MODEL := WHW01
KERNEL_SIZE := 6144k
IMAGE_SIZE := 75776k
NAND_SIZE := 256m
SOC := qcom-ipq4018
BLOCKSIZE := 128k
PAGESIZE := 2048
Expand Down

0 comments on commit a4ec2bf

Please sign in to comment.