Skip to contentSkip to conversation

wandboard: Migrate to use wic image creator tool

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 wandboard: Migrate to use wic image creator tool

Use wic image creator tool instead of image_types_fsl class to create sdcard images. wic uses imx-uboot-spl.wks file and this new layout has only one partition, so all files will be installed on the same partition. We need to set MACHINE_ESSENTIAL_EXTRA_RDEPENDS to install kernel image and devitree and u-boot to root part, set wic.gz as IMAGE_FSTYPES and set correct WKS_FILES.

---
 conf/machine/wandboard.conf | 12 ++++++++++++
 1 file changed, 12 insertions(+)
conf/machine/wandboard.conf +12 -0
index eb6da77..e82f1b4 100644
@@ -35,3 +35,15 @@ MACHINE_EXTRA_RRECOMMENDS += " \
 "
 
 SERIAL_CONSOLE = "115200 ttymxc0"
+
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \
+    kernel-image \
+    kernel-devicetree \
+    u-boot-fslc \
+"
+
+WKS_FILES ?= "imx-uboot-spl.wks"
+
+IMAGE_DEPENDS_wic_append = " virtual/bootloader"
+
+IMAGE_FSTYPES = "wic.gz"
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/3 cubox-i: Migrate to use wic image creator tool

Use wic image creator tool instead of image_types_fsl class to create sdcard images. wic uses imx-uboot-spl.wks file and this new layout has only one partition, so all files will be installed on the same partition. We need to set MACHINE_ESSENTIAL_EXTRA_RDEPENDS to install kernel image and devitree and u-boot to root part, set wic.gz as IMAGE_FSTYPES and set correct WKS_FILES.

---
 conf/machine/cubox-i.conf | 12 ++++++++++++
 1 file changed, 12 insertions(+)
conf/machine/cubox-i.conf +12 -0
index 5bbc98d..af45c38 100644
@@ -34,3 +34,15 @@ MACHINE_FEATURES += "pci wifi bluetooth alsa irda serial usbhost"
 MACHINE_EXTRA_RRECOMMENDS += "bcm4330-nvram-config bcm4329-nvram-config"
 
 SERIAL_CONSOLE = "115200 ttymxc0"
+
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \
+    kernel-image \
+    kernel-devicetree \
+    u-boot-fslc \
+"
+
+WKS_FILES ?= "imx-uboot-spl.wks"
+
+IMAGE_DEPENDS_wic_append = " virtual/bootloader"
+
+IMAGE_FSTYPES = "wic.gz"
Signature · 1 line
2.1.4
#2 lore raw

PATCH 3/3 imx6dl-riotboard: Migrate to use wic image creator tool

In reply to Fabio Berton

Use wic image creator tool instead of image_types_fsl class to create sdcard images. wic uses imx-uboot.wks file and this new layout has only one partition, so all files will be installed on the same partition. We need to set MACHINE_ESSENTIAL_EXTRA_RDEPENDS to install kernel image and devitree and u-boot to root part, set wic.gz as IMAGE_FSTYPES and set correct WKS_FILES.

---
 conf/machine/imx6dl-riotboard.conf | 12 ++++++++++++
 1 file changed, 12 insertions(+)
conf/machine/imx6dl-riotboard.conf +12 -0
index 5e5bf71..cba0c2e 100644
@@ -13,3 +13,15 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-fslc"
 KERNEL_DEVICETREE = "imx6dl-riotboard.dtb"
 
 SERIAL_CONSOLE = "115200 ttymxc1"
+
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \
+    kernel-image \
+    kernel-devicetree \
+    u-boot-fslc \
+"
+
+WKS_FILES ?= "imx-uboot.wks"
+
+IMAGE_DEPENDS_wic_append = " virtual/bootloader"
+
+IMAGE_FSTYPES = "wic.gz"
Signature · 1 line
2.1.4