Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX8M-L/General/Managed Virtual Machine (MVM)

1,388 bytes removed, 18:11, 27 December 2023
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"|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"|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.0{{oldid|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"16134|Feb 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"|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" |{{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:#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:#ededed; padding:5px; color:#000000" |DESK-MX8M-L-4.0.0 release
|-
|}
* VirtualBox virtual machine (.OVA archive)
* based on Lubuntu 1620.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>/srvtftpboot/tftpdesk-mx8m-l/</code>
** NFS: configured through the <code>/etc/exports</code> file
* secondary disk containing source code and tools:
** bootloader (uU-bootBoot) 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
** password: '''dvdk'''
Please note that uU-boot 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===
As stated previously, [[ORCA SOM]] host tools are based on a [[Managed_Virtual_Machine_(MVM)|Managed Virtual Machine]]. As indicated [[ORCASOM/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.
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-reservedRA-areaDESK-xelkMX/ 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]].
=== DVDK for release 2.0.0Installing the ''meta-rc2 toolchain'' SDK ===The Virtual Machine used for the [[ORCA SOM | ORCA]] and [[MITO 8M Mini SOM | MITO 8M Mini]] SOMs is the same used for the [[DESK-MX6-L | DESK-MX6-L]] development environment. Here below you can find the simple instructions for installing the ''rc2meta toolchain'' release for is preinstalled on [[DESK-MX8M-L | /General/Release_Notes#DESK-MX8M-L]] BSP using [[L_4.0.0 | DESK-MX6MX8M-L | DESK-MX6-L4.0.0]] Virtual Machineand it is used for building U-Boot and kernel sources. It can be found in the following path.
==== Additional library ====
* <code>libssl-devel</code> is required for building the linux kernel: it is enough ot install the library in the VM
dvdk@vagrant:~/desk-mx-l/linux$ sudo apt-get install libssl-dev
==== Installing the ''meta-toolchain'' SDK ====
* open a Desktop Linux Terminal
* download the proper SDK from the mirror server <code>fsl-imx-wayland-glibc-x86_64-meta-toolchain-aarch64-desk-mx8mp-toolchain-5.4-zeus.sh</code>
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l$ ls -la /sdk$ wget http:opt/yocto/mirror.dave.eusdk/desk-mxmx8m-l/desk-mx8m-l-24.0.0-rc2/fsltotal 40drwxr-imxxr-waylandx 3 root root 4096 Jul 24 14:12 .drwxr-glibcxr-x86_64-meta-toolchain-aarch64-desk-mx8mp-toolchain-5x 3 root root 4096 Jul 24 14:11 .4-zeus.sh-rw-2022r-02-14 16:09:59r-- 1 root root http4253 Jul 24 14://mirror.dave.eu/desk11 environment-mxsetup-l/deskarmv8a-mx8mpoky-llinux-2.0.0rw-rc2/fslr-imx-waylandr-glibc-x86_641 root root 14027 Jul 24 14:11 site-metaconfig-toolchainarmv8a-aarch64poky-desklinuxdrwxr-mx8mpxr-toolchain-5.x 4-zeus.shResolving mirror.dave.eu (mirror.dave.eu)... 79.143.179.155Connecting to mirror.dave.eu (mirror.dave.eu)|79.143.179.155|root root 4096 Jul 24 14:80... connected.HTTP request sent, awaiting response... 200 OK11 sysrootsLength: 445468102 (425M) [text/x-sh]Saving to: ‘fslrw-imxr-wayland-glibcr-x86_64-meta1 root root 141 Jul 24 14:11 version-toolchainarmv8a-aarch64poky-linuxdvdk@vagrant:~/desk-mx8mpmx-toolchain-5.4-zeus.sh’l$ fsl-imx-wayland-glibc-x86_64-meta-toolchain-aar 100%[=======================================================================================================</pre>] 424.83M 639KB/s in 8m 54s
2022The installation script can be found in <code>/home/dvdk/desk-02mx-14 16:18:54 (815 KBl/s) - ‘fsl-imx-wayland-glibc-x86_64-meta-toolchain-aarch64-desk-mx8mpmx8m-toolchainl-54.0.40_meta-zeustoolchain.sh’ saved [445468102sh</445468102]code>. In case reinstallation would be need, execute following commands.
dvdk@vagrant:~/desk-mx-l/sdk$
</pre>
* the ''sdk'' recommended installation directory is <code>desk-mx-l/sdk</code>
* directory listing before installing the new SDK
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/sdk$ pwd
/home/dvdk/desk-mx-l/sdk
dvdk@vagrant:~/desk-mx-l/sdk$ ls -la
total 16
drwxr-xr-x 4 dvdk dvdk 4096 Apr 9 2021 .
drwxr-xr-x 6 dvdk dvdk 4096 Apr 9 2021 ..
drwxr-xr-x 3 root root 4096 Apr 9 2021 desk-mx6-l-1.0.0
drwxr-xr-x 3 root root 4096 Apr 9 2021 desk-mx6-l-1.0.0-toolchain
lrwxrwxrwx 1 root root 41 Apr 9 2021 latest_desk-mx6-l -> /home/dvdk/desk-mx-l/sdk/desk-mx6-l-1.0.0
lrwxrwxrwx 1 root root 51 Apr 9 2021 latest_desk-mx6-l-toolchain -> /home/dvdk/desk-mx-l/sdk/desk-mx6-l-1.0.0-toolchain
dvdk@vagrant:~/desk-mx-l/sdk$
</pre>
* SDK installation
<pre class="workstation-terminal">
dvdk@vagrant:~/$ cd desk-mx-l/sdk$ chmod 755 fsl-imx-wayland-glibc-x86_64-meta-toolchain-aarch64-desk-mx8mp-toolchain-5.4-zeus.shdvdk@vagrant:~/desk-mx-l/sdk$ ./fsldesk-imxmx8m-waylandl-glibc4.0.0_meta-x86_64toolchain.sh -metad /opt/yocto/sdk/desk-toolchain-aarch64mx8m-l/desk-mx8mpmx8m-toolchainl-54.0.40 -zeus.shyNXP i.MX Release Distro SDK installer version 5.415-zeuskirkstone======================================================Enter target directory for SDK (default: /opt/fsl-imx-wayland/5.4-zeus): /home/dvdk/desk-mx-l/sdk/desk-mx8m-l-2.0.0-rc2-toolchain======You are about to install the SDK to "/homeopt/yocto/dvdksdk/desk-mxmx8m-l/sdk/desk-mx8m-l-24.0.0-rc2-toolchain". Proceed [Y/n]? YExtracting SDK..............................................................................................................doneSetting 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.
$ . /homeopt/dvdkyocto/sdk/desk-mxmx8m-l/sdk/desk-mx8m-l-24.0.0-rc2-toolchain/environment-setup-aarch64armv8a-poky-linuxdvdk@vagrant:~/desk-mx-l/sdk$
</pre>
* create a symbolic link to === Installing the ''application'' SDK directory === ''latestapplication'' version ln -s /home/dvdk/deskSDK is preinstalled on [[DESK-mxMX8M-lL/sdkGeneral/desk-mx8mRelease_Notes#DESK-lMX8M-2L_4.0.0| DESK-rc2MX8M-toolchain latest_deskL-mx8-l-toolchain* create 4.0.0]] and it is used for building userspace application. The SDK contains the environment script headers and libraries for enabling building the toolchain (during Qt6 application. It can be found in the development phase) and make it executablefollowing path. 
<pre class="workstation-terminal">
dvdk@vagrant:~$ ls -la ~/desk-mx-l$ {> echo \# DESK/sdk/desk-MX8Mmx8m-L development environment for ul-boot4.0.0/kernel development> echo total 40drwxr-xr-x 3 dvdk dvdk 4096 Jul 24 14:27 .> echo source /home/drwxr-xr-x 3 dvdk dvdk/desk 4096 Jul 24 14:19 ..-rw-mxr-l/sdk/latest_desk-mx8r-l-toolchain/1 dvdk dvdk 4231 Jul 24 14:26 environment-setup-aarch64armv8a-poky-linux> } | tee > /home/-rw-r--r-- 1 dvdk dvdk/desk14027 Jul 24 14:26 site-mxconfig-l/deskarmv8a-mx8mpoky-llinuxdrwxr-2.0.0xr-rc2_env.shx 4 dvdk dvdk@vagrant 4096 Jul 24 14:~/desk19 sysroots-rw-r--mxr-l$ chmod 755 desk-mx8m1 dvdk dvdk 141 Jul 24 14:26 version-larmv8a-2.0.0poky-rc2_env.shlinuxdvdk@vagrant:~/desk-mx-l$
</pre>
* once installed, if required for freeing some space, the SDK file can be removed:
rm fsl-imx-waylandThe installation script can be found in <code>/home/dvdk/desk-glibc-x86_64-meta-toolchain-aarch64mx-l/desk-mx8mpmx8m-toolchainl-54.4-zeus0.0_sdk.sh</code>. In case reinstallation would be need, execute following commands.
==== Installing the ''application'' SDK ====
The previously installed SDK is used for building u-boot and kernel sources. For building userspace application another SDK has to be used: the <code>fsl-imx-wayland-glibc-x86_64-desk-image-qt5-aarch64-desk-mx8mp-toolchain-5.4-zeus.sh</code> script has been created by DAVE's Yocto building when the <code>desk-image-qt5-desk-mx8mp.tar.bz2</code> root file system has been created: it contains the SDK headers and libraries for building the Qt5 application too.
 
The same previously described operations can be followed for installing this SDK in the same directory. At the end, both SDK are installed and present into the rfs:
<pre class="workstation-terminal">
dvdk@vagrant:~/$ cd desk-mx-l/sdk$ ls -latotal 435052drwxr-xr-x 5 dvdk dvdk 4096 Feb 14 16@vagrant:38 ./drwxr-xr-x 6 dvdk dvdk 4096 Feb 14 16:36 ..~/drwxr-xr-x 3 root root 4096 Apr 9 2021 desk-mx6mx-l-1$ .0.0drwxr-xr-x 3 root root 4096 Apr 9 2021 desk-mx6-l-1.0.0-toolchaindrwxr-xr-x 3 dvdk dvdk 4096 Feb 14 16:30 /desk-mx8m-l-2.04.0-rc2drwxr-xr-x 3 dvdk dvdk 4096 Feb 14 16:30 desk-mx8m-l-2.00_sdk.0-rc2sh -toolchainlrwxrwxrwx 1 root root 41 Apr 9 2021 latest_desk-mx6-l -> d /home/dvdk/desk-mx-l/sdk/desk-mx6mx8m-l-14.0.0-ylrwxrwxrwx 1 root root 51 Apr 9 2021 latest_desk-mx6-l-toolchain -> /home/dvdk/desk-mx-l/sdk/desk-mx6-l-1NXP i.0MX Release Distro SDK installer version 5.015-toolchainkirkstone============================================================lrwxrwxrwx 1 dvdk dvdk 57 Feb 14 16:38 latest_desk-mx8-l -> You are about to install the SDK to "/home/dvdk/desk-mx-l/sdk/desk-mx8m-l-24.0.0-rc2". Proceed [Y/n]? YExtracting SDK............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................doneSetting it up...doneSDK 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.lrwxrwxrwx 1 dvdk dvdk 57 Feb 14 16:38 latest_desk-mx8-l-toolchain -> $ . /home/dvdk/desk-mx-l/sdk/desk-mx8m-l-24.0.0/environment-setup-armv8a-rc2poky-toolchainlinuxdvdk@vagrant:~/desk-mx-l/sdk$
</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-24.0.0-rc2_env0_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:MITO 8M Mini]]
8,253
edits