Skip to contentSkip to conversation

beaglebone: add beaglebone.wks

PATCH In review Ed Bartosh 2 participants 5 messages Dec 22, 2016 – Jan 9, 2017

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 beaglebone: add beaglebone.wks

Currently beaglebone machine uses sdimage-bootpart.wks from scripts/lib/wic/canned-wks. It'd be easier to find this file if it's name contains machine name and it's located in the same layer.

Added beaglebone.wks to meta-yocto-bsp/wic/ to make it independent on changes in oe-core and easier to maintain.

[YOCTO #8719]

---
 meta-yocto-bsp/conf/machine/beaglebone.conf | 2 +-
 meta-yocto-bsp/wic/beaglebone.wks           | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 meta-yocto-bsp/wic/beaglebone.wks
meta-yocto-bsp/conf/machine/beaglebone.conf +1 -1
index 24a95b4..9286d1b 100644
@@ -16,7 +16,7 @@ include conf/machine/include/tune-cortexa8.inc
 
 IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap"
 EXTRA_IMAGECMD_jffs2 = "-lnp "
-WKS_FILE = "sdimage-bootpart.wks"
+WKS_FILE ?= "beaglebone.wks"
 IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage"
 do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
 
meta-yocto-bsp/wic/beaglebone.wks new file +6 -0
new file mode 100644
index 0000000..0c09a95
@@ -0,0 +1,6 @@
+# short-description: Create SD card image for Beaglebone
+# long-description: Creates a partitioned SD card image for Beaglebone.
+# Boot files are located in the first vfat partition.
+
+part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4 --size 16
+part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4
Signature · 1 line
2.1.4
author
#1 lore raw

Hi,

This patch depends on oe-core patch:http://lists.openembedded.org/pipermail/openembedded-core/2016-December/130585.html

please merge it after oe-core patch is merged.

Thanks,
Ed

Quoted 45 lines · Ed Bartosh

Currently beaglebone machine uses sdimage-bootpart.wks from scripts/lib/wic/canned-wks. It'd be easier to find this file if it's name contains machine name and it's located in the same layer.

Added beaglebone.wks to meta-yocto-bsp/wic/ to make it independent on changes in oe-core and easier to maintain.

[YOCTO #8719]

---
 meta-yocto-bsp/conf/machine/beaglebone.conf | 2 +-
 meta-yocto-bsp/wic/beaglebone.wks           | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 meta-yocto-bsp/wic/beaglebone.wks
meta-yocto-bsp/conf/machine/beaglebone.conf +1 -1
index 24a95b4..9286d1b 100644
@@ -16,7 +16,7 @@ include conf/machine/include/tune-cortexa8.inc
 
 IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap"
 EXTRA_IMAGECMD_jffs2 = "-lnp "
-WKS_FILE = "sdimage-bootpart.wks"
+WKS_FILE ?= "beaglebone.wks"
 IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage"
 do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
 
meta-yocto-bsp/wic/beaglebone.wks new file +6 -0
new file mode 100644
index 0000000..0c09a95
@@ -0,0 +1,6 @@
+# short-description: Create SD card image for Beaglebone
+# long-description: Creates a partitioned SD card image for Beaglebone.
+# Boot files are located in the first vfat partition.
+
+part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4 --size 16
+part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4
Signature · 1 line
2.1.4
Signature · 3 lines
--
Regards,
Ed
#2 lore raw
In reply to Ed Bartosh
Quoted 8 lines · Ed Bartosh

Currently beaglebone machine uses sdimage-bootpart.wks from scripts/lib/wic/canned-wks. It'd be easier to find this file if it's name contains machine name and it's located in the same layer.

Added beaglebone.wks to meta-yocto-bsp/wic/ to make it independent on changes in oe-core and easier to maintain.

This broke on the autobuilder in ross/mut:

DEBUG: Executing shell function do_image_wic
ERROR: No kickstart files from WKS_FILES were found: beaglebone.wks core-image-minimal.wks. Please set WKS_FILE or WKS_FILES appropriately.

(The image_types patch extending the search path is already merged)

Ross

author
#3 lore raw
Quoted 11 lines · Ross
Quoted 8 lines · Ed Bartosh

Currently beaglebone machine uses sdimage-bootpart.wks from scripts/lib/wic/canned-wks. It'd be easier to find this file if it's name contains machine name and it's located in the same layer.

Added beaglebone.wks to meta-yocto-bsp/wic/ to make it independent on changes in oe-core and easier to maintain.

Quoted 7 lines

This broke on the autobuilder in ross/mut:

DEBUG: Executing shell function do_image_wic
ERROR: No kickstart files from WKS_FILES were found: beaglebone.wks core-image-minimal.wks. Please set WKS_FILE or WKS_FILES appropriately.

(The image_types patch extending the search path is already merged)

This patch depends on oe-core patch:http://lists.openembedded.org/pipermail/openembedded-core/2016-December/130585.html

please merge it after oe-core patch is merged.

--
Regards,
Ed