Tool/software: Linux
Hi,
I am trying to implement booting Linux from images stored at different partitions on eMMC for Beaglebone black. The idea is to change u-boot environment variables from user space to boot from a different partition after images are updated. After some research, there are a couple of questions. Please help:
1. I tried two different machines using Yocto build system, "am35x-evm" and "beaglebone". "am35x-evm" places the u-boot environment variables in a file in the SD card. "beaglebone" places them at some locations in eMMC. Is it possible to save the u-boot environment in a file on eMMC? If yes, how do we do that?
2. How do we change u-boot environment variables from user space if they are stored in eMMC? The standard way seems to be using fw_printenv utility.
- How do we build and install it using Yocto?
- Where do we find the locations and the sizes of the env variables to configure /etc/fw_env.config file?
3. If we save the u-boot environment variables in a file, what is a good way of accessing them from user space?
4. Now I have u-boot, zImage, MLO, dtb in the same disk partition on the SD card. Can Linux boot from zImage and dbt that reside on a different partition from the bootloaders? If yes, how to achieve that?
Thank you for your help!