]> code.ossystems Code Review - meta-freescale.git/commitdiff
wic: Change reference wks files to avoid /boot partition use
authorOtavio Salvador <otavio@ossystems.com.br>
Tue, 18 Oct 2016 19:24:14 +0000 (17:24 -0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 19 Oct 2016 19:49:58 +0000 (17:49 -0200)
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@ossystems.com.br>
scripts/lib/image/canned-wks/imx-barebox.wks
scripts/lib/image/canned-wks/imx-uboot-spl.wks
scripts/lib/image/canned-wks/imx-uboot.wks

index 77b5554806d8a2843aa58e7f96f183a8b8d494c3..0672cbb27e08babce06de7a033752eed7721ed85 100644 (file)
@@ -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
index e2bdc1452c0a4ed356773a333682c358c161392d..dfe507738361e201ed96defd1322391be7746a02 100644 (file)
@@ -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
index 086521034edcfdcbbaf760ce473f7cde302dfa14..d3609771e50ce9321be23f6336731c53bc5ef3e8 100644 (file)
@@ -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