summaryrefslogtreecommitdiff
path: root/members/arm/openembedded/vexpress-lsk/INSTALL.textile
blob: e94f081109bad0c02c9b5bbdd9376d6f89092239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Linaro OpenEmbedded images are made up of two components. The "Hardware Pack":https://wiki.linaro.org/HardwarePacks, which contains the kernel, boot loader and/or Device Tree blob and a Root file system (RootFS) of your choice to generate an image.

Linaro provides two methods for installing Linaro binary builds:

# Using a pre-built image, which you can download
# Assembling your own image using provided components

h2. Pre-Installation Steps

Before any installation begins, it is important that you ensure your Versatile Express board has the latest firmware and boot loader installed. Please check the "Firmware Update" tab on this page for the latest updates and installation instructions.

h2. Using pre-built image

h3. Prerequisites

* Ubuntu 12.04 64 bit or newer on your desktop PC ("www.ubuntu.com":http://www.ubuntu.com)
* 4GB SD card or larger
* Latest firmware installed onto the Versatile Express. Please see "Firmware Update" tab
* Download the pre-built image for this release

bc. wget https://releases.linaro.org/14.09/members/arm/openembedded/vexpress-lsk/lsk-vexpress-openembedded_alip-armv7a-gcc-4.8_20140923-688.img.gz

h3. Installation Steps

* Unzip the downloaded pre-built image
* Insert SD card into your PC and note the assigned @'/dev/sdX'@

bc. dmesg
SDCARD=/dev/sdX # sdcard found from dmesg above
zcat https://releases.linaro.org/14.09/members/arm/openembedded/vexpress-lsk/lsk-vexpress-openembedded_alip-armv7a-gcc-4.8_20140923-688.img.gz | sudo dd bs=64k of=$SDCARD

When the image is created, skip down to the section "Booting the image".

*Note:* Windows users may use the "Image Writer for Windows.":https://launchpad.net/win32-image-writer/+download

<hr>

h2. Building a custom image using pre-built components

Sometimes, you may wish to build your own custom image for a Versatile Express. Perhaps you wish to use a more recent snapshot of the "hardware pack":https://wiki.linaro.org/HardwarePacks or take the latest Android build. Whatever the reason, you will want to use the "Linaro Image Tools":https://wiki.linaro.org/Linaro-Image-Tools to create a custom image.

Using components to generate the image will yield the same functionality found in the pre-built image of the same release.

h3. Prerequisites

* Ubuntu 12.04 64 bit or newer on your desktop PC ("www.ubuntu.com":http://www.ubuntu.com)
* Download Artifacts from above or use the following command in your terminal

bc. wget https://releases.linaro.org/14.09/members/arm/openembedded/vexpress-lsk/hwpack_linaro-lsk-vexpress_20140923-688_armhf_supported.tar.gz
wget https://releases.linaro.org/14.09/members/arm/openembedded/vexpress-lsk/linaro-image-alip-genericarmv7a-20140924-296.rootfs.tar.gz

* Get "Linaro image tools":https://wiki.linaro.org/Linaro-Image-Tools. There are multiple ways you can get the latest Linaro Image Tools:

** Method 1: Install them from the Linaro Image Tools "PPA":https://launchpad.net/~linaro-maintainers/+archive/tools

bc. sudo add-apt-repository ppa:linaro-maintainers/tools
sudo apt-get update
sudo apt-get install linaro-image-tools

** Method 2: Building from source

bc. wget http://releases.linaro.org/14.07/components/platform/linaro-image-tools/linaro-image-tools-2014.07.tar.gz

* Insert SD card and note the assigned @'/dev/sdX'@ or @'/dev/mmcblk0'@

bc. dmesg | less

Look for a line that looks like the following at the end of the log

@[288582.790722] sdc: sdc1 sdc2 sdc3 sdc4 <sdc5 sdc6 >@

Or, if your machine uses '/dev/mmcblkX', you may see a line line this:

@[10770.938042]  mmcblk0: p1 p2 p3 p4 < p5 p6 >@

*WARNING:* In the next step, make sure you use /dev/"whatever you see above". *You can erase your hard drive* with the wrong parameter.

* Create media

bc. sudo linaro-media-create --mmc /dev/sdX --dev vexpress --hwpack hwpack_linaro-lsk-vexpress_20140923-688_armhf_supported.tar.gz --binary linaro-image-alip-genericarmv7a-20140924-296.rootfs.tar.gz

h2. Booting the image

After the media create tool has finished executing, remove the SD card from your PC and insert it into the Versatile Express board.

Before you can boot the image you will need to install the UEFI boot loader into NOR flash and update the Versatile Express motherboard's configuration files. The instructions on the Firmware Update tab provide information on how to do this and how to configure UEFI to specify the SD card as a boot device.