Tool/software:
Hi,
Yocto SDK: 09_01_00
EVM: AM62A SK EVM
I have followed the above link to boot the board from the emmc flash and able to boot the device from emmc as well.
Now, We have requirement of accessing and modification of the u-boot environment variable at user space.
=> printenv dfu_alt_info_emmc dfu_alt_info_emmc=rawemmc raw 0 0x800000 mmcpart 1; rootfs part 0 1; tiboot3.bin.raw raw 0x0 0x400 mmcpart 1; tispl.bin.raw raw 0x400 0x1000 mmcpart 1; u-boot.img.raw raw 0x1400 0x2000 mmcpart 1; u-env.raw raw 0x3400 0x100 mmcpart 1; sysfw.itb.raw raw 0x3600 0x800 mmcpart 1
As per above command we should be able flash the u-env.raw file at certain offset in either boot0 or boot1 partition. I have below query for this.
1) How can we generate u-env.raw file in yocto to flash in emmc?
2) If we want to change the offset of the u-env.raw, where to change the same in the u-boot?
3) How can we access the same u-env.raw at user space to modify the few u-boot environment variable?
4) Will u-boot use the same environment variable written in the u-env.raw? Or do we need to change u-boot code to read environment from u-env.raw?
Let me know any clarification required in above query.
Regards,
Jay