Changes

Jump to: navigation, search

How to create a bootable microSD card (XUELK)

155 bytes added, 14:19, 15 March 2017
no edit summary
This article shows how to create a bootable microSD card for the [[AXEL_ULite_and_SBC_Lynx_Embedded_Linux_Kit_(XUELK )|XUELK]] kit by using a simple bash script. The procedure has been tested on a Linux PC running Ubuntu 12 distribution with
*a 16 GB microSD card [1]
*the binary files delivered along with the [[AXEL_ULite_and_SBC_Lynx_Embedded_Linux_Kit_(XUELK)#Downloadable_binary_images|XUELK 1.1.3]].
The resulting card is partitioned as depicted [[AXEL_ULite_and_SBC_Lynx_Embedded_Linux_Kit_(XUELK)#XUELK_microSD_Layout|here]].
 
The script - named <code>mksd.sh</code> - looks like this:
<pre>
The script - named <code>mksd.sh</code> - looks like this:
#!/bin/bash
*bootscript: <code>boot.scr</code>
*Linux kernel: <code>uImage</code>
*Device tree blob: <code>imx6ul-lynx.dtb</code>.
This is the list of the binary files that will be used by the script:
<pre>
</pre>
You can now run the script, by passing the following parameters:
*device Device file of the microSD card (<code>/dev/sdc</code> in the example)
*U-Boot image
*path Path of the directory containing the bootcript bootscript file, the Linux kernel image, and the device tree blob*Archive of the target's root file system (compressed as <code>.tar.bz2</code> file).
<pre>
sysadmin@stagesw:~/devel/sbclynx/uSD$ sudo ./mksd.sh /dev/sdc xuelk-1.1.3/xuelk-1.1.2_mx6ul_lynx_u-boot.imx xuelk-1.1.3 xuelk-1.1.3/xuelk-1.1.3_lynx-image-networking-sbc-lynx.tar.bz2
[sudo] password for sysadmin:
507948 bytes (508 kB) copied, 2.20883 s, 230 kB/s
[Done]
</pre>
4,650
edits

Navigation menu