You copied the Doc URL to your clipboard.

How do I build the model Driver Development Kit on the Windows Subsystem for Linux Ubuntu?

Information in this article applies to:

  • Linux OpenGL ES

Problem/Question

How do I build model Driver Development Kit on Windows Subsystem for Linux Ubuntu?

Scenario

The user wants to build the model Driver Developer Kit (DDK) on the Windows Subsystem for Linux Ubuntu.

Answer

The Windows Subsystem for Linux (WSL) is a Windows 10 feature that enables you to run native Linux command-line tools directly on Windows, together with your traditional Windows desktop and modern store applications. Compared with VMware and Ubuntu, it is more convenient to use WSL.

To build a model DDK on WSL Ubuntu, perform the following steps:

  1. Install the Windows Subsystem for Linux.

  2. Install a Linux distribution from the Microsoft Store on Windows 10.

  3. Install tools for the model DDK build.

  4. Pull the DDK and submodules.

  5. Pull the model libraries.

  6. Build the DDK.

  7. Run tests.

Install the Windows Subsystem for Linux

Perform the following steps:

  1. Enable the operational feature, Windows Subsystem for Linux.
    You must enable this feature before installing any Linux distribution package.

  2. Open PowerShell as an Administrator and run the following commands:

       
        PowerShell
        Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
        
  3. Restart your computer when prompted.

Install Linux distribution from Microsoft Store on Windows 10

Perform the following steps:

  1. Open the Microsoft Store.

  2. Choose your favorite Linux distribution.

  3. Select Get from the Linux distribution page.

Install tools for the model DDK build.

Enter the following commands to install the necessary tools for the model DDK build:

    sudo add-apt-repository ppa:jonathonf/python-3.6
    sudo apt-get update
    sudo apt-get install python3.6
    sudo apt-get install golang-go
    sudo apt-get install ninja-build
    sudo apt-get install python-ply
    sudo apt install gcc-5 g++5
    sudo apt-get install gnu
    sudo apt-get install tar
    sudo apt-get install subversion
    sudo apt update
    sudo apt-get install ruby-full
    sudo apt-get install cmake
	

Pull DDK and submodules

  1. Generate a key by entering the following command:
    ssh-keygen -t rsa -C "XXXX.XX@arm.com"

    This key will be written to the file id_rsa.pub. In the command, you need to replace "XXXX.XX@arm.com" with your email address.

  2. Copy the content to mpd-gerrit.cambridge.com by using the following command:
    vim ~/.ssh/id_rsa.pub

  3. Pull the DDK and submodules code by using the following commands:

    git clone ssh://mpd-gerrit.cambridge.arm.com:29418/midgard_sw/driver.git
    git submodule update --recursive --init
    	

Pull the model libraries

Enter the following command:

./bldsys/git_binaries.py -u
	

You might need to manually add --username --password to the file git_binaries.py.

Build the DDK

Enter the following commands:

cd product
BUILDDIR=$OUT bldsys/bootstrap_linux.bash
$OUT/config unit.config model64.config GPU_G76=y CL=n
$OUT/buildme

It sometimes takes about two hours to build LLVM code.

Run tests

Perform the following steps:

  1. Enter the following commands:

    cd BILDDIR/install/lib
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`
    cd ../bin
    
  2. Run test libraries in the ../bin directory.

Workaround

N/A

Example

N/A

Related Information

N/A

Was this page helpful? Yes No