Changes

Jump to: navigation, search

DESK-MX9-L/General/DVDK Virtual Machine

9,716 bytes added, 30 January
Created page with "<section begin=History/> {| style="border-collapse:collapse; " !colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History |- ! style="border-l..."
<section begin=History/>
{| style="border-collapse:collapse; "
!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:#ededed; padding:5px; color:#000000" |2024/01/30
! 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-MX9-L-5.0.0 release
|-
|}
<section end=History/>

__TOC__
<section begin=Body/>


==Virtual Machine==

DAVE' standard DVDK Virtual Machine contains all the required software and documentation to start developing Linux applications on the AURA platforms. In particular, [[AURA SOM/DESK-MX9-L | 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 <code>/tftpboot/desk-mx9-l/</code>
** NFS: configured through the <code>/etc/exports</code> 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 SOM | AURA]] SOMs.

===Host setup===
As stated previously, [[AURA SOM]] host tools are based on a [[Managed_Virtual_Machine_(MVM)|Managed Virtual Machine]]. As indicated [[AURA SOM Evaluation Kit/Getting started/Unboxing#microSD_Layout|here]], microSD card delivered along with [[AURA SOM Evaluation Kit | ORCA 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 [[Accessing_DAVE_Embedded_Systems_restricted_git_repositories|this page]].

MVM can be downloaded [https://cloud.dave.eu/ws-RA-DESK-MX/ here]. For accessing <b><i>DESK Reserved area</i></b> please contact our [mailto:helpdesk@dave.eu helpdesk support channel]

To install it, please refer to [[VirtualBox_Starting_DVDK_Virtual_Machine#Using_a_.ova_file|this page]].

=== Installing the ''meta-toolchain'' SDK ===

''meta toolchain'' is preinstalled on [[DESK-MX9-L/General/Release_Notes#DESK-MX9-L_5.0.0 | 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.

<pre class="workstation-terminal">
dvdk@vagrant:~/yocto/build-wayland$ 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$
</pre>

The toolchain can be re-installed, just download it from [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 here] and install it.
Example commands to execute the reinstallation of toolchain.

<pre class="workstation-terminal">
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-mx8m-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-mx8m-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-mx8m-l/desk-mx9-l-5.0.0/environment-setup-armv8a-poky-linux
dvdk@vagrant:~/desk-mx-l$
</pre>

=== Installing the ''application'' SDK ===

''application'' SDK is preinstalled on [[DESK-MX9-L/General/Release_Notes#DESK-MX9-L_5.0.0 | 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.

<pre class="workstation-terminal">
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:~$
</pre>

The SDK can be re-installed, just download it from [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 here] and install it.
Example commands to execute the reinstallation of SDK.

<pre class="workstation-terminal">
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$
</pre>

=== Using the SDK ===
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

----

[[Category:ORCA]] [[Category:MITO 8M Mini]]
dave_user
226
edits

Navigation menu