[meta-freescale] [PATCH] wks: add a kickstart file with vfat boot and ext4 rootfs partition

Max Krummenacher max.oss.09 at gmail.com
Wed Sep 13 06:00:11 PDT 2017


Since openembedded commit 2376b05512ddb8c4ec3aaf1df11071f536a76bd9
a partition with mountpoint /boot is no longer excluded from being
added to /etc/fstab.

Thus add a kickstart file without mountpoint for the boot partition.

Signed-off-by: Max Krummenacher <max.krummenacher at toradex.com>
---

Using the OE provided sdimage-bootpart.wks does no longer boot, as
fstab tries to mount /dev/mmcblkp1, a device which never exists.
Rather than changing --ondisk to mmcblk0 make wic not add the
partition to fstab. The partition need not nessesarily be mounted
and depending on the machine using it it the device might be
mmcblk1 etc.

 scripts/lib/wic/canned-wks/imx-bootpart-rootfspart.wks | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 scripts/lib/wic/canned-wks/imx-bootpart-rootfspart.wks

diff --git a/scripts/lib/wic/canned-wks/imx-bootpart-rootfspart.wks b/scripts/lib/wic/canned-wks/imx-bootpart-rootfspart.wks
new file mode 100644
index 0000000..877f3e5
--- /dev/null
+++ b/scripts/lib/wic/canned-wks/imx-bootpart-rootfspart.wks
@@ -0,0 +1,9 @@
+# short-description: Create SD card image with separate boot and rootfs part
+# long-description:
+# Creates a partitioned SD card image with a boot vfat partition and
+# a ext4 rootfs partition.
+# The boot partition is not added to fstab so there is no need to
+# specify the exact device path (mmcblk0, mmcblk1 ...) with --ondisk.
+
+part --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 16
+part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 1024
-- 
2.9.4



More information about the meta-freescale mailing list