summaryrefslogtreecommitdiffstats
path: root/wic
diff options
context:
space:
mode:
authorTing Liu <ting.liu@nxp.com>2021-04-20 17:24:31 +0800
committerOtavio Salvador <otavio@ossystems.com.br>2021-04-20 10:07:33 -0300
commit481fafd6e7bbb0db616fe095cfa5fa9950229214 (patch)
tree7fc3abbf4548c1360d31cd7c7a185d546f6e7922 /wic
parent03b0c1c150cb9c033a4e80edf9718d47089c8d14 (diff)
downloadmeta-freescale-481fafd6e7bbb0db616fe095cfa5fa9950229214.tar.gz
ls1043/ls1046: support WIC image generation
Signed-off-by: Ting Liu <ting.liu@nxp.com>
Diffstat (limited to 'wic')
-rw-r--r--wic/ls104x-uboot-bootpart.wks.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/wic/ls104x-uboot-bootpart.wks.in b/wic/ls104x-uboot-bootpart.wks.in
new file mode 100644
index 00000000..8ca231c6
--- /dev/null
+++ b/wic/ls104x-uboot-bootpart.wks.in
@@ -0,0 +1,21 @@
1# short-description: Create SD card image with a boot partition
2# long-description:
3# Create an image that can be written onto a SD card using dd for use
4# with Layerscape lx1043a/ls1046a family.
5# It uses u-boot.
6#
7# The disk layout used is:
8# - ----- --------- -------------- --------------------
9# | | PBL | FIP | FMAN-UCODE | boot + rootfs |
10# - ----- --------- -------------- --------------------
11# ^ ^ ^ ^ ^
12# | | | | |
13# 0 4kiB 1MiB 9MiB 16MiB
14#
15part PBL --source rawcopy --sourceparams="file=${IMAGE_FILE_PBL_SD}" --ondisk mmcblk --no-table --align ${IMAGE_OFFSET_PBL}
16part FIP --source rawcopy --sourceparams="file=${IMAGE_FILE_FIP_UBOOT}" --ondisk mmcblk --no-table --align ${IMAGE_OFFSET_FIP}
17part FMAN-UCODE --source rawcopy --sourceparams="file=${FMAN_UCODE}" --ondisk mmcblk --no-table --align ${IMAGE_OFFSET_FMAN_UCODE}
18part /boot --source bootimg-partition --ondisk mmcblk --fstype=ext4 --label boot --active --align 16384 --extra-space 0
19part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs --align 16384
20
21bootloader --ptable msdos