Skip to content

Load a Device tree overlay at boot time with Uboot and pass it to Kernel #457

Discussion options

You must be logged in to vote

Hello @Alb7954 ,

The device tree overlays provided as part of the dt-overlays-mchp repository can be loaded by U-boot using the bootm command. This is particularly useful for adding Click boards or Raspberry Pi HATs without needing to recompile the entire device tree blob.

We have a few examples of this in the BSP, specifically for loading the qspi nand and nor overlays. Please refer to this U-boot source script.

As shown in the link provided you could edit the boot.cmd source script in meta-polarfire-soc-bsp/recipes-bsp/u-boot/files/boot.cmd and edit the bootm start command to append an overlay. For example:

bootm start ${scriptaddr}#conf-microchip_mpfs-icicle-kit.dtb#conf-mpfs_icicle_pm…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Alb7954
Comment options

Answer selected by Alb7954
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants