Repository navigation
[wrynose] dtbo: deploy overlays.txt on MediaTek machines - #631 - #66
Merged
MatheusRodrigues-tor merged 2 commits intoNov 25, 2026
Conversation
On MediaTek machines virtual/dtb is the BSP's dtbo recipe rather than toradex-devicetree, so no overlays.txt reaches DEPLOY_DIR_IMAGE and ostree-kernel-initramfs installs none into the deployment. The OSTree deployment then has no dtb/ directory, which leaves the boot script's overlay import unused and makes TorizonCore Builder's kernel-argument and device-tree-overlay commands abort. Deploy overlays.txt from the dtbo recipe with the same contract as toradex-devicetree.bbclass: TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT lists the overlays applied at boot, none by default. With that, kernel-argument customisation works on the Genio raw image; TorizonCore Builder never rejected it for raw/WIC images, only secure-boot signing. Device-tree overlays are added to the kernel FIT, but TorizonCore Builder writes the added image without its hash value, so U-Boot skips the overlay at boot. Correct the build guide and the converter configuration accordingly. Signed-off-by: Vladimir Skvortsov <vskvortsov@emcraft.com>
uenv_extra_configs set fdtfile to the FIT configuration name without its
conf- prefix (mediatek_<dtb>) unconditionally, because U-Boot's default fdtfile,
lec-mtk-i1200-ufs.dtb, names no configuration in the kernel FIT. It also
overwrote the fdtfile that TorizonCore Builder's 'dt apply' writes into
uEnv.txt, so a custom device tree was silently ignored and the board
booted the stock one.
Set KERNEL_DTB_PREFIX to "mediatek/", as the NXP machines do with their
vendor directories, so the boot script selects conf-mediatek_${fdtfile}
and both U-Boot's default and a device tree set in uEnv.txt resolve to a
configuration. TorizonCore Builder reads the prefix from the bootm line
in uEnv.txt and names the configurations it adds to match. Drop the
fdtfile override, and set fdt_file to fdtfile: OSTree writes no fdt_file
for FIT kernels, and a rollback to a deployment built before overlays.txt
was deployed, which has no dtb/ directory, boots by fdt_file.
Document that custom device trees, like overlays, need a TCB release
that writes FIT hash values for the images it adds.
Signed-off-by: Vladimir Skvortsov <vskvortsov@emcraft.com>
vdskvortsov
requested review from
EdTheBearded,
Freireg,
MatheusRodrigues-tor,
jsrc27 and
rborn-tx
as code owners
November 18, 2026 12:58
jsrc27
approved these changes
Nov 18, 2026
rborn-tx
approved these changes
Nov 18, 2026
Freireg
approved these changes
Nov 19, 2026
MatheusRodrigues-tor
approved these changes
Nov 25, 2026
|
Successfully created backport PR for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Forward-port of torizon/meta-toradex-torizon#631, merged into
scarthgap-7.x.y, for torizon/meta-toradex-torizon#629. Both commits apply unchanged.Not built: MediaTek's BSP layers do not support wrynose yet. The change was tested on
scarthgap-7.x.yin #631.Please add the
backport-to-masterlabel.