Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX8M-L/Deployment/Standalone boot

11 bytes added, 12:15, 16 February 2022
Program boot images into eMMC
u-boot=>
</pre>
 
=== Configuring the u-boot environment ===
Once the Boot Image has been correctly programmed, start the system from eMMC in order to configure/program the u-boot environment variables for a correct boot sequence.
====kernel image and device tree====
</pre>
Using an SD card or an eMMC device assumes that <code>bootfile</code>, <code>fdt_file</code> and <code>splashfile</code> are stored into fist MMC device partition.  Then, u-boot uses the previously listed commands for reading the binary images and starting the Linux bootstrap file system from the eMMC ''MMC part 2'' (which is reserved for the root-file system storage):
<pre>
setenv mmcboot 'run mmcargs addcons addmisc; if run mmc_loadk; then if run mmc_loadfdt; then if run configid_fixupfdt; then bootm booti ${loadaddr} - ${fdtaddr}; fi; fi; fi'
setenv mmcargs 'setenv bootargs root=${mmcroot}'
setenv mmcroot '/dev/mmcblk2p2 rootwait rw'
saveenv
</pre>
==== boot vars ====
The following environment variables should be configured for u-boot properly reading identify the boot files from the first SD card partition, e.g.
<pre>
8,256
edits