New Horizons









Welcome to my blog

My name is Sven Andersson and I
work as a consultant in embedded
system design, implemented in ASIC
and FPGA.
In my spare time I write this blog
and I hope it will inspire others to
learn more about this fantastic field.
I live in Stockholm Sweden and have
my own company

Contact

You are welcome to contact me
and ask questions or make comments
about my blog.



Content

New Horizons
What's new
Starting a blog
Writing a blog
Using an RSS reader

Zynq Design From Scratch
Started February 2014
1 Introduction
Changes and updates
2 Zynq-7000 All Programmable SoC
3 ZedBoard and other boards
4 Computer platform and VirtualBox
5 Installing Ubuntu
6 Fixing Ubuntu
7 Installing Vivado
8 Starting Vivado
9 Using Vivado
10 Lab 1. Create a Zynq project
11 Lab 1. Build a hardware platform
12 Lab 1. Create a software application
13 Lab 1. Connect to ZedBoard
14 Lab 1. Run a software application
15 Lab 1. Benchmarking ARM Cortex-A9
16 Lab 2. Adding a GPIO peripheral
17 Lab 2. Create a custom HDL module
18 Lab 2. Connect package pins and implement
19 Lab 2. Create a software application and configure the PL
20 Lab 2. Debugging a software application
21 Running Linux from SD card
22 Installing PetaLinux
23 Booting PetaLinux
24 Connect to ZedBoad via ethernet
25 Rebuilding the PetaLinux kernel image
26 Running a DHCP server on the host
27 Running a TFTP server on the host
28 PetaLinux boot via U-boot
29 PetaLinux application development
30 Fixing the host computer
31 Running NFS servers
32 VirtualBox seamless mode
33 Mounting guest file system using sshfs
34 PetaLinux. Setting up a web server
35 PetaLinux. Using cgi scripts
36 PetaLinux. Web enabled application
37 Convert from VirtualBox to VMware
38 Running Linaro Ubuntu on ZedBoard
39 Running Android on ZedBoard
40 Lab2. Booting from SD card and SPI flash
41 Lab2. PetaLinux board bringup
42 Lab2. Writing userspace IO device driver
43 Lab2. Hardware debugging
44 MicroZed quick start
45 Installing Vivado 2014.1
46 Lab3. Adding push buttons to our Zynq system
47 Lab3. Adding an interrupt service routine
48 Installing Ubuntu 14.04
49 Installing Vivado and Petalinux 2014.2
50 Using Vivado 2014.2
51 Upgrading to Ubuntu 14.04
52 Using Petalinux 2014.2
53 Booting from SD card and SPI flash
54 Booting Petalinux 2014.2 from SD card
55 Booting Petalinux 2014.2 from SPI flash
56 Installing Vivado 2014.3

Chipotle Verification System
Introduction

EE Times Retrospective Series
It all started more than 40 years ago
My first job as an electrical engineer
The Memory (R)evolution
The Microprocessor (R)evolution

Four soft-core processors
Started January 2012
Introduction
Table of contents
Leon3
MicroBlaze
OpenRISC 1200
Nios II

Using the Spartan-6 LX9 MicroBoard
Started August 2011
Introduction
Table of contents
Problems, fixes and solutions

FPGA Design From Scratch
Started December 2006
Introduction
Table of contents
Index
Acronyms and abbreviations

Actel FPGA design
Designing with an Actel FPGA. Part 1
Designing with an Actel FPGA. Part 2
Designing with an Actel FPGA. Part 3
Designing with an Actel FPGA. Part 4
Designing with an Actel FPGA. Part 5

CAD
A hardware designer's best friend
Zoo Design Platform

Linux
Installing Cobra Command Tool
A processor benchmark

Mac
Porting a Unix program to Mac OS X
Fixing a HyperTerminal in Mac OS X
A dream come true

Running
The New York City Marathon

Skiing/Skating
Kittelfjall Lappland

Tour skating in Sweden and around the world
Top
Introduction
SSSK
Wild skating
Tour day
Safety equipment
A look at the equipment you need
Skate maintenance
Links
Books, photos, films and videos
Weather forecasts

Travel
38000 feet above see level
A trip to Spain
Florida the sunshine state

Photo Albums
Seaside Florida
Ronda Spain
Sevilla Spain
Cordoba Spain
Alhambra Spain
Kittelfjäll Lapland
Landsort Art Walk
Skating on thin ice

Books
100 Power Tips for FPGA Designers

Favorites
Adventures in ASIC
ChipHit
Computer History Museum
DeepChip
Design & Reuse
Dilbert
d9 Tech Blog
EDA Cafe
EDA DesignLine
Eli's tech Blog
Embedded.com
EmbeddedRelated.com
FPGA Arcade
FPGA Blog
FPGA Central
FPGA CPU News
FPGA developer
FPGA Journal
FPGA World
Lesley Shannon Courses
Mac 2 Ubuntu
Programmable Logic DesignLine
OpenCores
Simplehelp
SOCcentral
World of ASIC



If you want to be updated on this weblog Enter your email here:



rss feed



 
Sunday, February 09, 2014
Zynq design from scratch. Part 6.
Fixing Ubuntu

After installing Ubuntu in our virtual machine it is time to do some fixing. The first thing I always do after installing a new Linux OS is to upgrade the software. Ubuntu 13.10 was released more than four month ago. During that time a number of software updates have taken place. Let's open a terminal window.




In the terminal window type the following command:

sudo apt-get update && sudo apt-get upgrade


Changing the desktop

Ubuntu 13.10 comes with the Unity desktop. I prefer the Gnome Classic desktop and there is an easy way to get the Gnome desktop back. In an terminal window type the following commands:

sudo apt-get install gnome-session-fallback
sudo apt-get install indicator-applet-appmenu
sudo apt-get install gnome-tweak-tool


Next time we login we can select which desktop to use by  clicking the symbol in the right upper corner.



We select GNOME Flashback.




We got the familiar menus back.



Cobra Command Tool

Cobra Command Tool is a smart terminal program which I develop more than 20 years ago. I still use it as an replacement for the standard terminal program. Here is a description on how to install it in Ubuntu and here is the user guide.





Guest additions


The VirtualBox Guest Additions are designed to be installed inside a virtual machine after the guest operating system has been installed. They consist of device drivers and system applications that optimize the guest operating system for better performance and usability. For more information see the user manual chapter 4. Here is a description on how to install them.

From the VirtualBox Devices menu select "Insert Guest Additions CD image". After a few seconds this window pops up.




Click the Cancel button. The CD image has been mounted under the /media directory. To install the guest additions execute the following commands:

cd /mount/"user name"/VBOXADDITIONS_...
sudo sh ./VBoxLinuxAdditions.run






Don't forget to unmount the guest additions CD image when finished.


Setting up an ssh server

We will use ssh (secure shell) to remotely login to our guest system from our host or vice versa. For that reason we have to setup a ssh server in our Ubuntu system. Install the following packages to enable the ssh server:

sudo apt-get update
sudo apt-get install libncurses5-dev
sudo apt-get install openssh-server


RedHat compatibility


Xilinx allways tells us that they don't support Ubuntu, but I have heard rumors that they plan to do it. Until then we have to do a few tweaks to the Ubuntu installation to get it to work. Here are the tweaks I have done. We may find more tweaks along the way.


Changing the default shell

Ubuntu uses dash as the default shell and RedHat uses bash. Some of the scripts Xilinx is using are written for the bash shell. Use the following command to find out the default shell:

ls -l /bin/sh

Use the following command to change the default shell to bash:

sudo dpkg-reconfigure dash



Select No and Enter.





Adding gmake


GNU make is called gmake in the RedHat installation and make in the Ubuntu installation. Execute the following command to add gmake in Ubuntu.

sudo ln -s /usr/bin/make /usr/bin/gmake


Installing Java

We need Java for running Vivado. Use this command to install openJDK Java:

sudo apt-get install openjdk-7-jre


Non-english keyboard

For all of us using non-english keyboards add the following lines to .bashrc

export LANG="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LC_NUMERIC="en_US.UTF-8"


Programs and libraries needed by PetaLinux

When using PetaLinux we need to install the following programs:
  • gawk
  • bison
  • flex
  • zlib1g-dev
  • tofrodos

and the following libraries:


sudo apt-get install gawk
sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install zlib1g-dev
sudo apt-get install tofrodos
sudo apt-get install libstdc++6:i386
sudo apt-get install libncurses5:i386
sudo apt-get install libncursesw5-dev:i386
gcc was uninstalled so install it again
sudo apt-get install gcc



Shared folders

To easily move files between or virtual machine and host computer we can setup shared folders. Click Settings in VirtualBox and select Shared Folders.





Specify a folder path to a folder on the host computer that we want to share with the virtual machine and give it a name (UbuntuShare). The folder will show up on the virtual machine in the directory: /media/sf_UbuntuShare. Mark the Auto-mount tick box to mount the shared folder automatically. To give write permissions to this directory we have to add us to the linux group vboxsf.

->sudo adduser svenand vboxsf


More tweaks to follow

When we find out more things during this project they will be added here. But now I think it is time to install the Vivado design suite from Xilinx.

Dropbox

Dropbox is a file hosting service operated by Dropbox, Inc., that offers cloud storage, file synchronization, and client software. Dropbox allows users to create a special folder on each of their computers, which Dropbox then synchronizes so that it appears to be the same folder (with the same contents) regardless of which computer is used to view it. Files placed in this folder also are accessible through a website and mobile phone applications. Use this command to install Dropbox:

->sudo apt-get install nautilus-dropbox

When the installation has finished we have to start Dropbox:

->dropbox start





I already have a Dropbox account so I can just login. If you are new to Dropbox you have to setup a new account.





Click Finish to finish the installation: Dropbox is now ready to be used.





Access Dropbox from the right side top menu:



             ^


GIT

GIT is a distributed revision control and source code management (SCM) system with an emphasis on speed. Every Git working directory is a full-fledged repository with complete history and full version tracking capabilities, not dependent on network access or a central server. When we download software from Internet we will access a number of GIT hubs. To install GIT support in Ubuntu execute the following command:

->sudo apt-get install git


Top   Previous   Next



Posted at 16:18 by svenand

 

Leave a Comment:

Name


Homepage (optional)


Comments




Previous Entry Home Next Entry