Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Petalinux Ubuntu Development Environment

Wyatt Duberstein edited this page May 14, 2023 · 3 revisions

<< Previous Chapter | Home | Next Chapter >>

[[TOC]]

This guide will walk you through setting up an Ubuntu 18.04.4 virtual machine on Virtual Box.

Please note before you get started that you will need at least 200GB of free drive space. It's also highly recommended that your drive be an SSD for the best performance (although it will work just fine if installed on a disk drive).

Download Virtualbox and .iso installer

Create a new VM in Virtualbox

Click image

Give it a name and select your downloaded .iso file image

Click next and fill out the unattended guest OS setup image

Click next and give it 4096MB (or more) RAM and 2 processors image

Note: If you can, we suggest to give it much more RAM. It depends on your system's capabilities.

Note: We were experiencing strange stuttering of the VM when the processor count wasn't set to 2, so probably best to keep it at 2. Your results may vary.

Click next and give it at least 200 GB of hard disk space image

Petalinux and Vivado/Vitis require a LOT of drive space. We don't suggest going below that for your drive.

Here is my final configuration screen. Make sure your values are similar. image

Click finish.

Set up the VM

Start your VM if it hasn't already. You should be greeted with an install screen. It should install and configure your OS for you (unattended). image

To get auto screen resizing and native clipboard support, install the VBox_GAs. Navigate to devices -> Insert Guest Additions CD Image in Virtualbox, and click Run when it appears on the Ubuntu desktop.

image

image

Add your user to the sudoers group

su -
usermod -aG sudo <username>

Shut down the VM

Allow your VM to connect to the plugged-in CyDAQ on your PC.

In VirtualBox Manager, navigate to your VMs settings again and go to the network tab. Select Adapter 2 and enable the following settings.

  • Enable Network Adapter
  • Attached to: Host-only Adapter
  • Name: VirtualBox Host-Only Ethernet Adapter image

Note: Take note of the MAC Address under Advanced in that page. You will need it later.

Click OK and power back on the VM

Run updates

sudo apt update && sudo apt upgrade -y

Note: If you get an error like
image
comment out the last three lines of '/etc/apt/apt.conf.d/50appstream' like so
image If you ran into this error, you do need to re-run the above update commands as the update did not properly finish!

Configure your ARP table to resolve the CyDAQ's IP address to the correct interface.

sudo apt install net-tools

Ping the CyDAQ and wait for it to time out (this step is needed to populate the arp table)

ping 169.254.7.2

Note: You will need to ctrl + c to stop the ping once you see a few error messages

sudo arp -s 169.254.7.2 <mac address from earlier>

For example, mine was

sudo arp -s 169.254.7.2 08:00:27:4c:ec:f2

To verify that it's working correctly, connect a CyDAQ to your PC (with the correct firmware installed) and ping it.

ping 169.254.7.2

Next steps

You are now ready to install Vivado/Vitis and Petalinux tools!

<< Previous Chapter | Home | Next Chapter >>

Clone this wiki locally