layerscape: support sysupgrade for SD card ext4 rootfs
Support sysupgrade for SD card ext4 rootfs. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
This commit is contained in:
@@ -41,7 +41,7 @@ define Device/ls1021atwr-sdboot
|
||||
DEVICE_VARIANT := SD Card Boot
|
||||
DEVICE_DTS := ls1021a-twr
|
||||
FILESYSTEMS := ext4
|
||||
IMAGES := sdcard.img
|
||||
IMAGES := sdcard.img sysupgrade.bin
|
||||
IMAGE/sdcard.img := \
|
||||
ls-clean | \
|
||||
ls-append-sdhead $(1) | pad-to 4K | \
|
||||
@@ -50,6 +50,12 @@ define Device/ls1021atwr-sdboot
|
||||
ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
|
||||
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
|
||||
append-rootfs | check-size $(LS_SD_IMAGE_SIZE)
|
||||
IMAGE/sysupgrade.bin := \
|
||||
ls-clean | \
|
||||
ls-append-sdhead $(1) | pad-to 16M | \
|
||||
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
|
||||
append-rootfs | check-size $(LS_SD_IMAGE_SIZE) | append-metadata
|
||||
SUPPORTED_DEVICES := fsl,ls1021a-twr-sdboot
|
||||
endef
|
||||
TARGET_DEVICES += ls1021atwr-sdboot
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ define Device/ls1012afrwy
|
||||
kmod-ppfe
|
||||
DEVICE_DTS := freescale/fsl-ls1012a-frwy
|
||||
FILESYSTEMS := ext4
|
||||
IMAGES := firmware.bin sdcard.img
|
||||
IMAGES := firmware.bin sdcard.img sysupgrade.bin
|
||||
IMAGE/firmware.bin := \
|
||||
ls-clean | \
|
||||
ls-append $(1)-bl2.pbl | pad-to 128K | \
|
||||
@@ -86,6 +86,12 @@ define Device/ls1012afrwy
|
||||
ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
|
||||
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
|
||||
append-rootfs | check-size $(LS_SD_IMAGE_SIZE)
|
||||
IMAGE/sysupgrade.bin := \
|
||||
ls-clean | \
|
||||
ls-append-sdhead $(1) | pad-to 16M | \
|
||||
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
|
||||
append-rootfs | check-size $(LS_SD_IMAGE_SIZE) | append-metadata
|
||||
SUPPORTED_DEVICES := fsl,ls1012a-frwy-sdboot
|
||||
endef
|
||||
TARGET_DEVICES += ls1012afrwy
|
||||
|
||||
@@ -121,7 +127,7 @@ define Device/ls1043ardb-sdboot
|
||||
fmc fmc-eth-config
|
||||
DEVICE_DTS := freescale/fsl-ls1043a-rdb-sdk
|
||||
FILESYSTEMS := ext4
|
||||
IMAGES := sdcard.img
|
||||
IMAGES := sdcard.img sysupgrade.bin
|
||||
IMAGE/sdcard.img := \
|
||||
ls-clean | \
|
||||
ls-append-sdhead $(1) | pad-to 4K | \
|
||||
@@ -132,6 +138,12 @@ define Device/ls1043ardb-sdboot
|
||||
ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
|
||||
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
|
||||
append-rootfs | check-size $(LS_SD_IMAGE_SIZE)
|
||||
IMAGE/sysupgrade.bin := \
|
||||
ls-clean | \
|
||||
ls-append-sdhead $(1) | pad-to 16M | \
|
||||
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
|
||||
append-rootfs | check-size $(LS_SD_IMAGE_SIZE) | append-metadata
|
||||
SUPPORTED_DEVICES := fsl,ls1043a-rdb-sdboot
|
||||
endef
|
||||
TARGET_DEVICES += ls1043ardb-sdboot
|
||||
|
||||
@@ -167,7 +179,7 @@ define Device/ls1046ardb-sdboot
|
||||
fmc fmc-eth-config
|
||||
DEVICE_DTS := freescale/fsl-ls1046a-rdb-sdk
|
||||
FILESYSTEMS := ext4
|
||||
IMAGES := sdcard.img
|
||||
IMAGES := sdcard.img sysupgrade.bin
|
||||
IMAGE/sdcard.img := \
|
||||
ls-clean | \
|
||||
ls-append-sdhead $(1) | pad-to 4K | \
|
||||
@@ -178,6 +190,12 @@ define Device/ls1046ardb-sdboot
|
||||
ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
|
||||
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
|
||||
append-rootfs | check-size $(LS_SD_IMAGE_SIZE)
|
||||
IMAGE/sysupgrade.bin := \
|
||||
ls-clean | \
|
||||
ls-append-sdhead $(1) | pad-to 16M | \
|
||||
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
|
||||
append-rootfs | check-size $(LS_SD_IMAGE_SIZE) | append-metadata
|
||||
SUPPORTED_DEVICES := fsl,ls1046a-rdb-sdboot
|
||||
endef
|
||||
TARGET_DEVICES += ls1046ardb-sdboot
|
||||
|
||||
@@ -217,7 +235,7 @@ define Device/ls1088ardb-sdboot
|
||||
restool
|
||||
DEVICE_DTS := freescale/fsl-ls1088a-rdb
|
||||
FILESYSTEMS := ext4
|
||||
IMAGES := sdcard.img
|
||||
IMAGES := sdcard.img sysupgrade.bin
|
||||
IMAGE/sdcard.img := \
|
||||
ls-clean | \
|
||||
ls-append-sdhead $(1) | pad-to 4K | \
|
||||
@@ -230,6 +248,12 @@ define Device/ls1088ardb-sdboot
|
||||
ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
|
||||
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
|
||||
append-rootfs | check-size $(LS_SD_IMAGE_SIZE)
|
||||
IMAGE/sysupgrade.bin := \
|
||||
ls-clean | \
|
||||
ls-append-sdhead $(1) | pad-to 16M | \
|
||||
append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
|
||||
append-rootfs | check-size $(LS_SD_IMAGE_SIZE) | append-metadata
|
||||
SUPPORTED_DEVICES := fsl,ls1088a-rdb-sdboot
|
||||
endef
|
||||
TARGET_DEVICES += ls1088ardb-sdboot
|
||||
|
||||
|
||||
Reference in New Issue
Block a user