]> git.dujemihanovic.xyz Git - u-boot.git/commit
am625x_evm_a53: Tweak boot command to set fdt
authorMartyn Welch <martyn.welch@collabora.com>
Tue, 26 Mar 2024 14:26:33 +0000 (14:26 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 11 Apr 2024 21:51:44 +0000 (15:51 -0600)
commit17a820920b7a72940b09b359e2972f36442badf3
tree150c688cb6f4d5bfe87b7083f565556a0162172f
parenta26bef219bf56363fa00c355029c04c5d6898697
am625x_evm_a53: Tweak boot command to set fdt

With the current config for tha SK-AM62, fdtfile isn't set in the U-Boot
environment. When using bootflow to boot from a block device, where the
extlinux.conf file specifies `fdtdir`, a fallback device tree is being
constructed from the `soc` (`k3`) and `board` (`am62x`) environment
variables, resulting in u-Boot trying to retrieve
`/dtbs/6.8.1+/k3-am62x.dtb`. This file doesn't exist.

The environment variables `default_device_tree` and
`default_device_tree_arch` are set in the config, the `findfdt` script
can be called to construct `fdtfile` from the environment variables set
by these config options, however this script currently isn't being run.

Calling this script results in the correct device tree being retrieved:

   Retrieving file: /dtbs/6.8.1+/ti/k3-am625-sk.dtb

Many boards are calling this script as part of their boot command. The
am62x currently isn't. Rectify this so that booting works correctly.

Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
Reviewed-by: Christopher Obbard <chris.obbard@collabora.com>
configs/am62x_evm_a53_defconfig