summaryrefslogtreecommitdiff
path: root/lx-trainer-vm.xml
blob: 4f77693fbe0956fabe474563c4824bb7a7adf374 (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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<ns0:RootFileSystem xmlns:ns0="https://www.linutronix.de/projects/Elbe" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" created="2009-05-20T08:50:56" revision="6" xsi:schemaLocation="https://www.linutronix.de/projects/Elbe dbsfed.xsd">
	<initvm>
		<buildtype>amd64</buildtype>
		<mirror>
			<primary_host>ftp.de.debian.org</primary_host>
			<primary_path>/debian</primary_path>
			<primary_proto>http</primary_proto>
			<url-list>
				<url>
					<binary>
						http://debian.linutronix.de/elbe-testing wheezy main
					</binary>
					<source>
						http://debian.linutronix.de/elbe-testing wheezy main
					</source>
				</url>
			</url-list>
		</mirror>
		<noauth/>
		<suite>wheezy</suite>
	</initvm>
	<project>
		<name>lx-training</name>
		<version>1</version>
		<description>
			can be used for linutronix trainigs. use as usb hd or
			use this command to generate a vmware image:
			qemu-img convert -O vmdk lx-trainer.img lx-trainer.vmdk
		</description>
		<buildtype>i386</buildtype>
		<mirror>
			<primary_host>ftp.de.debian.org</primary_host>
			<primary_path>/debian</primary_path>
			<primary_proto>http</primary_proto>
			<url-list>
				<url>
					<binary>
						http://ftp.de.debian.org/debian jessie contrib non-free
					</binary>
					<source>
						http://ftp.de.debian.org/debian jessie contrib non-free
					</source>
				</url>
				<url>
					<binary>
						http://debian.linutronix.de/elbe-testing jessie main
					</binary>
					<source>
						http://debian.linutronix.de/elbe-testing jessie main
					</source>
				</url>
			</url-list>
		</mirror>
		<noauth/>
		<suite>jessie</suite>
	</project>
	<target>
		<hostname>lx-training</hostname>
		<domain>tec.linutronix.de</domain>
		<passwd>root</passwd>
		<console>ttyS0,115200</console>
		<images>
			<msdoshd>
				<name>lx-trainer.img</name>
				<size>16GiB</size>
				<grub-install/>
				<partition>
					<size>remain</size>
					<label>rfs</label>
					<bootable/>
				</partition>
			</msdoshd>
		</images>
		<fstab>
			<bylabel>
				<label>rfs</label>
				<mountpoint>/</mountpoint>
				<fs>
					<type>ext4</type>
					<tune2fs>-i 0</tune2fs>
				</fs>
			</bylabel>
			<bylabel>
				<label>lxhome</label>
				<mountpoint>/home</mountpoint>
				<fs>
					<type>ext4</type>
					<tune2fs>-i 0</tune2fs>
				</fs>
			</bylabel>
			<bydev>
				<source>none</source>
				<mountpoint>/sys/kernel/debug</mountpoint>
				<fs>
					<type>debugfs</type>
				</fs>
			</bydev>
		</fstab>
		<finetuning>
			<rm>var/cache/apt/archives/*.deb</rm>
			<command>wget https://sourcery.mentor.com/sgpp/lite/arm/portal/package8739/public/arm-none-linux-gnueabi/arm-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2</command>
			<command>tar xjf arm-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 -C /opt</command>
			<command>rm arm-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2</command>
			<command>wget http://ftp.halifax.rwth-aachen.de/eclipse//technology/epp/downloads/release/luna/R/eclipse-cpp-luna-R-linux-gtk.tar.gz</command>
			<command>tar xzf eclipse-cpp-luna-R-linux-gtk.tar.gz -C /opt</command>
			<command>rm eclipse-cpp-luna-R-linux-gtk.tar.gz</command>
			<mkdir>/opt/yocto</mkdir>
			<command>git clone -b daisy git://git.yoctoproject.org/poky.git /opt/yocto/poky.git</command>
			<command>git clone -b daisy git://git.yoctoproject.org/meta-ti /opt/yocto/meta-ti.git</command>
			<command>git clone -b daisy git://git.yoctoproject.org/meta-fsl-arm /opt/yocto/meta-fsl-arm.git</command>
			<adduser passwd="devel" shell="/bin/bash" groups="sudo">devel</adduser>
		</finetuning>
		<pkg-list>
			<pkg>grub-pc</pkg>
			<pkg>linux-image-686-pae</pkg>
			<pkg>linux-image-686-pae-dbg</pkg>
			<pkg>linux-headers-686-pae</pkg>
			<pkg>linux-tools</pkg>
			<pkg>firmware-linux</pkg>

			<!-- basics -->
			<pkg>openssh-client</pkg>
			<pkg>openssh-server</pkg>
			<pkg>less</pkg>
			<pkg>bash</pkg>
			<pkg>vim-nox</pkg>
			<pkg>emacs-nox</pkg>
			<pkg>mc</pkg>
			<pkg>diffstat</pkg>
			<pkg>quilt</pkg>
			<pkg>git</pkg>
			<pkg>gedit</pkg>
			<pkg>gksu</pkg>

			<!-- fastboot training -->
			<pkg>bootchart2</pkg>
			<pkg>pybootchartgui</pkg>
			<pkg>kexec-tools</pkg>
			<!-- fastboot: we need some tool for SVG -->
			<pkg>inkscape</pkg>

			<!-- linux training -->
			<pkg>mtd-utils</pkg>
			<pkg>qemu-system</pkg>
			<pkg>qemu-user</pkg>
			<pkg>build-essential</pkg>
			<pkg>autoconf</pkg>
			<pkg>automake</pkg>
			<pkg>u-boot-tools</pkg>
			<pkg>libncurses5-dev</pkg>
			<pkg>bc</pkg>
			<pkg>nfs-kernel-server</pkg>
			<pkg>tftpd-hpa</pkg>
			<pkg>duma</pkg>
			<pkg>strace</pkg>
			<pkg>ltrace</pkg>
			<pkg>gdb</pkg>

			<!-- elbe training -->
			<pkg>elbe</pkg>
			<pkg>reprepro</pkg>
			<pkg>apache2</pkg>
			<pkg>devscripts</pkg>
			<pkg>dh-make</pkg>

			<!-- security training -->
			<pkg>acl</pkg>
			<pkg>attr</pkg>
			<pkg>tomoyo-tools</pkg>
			<pkg>selinux-basics</pkg>
			<pkg>selinux-utils</pkg>
			<pkg>selinux-policy-default</pkg>
			<pkg>selinux-policy-dev</pkg>
			<pkg>openvpn</pkg>
			<pkg>easy-rsa</pkg>

			<!-- needed by eclipse -->
			<pkg>openjdk-7-jdk</pkg>

			<!-- needed by yocto / toaster -->
			<pkg>python-django</pkg>
			<pkg>python-django-south</pkg>
			<pkg>unzip</pkg>
			<pkg>texinfo</pkg>
			<pkg>chrpath</pkg>
			<pkg>libsdl1.2-dev</pkg>

			<!-- desktop -->
			<pkg>lightdm</pkg>
			<pkg>mate-desktop-environment-extras</pkg>
			<pkg>mate-gnome-main-menu-applet</pkg>
			<pkg>mate-themes</pkg>
			<pkg>pluma</pkg>
			<pkg>xterm</pkg>
			<pkg>xinit</pkg>
			<pkg>locales</pkg>
			<pkg>xserver-xorg</pkg>
			<pkg>network-manager-gnome</pkg>
			<pkg>wireshark</pkg>
			<pkg>xxxterm</pkg>
			<pkg>gitk</pkg>

			<!-- for the trainer -->
			<pkg>evince</pkg>
		</pkg-list>
	</target>
</ns0:RootFileSystem>