Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
! colspan="4" style="width:100%; text-align:left" ; border-bottom:solid 2px #ededed" |History
|-
! 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" |ID#
! 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" |Issue Date
! 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" |{{oldid|14119|14119}}| 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" |162021/07/202116}}
| 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
|-
! | style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededededf8fb; padding:5px; color:#000000" |{{oldid|16989|169892022/03/04}}! | style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededededf8fb; padding:5px; color:#000000" |04/03/2022! style="borderDESK-left:solid 2px #73B2C7; borderMX6-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |DESK L 3.0.0 release
|-
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |TBD2023/04/202327! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |DESK -MX6-L 4.0.0 release
|-
|}
*a 32 GB microSD card [1]
*a USB SD card reader
*the binary files delivered along with the [[DESK-MX6-L/General/Release_Notes#Downloadable_binary_images_2Downloadable_binary_images|DESK-MX6-L 4.0.0]].
The resulting card is partitioned as depicted here below:
mkfs.vfat -F 32 -n BOOT "$DRIVE$PART"1 #> /dev/null
mkfs.ext3 -F -L ROOTFS "$DRIVE$PART"2 #> /dev/null
 
# wait for the VM to recognize the uSD
sleep 60
echo "[Copying files...]"
Here is an example that shows how to use this script. We use here files delivered with [[DESK-MX6-L/General/Release_Notes#Downloadable_binary_images_2Downloadable_binary_images|DESK-MX6-L 34.0.0]] release. Before invoking the script, the following files has to be renamed in order to make them compatible with the default U-Boot environment variables:
* bootscript: <code>boot.scr</code>
* splash image: <code>splash_image.bmp</code>
* Linux kernel: <code>desk-mx6-l-4.0.0_uImage</code>
* Device tree blob: <code>desk-mx6-l-4.0.0_imx6dl-sbcx-cb0012.dtb</code>.
 
In the case of you don't have some file on MVM, please download it from [https://mirror.dave.eu/desk-mx-l/ mirror.dave.eu].
We will copy them into <code>~/desk-mx-l/desk</code> directory. Needed binary files can be found on <code>MVM</code> in the following location:
<pre>
dvdk@vagrant:~$ ll /tftpboot/desk-mxmx6-l/
total 11360
drwxr-xr-x 2 dvdk root 4096 Apr 3 17:57 ./
-rw-r--r-- 1 dvdk root 8038640 Apr 3 17:38 desk-mx6-l-4.0.0_uImage
-rw-r--r-- 1 dvdk root 1152054 Apr 3 17:38 splash_image.bmp
dvdk@vagrant:~$ ll ~/desk-mx-l/desk-mx6-l-4.0.0-rc1_boot0_boot.scr
-rw-rw-r-- 1 dvdk dvdk 1556 Apr 3 17:57 /home/dvdk/desk-mx-l/desk-mx6-l-4.0.0_boot.scr
dvdk@vagrant:~$ mkdir -p ~/desk-mx-l/desk/
dvdk@vagrant:~$ cp /tftpboot/desk-mxmx6-l/desk-mx6-l-4.0.0_uImage ~/desk-mx-l/desk/desk-mx6-l-4.0.0_uImagedvdk@vagrant:~$ cp /tftpboot/desk-mxmx6-l/desk-mx6-l-4.0.0_imx6dl-sbcx-cb0012.dtb ~/desk-mx-l/desk/desk-mx6-l-4.0.0_imx6dl-sbcx-cb0012.dtb
dvdk@vagrant:~$ cp ~/desk-mx-l/desk-mx6-l-4.0.0_boot.scr ~/desk-mx-l/desk/boot.scr
dvdk@vagrant:~$ cp /tftpboot/desk-mxmx6-l/splash_image.bmp ~/desk-mx-l/desk/dvdk@vagrant:~$ cp ~/desk-mx-l/rfs/desk-mx6-l-4.0.0_modules.tar.gz ~/desk-mx-l/desk/
</pre>
<pre>
dvdk@vagrant:~/desk-mx-l$ umount /dev/sdb*
dvdk@vagrant:~/desk-mx-l$ sudo ./desk-mx6-l-4.0.0_mksd.sh /dev/sdb /tftpboot/desk-mxmx6-l/desk-mx6-l-4.0.0_mx6qdldesk_u-boot.img /tftpboot/desk-mxmx6-l/desk-mx6-l-4.0.0_mx6qdldesk_SPL ~/desk-mx-l/desk ./rfs/desk-mx6-l-4.0.0_desk-image-qt6-desk-mx6.tar.bz2
All data on /dev/sdb now will be destroyed! Continue? [y/n]
y
<pre>
echo 'bootscript generated with command "mkimage -A ARM -T script -C none -n DESK-MX6-L -d bootscript.txt boot.scr"'
setenv desk_release 'desk-mx6-l-4.0.0'
if test 0x${cb_configid#} = 0x000000120x00000002;
then
if test ${cpu} = 6DL; then setenv fdtfile ${desk_release}_imx6dl-sbcx-cb0012.dtb else setenv fdtfile ${desk_release}_imx6q-sbcx-cb0012.dtb fielif test 0x${cb_configid#} = 0x000000130x00000003;
then
if test ${cpu} = 6DL; then setenv fdtfile ${desk_release}_imx6dl-sbcx-cb0013cb0003.dtb else setenv fdtfile ${desk_release}_imx6q-sbcx-cb0013cb0003.dtb fielif test 0x${cb_configid#} = 0x000000010x00000012;
then
if test ${cpu} = 6DL; then setenv fdtfile ${desk_release}_imx6dl-xelksbcx-lcb0012.dtb else setenv fdtfile ${desk_release}_imx6q-xelksbcx-lcb0012.dtb fielif test 0x${cb_configid#} = 0x000000180x00000013;
then
if test ${cpu} = 6DL; then setenv fdtfile ${desk_release}_imx6dl-sbcx-cb0018cb0013.dtb else setenv fdtfile ${desk_release}_imx6q-sbcx-cb0013.dtb fielif test 0x${cb_configid#} = 0x000000500x00000077;
then
if test ${cpu} = 6DL; then setenv fdtfile ${desk_release}_imx6dl-sbcx-cb0050cb0077.dtb else setenv fdtfile ${desk_release}_imx6q-sbcx-cb0077.dtb fielif test 0x${cb_configid#} = 0x000000550x00000001;
then
if test ${cpu} = 6DL; then setenv fdtfile ${desk_release}_imx6dl-sbcxxelk-l.dtb else setenv fdtfile ${desk_release}_imx6q-xelk-cb0055l.dtb fi
elif test 0x${cb_configid#} = 0xffffffff;
then
setenv fdtfile ${desk_release}_imx6q-xelk-l-2-0-0.dtb
else
echo Invalid CB! Autoreset ...
sleep 30
reset
fi
setenv bootfile ${desk_release}_uImageuImage
setenv mmc_loadk 'fatload mmc ${mmcdev}:1 ${loadaddr} ${bootfile}'
setenv mmc_loadfdt 'fatload mmc ${mmcdev}:1 ${fdtaddr} ${fdtfile}'
echo Booting DESK-MX6-L via mmcboot with ${fdtfile} as device tree
run mmcboot
Then copy the ''boot.scr'' into the <code><binaries_dir></code> directories used by the script to create the SD card.
 
===Install Module===
 
To install kernel modules, follow the steps below.
 
<pre>
root@desk-mx6:~# sudo mount /dev/mmcblk0p1 /media
root@desk-mx6:~# tar xvzf /media/desk-mx6-l-4.0.0_modules.tar.gz -C /
</pre>
 
After installation, run the following command to verify that the installation was successful:
 
<pre>
root@desk-mx6:~# ls -l /lib/modules/$(uname -r)
total 304
lrwxrwxrwx 1 541 502 63 Apr 3 2023 build -> /home/jenkins/workspace/workspace/DESK-MX6-L-4.x.x_Linux-kernel
drwxr-xr-x 6 541 502 4096 Apr 3 2023 kernel
-rw-r--r-- 1 541 502 2812 Apr 3 2023 modules.alias
-rw-r--r-- 1 541 502 4926 Apr 3 2023 modules.alias.bin
-rw-r--r-- 1 541 502 15368 Apr 3 2023 modules.builtin
-rw-r--r-- 1 541 502 35496 Apr 3 2023 modules.builtin.alias.bin
-rw-r--r-- 1 541 502 17986 Apr 3 2023 modules.builtin.bin
-rw-r--r-- 1 541 502 107589 Apr 3 2023 modules.builtin.modinfo
-rw-r--r-- 1 541 502 10767 Apr 3 2023 modules.dep
-rw-r--r-- 1 541 502 21773 Apr 3 2023 modules.dep.bin
-rw-r--r-- 1 541 502 0 Apr 3 2023 modules.devname
-rw-r--r-- 1 541 502 8733 Apr 3 2023 modules.order
-rw-r--r-- 1 541 502 85 Apr 3 2023 modules.softdep
-rw-r--r-- 1 541 502 16970 Apr 3 2023 modules.symbols
-rw-r--r-- 1 541 502 23964 Apr 3 2023 modules.symbols.bin
lrwxrwxrwx 1 541 502 63 Apr 3 2023 source -> /home/jenkins/workspace/workspace/DESK-MX6-L-4.x.x_Linux-kernel
</pre>
 
=== Attention !===
8,226
edits