Hi everyone,
We’re currently working on a custom embedded Linux setup based on Yocto and BitBake for our Toradex Apalis iMX8QP-based project, and we’ve hit a few bumps during our recent migration. I’d like to share the details here in case anyone else has encountered similar issues or can provide guidance.
Background
We’ve been maintaining a custom Yocto meta-layer, which includes RTC, GPIO power-off support and other things. This setup has been working reliably on earlier versions — including Boot2Qt 6.8 and the Kirkstone Yocto release.
We’ve now updated our system to Boot2Qt 6.8.4 LTS, which brings in the Scarthgap Yocto release and Linux kernel 6.6.84 from Toradex BSP 7. I updated our meta-layer accordingly, and while the build process completes without errors, we’re experiencing several issues at runtime on our hardware.
Hardware In Use
- Apalis iMX8QP WB V1.0B on Ixora V1.2A
- Apalis iMX8QP V1.1D on Ixora V1.2A
Issues Observed
1. U-Boot: Device Tree Selection Fails (V1.0B board)
- The boot process halts in U-Boot with:
Failed to load 'imx8qp-apalis-eval.dtb'
- I have to manually run:
setenv fdtfile imx8qm-apalis-ixora-v1.1.dtb
to continue booting.
2. U-Boot: Wrong Default Device Tree (V1.1D board)
- The board boots with:
Loading DeviceTree: imx8qp-apalis-v1.1-eval.dtb
- This works, but to select the correct DT for our setup, I have to manually run:
fw_setenv fdtfile imx8qp-apalis-v1.1-ixora-v1.2.dtb
3. Missing Device Trees in /boot (both boards)
- Previously (on Kirkstone),
/boot
listed all available.dtb
files. We relied on this to choose the correct DT during deployment via our gui application. - With Scarthgap,
/boot
no longer contains these files, making selection at runtime more difficult.
4. GPIO Power-Off Overlay Not Working
- U-Boot prints:
Applying Overlay: apalis-imx8_gpio-poweroff_overlay.dtbo
- However, the actual GPIO power-off behavior doesn’t function anymore.
5. RTC Overlay Appears OK
- U-Boot correctly applies:
Applying Overlay: apalis-imx8_rtc-rv8803_overlay.dtbo
- And
dmesg | grep rtc
shows the RTC driver is loaded:rtc-rv8803 4-0032: registered as rtc0
My Questions
- Has anyone successfully dealt with similar U-Boot device tree loading issues when upgrading to Scarthgap?
- Is it expected that
/boot
no longer lists DTB files in newer Boot2Qt/Scarthgap builds? - Has the handling of overlays — especially GPIO-related ones — changed significantly?
- Do these symptoms suggest a minor misconfiguration or a more involved migration effort from Kirkstone to Scarthgap?
Any insights, tips, or examples would be greatly appreciated!
I am also joining the repo manifest used for this build and the recipes-kernel with the overlays.
Thanks in advance,
Romain
recipes-kernel.zip (7.5 KB)
v6.8.4-lts.xml (3.0 KB)