Changes

Jump to: navigation, search

Axel Embedded Linux Kit (XELK)

1,432 bytes added, 11:51, 11 May 2018
Binary images on SD card
By default, the system is configured to boot automatically from the microSD card when powered up.
 
===Binary images on SD card===
XELK SD card contains all binary images required for booting the system completely from kernel/dtb (stored on first SD <code>fat</code> card partition) to <code>ext3</code> root file system (stored on second SD card partition).
 
Once you got the new binaries compiled from your modified sources, they have to be installed on first SD partition preserving the original file names used into <i>boot.scr</i> u-boot bootscript.
 
Otherwise, you may create a new '''boot.scr''' file using different file names. Here below there is an example on how to create a boot.scr file for booting from SD card:
 
The '''bootscript.txt''' is the text version of the <i>boot.scr</i> file:
 
<pre>
echo 'bootscript generated with command "mkimage -A ARM -T script -C none -n XELK -d bootscript.txt boot.scr"'
 
setenv fdtfile imx6q-xelk-l.dtb
setenv bootfile uImage
 
setenv mmc_loadk 'fatload mmc ${mmcdev}:1 ${loadaddr} ${bootfile}'
setenv mmc_loadfdt 'fatload mmc ${mmcdev}:1 ${fdtaddr} ${fdtfile}'
setenv mmcboot 'run mmc_loadk mmc_loadfdt mmcargs addip addcons addmisc adddisp0; bootm ${loadaddr} - ${fdtaddr}'
 
echo Booting AxelLite-XELK via mmcboot
 
run mmcboot
 
echo mmcboot FAILURE
</pre>
 
and compile it using:
 
<pre>
mkimage -A ARM -T script -C none -n XELK -d bootscript.txt boot.scr
</pre>
 
Then copy the kernel, dtb and boot.scr into the SD card first partion (the FAT one) and boot XELK with the new images.
==Related Documents ==
8,154
edits

Navigation menu