Building uboot with environment variables preset in buildroot

Showing results for 
Search instead for 
Did you mean: 

Building uboot with environment variables preset in buildroot

Contributor III

Hi All,

This is related to presetting the uboot environment variable rather than having to go in to uboot prompt and changing the environment. 

I have built uboot for imx6sx board using the config mx6sxsabresd, I see that the default dtb file used by it is set "imx6sx-sdb", I wanted to change this to "imx6sx-sdb-lcdif1", apart from this I also want to change mmcargs to configure by display driver. how do I do this in buildroot environment?

Thanks for the input.

0 Kudos
1 Reply

NXP TechSupport
NXP TechSupport

Hello Arun Kamath,

Uboot performs a detection of the board to select the appropriate device tree. However, you can set the device tree you want to use as part of the boot arguments:

setenv fdt_file <DEVICE TREE>

You can find more details on how to setup the boot arguments for different configurations on the i.MX Linux User’s Guide, which is available as part of the BSP documentation.

I hope this helps!


0 Kudos