Getting+started

toc =Introduction - Deprecated - Read internal guide (ask Course Instructor)= This article describes how you can get started with the default development environment for Linux and DevKit8000-development using IHA's Golden Images for VMWare and Linux. Follow the procedure below, and you'll be up and running in no time. The Golden VMWare Image is an Ubuntu 11.10 installation preconfigured with Eclipse, svn, GtkTerm and a lot of other nice software The Golden Image for DK8000 is a complete Linux kernel and file system dedicated for the DevKit8000, set up for communication with the Ubuntu host and execution of C++ programs =1. Getting VMWare Player and the Golden VMWare Image= 1. Download and install the [|VMWare Player] 2. Copy the Golden VMWare Image from the IHA drive: K:\staff2stud\EIT-elektro og IKT\3. Semester\I3ISU\VMWare Golden Image and unpack it in a directory oon your PC 3. Start the VMWare Player, select "File" > "Open" and browse to the .vmx file in the directory where you unpacked the Golden VMWare Image 4. Power the virtual machine on (green triangle) and follow the boot sequence 5. Log into Ubuntu. Click on "Student" and use password "stud". You have now completed the "installation" of the Golden VMWare Image and are ready to start using Ubuntu. =2. Setting up the DevKit8000= The DevKit8000 executes an Angstrom Linux distribution from an SD card inserted in the SD slot. An SD card needs to be "blasted" with the Golden DevKit8000 image, which is included in the Golden VMWare Image, and the DevKit8000 needs to be instructed to boot from the SD card. Follow this procedure:

2.1 Connecting the DevKit8000
1. Connect power to the DevKit8000 (do not power the board on) 2. Connect the USB On-The-Go cable between your PC and the DevKit8000 3. Optionally connect the serial cable between host and Devkit8000 (connection is 115200-8-N-1)

2.2 Blasting an SD card
For this, you will need an SD card (512MB minimum) and a way to access it from the Ubuntu host, either through a built-in SD card reader on your PC or through an external SD card reader. 1. Insert the SD card and wait for it to pop up in Ubuntu. If it doesn't, check that the SD card reader device is connected to the virtual machine in the menu "VM" > "Removable devices". 2. Open a terminal, then give the following command: code code An example result is code Major minor  #blocks name 8    0   20971520 sda 8    1   20049088 sda1 8    2      1 sda2 8    5     915673 sda5 8   32    1931264 sdb 8   33     409626 sdb1 8   34    1518142 sdb2 code This will show all active partitions in the system, of which two or three partitions are your SD card, typically, , and (*IMPORTANT:* These names are examples that are used in the rest of this procedure, substitute with the ones resulting from the above command on your computer).
 * 1) cat /proc/partitions

3. Unmount the two partitions and  using the following commands, but *do not* remove the card physically: code code 4. Get the latest revision of the golden SD image from and copy it to the Ubuntu host directory
 * 1) umount /dev/sdb1
 * 2) umount /dev/sdb2

5. Browse to the Golden SD image and unpack it: code code 6. Blast the image to the SD card with the command. **NOTE**: Be very, very careful to use the correct output file in the below command. Using the wrong partition will most likely ruin your Ubuntu image - and your day! code code
 * cd
 * 1) cd devkit8000/image
 * 2) tar -xvf goldenSdImage_v?_512.tar.gz
 * NOTE:* The '?' should be substituted with the largest number, 4 for instance, denoting the most reasen version.
 * 1) sudo dd if=goldenSdImage_v?_512.img of=/dev/sdb bs=1M
 * NOTE:* Be sure to substitute the filename with the name of your image file - the above is only an example

2.3 Using the SD card on the DevKit8000
1. Turn off power to the DevKit8000 2. Insert the recently blasted SD card into the DevKit8000 2. Hold the push button down, then apply power to the DevKit8000. After three seconds, release the. A lot of reading and copying will now take place. 3. When copying is complete (you are presented with a prompt), cycle power to the DevKit8000 and let it boot. //Do not// hold the this time - just apply power.

From now on, the SD card needs to be in the DevKit8000 for the board to boot. This has the advantage that you can backup and restore your complete target file system and restore it very simply, and that you can edit the target file system by manipulating files on the SD card on the host.