commontorizon / meta-common-torizon

Fork of the TorizonCore OpenEmbedded Distro Layer to create Common TorizonCore
MIT License
10 stars 10 forks source link

Fix beagleplay builds #44

Closed drewmoseley closed 5 months ago

drewmoseley commented 6 months ago

In commit 121b3cc7c75ff324069a362206d367e3ecbde2dd we add a number of kernel modules to suppory plymouth on verdin-am62. That commit uses the ti-soc override to add the modules. But on the beagleplay (also ti-soc based) those kernel configs either do not exist or are built-in rather than modules so we will just remove the kernel modules specifically on beagleplay

drewmoseley commented 6 months ago

@EdTheBearded can you take a look?

drewmoseley commented 6 months ago

Adapted as suggested by @EdTheBearded

drewmoseley commented 6 months ago

FYI, without this fix, the error I get is as follows

ERROR: initramfs-ostree-torizon-image-1.0-r0 do_rootfs: Unable to install packages. Command '/work/YoctoBuild/Toradex/torizon/kirkstone-common/build/beagleplay/tmp/work/beagleplay-tdx-linux/initramfs-ostree-torizon-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /work/YoctoBuild/Toradex/torizon/kirkstone-common/build/beagleplay/tmp/work/beagleplay-tdx-linux/initramfs-ostree-torizon-image/1.0-r0/opkg.conf -t /work/YoctoBuild/Toradex/torizon/kirkstone-common/build/beagleplay/tmp/work/beagleplay-tdx-linux/initramfs-ostree-torizon-image/1.0-r0/temp/ipktemp/ -o /work/YoctoBuild/Toradex/torizon/kirkstone-common/build/beagleplay/tmp/work/beagleplay-tdx-linux/initramfs-ostree-torizon-image/1.0-r0/rootfs  --force_postinstall --prefer-arch-to-version   --add-ignore-recommends busybox-syslog install base-passwd busybox initramfs-framework-base initramfs-module-debug initramfs-module-kmod initramfs-module-ostree initramfs-module-plymouth initramfs-module-rootfs initramfs-module-udev' returned 1:
 * Solver encountered 1 problem(s):
 * Problem 1/1:
 *   - conflicting requests
 *   - nothing provides kernel-module-display-connector needed by initramfs-module-kmod-1.0-r4.all
 * 
 * Solution 1:
 *   - do not ask to install a package providing initramfs-module-kmod

ERROR: Logfile of failure stored in: /work/YoctoBuild/Toradex/torizon/kirkstone-common/build/beagleplay/tmp/work/beagleplay-tdx-linux/initramfs-ostree-torizon-image/1.0-r0/temp/log.do_rootfs.4173752
ERROR: Task (/work/YoctoBuild/Toradex/torizon/kirkstone-common/build/beagleplay/conf/../../layers/meta-common-torizon/recipes-core/images/initramfs-ostree-torizon-image.bb:do_rootfs) failed with exit code '1'
drewmoseley commented 5 months ago

I also added a genericx86-64.cfg file to avoid a build failure on that MACHINE.

microhobby commented 5 months ago

LGTM