Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
[[File:TBD.png|thumb|center|200px|Work in progress]]
 
<section begin=History/>
{| style="border-collapse:collapse; "
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|1.0.01|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Apr Jun 2021
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|First DESK release
|-
This article shows how to create a bootable microSD for the [[DESK-MX6UL-L/General/Release_Notes_(DESK-MX6UL-L)Release_Notes|DESK-MX6UL-L Release Notes] kit by using a simple bash script. <br>'''Note:''' Starting from this release the support for the SPL has been introduced in UbootU-Boot. Previous versions of this script will no longer produce a fully functional and bootable microSD card. <br>
The procedure has been tested on a Linux PC running Ubuntu LTS (>=16.04) distribution with
*a 16 GB microSD card [1]
*the binary files delivered along with the [[Axel_Embedded_Linux_Kit_(XELK)AXEL_ULite_SOM/DESK-MX6UL-L/General/Release_Notes#Downloadable_binary_images|DESK-MX6UL-L 1.0.1]]The resulting card is partitioned as depicted [[Axel_Embedded_Linux_Kit_(XELK)#XELK_microSD_Layout|here]]below:
* bootable partition (mmcblk0p1, vfat) containing:** binary images (u-boot and kernel images)* root file system partition (mmcblk0p2, ext3)** root file system binaries and init scripts The script - named <code>desk-mx6ul-l-1.0.0_mksdmksd.sh</code> - looks like thiscan be realized with the following code:
<pre>
#!/bin/bash
This is the list of the binary files that will be used by the script:
<pre>
dvdk@vagrant:~/desk-mx-l$ ll /tftpboot/desk-mx-l/total 10916drwxr-xr-x 2 dvdk root 4096 Apr 14 11:28 ./drwxr-xr-x 3 dvdk root 4096 Apr 14 11:27 ../-rw-r--r-- 1 dvdk root 34095 Apr 14 11:28 desk-mx6ul-l-1.0.0_imx6ul-axelulite-cb003a.dtb-rw-r--r-- 1 dvdk root 33137 Apr 14 11:28 desk-mx6ul-l-1.0.0_imx6ul-axelulite-cb006c.dtb-rw-r--r-- 1 dvdk root 34211 Apr 14 11:28 desk-mx6ul-l-1.0.0_imx6ul-lynx-som0013-cb002f.dtb-rw-r--r-- 1 dvdk root 56320 Apr 14 11:27 desk-mx6ul-l-1.0.0_mx6uldesk_axelulite_spi_SPL-rw-r--r-- 1 dvdk root 547528 Apr 14 11:27 desk-mx6ul-l-1.0.0_mx6uldesk_axelulite_spi_u-boot.img-rw-r--r-- 1 dvdk root 56320 Apr 14 11:27 desk-mx6ul-l-1.0.0_mx6uldesk_axelulite_SPL-rw-r--r-- 1 dvdk root 547200 Apr 14 11:27 desk-mx6ul-l-1.0.0_mx6uldesk_axelulite_u-boot.img-rw-r--r-- 1 dvdk root 56320 Apr 14 11:27 desk-mx6ul-l-1.0.0_mx6uldesk_lynx_spi_SPL-rw-r--r-- 1 dvdk root 512568 Apr 14 11:27 desk-mx6ul-l-1.0.0_mx6uldesk_lynx_spi_u-boot.img-rw-r--r-- 1 dvdk root 56320 Apr 14 11:27 desk-mx6ul-l-1.0.0_mx6uldesk_lynx_SPL-rw-r--r-- 1 dvdk root 512216 Apr 14 11:27 desk-mx6ul-l-1.0.0_mx6uldesk_lynx_u-boot.img-rw-r--r-- 1 dvdk root 52224 Apr 14 11:27 desk-mx6ul-l-1.0.0_mx6uldesk_lynx_usb_SPL-rw-r--r-- 1 dvdk root 431512 Apr 14 11:27 desk-mx6ul-l-1.0.0_mx6uldesk_lynx_usb_u-boot.img-rw-r--r-- 1 dvdk root 7056696 Apr 14 11:28 desk-mx6ul-l-1.0.0_uImage-rw-r--r-- 1 dvdk root 1152054 Apr 14 11:27 splash_image.bmpdvdk@vagrant:~/desk-mx-l$
</pre>
 
You can now run the script, by passing the following parameters:
*Device file of the microSD card (<code>/dev/sdcsdb</code> in the example)
*U-Boot image
*SPL
*Archive of the target's root file system (compressed as <code>.tar.bz2</code> file).
<pre>
dvdk@vagrant:~/desk-mx-l$ ./desk-mx6ul-l-1.0.0_mksdmksd.sh /dev/sd<x> <u-boot.img> <SPL> <binaries_dir>/ <rfs_filename>
...
...
echo 'bootscript generated with command "mkimage -A ARM -T script -C none -n DESK-MX6UL -d bootscript.txt boot.scr"'
setenv desk_release 'desk-mx6ul-l-1.0.01'
if test 0x${som_configid#} = 0x00000013 && test 0x${cb_configid#} = 0x0000002f;
8,226
edits