build: drop UBI EOF marker from images by default

Only add them where they are actually required.
Should help with compatibility issues with stock U-Boot images that
access UBI

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2016-09-12 18:20:50 +02:00
parent f3747020e2
commit d27bce8d28
6 changed files with 4 additions and 3 deletions

View file

@ -353,7 +353,7 @@ define Device/Init
PAGESIZE := PAGESIZE :=
SUBPAGESIZE := SUBPAGESIZE :=
VID_HDR_OFFSET := VID_HDR_OFFSET :=
UBINIZE_OPTS := -E 5 UBINIZE_OPTS :=
UBINIZE_PARTS := UBINIZE_PARTS :=
MKUBIFS_OPTS := MKUBIFS_OPTS :=

View file

@ -85,7 +85,6 @@ define Device/Default
IMAGES := trx IMAGES := trx
BLOCKSIZE := 128k BLOCKSIZE := 128k
PAGESIZE := 2048 PAGESIZE := 2048
UBINIZE_OPTS :=
IMAGE/trx := append-ubi | trx-nand IMAGE/trx := append-ubi | trx-nand
endef endef

View file

@ -94,7 +94,6 @@ define Device/ventana
kobs-ng kobs-ng
KERNEL += | boot-overlay KERNEL += | boot-overlay
IMAGES := nand.ubi bootfs.tar.gz IMAGES := nand.ubi bootfs.tar.gz
UBINIZE_OPTS :=
UBINIZE_PARTS = boot=$$(KDIR_KERNEL_IMAGE).boot.ubifs=15 UBINIZE_PARTS = boot=$$(KDIR_KERNEL_IMAGE).boot.ubifs=15
IMAGE/nand.ubi := append-ubi IMAGE/nand.ubi := append-ubi
IMAGE/bootfs.tar.gz := bootfs.tar.gz | install-dtb IMAGE/bootfs.tar.gz := bootfs.tar.gz | install-dtb

View file

@ -28,6 +28,7 @@ define Device/Default
SUBPAGESIZE := 512 SUBPAGESIZE := 512
BLOCKSIZE := 128k BLOCKSIZE := 128k
IMAGES := sysupgrade.tar IMAGES := sysupgrade.tar
UBINIZE_OPTS := -E 5
IMAGE/sysupgrade.tar := sysupgrade-tar IMAGE/sysupgrade.tar := sysupgrade-tar
endef endef

View file

@ -71,6 +71,7 @@ endef
define Device/UBI-factory define Device/UBI-factory
$(Device/UBI) $(Device/UBI)
UBINIZE_OPTS := -E 5
IMAGES += factory.img IMAGES += factory.img
IMAGE/factory.img := append-kernel $$$$(KERNEL_SIZE) | append-ubi | pad-to $$$$(PAGESIZE) IMAGE/factory.img := append-kernel $$$$(KERNEL_SIZE) | append-ubi | pad-to $$$$(PAGESIZE)
endef endef

View file

@ -146,6 +146,7 @@ define Device/wf-2881
FILESYSTEMS := squashfs FILESYSTEMS := squashfs
IMAGE_SIZE := 129280k IMAGE_SIZE := 129280k
KERNEL := $(KERNEL_DTB) | pad-offset $$(BLOCKSIZE) 64 | uImage lzma KERNEL := $(KERNEL_DTB) | pad-offset $$(BLOCKSIZE) 64 | uImage lzma
UBINIZE_OPTS := -E 5
IMAGE/sysupgrade.bin := append-kernel | append-ubi | check-size $$$$(IMAGE_SIZE) IMAGE/sysupgrade.bin := append-kernel | append-ubi | check-size $$$$(IMAGE_SIZE)
DEVICE_TITLE := NETIS WF-2881 DEVICE_TITLE := NETIS WF-2881
DEVICE_PACKAGES := kmod-usb3 kmod-ledtrig-usbdev DEVICE_PACKAGES := kmod-usb3 kmod-ledtrig-usbdev