labA1_3day_setup
labA1_3day_setup
Introduction
This document contains information for setting up an Ubuntu 12.04 host computer to run the lab
exercises of the “Introduction to Embedded Linux One-Day Workshop.”
After completing these installation steps, you will have everything needed to run the lab exercises
on your system.
Additionally, a number of steps were taken to make the environment more user friendly
(“Installing Gnome3 and Standard Scrollbars”) and to set up the lab files toolchain and target
filesystem. These comprise the three optional sections. There is no need to go through the
optional sections in order to run the lab exercises, but if you would like to know the steps that
were required to set up that portion of the lab environment, the steps are shown in these optional
sections.
The lab files that you will need to install are located on the workshop wiki page at:
http://processors.wiki.ti.com/index.php/Introduction_to_Linux_One-Day_Workshop
Chapter Topics
Workshop Setup Guide .............................................................................................................. 1-1
Installing Ubuntu 12.04 ............................................................................................................. 1-3
Installing Code Composer Studio v.5.3.0.00090 ...................................................................... 1-4
Installing Lab Files .................................................................................................................... 1-6
Configuring Ubuntu Static IP ..................................................................................................... 1-8
(Optional) Installing Gnome3 and Standard Scrollbars ............................................................ 1-9
(Optional) Installing Angstrom Cross-compile ToolsError! Bookmark not defined.-Error! Bookmark not define
(Optional) Modifying Angstrom FilesystemError! Bookmark not defined.-Error! Bookmark not defined.
There are many tutorials available for installing Ubuntu, so this section will not go through great
detail on the actual installation; however, it provides information for removing the user password
and setting automatic login, as is done in the workshop image.
Also, because older versions of CCS are not always archived, the exact version used in the
workshop is also available from the wiki page.
export PATH=/home/user/gcc-linaro-arm-linux-gnueabihf-4.7-2013-03-
20130313_linux/bin:$PATH
/home/user/ti/ccsv6/eclipse/ccstudio
If for some reason the License Setup Wizard does not automatically launch, you can
access it via:
HelpCode Composer Studio Licenscing InformationUpgrade TabLaunch Licensing
Setup…
25. Close CCS
Ubuntu$ wget
http://downloads.ti.com/dsps/dsps_public_sw/am_bu/sdk-
downloads/TISDK-Downloads/ALL/exports/amsdk-07.01.00.00-
downloads.tar.gz
Ubuntu$ tar zxf amsdk-07.01.00.00-downloads.tar.gz
Ubuntu$ mv sdk-7.1-downloads/* oe-layersetup/downloads
Ubuntu$ rmdir sdk-7.1-downloads
11. Build sdk – this will take a long time, possibly 24 hours!
Ubuntu$ cd build
Ubuntu$ source conf/setenv
Ubuntu$ MACHINE=am335x-evm bitbake -k arago-core-tisdk-image
(Note: the “-k” option will continue to build the distribution even if an error is encountered
in one of the packages.)
For available images:
# ls sources/meta-arago/meta-arago-distro/recipes-core/images/
12. Copy sdk image
ubuntu$ cp arago-tmp-external-linaro-toolchain/deploy/images/arago-core-tisdk-image-
am335x-evm.tar.gz /home/user
13. De-archive sdk
Ubuntu$ mkdir ti-sdk-07.01.00.00
Ubuntu$ tar zxf arago-core-tisdk-image-am335x-evm.tar.gz –C /home/user/ti-sdk-
07.01.00.00
14. Run sdk installer
ubuntu$ ./sdk-install.sh
Accept default values for each other question until you get to the serial port for
minicom. Instead of the default of “/dev/ttyS0” enter “/dev/ttyUSB1”
You may then accept the default values for the rest of the script.
Using “auto usb0” works well, but with the disadvantage that if no ethernet-over-usb connection is
available when Ubuntu starts up, the message “waiting on network configuration…” will appear
and will require about 2 minutes to timeout. This extra 2 minutes of boot time may be
circumvented by attaching the beaglebone so that the interface is present.
Users who dislike this 2 minute boot time may remove “auto usb0” in which case the usb0 will
have to be manually configured each time the Beaglebone is attached using “#sudo ifup usb0”
auto usb0
iface usb0 inet static
address 192.168.7.1
netmask 255.255.255.0
This section is not required for the workshop labs to work properly, but since these changes were
made on the workshop image, they are listed here.
1. Launch a terminal
2. Acquire a WAN (i.e. internet) connection
If you have already set up a static IP address as per the previous section, you can
override the static address using
ubuntu$ sudo ifdown eth0
ubuntu$ sudo dhclient eth0
3. Install gnome-shell Aptitude package
ubuntu$ sudo add-apt-repository ppa:gnome3-team/gnome3
ubuntu$ sudo apt-get update
ubuntu$ sudo apt-get install gnome-shell