Professional Documents
Culture Documents
Tauseef Indikar
Cyclone V - Altera DE-1 SoC
Get Ubuntu
Download a clean copy of Ubuntu from
http://xillybus.com/downloads/xillinux-1.1-sockit.img.gz
extract and burn image onto sdcard using win32diskimager (on Windows) or dd (on Ubuntu)
Copy soc_system.rbf (attached below) to the fat partition which contains uImage & socfpga.dtb
soc_system.rbf
Important: Expand the size of the root partition to fit your sdcard size by using resize in gparted on Ubuntu VM
The image on terasic.com does not have a clean kernel and it does not contain UVC drivers or V4L2 library
Connection
Use Teraterm or Putty on windows or minicom on Ubuntu with the settings as:
Flow Control: None
Parity:None
BaudRate: 57600
DataBits:8
StopBits:1
UserName=tauseef
root@localhost:~#
root@localhost:~#
root@localhost:~#
root@localhost:~#
root@localhost:~#
DeviceHostName=cyclonev
passwd
hostname cyclonev && echo cyclonev >/etc/hostname
echo '127.0.0.1 localhost localhost.localdomain cyclonev' >/etc/hosts
adduser tauseef
adduser tauseef sudo
Verify connection
tauseef@cyclonev:~$ ping google.com
#You might need to reconfigure network in /etc/network/interfaces to use eth0 as dhcp after upgrade
Install Camorama
tauseef@cyclonev:~$ sudo apt-get install camorama
Install OpenCV
#Install Dependencies
sudo apt-get install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev
libavformat-dev libswscale-dev python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev
libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev -y
#Make Installation
make j2 #change this number to the number of cores in your processor to install faster
VirtualBox Ubuntu
VirtualBox Settings
Install VirtualBox Extension Pack for your version of VirtualBox
Goto Settings ->Devices
Choose USB3.0 (xHCI) Controller and Add Logitech, Inc. WebCam C200 [0009] to filters as shown below
# Install additions
# cp /media/username/VBOXADDITIONS_version/VBoxLinuxAdditions.run /tmp
# chmod 777 /tmp/VBoxLinuxAdditions.run
# /tmp/VBoxLinuxAdditions.run
# Reboot
# reboot
Mount device on VM
You can use DeviceHostName.local or DeviceIPAddress to connect if hostname is not resolved.
Files - > Connect to server -> ssh://tauseef@cyclonev.local or ssh://tauseef@DeviceIPAddress
This will give you folder view access to the device
Or
$ ssh root@DeviceIPAddress
Install OpenCV
#Install Dependencies
sudo apt-get install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev
libavformat-dev libswscale-dev python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev
libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev -y
#Make Installation
make j2 #change this number to the number of cores in your processor to install faster