[meta-freescale] [PATCH 1/4] wic: Change reference wks files to avoid /boot partition use

Fabio Berton fabio.berton at ossystems.com.br
Wed Oct 19 10:03:33 PDT 2016


From: Otavio Salvador <otavio at ossystems.com.br>

For the sake of user-friendness we will avoid the use of /boot
partition.

The use of wic images, using this layout, is simpler as it does not
require manual setting of IMAGE_BOOT_FILES and thus allow for generic
use across different machines.

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
 scripts/lib/image/canned-wks/imx-barebox.wks   | 13 ++++++-------
 scripts/lib/image/canned-wks/imx-uboot-spl.wks | 13 ++++++-------
 scripts/lib/image/canned-wks/imx-uboot.wks     | 13 ++++++-------
 3 files changed, 18 insertions(+), 21 deletions(-)

diff --git a/scripts/lib/image/canned-wks/imx-barebox.wks b/scripts/lib/image/canned-wks/imx-barebox.wks
index 77b5554..0672cbb 100644
--- a/scripts/lib/image/canned-wks/imx-barebox.wks
+++ b/scripts/lib/image/canned-wks/imx-barebox.wks
@@ -5,14 +5,13 @@
 # It uses barebox
 #
 # The disk layout used is:
-#  - --------- ------------ --------- --------------
-# | | barebox | bareboxenv |  /boot  |    rootfs    |
-#  - --------- ------------ --------- --------------
-# ^ ^         ^            ^         ^              ^
-# | |         |            |         |              |
-# 0 512B      512kiB       4MiB   4MiB + 8MiB    4MiB + 8Mib + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
+#  - --------- ------------ --------------
+# | | barebox | bareboxenv |    rootfs    |
+#  - --------- ------------ --------------
+# ^ ^         ^            ^              ^
+# | |         |            |              |
+# 0 512B      512kiB     4MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
 #
 part barebox --source rawcopy --sourceparams="file=barebox.bin,skip=512" --ondisk mmcblk --no-table
 part bareboxenv --source rawcopy --sourceparams="file=bareboxenv.bin" --ondisk mmcblk --no-table --align 512
-part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 8M --extra-space 0
 part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
diff --git a/scripts/lib/image/canned-wks/imx-uboot-spl.wks b/scripts/lib/image/canned-wks/imx-uboot-spl.wks
index e2bdc14..dfe5077 100644
--- a/scripts/lib/image/canned-wks/imx-uboot-spl.wks
+++ b/scripts/lib/image/canned-wks/imx-uboot-spl.wks
@@ -5,14 +5,13 @@
 # It uses SPL and u-boot
 #
 # The disk layout used is:
-#  - ----- --------- --------- --------------
-# | | SPL | u-boot  |  /boot  |    rootfs    |
-#  - ----- --------- --------- --------------
-# ^ ^     ^         ^         ^              ^
-# | |     |         |         |              |
-# 0 1kiB  69kiB     4MiB   4MiB + 8MiB    4MiB + 8Mib + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
+#  - ----- --------- --------------
+# | | SPL | u-boot  |    rootfs    |
+#  - ----- --------- --------------
+# ^ ^     ^         ^              ^
+# | |     |         |              |
+# 0 1kiB  69kiB   4MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
 #
 part SPL --source rawcopy --sourceparams="file=SPL" --ondisk mmcblk --no-table --align 1
 part u-boot --source rawcopy --sourceparams="file=u-boot.imx" --ondisk mmcblk --no-table --align 69
-part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 8M --extra-space 0
 part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
diff --git a/scripts/lib/image/canned-wks/imx-uboot.wks b/scripts/lib/image/canned-wks/imx-uboot.wks
index 0865210..d360977 100644
--- a/scripts/lib/image/canned-wks/imx-uboot.wks
+++ b/scripts/lib/image/canned-wks/imx-uboot.wks
@@ -5,13 +5,12 @@
 # It uses u-boot
 #
 # The disk layout used is:
-#  - --------- --------- --------------
-# | | u-boot  |  /boot  |    rootfs    |
-#  - --------- --------- --------------
-# ^ ^         ^         ^              ^
-# | |         |         |              |
-# 0 1kiB    4MiB   4MiB + 8MiB    4MiB + 8Mib + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
+#  - --------- --------------
+# | | u-boot  |    rootfs    |
+#  - --------- --------------
+# ^ ^         ^              ^
+# | |         |              |
+# 0 1kiB    4MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
 #
 part u-boot --source rawcopy --sourceparams="file=u-boot.imx" --ondisk mmcblk --no-table --align 1
-part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 8M --extra-space 0
 part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
-- 
2.1.4



More information about the meta-freescale mailing list