superna9999 / meta-meson

Upstream Linux Amlogic Meson Yocto/OpenEmbedded Layer
https://github.com/superna9999/meta-meson/wiki
MIT License
105 stars 68 forks source link

u-boot-meson-gx build fails for hardkernel-odroidc2 #48

Closed reinhardd closed 5 years ago

reinhardd commented 6 years ago

Build Context

The build fails within do_deploy of u-boot-meson-gx: cp: cannot stat '/home/reinhard/Develop/odroid-c2/sumo/build/tmp-glibc/deploy/images/hardkernel-odroidc2/fip//bl31.img': No such file or directory

Some debugging shows that do_deploy_append_hardkernel-odroidc2 does not get called. Instead do_deploy_append_meson-gxbb is used.

I get this fixed with:

diff --git a/conf/machine/hardkernel-odroidc2.conf b/conf/machine/hardkernel-odroidc2.conf
index 26172b9..17941c3 100644
--- a/conf/machine/hardkernel-odroidc2.conf
+++ b/conf/machine/hardkernel-odroidc2.conf
@@ -1,6 +1,11 @@
 # Hardkernel Odroid-C2 Configurations

-require conf/machine/include/amlogic-s905.inc
+# require conf/machine/include/amlogic-s905.inc
+
+require conf/machine/include/amlogic-meson64.inc
+
+MACHINE_FEATURES = "serial usbhost sdio screen wifi"
+
 require conf/machine/include/hardkernel-odroidc2-dtb.inc

 KERNEL_IMAGETYPE = "Image"

The resulting image boots successfully into GUI from sdcard.

f1vefour commented 6 years ago

Seems you could create a pull request.

superna9999 commented 6 years ago

I’ll prefer fixing https://github.com/superna9999/meta-meson/blob/sumo/recipes-bsp/u-boot/u-boot-meson-gx_2018.01.bb instead

superna9999 commented 6 years ago

https://github.com/superna9999/meta-meson/blob/sumo/classes/image_types_meson.bbclass Uses an indirect WIC_COMMAND that seems to work better

superna9999 commented 5 years ago

Fixed on sumo, sumo-next and master