diff options
| author | Denys Dmytriyenko <denys@ti.com> | 2020-03-20 02:09:25 +0000 |
|---|---|---|
| committer | Denys Dmytriyenko <denys@ti.com> | 2020-03-23 17:52:49 +0000 |
| commit | 7646efc16a2b0aeafb6790a7d18b8fa2ca4547ad (patch) | |
| tree | 11d52303ac88dfd3905f6616a8066f61680efad7 | |
| parent | 73f41c3f34f7ddc408e2e1c67be60f7865aa633f (diff) | |
| download | meta-ti-7646efc16a2b0aeafb6790a7d18b8fa2ca4547ad.tar.gz | |
wic: create SD card with 3 partitions for testing
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
| -rw-r--r-- | conf/machine/include/k3.inc | 2 | ||||
| -rw-r--r-- | conf/machine/include/omap-a15.inc | 2 | ||||
| -rw-r--r-- | conf/machine/include/ti33x.inc | 2 | ||||
| -rw-r--r-- | conf/machine/include/ti43x.inc | 2 | ||||
| -rw-r--r-- | wic/sdimage-3part.wks | 8 |
5 files changed, 12 insertions, 4 deletions
diff --git a/conf/machine/include/k3.inc b/conf/machine/include/k3.inc index 3416be9e..5e67f5f3 100644 --- a/conf/machine/include/k3.inc +++ b/conf/machine/include/k3.inc | |||
| @@ -38,5 +38,5 @@ IMAGE_FSTYPES += "tar.xz wic.xz" | |||
| 38 | # tiboot3.bin and sysfw.itb, which are provided by meta-arago | 38 | # tiboot3.bin and sysfw.itb, which are provided by meta-arago |
| 39 | # u-boot-k3-r5 and ti-sci-fw recipes | 39 | # u-boot-k3-r5 and ti-sci-fw recipes |
| 40 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}" | 40 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}" |
| 41 | WKS_FILE ?= "sdimage-bootpart.wks" | 41 | WKS_FILE ?= "sdimage-3part.wks" |
| 42 | do_image_wic[depends] += "u-boot:do_deploy" | 42 | do_image_wic[depends] += "u-boot:do_deploy" |
diff --git a/conf/machine/include/omap-a15.inc b/conf/machine/include/omap-a15.inc index 62551915..7600126d 100644 --- a/conf/machine/include/omap-a15.inc +++ b/conf/machine/include/omap-a15.inc | |||
| @@ -39,6 +39,6 @@ UBI_VOLNAME = "rootfs" | |||
| 39 | MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu mmip dsp gc320" | 39 | MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu mmip dsp gc320" |
| 40 | 40 | ||
| 41 | IMAGE_FSTYPES += "tar.xz wic.xz" | 41 | IMAGE_FSTYPES += "tar.xz wic.xz" |
| 42 | WKS_FILE ?= "sdimage-bootpart.wks" | 42 | WKS_FILE ?= "sdimage-3part.wks" |
| 43 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}" | 43 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}" |
| 44 | do_image_wic[depends] += "u-boot:do_deploy" | 44 | do_image_wic[depends] += "u-boot:do_deploy" |
diff --git a/conf/machine/include/ti33x.inc b/conf/machine/include/ti33x.inc index 3c752d54..db1df043 100644 --- a/conf/machine/include/ti33x.inc +++ b/conf/machine/include/ti33x.inc | |||
| @@ -61,6 +61,6 @@ TI_PDK_LIMIT_SOCS = "am335x" | |||
| 61 | TI_PDK_LIMIT_BOARDS = "evmAM335x icev2AM335x iceAMIC110 bbbAM335x skAM335x" | 61 | TI_PDK_LIMIT_BOARDS = "evmAM335x icev2AM335x iceAMIC110 bbbAM335x skAM335x" |
| 62 | 62 | ||
| 63 | IMAGE_FSTYPES += "tar.xz wic.xz" | 63 | IMAGE_FSTYPES += "tar.xz wic.xz" |
| 64 | WKS_FILE ?= "sdimage-bootpart.wks" | 64 | WKS_FILE ?= "sdimage-3part.wks" |
| 65 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}" | 65 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}" |
| 66 | do_image_wic[depends] += "u-boot:do_deploy" | 66 | do_image_wic[depends] += "u-boot:do_deploy" |
diff --git a/conf/machine/include/ti43x.inc b/conf/machine/include/ti43x.inc index d1fc0b50..e2aaf38c 100644 --- a/conf/machine/include/ti43x.inc +++ b/conf/machine/include/ti43x.inc | |||
| @@ -57,6 +57,6 @@ TI_PDK_LIMIT_SOCS = "am437x" | |||
| 57 | TI_PDK_LIMIT_BOARDS = "evmAM437x idkAM437x skAM437x" | 57 | TI_PDK_LIMIT_BOARDS = "evmAM437x idkAM437x skAM437x" |
| 58 | 58 | ||
| 59 | IMAGE_FSTYPES += "tar.xz wic.xz" | 59 | IMAGE_FSTYPES += "tar.xz wic.xz" |
| 60 | WKS_FILE ?= "sdimage-bootpart.wks" | 60 | WKS_FILE ?= "sdimage-3part.wks" |
| 61 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}" | 61 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}" |
| 62 | do_image_wic[depends] += "u-boot:do_deploy" | 62 | do_image_wic[depends] += "u-boot:do_deploy" |
diff --git a/wic/sdimage-3part.wks b/wic/sdimage-3part.wks new file mode 100644 index 00000000..86aeb1cc --- /dev/null +++ b/wic/sdimage-3part.wks | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | # short-description: Create SD card image with 3 partitions | ||
| 2 | # long-description: Creates a partitioned SD card image for testing TI platforms. | ||
| 3 | # Boot files are located in the first vfat partition. | ||
| 4 | # Second ext4 partition is empty and is used for testing. | ||
| 5 | |||
| 6 | part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 1024 --size 100M --use-uuid | ||
| 7 | part test --ondisk mmcblk0 --fstype=ext4 --label test --align 1024 --size 1G --use-uuid | ||
| 8 | part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 1024 --extra-space 500M --use-uuid | ||
