Skip to contentSkip to conversation

wic: Change reference wks files to avoid /boot partition use

PATCH New Fabio Berton 1 participant 4 messages Oct 19, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 wic: Change reference wks files to avoid /boot partition use

From: Otavio Salvador <[email protected]>

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.

---
 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(-)
scripts/lib/image/canned-wks/imx-barebox.wks +6 -7
index 77b5554..0672cbb 100644
@@ -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
scripts/lib/image/canned-wks/imx-uboot-spl.wks +6 -7
index e2bdc14..dfe5077 100644
@@ -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
scripts/lib/image/canned-wks/imx-uboot.wks +6 -7
index 0865210..d360977 100644
@@ -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
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/4 wic: Change wks files path

WKS_SEARCH_PATH searches inside scripts/lib/wic/canned-wks, rename scripts/lib/image/canned-wks/ to scripts/lib/wic/canned-wks/.

---
 scripts/lib/{image => wic}/canned-wks/imx-barebox.wks   | 0
 scripts/lib/{image => wic}/canned-wks/imx-uboot-spl.wks | 0
 scripts/lib/{image => wic}/canned-wks/imx-uboot.wks     | 0
 3 files changed, 0 insertions(+), 0 deletions(-)
 rename scripts/lib/{image => wic}/canned-wks/imx-barebox.wks (100%)
 rename scripts/lib/{image => wic}/canned-wks/imx-uboot-spl.wks (100%)
 rename scripts/lib/{image => wic}/canned-wks/imx-uboot.wks (100%)
scripts/lib/wic/canned-wks/imx-barebox.wks renamed from scripts/lib/image/canned-wks/imx-barebox.wks +0 -0
similarity index 100%
rename from scripts/lib/image/canned-wks/imx-barebox.wks
rename to scripts/lib/wic/canned-wks/imx-barebox.wks
scripts/lib/wic/canned-wks/imx-uboot-spl.wks renamed from scripts/lib/image/canned-wks/imx-uboot-spl.wks +0 -0
similarity index 100%
rename from scripts/lib/image/canned-wks/imx-uboot-spl.wks
rename to scripts/lib/wic/canned-wks/imx-uboot-spl.wks
scripts/lib/wic/canned-wks/imx-uboot.wks renamed from scripts/lib/image/canned-wks/imx-uboot.wks +0 -0
similarity index 100%
rename from scripts/lib/image/canned-wks/imx-uboot.wks
rename to scripts/lib/wic/canned-wks/imx-uboot.wks
Signature · 1 line
2.1.4
#2 lore raw

PATCH 3/4 wic: imx-uboot-spl: Change u-boot suffix to img

In reply to Fabio Berton

Currently all machines that use SPL are using u-boot.img.

---
 scripts/lib/wic/canned-wks/imx-uboot-spl.wks | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/wic/canned-wks/imx-uboot-spl.wks +1 -1
index dfe5077..d32afc9 100644
@@ -13,5 +13,5 @@
 # 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 u-boot --source rawcopy --sourceparams="file=u-boot.img" --ondisk mmcblk --no-table --align 69
 part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
Signature · 1 line
2.1.4
#3 lore raw

PATCH 4/4 u-boot-fslc: Bump revision to 0dbe853

In reply to Fabio Berton

This includes following changes:

- 0dbe853 embestmx6boards: Use PARTUUID to specify the rootfs location
- 7b2aeb5 mx6cuboxi: Change finduuid to find on first partition
- 163cc05 wandboard: Change finduuid to find on first partition
- 72531ef Revert "Revert "embestmx6boards: convert to use config_distro_bootcmd.h""

---
 recipes-bsp/u-boot/u-boot-fslc_2016.09.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-bsp/u-boot/u-boot-fslc_2016.09.bb +1 -1
index dd6cffa..3780818 100644
@@ -2,5 +2,5 @@ include u-boot-fslc.inc
 
 PV = "v2016.09+git${SRCPV}"
 
-SRCREV = "157ec06ef780e3dac510f35b6fcf496c22fb24f9"
+SRCREV = "0dbe8538b73b402faa7e0b873d3c69857b76a35c"
 SRCBRANCH = "2016.09+fslc"
Signature · 1 line
2.1.4