Guide to manipulating the DevKit8000 image Soeren Hansen (shan@iha.dk) August 29, 2012 Version 1.1
Contents 1 Guide to manipulating the DevKit8000 image 2 1.1 Introduction...................................... 2 1.2 Prerequisites...................................... 2 1.3 Performing the deed................................. 2 1.3.1 Acquiring the image............................. 2 1.3.2 Extracting the image............................. 3 1.3.3 Updating your SD card........................... 3 1.4 Powering up the first time.............................. 4 2 Revision History 5 1
Guide to manipulating the DevKit8000 image 1.1 Introduction This document gives a short description on how to update the image for the DevKit8000 embedded system. Please note that the last section in this guide MUST be followed, otherwise you cannot be sure that the system functions at all. 1.2 Prerequisites Before you start make sure you have the following at your disposal: DevKit8000 SD card reader Access to Microsoft Window shares on Campus Have started your Kubuntu VMware image 1.3 Performing the deed Several steps need to be executed before you have upgraded your SD card with the newest version of the supplied image. 1.3.1 Acquiring the image At the time of the writing of this guide the latest image can be found here: K:\staff2stud \EIT-elektro og IKT\3. Semester\I3ISU\DevKit8000 Golden Image The current image is goldensdimage_v6_512mb.img.tar. Download goldensdimage_v6_512mb.img.tar.bz2 to your Kubuntu VMware. There are several possible options in doing so, however the one chosen here is based on simplicity. 1. Download file in Windows. 2. Copy it to an USB device. 3. In your Kubuntu VMware attach the device via the VMware menu system. A popup window should now appear in Linux, it shows which partitions 1 are available on the device. 1 Achieving access to a partition is done by mounting it 2
1.3. Performing the deed 4. Select desired partition via the popup window. 5. Copy the file to /home/stud/downloads. You can use the file manager dolphin to do so. 1.3.2 Extracting the image The acquired image is compressed with tar and bz2. You can extract the image by running the following command: Listing 1.1: Extracting image 1 tar xvfj goldensd_v4_512mb. img. tar. bz2 NOTE: You must be in the same dir, being /home/stud/downloads before running the command. 1.3.3 Updating your SD card First step is inserting your SD card in the SD card reader that is assumed attached to your computer. If it is properly attached, your Kubuntu VMware will issue a popup (see description provided in earlier section) asking whether you want to mount the device just inserted. The next step is to determine which device represents your SD card. running the command dmesg and reading the very last bit it prints out. You will either get a printout that resembles 2 this Listing 1.2: Excerpt from dmesg 1 [ 15937. 289365] mmc0 : new SD card at address 6 db1 2 [ 15937. 290217] mmcblk0 : mmc0 :6 db1 SD02G 1. 83 GiB 3 [ 15937. 291533] mmcblk0 : p1 p2 or this Listing 1.3: Excerpt from dmesg This is achieved by 1 [ 9346. 744543] scsi3 : usb - storage 1-1:1.0 2 [ 9346. 745895] usbcore : registered new interface driver usb - storage 3 [ 9346. 745897] USB Mass Storage support registered. 4 [ 9348. 434699] scsi 3: 0: 0: 0: Direct - Access Generic USB SD Reader 0.00 PQ: 0 ANSI : 2 5 [ 9348. 478797] sd 3: 0: 0: 0: Attached scsi generic sg3 type 0 6 [ 9348. 489142] sd 3: 0: 0: 0: [ sdb ] 3842048 512 - byte logical blocks : ( 1. 96 GB /1.83 GiB ) 7 [ 9348. 494962] sd 3: 0: 0: 0: [ sdb ] Write Protect is off 8 [ 9348. 494974] sd 3: 0: 0: 0: [ sdb ] Mode Sense : 03 00 00 00 9 [ 9348. 498500] sd 3: 0: 0: 0: [ sdb ] No Caching mode page present 10 [ 9348. 498512] sd 3: 0: 0: 0: [ sdb ] Assuming drive cache : write through 11 [ 9348. 510809] sd 3: 0: 0: 0: [ sdb ] No Caching mode page present 12 [ 9348. 510823] sd 3: 0: 0: 0: [ sdb ] Assuming drive cache : write through 13 [ 9348. 512739] sdb : sdb1 sdb2 14 [ 9348. 527007] sd 3: 0: 0: 0: [ sdb ] No Caching mode page present 15 [ 9348. 527019] sd 3: 0: 0: 0: [ sdb ] Assuming drive cache : write through 16 [ 9348. 527029] sd 3: 0: 0: 0: [ sdb ] Attached SCSI removable disk 2 It may not be exactly the same, but it should be close 3
1.4. Powering up the first time Each of these two entries represent a storage device 3, in particular the one you just inserted. To verify that it IS your SD card check that the storage size specified above matches what the SD card states about its size. At this point we know that the SD card is either represented as mmcblk0 or sdb 4 and the image file has been fetched and is placed in /home/stud/downloads. The image can finally be upgraded. This is done by issuing the following command: Listing 1.4: Writing image to flash device 1 sudo dd if= goldensd_v4_512mb. img of =/ dev / sdb NOTE: If the device was mmcblk0 then simply replace sdb above with mmcblk0. If the dd command is issued wrongly you can wipe your harddisk!!! 1.4 Powering up the first time The first time you boot the DevKit after the upgrade the BOOT KEY 5 must be held down for 5 seconds. After the 5 seconds have passed just wait and the system will boot shortly and be ready for use. 3 Both examples are shown because depending on how your device is attached, they might show up differently 4 It could be sdc, however it may NOT be sda as sda is where your Linux is installed 5 The right most button of the 4 buttons found on the DevKit. 4
Revision History Version Date Author(s) Changes 1.0 1/2-2012 SHAN Initial version 1.1 29/8-2012 SHAN Now uses updated latex files, added frontpage & revision hist. Minor updates to texti 5