On Wed, Jan 27, 2021 at 5:25 PM Brian Hutchinson via lists.yoctoproject.org <b.hutchman=gmail.com@lists.yoctoproject.org> wrote:

On Wed, Jan 27, 2021 at 3:13 PM Otavio Salvador <otavio.salvador@ossystems.com.br> wrote:
Em qua., 27 de jan. de 2021 às 17:11, Brian Hutchinson
<b.hutchman@gmail.com> escreveu:
> On Wed, Jan 27, 2021 at 2:57 PM Brian Hutchinson <b.hutchman@gmail.com> wrote:
> So shouldn't there be a libubootenv.bb in meta-freescale/recipes-bsp/u-boot?  Looks like I'm still missing something ;)

No. The tools are generic and now we package the default environment
for use with them.


Thanks!  Added  libubootenv to my core-image-base image and now get:

root@imx8mmevk:~# fw_printenv
Configuration file wrong or corrupted


... so getting closer.  I'm booting off sdcard so need to find the config for that and figure out what's wrong with it.  Then change it for eMMC later as that's my ultimate goal.

Regards,

Brian

 
Ok, stumped now.  I created a /etc/fw_env.config file with:
/dev/mmcblk1            0x400000        0x1000

Also tried:
/dev/mmcblk1 0x0 0x1000

... mmcblk1 is the sdcard I'm booting.

Now I'm getting:

root@imx8mmevk:/etc# fw_printenv  
Cannot read environment, using default
Cannot read default environment from file

This is first time I'm using sdcards or eMMC to store u-boot env, always did it in NOR before so I'm kinda lost at the moment.

Anyone know where the u-boot env is on sdcard (or eMMC)?

Regards,

Brian