update u-boot image in imx8mm evk from target board(imx8mm evk)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

update u-boot image in imx8mm evk from target board(imx8mm evk)

1,824 Views
ganesh_k
Contributor III

i m trying to update the imx-boot(bootloader) image from user space(target board). from the target board, i can able to see below partitions.
mmcblk2
mmcblk2boot1
mmcblk2p2
mmcblk2boot0
mmcblk2p1
mmcblk2rpmb

i m bit confused to update the bootloader image and also in which partition environment variable available to read the environment variables from user space using fw_printenv command.
while running this fw_printenv command i m getting below error. -----------------------------------------------------------------------------------

root@arm:~# fw_printenv
Cannot read environment, using default
Cannot read default environment from file

-----------------------------------------------------------------------------------

below lines are edit for fw_evn.config file in /etc folder -----------------------------------------------------------------------------------

root@arm:~# cat /etc/fw_env.config
/dev/mmcblk2 0x400000 0x1000
/dev/mmcblk2 0x400000 0x1000

------------------------------------------------------------------------------------

can someone tell me ..where i m doing mistake here. Thanks in advance...

0 Kudos
2 Replies

1,792 Views
ganesh_k
Contributor III

Solved this issue by following procedure.
-> added the "#define CONFIG_SYS_MMC_ENV_PART 0" in the "include/configs/imx8mm_evk.h" file in uboot.

which makes the environment will rw to userspace area.

and made one partition(/dev/mmcblk2p1) in emmc for this environment. and given the env partition starting address as env offset address(0x400000) in uboot.

etc/fw_env.config configured as below

/dev/mmcblk2p1 0x400000 0x1000

 

now i can able to read and write to the env using fw_printenv and fw_setenv.

1,810 Views
Forlinx
Contributor I
which i.MX processor you are using? what's your kernel version? Rgds, Grace grace@forlinx.com
0 Kudos