Merge lp:~pwlars/lava-project/install-docs into lp:lava-project/staging

Proposed by Paul Larson
Status: Merged
Merged at revision: 31
Proposed branch: lp:~pwlars/lava-project/install-docs
Merge into: lp:lava-project/staging
Diff against target: 666 lines (+348/-150)
3 files modified
doc/index.rst (+17/-15)
doc/installation.rst (+246/-58)
doc/lava-image-creation.rst (+85/-77)
To merge this branch: bzr merge lp:~pwlars/lava-project/install-docs
Reviewer Review Type Date Requested Status
Spring Zhang (community) Approve
Review via email: mp+92712@code.launchpad.net

Description of the change

Some documentation improvements

To post a comment you must log in.
Revision history for this message
Spring Zhang (qzhang) wrote :

nice guide

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'doc/index.rst'
--- doc/index.rst 2012-02-10 22:19:05 +0000
+++ doc/index.rst 2012-02-13 04:53:18 +0000
@@ -2,20 +2,20 @@
2LAVA (Linaro Automated Validation Architecture)2LAVA (Linaro Automated Validation Architecture)
3===============================================3===============================================
44
5.. warning::
6 This document is *work in progress*.
7
8Features5Features
9========6========
107LAVA is an automated testing framework developed by Linaro. It includes
11.. todo::8a web framework with extensions for things like scheduling jobs, and
12 Document key LAVA features. This list should be stable and high-level so9storing results. The web framework can be extended with custom
13 that additional features added to subsequent LAVA releases don't require us10extensions for storing new types of data, or presenting custom result
14 to rewrite this section all the time. We shold link to our sub-projects.11views. LAVA also has a dispatcher component for processing test jobs
1512that can deploy Ubuntu based, as well as Android based Linaro images on
13supported development boards. As with the web interface, custom
14extensions can be written to support additional client types, or
15operations to perform. LAVA also has test runners that can provide a
16consistent interface to various Linux and Android test suites.
17Additional test suites can easily be added.
16 18
17 .. seealso:: See what's new in :ref:`version_2011.10`
18
19LAVA Components19LAVA Components
20===============20===============
2121
@@ -24,7 +24,9 @@
24 provides the main web interface to LAVA and supports extensions.24 provides the main web interface to LAVA and supports extensions.
25 `LAVA Dashboard <http://lava-dashboard.readthedocs.org/>`_25 `LAVA Dashboard <http://lava-dashboard.readthedocs.org/>`_
26 The LAVA Dashboard is an extension to LAVA Server that handles26 The LAVA Dashboard is an extension to LAVA Server that handles
27 results storage and retrieval.27 results storage and retrieval. Results for the LAVA Dashboard are
28 submitted using a well-defined JSON bundle format. The schema, and
29 example bundles are documented in the `LAVA Dashboard bundle format <http://linaro-dashboard-bundle.readthedocs.org/en/latest/index.html>`_.
28 `LAVA Scheduler <http://lava-scheduler.readthedocs.org/>`_30 `LAVA Scheduler <http://lava-scheduler.readthedocs.org/>`_
29 The LAVA Scheduler component provides a web extension for31 The LAVA Scheduler component provides a web extension for
30 scheduling jobs and managing test resources, as well as a daemon32 scheduling jobs and managing test resources, as well as a daemon
@@ -40,15 +42,15 @@
40 that can be consumed by the LAVA Dashboard.42 that can be consumed by the LAVA Dashboard.
4143
4244
43Indices and tables45Getting Started
44==================46===============
4547
46.. toctree::48.. toctree::
47 :maxdepth: 249 :maxdepth: 2
48 50
49 installation.rst51 installation.rst
52 lava-image-creation.rst
50 process.rst53 process.rst
51 lava-image-creation.rst
52 changes.rst54 changes.rst
5355
54* :ref:`search`56* :ref:`search`
5557
=== modified file 'doc/installation.rst'
--- doc/installation.rst 2011-10-24 17:22:06 +0000
+++ doc/installation.rst 2012-02-13 04:53:18 +0000
@@ -1,58 +1,246 @@
1Installation1LAVA Deployment Tool
2^^^^^^^^^^^^2====================
33
4LAVA can be installed in several different ways. As with any open source4Installing LAVA Server Components
5project that does source distribution the end user has all the freedom to do5+++++++++++++++++++++++++++++++++
6what they want. We support certain installation methods more than others. You6
7can always ask for support using Launchpad support tracker (see7LAVA Deployment Tool is meant to assist you setting up LAVA on your machine.
8:ref:`questions`)8The tool is suitable for both personal and more "production" installations that
99are expected to perform adequately with more concurrent users. This tool is
10Installation from source10not, however, designed for multi-machine installation, including cloud
11************************11deployment. For that it is likely we will turn to Juju
1212(https://juju.ubuntu.com/)
13This is the most complicated and error prone installation method. It requires13
14the user to download source release tarballs. Unpack them and install them in14Quickstart
15the correct order. Depending on the exact set of components that are installed15^^^^^^^^^^
16(especially client or server side components) some additional steps are16
17necessary. This may include setting up the web application host (one of many17For the impatient, or those just looking for a cheat sheet but know what they
18possible configurations here), setting up the database (again multiple possible18are doing otherwise, here are the basic set of commands to get an instance
19options, our recommendation is to use the latest stable version of PostgreSQL).19up and running based on the requirements-mini file provided as an example,
2020which only installs lava-server.
21Detailed installation instructions *should* be included with each component21
22documentation (do file bugs on missing documentation).22::
2323
2424 $ ./lava-deployment-tool setup
25Installation from PypI25 $ ./lava-deployment-tool bundle requirements-mini.txt
26**********************26 $ ./lava-deployment-tool install testinstance lava.pybundle
2727 $ sudo start lava-instance LAVA_INSTANCE=testinstance
28PyPi is the python package index (http://pypi.python.org/pypi). It is28
29maintained by the python community and is the preferred distribution method29Assuming everything went well, you should be able to point a web browser
30used by many open source projects written in the python programming language.30at the system you did this on and see the lava-server default page.
3131
32Here a front-end program, such as pip (http://pypi.python.org/pypi/pip) is used32
33to install packages, and their python dependencies. Pip finds the required set33Software Requirements
34of packages, downloads their source releases and does the hard work of figuring34^^^^^^^^^^^^^^^^^^^^^
35out the right way to put them together.35
3636This tool should work on Ubuntu versions starting with 10.10 release
37This is the best compromise between wide system support (any flavour of Linux,37(Maverick). If you'd like to help us with other distributions feel free to
38OS X and Windows), simplicity, upgrade and availability. The downside is that38contact us at validation (at) linaro (dot) org.
39it does not handle, by itself, the last mile. This method does not handle39
40things like setting up and running the application server. It also requires the40Hardware Requirements
41user to have additional development packages, such as python header files,41^^^^^^^^^^^^^^^^^^^^^
42database server header files, the C compiler and more.42
4343A small LAVA instance can be deployed on any modest hardware. We recommend at
4444least one 1GB of RAM for runtime activity (this is shared, on a single host,
45.. todo::45among the database server, the application server and the web server). For
46 Document virtualenv usage (recommended)46storage please reserve about 20GB for application data, especially if you wish
4747to mirror current public LAVA instance used by Linaro. LAVA uses append-only
4848models so the storage requirements will grow at about several GB a year.
49Installation from PPA49
50*********************50Before installing
5151^^^^^^^^^^^^^^^^^
52This method is only suitable for users running Ubuntu 10.04 or later. Here LAVA52
53is pre-compiled and packaged as Debian packages (debs). The installation53Before you can create your first LAVA instance (standalone, independent LAVA
54scripts embedded in the packages take care for setting up additional services54installation) you must install some shared infrastructure on your machine.
55so usually this is the best method to quickly have a self-contained running55Currently this is the Apache 2 web server, PostgreSQL database server, RabbitMQ
56installation. The downside is longer release period as packaging takes56messaging server, and Python (and a few python programs and libraries). Because
57additional time after each release. Another downside is that our support is57this installation method is not using pre-built packages you will also need
58limited to Ubuntu.58development headers and a working compiler to build some of the native (C)
59extensions for python.
60
61This step is largely automated. To perform it run this command:
62
63::
64
65 $ ./lava-deployment-tool setup
66
67This step also prepares file-system places for LAVA. In particular it creates
68/srv/lava/ where all LAVA instances are later stored.
69
70Creating LAVA instance
71^^^^^^^^^^^^^^^^^^^^^^
72
73You can create multiple LAVA instances on a single machine. Being able to do
74so is very valuable for testing and developing LAVA itself. Before installing
75you must first create a bundle of sources you wish to install. This simply
76downloads all the things you intend to install into a single, local archive
77so that installation or updating is not impacted by any problems getting the
78sources later. This also enables offline installs, or installs behind a
79restrictive firewall by allowing you to download the bundle in advance.
80To create the bundle, run:
81
82::
83
84 $ ./lava-deployment-tool URL_to_requirements [bundle_file_name]
85
86If you do not specify the bundle_file_name, it will use the name 'lava.pybundle'
87
88To create a new instance run this command:
89
90::
91
92 $ ./lava-deployment-tool install NAME BUNDLE
93
94This will create a fresh instance called NAME, the instance will be composed of
95the software specified in the requirements file that was used to build the
96bundle and associated dependencies.
97
98The script produces verbose output, at the end it should say that everything
99went fine.
100
101Maintaining a LAVA System
102+++++++++++++++++++++++++
103
104Backing Up LAVA instance
105^^^^^^^^^^^^^^^^^^^^^^^^
106
107LAVA instances store persistent data in two locations:
108
109 * On the filesystem, in the directory
110 /srv/lava/$LAVA_INSTANCE/var/lib/lava-server/media
111 * In a PostgreSQL database in the default cluster named $LAVA_INSTANCE
112
113Backing up those two items is sufficient to preserve the entire system
114state. You can do this by running:
115
116::
117
118 $ lava-deployment-tool backup $LAVA_INSTANCE
119
120which will create a backup with an ID based on the current date and
121time in a directory named
122"/srv/lava/backups/$LAVA_INSTANCE/$SNAPSHOT_ID/". You can make
123/srv/lava/backups a symlink to a more appropriate location if you
124want.
125
126Generally before backing up you should make sure that LAVA instance is
127turned off. This depends on how your instance is started. If you were
128using upstart the following shell command should turn LAVA off:
129
130::
131
132 $ sudo service lava stop
133
134If you take a backup while running, you will need to do some manual
135cleanup when you restore from it.
136
137Restoring from backup
138^^^^^^^^^^^^^^^^^^^^^
139
140Running the command:
141
142::
143
144 $ lava-deployment-tool restore $LAVA_INSTANCE $SNAPSHOT_ID
145
146will restore the given snapshot of the named instance. This will
147first erase the database and media files of the named instance, so be
148careful what you type!
149
150You can restore an instance from a backup taken from a distinct
151instance with a command like:
152
153::
154
155 $ lava-deployment-tool restore $TARGET_INSTANCE $SOURCE_INSTANCE/$SNAPSHOT_ID
156
157Currently to restore from a backup taken on a different machine, you
158have to put it under /srv/lava/backups, then run an appropriate
159"lava-deployment-tool restore" command (we will hopefully make this
160more natural soon).
161
162You cannot restore to an instance while it is running.
163
164Updating LAVA instance
165^^^^^^^^^^^^^^^^^^^^^^
166
167LAVA is released periodically. Currently this is once a month but the release
168cycle becomes more and more fluid and eventually we'd like to release multiple
169tiny changes every day.
170
171Once you installed some LAVA components you can upgrade your installation to a
172more recent release using this deployment tool. There are some important
173upgrade considerations:
174
1751) Upgrades may alter the database or persistent media files. It is wise to
176perform a full system backup before each upgrade. While we don't anticipate
177catastrophic failures it's better to be safe than sorry. Refer to the previous
178chapter for details.
179
1802) Some database schema changes take a lot of time to finish. We try to
181minimize such changes but as you can install any third-party LAVA extensions we
182cannot predict the overall downtime in such case. For official Linaro releases
183please refer to our monthly release notes that are available at
184http://lava.readthedocs.org/
185
1863) Upgrades may introduce additional dependencies, which will be installed
187automatically. Periodically we make use of additional third party open source
188libraries. Those libraries will be installed for a single LAVA instance
189_only_. Your system libraries are not affected by this step.
190
1914) Upgrades require network access. If you are behind a firewall or a
192corporate http proxy you may experience failures. Please note that the
193upgrade process does not install components without first downloading all of
194the required pieces so in case of a network failure your current installation
195should not be affected. While typically only HTTP and HTTPS protocols are
196being used at times you may see attempts to connect to native protocols used
197by git, bazaar or mercurial.
198
1995) Upgrading process rebuilds the collection of static assets served by
200Apache. During that moment you may encounter a very brief failure to resolve
201some of the static assets (typically images, cascading style sheets and
202javascript libraries)
203
204Prior to upgrading and instance, you will need to build a new bundle based
205on your new requirements file:
206
207::
208
209 $ ./lava-deployment-tool bundle URL-to-requirements [bundle_file_name]
210
211To upgrade an existing instance run the following command:
212
213::
214
215 $ ./lava-deployment-tool upgrade NAME BUNDLE
216
217Again the NAME and URL-to-requirements have the same meaning as in the
218install command mentioned in preceding chapter.
219
220Anatomy of a LAVA instance
221^^^^^^^^^^^^^^^^^^^^^^^^^^
222
223An instance is composed of several parts:
224
225 - A new system user account called $LAVA_INSTANCE
226 - A directory tree similar to standard unix filesystem rooted
227 in $LAVA_PREFIX/$LAVA_INSTANCE/
228 - A postgres user and database in the default cluster, both named
229 $LAVA_INSTANCE
230
231A note on Postgres versions
232^^^^^^^^^^^^^^^^^^^^^^^^^^^
233
234lava-deployment-tool creates its databases in the default postgres
235cluster (on Ubuntu this is the 'main' cluster of whichever version of
236postgres was installed first). Using a different version/cluster and
237moving between versions is not technically difficult but not currently
238supported.
239
240Contact and bug reports
241^^^^^^^^^^^^^^^^^^^^^^^
242
243Please report bugs using
244https://bugs.launchpad.net/lava-deployment-tool/+filebug
245
246Feel free to contact us at validation (at) linaro (dot) org.
59247
=== modified file 'doc/lava-image-creation.rst'
--- doc/lava-image-creation.rst 2012-02-10 22:26:54 +0000
+++ doc/lava-image-creation.rst 2012-02-13 04:53:18 +0000
@@ -27,17 +27,17 @@
2727
28::28::
2929
30 127.0.1.1 linaro-developer30 127.0.1.1 linaro-developer
31 to:31 to:
32 127.1.1.1 master32 127.1.1.1 master
3333
34then edit /etc/hostname and change:34then edit /etc/hostname and change:
3535
36::36::
3737
38 linaro-developer38 linaro-developer
39 to:39 to:
40 master40 master
4141
42Also, edit /etc/network/interfaces to ensure that either eth0 or usb042Also, edit /etc/network/interfaces to ensure that either eth0 or usb0
43(depending on the ethernet interface on the board) is enabled. Depending on43(depending on the ethernet interface on the board) is enabled. Depending on
@@ -61,7 +61,9 @@
6161
62at the command prompt type:62at the command prompt type:
6363
64fdisk -S 63 -H 255 -c /dev/mmcblk064::
65
66 fdisk -S 63 -H 255 -c /dev/mmcblk0
6567
66First a note. If you get anything wrong in this procedure don't panic. You can68First a note. If you get anything wrong in this procedure don't panic. You can
67quit fdisk (command "q") and no changes will be saved until you explicitly tell69quit fdisk (command "q") and no changes will be saved until you explicitly tell
@@ -73,8 +75,8 @@
7375
74::76::
7577
76 /dev/mmcblk0p1 * 63 106494 53216 c W95 FAT32 (LBA)78 /dev/mmcblk0p1 * 63 106494 53216 c W95 FAT32 (LBA)
77 /dev/mmcblk0p2 106496 6291455 3092480 83 Linux79 /dev/mmcblk0p2 106496 6291455 3092480 83 Linux
7880
79If it looks like this, then follow the 2 partition instructions below.81If it looks like this, then follow the 2 partition instructions below.
8082
@@ -82,9 +84,9 @@
8284
83::85::
8486
85 /dev/mmcblk0p1 1 8191 4095+ da Non-FS data87 /dev/mmcblk0p1 1 8191 4095+ da Non-FS data
86 /dev/mmcblk0p2 * 8192 114687 53248 c W95 FAT32 (LBA)88 /dev/mmcblk0p2 * 8192 114687 53248 c W95 FAT32 (LBA)
87 /dev/mmcblk0p3 114688 6291455 3088384 83 Linux89 /dev/mmcblk0p3 114688 6291455 3088384 83 Linux
8890
89If it looks like this, follow the 3 partition instructions below:91If it looks like this, follow the 3 partition instructions below:
9092
@@ -106,9 +108,9 @@
106108
107::109::
108110
109 /dev/mmcblk0p1 * 63 106494 53216 c W95 FAT32 (LBA)111 /dev/mmcblk0p1 * 63 106494 53216 c W95 FAT32 (LBA)
110 /dev/mmcblk0p2 106496 6291455 3092480 83 Linux112 /dev/mmcblk0p2 106496 6291455 3092480 83 Linux
111 /dev/mmcblk0p3 6291456 6422527 65536 c W95 FAT32 (LBA)113 /dev/mmcblk0p3 6291456 6422527 65536 c W95 FAT32 (LBA)
112114
113Next we need to create the testrootfs and sdcard partitions. Unfortunately115Next we need to create the testrootfs and sdcard partitions. Unfortunately
114we are only normally allowed 4 partitions so we have to create what's called116we are only normally allowed 4 partitions so we have to create what's called
@@ -136,12 +138,12 @@
136138
137::139::
138140
139 /dev/mmcblk0p1 * 63 106494 53216 c W95 FAT32 (LBA)141 /dev/mmcblk0p1 * 63 106494 53216 c W95 FAT32 (LBA)
140 /dev/mmcblk0p2 106496 6291455 3092480 83 Linux142 /dev/mmcblk0p2 106496 6291455 3092480 83 Linux
141 /dev/mmcblk0p3 6291456 6422527 65536 c W95 FAT32 (LBA)143 /dev/mmcblk0p3 6291456 6422527 65536 c W95 FAT32 (LBA)
142 /dev/mmcblk0p4 6422528 31116287 12346880 5 Extended144 /dev/mmcblk0p4 6422528 31116287 12346880 5 Extended
143 /dev/mmcblk0p5 6424576 23201791 8388608 83 Linux145 /dev/mmcblk0p5 6424576 23201791 8388608 83 Linux
144 /dev/mmcblk0p6 23203840 31116287 3956224 c W95 FAT32 (LBA)146 /dev/mmcblk0p6 23203840 31116287 3956224 c W95 FAT32 (LBA)
145147
146Now we need to write this partition table back. Enter "w" and you will receive148Now we need to write this partition table back. Enter "w" and you will receive
147some warnings but you can ignore these.149some warnings but you can ignore these.
@@ -151,44 +153,48 @@
151153
152At the command prompt, type:154At the command prompt, type:
153155
154ls -l /dev/mmcblk0*156::
157
158 ls -l /dev/mmcblk0*
155159
156and you should see something like this:160and you should see something like this:
157161
158::162::
159163
160 brw-rw---- 1 root disk 179, 0 2012-01-19 12:37 /dev/mmcblk0164 brw-rw---- 1 root disk 179, 0 2012-01-19 12:37 /dev/mmcblk0
161 brw-rw---- 1 root disk 179, 1 2012-01-19 12:37 /dev/mmcblk0p1165 brw-rw---- 1 root disk 179, 1 2012-01-19 12:37 /dev/mmcblk0p1
162 brw-rw---- 1 root disk 179, 2 2012-01-19 12:37 /dev/mmcblk0p2166 brw-rw---- 1 root disk 179, 2 2012-01-19 12:37 /dev/mmcblk0p2
163 brw-rw---- 1 root disk 179, 3 2012-01-19 12:37 /dev/mmcblk0p3167 brw-rw---- 1 root disk 179, 3 2012-01-19 12:37 /dev/mmcblk0p3
164 brw-rw---- 1 root disk 179, 4 2012-01-19 12:37 /dev/mmcblk0p4168 brw-rw---- 1 root disk 179, 4 2012-01-19 12:37 /dev/mmcblk0p4
165 brw-rw---- 1 root disk 179, 5 2012-01-19 12:37 /dev/mmcblk0p5169 brw-rw---- 1 root disk 179, 5 2012-01-19 12:37 /dev/mmcblk0p5
166 brw-rw---- 1 root disk 179, 6 2012-01-19 12:37 /dev/mmcblk0p6170 brw-rw---- 1 root disk 179, 6 2012-01-19 12:37 /dev/mmcblk0p6
167171
168Now we're going to make filing systems and label the new patitions. Enter the172Now we're going to make filing systems and label the new patitions. Enter the
169following three lines at the command prompt:173following three lines at the command prompt:
170174
171::175::
172176
173 mkfs.vfat -n testboot /dev/mmcblk0p3177 mkfs.vfat -n testboot /dev/mmcblk0p3
174 mkfs.vfat -n sdcard /dev/mmcblk0p6178 mkfs.vfat -n sdcard /dev/mmcblk0p6
175 mkfs.ext3 -L testrootfs /dev/mmcblk0p5179 mkfs.ext3 -L testrootfs /dev/mmcblk0p5
176180
177This last command does take some time, so be patient. Once it has completed,181This last command does take some time, so be patient. Once it has completed,
178reboot the card once more, and then check that the labels are correctly assigned182reboot the card once more, and then check that the labels are correctly assigned
179by typing:183by typing:
180184
181ls -l /dev/disk/by-label185::
186
187 $ ls -l /dev/disk/by-label
182188
183If all is well, you should see something like the following:189If all is well, you should see something like the following:
184190
185::191::
186192
187 lrwxrwxrwx 1 root root 15 May 31 21:48 boot -> ../../mmcblk0p1193 lrwxrwxrwx 1 root root 15 May 31 21:48 boot -> ../../mmcblk0p1
188 lrwxrwxrwx 1 root root 15 May 31 21:48 rootfs -> ../../mmcblk0p2194 lrwxrwxrwx 1 root root 15 May 31 21:48 rootfs -> ../../mmcblk0p2
189 lrwxrwxrwx 1 root root 15 May 31 21:48 sdcard -> ../../mmcblk0p6195 lrwxrwxrwx 1 root root 15 May 31 21:48 sdcard -> ../../mmcblk0p6
190 lrwxrwxrwx 1 root root 15 May 31 21:48 testboot -> ../../mmcblk0p3196 lrwxrwxrwx 1 root root 15 May 31 21:48 testboot -> ../../mmcblk0p3
191 lrwxrwxrwx 1 root root 15 May 31 21:48 testrootfs -> ../../mmcblk0p5197 lrwxrwxrwx 1 root root 15 May 31 21:48 testrootfs -> ../../mmcblk0p5
192198
193Your sd card image is now complete. Now, go on to the section "Adding a device199Your sd card image is now complete. Now, go on to the section "Adding a device
194to LAVA"200to LAVA"
@@ -214,11 +220,11 @@
214220
215::221::
216222
217 /dev/mmcblk0p1 1 8191 4095+ da Non-FS data223 /dev/mmcblk0p1 1 8191 4095+ da Non-FS data
218 /dev/mmcblk0p2 * 8192 114687 53248 c W95 FAT32 (LBA)224 /dev/mmcblk0p2 * 8192 114687 53248 c W95 FAT32 (LBA)
219 /dev/mmcblk0p3 114688 6291455 3088384 83 Linux225 /dev/mmcblk0p3 114688 6291455 3088384 83 Linux
220 /dev/mmcblk0p4 6291456 31116287 12412416 5 Extended226 /dev/mmcblk0p4 6291456 31116287 12412416 5 Extended
221 /dev/mmcblk0p5 6293504 6424575 65536 c W95 FAT32 (LBA)227 /dev/mmcblk0p5 6293504 6424575 65536 c W95 FAT32 (LBA)
222228
223To create the testrootfs partition, we type "n" to create a new partition and229To create the testrootfs partition, we type "n" to create a new partition and
224once again select the default start sector by pressing "Enter". For the last230once again select the default start sector by pressing "Enter". For the last
@@ -234,13 +240,13 @@
234240
235::241::
236242
237 /dev/mmcblk0p1 1 8191 4095+ da Non-FS data243 /dev/mmcblk0p1 1 8191 4095+ da Non-FS data
238 /dev/mmcblk0p2 * 8192 114687 53248 c W95 FAT32 (LBA)244 /dev/mmcblk0p2 * 8192 114687 53248 c W95 FAT32 (LBA)
239 /dev/mmcblk0p3 114688 6291455 3088384 83 Linux245 /dev/mmcblk0p3 114688 6291455 3088384 83 Linux
240 /dev/mmcblk0p4 6291456 31116287 12412416 5 Extended246 /dev/mmcblk0p4 6291456 31116287 12412416 5 Extended
241 /dev/mmcblk0p5 6293504 6424575 65536 c W95 FAT32 (LBA)247 /dev/mmcblk0p5 6293504 6424575 65536 c W95 FAT32 (LBA)
242 /dev/mmcblk0p6 6426624 23203839 8388608 83 Linux248 /dev/mmcblk0p6 6426624 23203839 8388608 83 Linux
243 /dev/mmcblk0p7 23205888 31116287 3955200 c W95 FAT32 (LBA)249 /dev/mmcblk0p7 23205888 31116287 3955200 c W95 FAT32 (LBA)
244250
245Now we need to write this partition table back. Enter "w" and you will receive251Now we need to write this partition table back. Enter "w" and you will receive
246some warnings but you can ignore these.252some warnings but you can ignore these.
@@ -250,29 +256,31 @@
250256
251At the command prompt, type:257At the command prompt, type:
252258
253ls -l /dev/mmcblk0*259::
260
261 ls -l /dev/mmcblk0*
254262
255and you should see something like this:263and you should see something like this:
256264
257::265::
258266
259 brw-rw---- 1 root disk 179, 0 2012-02-10 19:30 /dev/mmcblk0267 brw-rw---- 1 root disk 179, 0 2012-02-10 19:30 /dev/mmcblk0
260 brw-rw---- 1 root disk 179, 1 2012-02-10 19:30 /dev/mmcblk0p1268 brw-rw---- 1 root disk 179, 1 2012-02-10 19:30 /dev/mmcblk0p1
261 brw-rw---- 1 root disk 179, 2 2012-02-10 19:30 /dev/mmcblk0p2269 brw-rw---- 1 root disk 179, 2 2012-02-10 19:30 /dev/mmcblk0p2
262 brw-rw---- 1 root disk 179, 3 2012-02-10 19:30 /dev/mmcblk0p3270 brw-rw---- 1 root disk 179, 3 2012-02-10 19:30 /dev/mmcblk0p3
263 brw-rw---- 1 root disk 179, 4 2012-02-10 19:30 /dev/mmcblk0p4271 brw-rw---- 1 root disk 179, 4 2012-02-10 19:30 /dev/mmcblk0p4
264 brw-rw---- 1 root disk 179, 5 2012-02-10 19:30 /dev/mmcblk0p5272 brw-rw---- 1 root disk 179, 5 2012-02-10 19:30 /dev/mmcblk0p5
265 brw-rw---- 1 root disk 179, 6 2012-02-10 19:30 /dev/mmcblk0p6273 brw-rw---- 1 root disk 179, 6 2012-02-10 19:30 /dev/mmcblk0p6
266 brw-rw---- 1 root disk 179, 7 2012-02-10 19:30 /dev/mmcblk0p7274 brw-rw---- 1 root disk 179, 7 2012-02-10 19:30 /dev/mmcblk0p7
267275
268Now we're going to make filing systems and label the new patitions. Enter the276Now we're going to make filing systems and label the new patitions. Enter the
269following three lines at the command prompt:277following three lines at the command prompt:
270278
271::279::
272280
273 mkfs.vfat -n testboot /dev/mmcblk0p5281 mkfs.vfat -n testboot /dev/mmcblk0p5
274 mkfs.vfat -n sdcard /dev/mmcblk0p7282 mkfs.vfat -n sdcard /dev/mmcblk0p7
275 mkfs.ext3 -L testrootfs /dev/mmcblk0p6283 mkfs.ext3 -L testrootfs /dev/mmcblk0p6
276284
277This last command does take some time, so be patient. Once it has completed,285This last command does take some time, so be patient. Once it has completed,
278reboot the card once more, and then check that the labels are correctly assigned286reboot the card once more, and then check that the labels are correctly assigned
@@ -284,11 +292,11 @@
284292
285::293::
286294
287 lrwxrwxrwx 1 root root 15 2012-02-10 19:30 boot -> ../../mmcblk0p2295 lrwxrwxrwx 1 root root 15 2012-02-10 19:30 boot -> ../../mmcblk0p2
288 lrwxrwxrwx 1 root root 15 2012-02-10 19:30 rootfs -> ../../mmcblk0p3296 lrwxrwxrwx 1 root root 15 2012-02-10 19:30 rootfs -> ../../mmcblk0p3
289 lrwxrwxrwx 1 root root 15 2012-02-10 19:30 sdcard -> ../../mmcblk0p7297 lrwxrwxrwx 1 root root 15 2012-02-10 19:30 sdcard -> ../../mmcblk0p7
290 lrwxrwxrwx 1 root root 15 2012-02-10 19:30 testboot -> ../../mmcblk0p5298 lrwxrwxrwx 1 root root 15 2012-02-10 19:30 testboot -> ../../mmcblk0p5
291 lrwxrwxrwx 1 root root 15 2012-02-10 19:30 testrootfs -> ../../mmcblk0p6299 lrwxrwxrwx 1 root root 15 2012-02-10 19:30 testrootfs -> ../../mmcblk0p6
292300
293Your sd card image is now complete. Now, go on to the section "Adding a device301Your sd card image is now complete. Now, go on to the section "Adding a device
294to LAVA"302to LAVA"
@@ -306,21 +314,21 @@
306314
307::315::
308316
309 device_type = panda317 device_type = panda
310 hostname = panda01318 hostname = panda01
311319
312The (current) list of supported device types is:320The (current) list of supported device types is:
313321
314::322::
315323
316 beagle324 beagle
317 beagle-xm325 beagle-xm
318 mx51evk326 mx51evk
319 mx53loco327 mx53loco
320 origen328 origen
321 panda329 panda
322 snowball_sd330 snowball
323 vexpress-a9331 vexpress-a9
324332
325If your device isn't in this list check the333If your device isn't in this list check the
326/srv/lava/instances/production/etc/lava-dispatcher/device-types directory to334/srv/lava/instances/production/etc/lava-dispatcher/device-types directory to

Subscribers

People subscribed via source and target branches