Difference between revisions of "DESK-MX8M-L/General/Managed Virtual Machine (MVM)"

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "{{subst:DVDK_Virtual_Machine | nome-som=ORCA | kit-code=MX8M}}")
 
 
(24 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
 
!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"|Version
 
 
!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"|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:#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"|X.Y.Z
+
|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|16134|2022/02/17}}
|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"|Month Year
+
|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-MX8M-L release
|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"|TBD
 
 
|-
 
|-
 +
| 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|17536|2023/02/24}}
 +
| 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" |DESK-MX8M-L-2.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:#edf8fb; padding:5px; color:#000000"|[TBD_link X.Y.Z]
+
! 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" |2023/08/22
|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"|Month Year
+
! 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-MX8M-L-4.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:#edf8fb; padding:5px; color:#000000"|TBD
 
 
|-
 
|-
 
|}
 
|}
Line 25: Line 24:
 
==Virtual Machine==
 
==Virtual Machine==
  
[[DESK-MX8M-L]] contains all the required software and documentation to start developing Linux application on the ORCA platform. In particular, [[ORCA SOM/DESK-MX8M-L | DESK-MX8M-L]] provides a virtual machine, called DVDK, with the following features:
+
DAVE' standard DVDK Virtual Machine contains all the required software and documentation to start developing Linux applications on the ORCA and MITO 8M Mini platforms. In particular, [[ORCA SOM/DESK-MX8M-L | DESK-MX8M-L]] provides a virtual machine, called DVDK, with the following features:
  
 
* VirtualBox virtual machine (.OVA archive)
 
* VirtualBox virtual machine (.OVA archive)
* based on Lubuntu 16.04 LTS (64-bit version)
+
* based on Lubuntu 20.04 LTS (64-bit version)
 
* pre-installed VirtualBox Guest Additions
 
* pre-installed VirtualBox Guest Additions
 
* LXDE desktop environment
 
* LXDE desktop environment
 
* boot disk with the distro and pre-configured basic Linux services:
 
* boot disk with the distro and pre-configured basic Linux services:
** TFTP: with base directory <code>/srv/tftp/</code>
+
** TFTP: with base directory <code>/tftpboot/desk-mx8m-l/</code>
 
** NFS: configured through the <code>/etc/exports</code> file
 
** NFS: configured through the <code>/etc/exports</code> file
 
* secondary disk containing source code and tools:
 
* secondary disk containing source code and tools:
** bootloader (u-boot) source tree cloned from DAVE Embedded Systems public git repository  
+
** 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
 
** Linux kernel source tree cloned from DAVE Embedded Systems public git repository
 
** external pre-built toolchain
 
** external pre-built toolchain
** Yocto BSP for [[ORCA SOM]]
+
** Yocto BSP for [[ORCA SOM]] and [[MITO 8M Mini SOM]]
 
* pre-installed Yocto-based root file systems with setup scripts, makefiles, example applications, ...
 
* 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)
 
* 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)
Line 44: Line 43:
 
** password: '''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 [[ORCA SOM]].
+
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 [[ORCA SOM | ORCA]] and [[MITO 8M Mini SOM | MITO 8M Mini]] SOMs.
  
 
===Host setup===
 
===Host setup===
As stated previously, [[ORCA SOM]] host tools are based on a [[Managed_Virtual_Machine_(MVM)|Managed Virtual Machine]]. As indicated [[ORCA/ORCA Evaluation Kit/Getting started/Unboxing#microSD_Layout|here]], microSD card delivered along with [[ORCA SOM/ORCA Evaluation Kit | ORCA Evaluation Kit]] includes basic version of MVM that is the default option.
+
As stated previously, [[ORCA SOM]] host tools are based on a [[Managed_Virtual_Machine_(MVM)|Managed Virtual Machine]]. As indicated [[ORCA SOM/ORCA Evaluation Kit/Getting started/Unboxing#microSD_Layout|here]], microSD card delivered along with [[ORCA SOM/ORCA 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.
 
Please follows the README file on the SD card to extract the ''*.ova'' archive and to install the MVM.
Line 53: Line 52:
 
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]].
 
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-reserved-area-xelk/ here]. For accessing <b><i>DESK Reserved area</i></b> please contact our [mailto:helpdesk@dave.eu helpdesk support channel]
+
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]].
 
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-MX8M-L/General/Release_Notes#DESK-MX8M-L_4.0.0 | DESK-MX8M-L-4.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:~/desk-mx-l$ ls -la /opt/yocto/sdk/desk-mx8m-l/desk-mx8m-l-4.0.0/
 +
total 40
 +
drwxr-xr-x 3 root root  4096 Jul 24 14:12 .
 +
drwxr-xr-x 3 root root  4096 Jul 24 14:11 ..
 +
-rw-r--r-- 1 root root  4253 Jul 24 14:11 environment-setup-armv8a-poky-linux
 +
-rw-r--r-- 1 root root 14027 Jul 24 14:11 site-config-armv8a-poky-linux
 +
drwxr-xr-x 4 root root  4096 Jul 24 14:11 sysroots
 +
-rw-r--r-- 1 root root  141 Jul 24 14:11 version-armv8a-poky-linux
 +
dvdk@vagrant:~/desk-mx-l$
 +
</pre>
 +
 +
The installation script can be found in <code>/home/dvdk/desk-mx-l/desk-mx8m-l-4.0.0_meta-toolchain.sh</code>. In case reinstallation would be need, execute following commands.
 +
 +
<pre class="workstation-terminal">
 +
dvdk@vagrant:~$ cd desk-mx-l/
 +
dvdk@vagrant:~/desk-mx-l$ ./desk-mx8m-l-4.0.0_meta-toolchain.sh -d /opt/yocto/sdk/desk-mx8m-l/desk-mx8m-l-4.0.0 -y
 +
NXP i.MX Release Distro SDK installer version 5.15-kirkstone
 +
============================================================
 +
You are about to install the SDK to "/opt/yocto/sdk/desk-mx8m-l/desk-mx8m-l-4.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-mx8m-l-4.0.0-rc2/environment-setup-armv8a-poky-linux
 +
dvdk@vagrant:~/desk-mx-l$
 +
</pre>
 +
 +
=== Installing the ''application'' SDK ===
 +
 +
''application'' SDK is preinstalled on [[DESK-MX8M-L/General/Release_Notes#DESK-MX8M-L_4.0.0 | DESK-MX8M-L-4.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:~$ ls -la ~/desk-mx-l/sdk/desk-mx8m-l-4.0.0/
 +
total 40
 +
drwxr-xr-x 3 dvdk dvdk  4096 Jul 24 14:27 .
 +
drwxr-xr-x 3 dvdk dvdk  4096 Jul 24 14:19 ..
 +
-rw-r--r-- 1 dvdk dvdk  4231 Jul 24 14:26 environment-setup-armv8a-poky-linux
 +
-rw-r--r-- 1 dvdk dvdk 14027 Jul 24 14:26 site-config-armv8a-poky-linux
 +
drwxr-xr-x 4 dvdk dvdk  4096 Jul 24 14:19 sysroots
 +
-rw-r--r-- 1 dvdk dvdk  141 Jul 24 14:26 version-armv8a-poky-linux
 +
dvdk@vagrant:~$
 +
</pre>
 +
 +
The installation script can be found in <code>/home/dvdk/desk-mx-l/desk-mx8m-l-4.0.0_sdk.sh</code>. In case reinstallation would be need, execute following commands.
 +
 +
<pre class="workstation-terminal">
 +
dvdk@vagrant:~$ cd desk-mx-l/
 +
dvdk@vagrant:~/desk-mx-l$ ./desk-mx8m-l-4.0.0_sdk.sh -d /home/dvdk/desk-mx-l/sdk/desk-mx8m-l-4.0.0 -y
 +
NXP i.MX Release Distro SDK installer version 5.15-kirkstone
 +
============================================================
 +
You are about to install the SDK to "/home/dvdk/desk-mx-l/sdk/desk-mx8m-l-4.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.
 +
$ . /home/dvdk/desk-mx-l/sdk/desk-mx8m-l-4.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 /home/dvdk/desk-mx-l/desk-mx8m-l-4.0.0_env.sh
 +
 +
=== MITO 8M Mini SDK ===
 +
[[MITO 8M Mini SOM| MITO 8M Mini]] has the same 4-cores Cortex-A53 architecture: even if Yocto builds two SDK, it is possible to install and use the previously described/used SDK file for both SOM modules/architectures.
  
 
----
 
----
  
[[Category:ORCA]]
+
[[Category:ORCA]] [[Category:MITO 8M Mini]]

Latest revision as of 18:11, 27 December 2023

History
Issue Date Notes

2022/02/17

First DESK-MX8M-L release

2023/02/24

DESK-MX8M-L-2.0.0 release
2023/08/22 DESK-MX8M-L-4.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 ORCA and MITO 8M Mini platforms. In particular, DESK-MX8M-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-mx8m-l/
    • NFS: configured through the /etc/exports file
  • secondary 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 ORCA SOM and MITO 8M Mini 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 ORCA and MITO 8M Mini SOMs.

Host setup[edit | edit source]

As stated previously, ORCA SOM host tools are based on a Managed Virtual Machine. As indicated here, microSD card delivered along with 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 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-MX8M-L-4.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-mx8m-l/desk-mx8m-l-4.0.0/
total 40
drwxr-xr-x 3 root root  4096 Jul 24 14:12 .
drwxr-xr-x 3 root root  4096 Jul 24 14:11 ..
-rw-r--r-- 1 root root  4253 Jul 24 14:11 environment-setup-armv8a-poky-linux
-rw-r--r-- 1 root root 14027 Jul 24 14:11 site-config-armv8a-poky-linux
drwxr-xr-x 4 root root  4096 Jul 24 14:11 sysroots
-rw-r--r-- 1 root root   141 Jul 24 14:11 version-armv8a-poky-linux
dvdk@vagrant:~/desk-mx-l$

The installation script can be found in /home/dvdk/desk-mx-l/desk-mx8m-l-4.0.0_meta-toolchain.sh. In case reinstallation would be need, execute following commands.

dvdk@vagrant:~$ cd desk-mx-l/
dvdk@vagrant:~/desk-mx-l$ ./desk-mx8m-l-4.0.0_meta-toolchain.sh -d /opt/yocto/sdk/desk-mx8m-l/desk-mx8m-l-4.0.0 -y
NXP i.MX Release Distro SDK installer version 5.15-kirkstone
============================================================
You are about to install the SDK to "/opt/yocto/sdk/desk-mx8m-l/desk-mx8m-l-4.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-mx8m-l-4.0.0-rc2/environment-setup-armv8a-poky-linux
dvdk@vagrant:~/desk-mx-l$

Installing the application SDK[edit | edit source]

application SDK is preinstalled on DESK-MX8M-L-4.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:~$ ls -la ~/desk-mx-l/sdk/desk-mx8m-l-4.0.0/
total 40
drwxr-xr-x 3 dvdk dvdk  4096 Jul 24 14:27 .
drwxr-xr-x 3 dvdk dvdk  4096 Jul 24 14:19 ..
-rw-r--r-- 1 dvdk dvdk  4231 Jul 24 14:26 environment-setup-armv8a-poky-linux
-rw-r--r-- 1 dvdk dvdk 14027 Jul 24 14:26 site-config-armv8a-poky-linux
drwxr-xr-x 4 dvdk dvdk  4096 Jul 24 14:19 sysroots
-rw-r--r-- 1 dvdk dvdk   141 Jul 24 14:26 version-armv8a-poky-linux
dvdk@vagrant:~$

The installation script can be found in /home/dvdk/desk-mx-l/desk-mx8m-l-4.0.0_sdk.sh. In case reinstallation would be need, execute following commands.

dvdk@vagrant:~$ cd desk-mx-l/
dvdk@vagrant:~/desk-mx-l$ ./desk-mx8m-l-4.0.0_sdk.sh -d /home/dvdk/desk-mx-l/sdk/desk-mx8m-l-4.0.0 -y
NXP i.MX Release Distro SDK installer version 5.15-kirkstone
============================================================
You are about to install the SDK to "/home/dvdk/desk-mx-l/sdk/desk-mx8m-l-4.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.
 $ . /home/dvdk/desk-mx-l/sdk/desk-mx8m-l-4.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 /home/dvdk/desk-mx-l/desk-mx8m-l-4.0.0_env.sh

MITO 8M Mini SDK[edit | edit source]

MITO 8M Mini has the same 4-cores Cortex-A53 architecture: even if Yocto builds two SDK, it is possible to install and use the previously described/used SDK file for both SOM modules/architectures.