DESK-RZ-L/General/DVDK Virtual Machine

From DAVE Developer's Wiki
Jump to: navigation, search
History
Issue Date Notes
2025/12/16 DESK-RZ-L-1.x.x 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 ZERO platforms.

In particular, DESK-RZ-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/boot/
    • NFS: configured through the /etc/exports file
  • Disk containing source code and tools:
    • external pre-built toolchain
    • Yocto BSP for ZERO 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

Host setup[edit | edit source]

As stated previously, ZERO SOM host tools are based on a Managed Virtual Machine.

The MVM ova image can be downloaded from this link.

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

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

dvdk@vagrant:~/desk-rz-l$ ls -la /opt/yocto/sdk/desk-rz-l/desk-t2h-l-1.0.0/
total 68
drwxr-xr-x 3 root root  4096 Dec 15 11:31 .
drwxr-xr-x 3 root root  4096 Dec 15 11:29 ..
-rw-r--r-- 1 root root  4148 Dec 15 11:30 environment-setup-aarch64-poky-linux
-rw-r--r-- 1 root root  4494 Dec 15 11:30 environment-setup-armv7vet2hf-neon-vfpv4-pokymllib32-linux-gnueabi
-rw-r--r-- 1 root root 14362 Dec 15 11:30 site-config-aarch64-poky-linux
-rw-r--r-- 1 root root 14362 Dec 15 11:30 site-config-armv7vet2hf-neon-vfpv4-pokymllib32-linux-gnueabi
drwxr-xr-x 4 root root  4096 Dec 15 11:30 sysroots
-rw-r--r-- 1 root root   122 Dec 15 11:30 version-aarch64-poky-linux
-rw-r--r-- 1 root root   122 Dec 15 11:30 version-armv7vet2hf-neon-vfpv4-pokymllib32-linux-gnueabi
dvdk@vagrant:~/desk-rz-l$

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

dvdk@vagrant:~$ cd desk-rz-l/
dvdk@vagrant:~/desk-rz-l$ wget https://mirror.dave.eu/desk-rz-l/desk-rz-l-1.0.0/poky-glibc-x86_64-meta-toolchain-aarch64-desk-t2h-usd-devel-toolchain-3.1.31.sh -O meta_toolchain.sh
--2025-12-16 16:56:11--  https://mirror.dave.eu/desk-rz-l/desk-rz-l-1.0.0/poky-glibc-x86_64-meta-toolchain-aarch64-desk-t2h-usd-devel-toolchain-3.1.31.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: 163743831 (156M) [text/x-sh]
Saving to: ‘meta_toolchain.sh’

meta_toolchain.sh                                 100%[==========================================================================================================>] 156.16M  8.37MB/s    in 24s     

2025-12-16 16:56:36 (6.46 MB/s) - ‘meta_toolchain.sh’ saved [163743831/163743831]

dvdk@vagrant:~/desk-rz-l$ chmod +x meta_toolchain.sh 
dvdk@vagrant:~/desk-rz-l$ ./meta_toolchain.sh -d /opt/yocto/sdk/desk-rz-l/desk-t2h-l-1.0.0 -y
Poky (Yocto Project Reference Distro) SDK installer version 3.1.31
==================================================================
You are about to install the SDK to "/opt/yocto/sdk/desk-rz-l/desk-t2h-l-1.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-rz-l/desk-t2h-l-1.0.0/environment-setup-aarch64-poky-linux
 $ . /opt/yocto/sdk/desk-rz-l/desk-t2h-l-1.0.0/environment-setup-armv7vet2hf-neon-vfpv4-pokymllib32-linux-gnueabi

Installing the application SDK[edit | edit source]

application SDK is preinstalled on DESK-RZ-L-1.0.0 and it is used for building userspace 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/

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-rz-l$ wget https://mirror.dave.eu/desk-rz-l/desk-rz-l-1.0.0/poky-glibc-x86_64-desk-rz-image-aarch64-desk-t2h-usd-devel-toolchain-3.1.31.sh -O sdk.sh
--2025-12-16 16:59:27--  https://mirror.dave.eu/desk-rz-l/desk-rz-l-1.0.0/poky-glibc-x86_64-desk-rz-image-aarch64-desk-t2h-usd-devel-toolchain-3.1.31.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: 726603303 (693M) [text/x-sh]
Saving to: ‘sdk.sh’

sdk.sh                                            100%[==========================================================================================================>] 692.94M  11.2MB/s    in 1m 43s  

2025-12-16 17:01:10 (6.74 MB/s) - ‘sdk.sh’ saved [726603303/726603303]

dvdk@vagrant:~/desk-rz-l$ chmod +x sdk.sh 
dvdk@vagrant:~/desk-rz-l$ ./sdk.sh -d /home/dvdk/desk-rz-l/sdk/desk-rz-l-1.0.0 -y
Poky (Yocto Project Reference Distro) SDK installer version 3.1.31
==================================================================
You are about to install the SDK to "/home/dvdk/desk-rz-l/sdk/desk-rz-l-1.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-rz-l/sdk/desk-rz-l-1.0.0/environment-setup-aarch64-poky-linux
 $ . /home/dvdk/desk-rz-l/sdk/desk-rz-l-1.0.0/environment-setup-armv7vet2hf-neon-vfpv4-pokymllib32-linux-gnueabi
dvdk@vagrant:~/desk-rz-l$

Using the SDK[edit | edit source]

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

 source ~/desk-rz-l/desk-rz-l-1.0.0_sdk.sh