-
Notifications
You must be signed in to change notification settings - Fork 1
Petalinux Ubuntu Development Environment
<< 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).
Click 
Give it a name and select your downloaded .iso file 
Click next and fill out the unattended guest OS setup 
Click next and give it 4096MB (or more) RAM and 2 processors 
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 
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. 
Click finish.
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). 
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.


su -usermod -aG sudo <username>Shut down the VM
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
Note: Take note of the MAC Address under
Advancedin that page. You will need it later.
Click OK and power back on the VM
sudo apt update && sudo apt upgrade -yNote: If you get an error like
comment out the last three lines of '/etc/apt/apt.conf.d/50appstream' like so
If you ran into this error, you do need to re-run the above update commands as the update did not properly finish!
sudo apt install net-toolsPing the CyDAQ and wait for it to time out (this step is needed to populate the arp table)
ping 169.254.7.2Note: 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:f2To verify that it's working correctly, connect a CyDAQ to your PC (with the correct firmware installed) and ping it.
ping 169.254.7.2You are now ready to install Vivado/Vitis and Petalinux tools!

If you ran into this error, you do need to re-run the above update commands as the update did not properly finish!