How can I read the file which is located on boot partition in u-boot? I can use fatload to read this file to ram but how then I can read it? I can write some additional command by u-boot makro U_BOOT_CMD but don't know how to use emmc and file there.
You could probably use a two steps approach, this would avoid using emmc specific code in your u-boot custom command:
For example:
fatload mmc 0 0x3000000 file.bin
m4xell 0x3000000
Your custom m4xell u-boot command would then be able to access the file content at 0x3000000.
You can use the mm command to display the memory content.
You can run the the UEFI shell using the bootefi command. Inside the UEFI shell the edit command can display files. The UEFI shell is delivered with Tianocore EDK II.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With