AnsweredAssumed Answered

How to change enviroment variables in FSPI U-Boot?

Question asked by Isaias Acosta on Jan 15, 2020
Latest reply on Jan 16, 2020 by Isaias Acosta

Hello,

 

First, what am trying to achive is to have the bootloader in the SPI Flash and the root file system at eMMC:

 

I already created the bootloader and my i.MX 8QuadXPlus MEK boots from the SPI Flash, see this post for additional detalis, and now when my board boots it tries to find and SD card to continue te boot process, but my intention is to have the root file system at the eMMC memory.

 

If I modify the next enviroment variables:

setenv mmcdev '0'
setenv mmcroot '/dev/mmcblk0p2 rootwait rw'

 

And doing a:

saveenv
boot

the board continue booting with Linux from eMMC but after restarting my system, the values of mmcdev and mmcroot are lost even when I did the saveenv, so the board tries to find again the SD card for booting Linux

 

So my questions:

* is this is the correct way to achieve to have the bootloader in the SPI Flash and the root file system at eMMC?

* If so, the how I can modify my envorment variables to have the correct values and not lost at every restart?

 

Thanks

Outcomes