DESK-MX9-L/General/DVDK Virtual Machine

From DAVE Developer's Wiki
Jump to: navigation, search
History
Issue Date Notes
2024/01/30 DESK-MX9-L-5.0.0 release



Virtual Machine[edit | edit source]

DAVE' standard DVDK Virtual Machine contains all the required software and documentation to start developing Linux applications on the AURA platforms. In particular, DESK-MX9-L provides a virtual machine, called DVDK, with the following features:

  • VirtualBox virtual machine (.OVA archive)
  • based on Lubuntu 20.04 LTS (64-bit version)
  • pre-installed VirtualBox Guest Additions
  • LXDE desktop environment
  • boot disk with the distro and pre-configured basic Linux services:
    • TFTP: with base directory /tftpboot/desk-mx9-l/
    • NFS: configured through the /etc/exports file
  • Disk containing source code and tools:
    • bootloader (U-Boot) source tree cloned from DAVE Embedded Systems public git repository
    • Linux kernel source tree cloned from DAVE Embedded Systems public git repository
    • external pre-built toolchain
    • Yocto BSP for AURA SOM
  • pre-installed Yocto-based root file systems with setup scripts, makefiles, example applications, ...
  • administrator account (dvdk) with autologin. Please note that the user account credentials are provided with the development kit (you can find them in the README file contained in the sw/dvdk folder of the kit distribution)
    • user: dvdk
    • password: dvdk

Please note that U-Boot and kernel source trees are derived from the official trees released by NXP/Freescale; these trees have been customized to add support for the AURA SOMs.

Host setup[edit | edit source]

As stated previously, AURA SOM host tools are based on a Managed Virtual Machine. As indicated here, microSD card delivered along with AURA Evaluation Kit includes basic version of MVM that is the default option.

Please follows the README file on the SD card to extract the *.ova archive and to install the MVM.

It is also worth remembering that access to git repositories is required to download target source code. To enable it, please refer to this page.

MVM can be downloaded here. For accessing DESK Reserved area please contact our helpdesk support channel

To install it, please refer to this page.

Installing the meta-toolchain SDK[edit | edit source]

meta toolchain is preinstalled on DESK-MX9-L-5.0.0 and it is used for building U-Boot and kernel sources. It can be found in the following path.

dvdk@vagrant:~/desk-mx-l$ls -la /opt/yocto/sdk/desk-mx9-l/desk-mx9-l-5.0.0/
total 36
drwxr-xr-x 3 root root  4096 Jan 26 11:00 .
drwxr-xr-x 3 root root  4096 Jan 26 11:04 ..
-rw-r--r-- 1 root root  4309 Jan 26 11:00 environment-setup-armv8a-poky-linux
-rw-r--r-- 1 root root 12016 Jan 26 11:00 site-config-armv8a-poky-linux
drwxr-xr-x 4 root root  4096 Jan 26 11:00 sysroots
-rw-r--r-- 1 root root   141 Jan 26 11:00 version-armv8a-poky-linux
dvdk@vagrant:~/desk-mx-l$

The toolchain can be re-installed, just download it from here and install it. Example commands to execute the reinstallation of toolchain.

dvdk@vagrant:~$ cd desk-mx-l/
dvdk@vagrant:~/desk-mx-l$ wget https://mirror.dave.eu/desk-mx-l/desk-mx9-l-5.0.0/fsl-imx-wayland-glibc-x86_64-meta-toolchain-armv8a-desk-mx93-toolchain-6.1-mickledore.sh -O meta_toolchain.sh
--2024-01-30 15:25:34--  https://mirror.dave.eu/desk-mx-l/desk-mx9-l-5.0.0/fsl-imx-wayland-glibc-x86_64-meta-toolchain-armv8a-desk-mx93-toolchain-6.1-mickledore.sh
Resolving mirror.dave.eu (mirror.dave.eu)... 84.46.251.143
Connecting to mirror.dave.eu (mirror.dave.eu)|84.46.251.143|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 139078250 (133M) [text/x-sh]
Saving to: ‘meta_toolchain.sh’

meta_toolchain.sh                                  100%[==============================================================================================================>] 132.63M  11.3MB/s    in 13s     

2024-01-30 15:25:47 (10.2 MB/s) - ‘meta_toolchain.sh’ saved [139078250/139078250]

dvdk@vagrant:~/desk-mx-l$ chmod +x meta_toolchain.sh 
dvdk@vagrant:~/desk-mx-l$ ./meta_toolchain.sh -d /opt/yocto/sdk/desk-mx9-l/desk-mx9-l-5.0.0 -y
NXP i.MX Release Distro SDK installer version 6.1-mickledore
============================================================
You are about to install the SDK to "/opt/yocto/sdk/desk-mx9-l/desk-mx9-l-5.0.0". Proceed [Y/n]? Y
Extracting SDK..............................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /opt/yocto/sdk/desk-mx9-l/desk-mx9-l-5.0.0/environment-setup-armv8a-poky-linux
dvdk@vagrant:~/desk-mx-l$

Installing the application SDK[edit | edit source]

application SDK is preinstalled on DESK-MX9-L-5.0.0 and it is used for building userspace application. The SDK contains the headers and libraries for building the Qt6 application. It can be found in the following path.

dvdk@vagrant:~/desk-mx-l$ ls -la ~/desk-mx-l/sdk/desk-mx9-l-5.0.0/
total 40
drwxr-xr-x 3 root root  4096 Jan 26 10:59 .
drwxr-xr-x 3 dvdk dvdk  4096 Jan 26 11:04 ..
-rw-r--r-- 1 root root  1989 Jan 26 10:59 buildinfo
-rw-r--r-- 1 root root  4298 Jan 26 10:59 environment-setup-armv8a-poky-linux
-rw-r--r-- 1 root root 12016 Jan 26 10:59 site-config-armv8a-poky-linux
drwxr-xr-x 4 root root  4096 Jan 26 10:54 sysroots
-rw-r--r-- 1 root root   141 Jan 26 10:59 version-armv8a-poky-linux
dvdk@vagrant:~$

The SDK can be re-installed, just download it from here and install it. Example commands to execute the reinstallation of SDK.

dvdk@vagrant:~$ cd desk-mx-l/
dvdk@vagrant:~/desk-mx-l$ wget https://mirror.dave.eu/desk-mx-l/desk-mx9-l-5.0.0/fsl-imx-wayland-glibc-x86_64-desk-image-qt6-armv8a-desk-mx93-toolchain-6.1-mickledore.sh -O sdk.sh
--2024-01-30 15:33:00--  https://mirror.dave.eu/desk-mx-l/desk-mx9-l-5.0.0/fsl-imx-wayland-glibc-x86_64-desk-image-qt6-armv8a-desk-mx93-toolchain-6.1-mickledore.sh
Resolving mirror.dave.eu (mirror.dave.eu)... 84.46.251.143
Connecting to mirror.dave.eu (mirror.dave.eu)|84.46.251.143|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3614508682 (3.4G) [text/x-sh]
Saving to: ‘sdk.sh’

sdk.sh                                             100%[==============================================================================================================>]   3.37G  5.50MB/s    in 6m 23s  

2024-01-30 15:39:22 (9.01 MB/s) - ‘sdk.sh’ saved [3614508682/3614508682]

dvdk@vagrant:~/desk-mx-l$ chmod +x sdk.sh 
dvdk@vagrant:~/desk-mx-l$ ./sdk.sh -d /home/dvdk/desk-mx-l/sdk/desk-mx9-l-5.0.0 -y
NXP i.MX Release Distro SDK installer version 6.1-mickledore
============================================================
The directory "/home/dvdk/desk-mx-l/sdk/desk-mx9-l-5.0.0" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed [y/N]? Y
Extracting SDK.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /home/dvdk/desk-mx-l/sdk/desk-mx9-l-5.0.0/environment-setup-armv8a-poky-linux
dvdk@vagrant:~/desk-mx-l$

Using the SDK[edit | edit source]

Anytime it is required to compile u-boot or kernel sources, it is enough to enabling it using the script:

 source ~/desk-mx-l/desk-mx9-l-5.0.0_env.sh