forked from Linutronix/elbe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharm64-qemu-virt.xml
More file actions
93 lines (92 loc) · 2.62 KB
/
Copy patharm64-qemu-virt.xml
File metadata and controls
93 lines (92 loc) · 2.62 KB
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
<!--
SPDX-License-Identifier: 0BSD
SPDX-FileCopyrightText: Linutronix GmbH
-->
<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">
<project>
<name>aarch64</name>
<version>1.0</version>
<description>
use the following call to boot the image in qemu:
$ tar xf sdcard.qcow2.tar.xz
$ rm sdcard.qcow2.tar.xz
$ qemu-system-aarch64 \
-machine virt -cpu cortex-a57 -machine type=virt -nographic \
-smp 1 -m 1024 \
-netdev user,id=unet -device virtio-net-device,netdev=unet \
-redir tcp:2022::22 -redir tcp:2021::21 -redir tcp:2345::2345 \
-kernel vmlinuz \
-append "console=ttyAMA0 root=/dev/vda2" \
sdcard.qcow2
currently an own kernel is needed, but this shouldn't be necessary,
if we found how to use the one stored in mmcblk0p1
</description>
<buildtype>aarch64</buildtype>
<mirror>
<primary_host>ftp.de.debian.org</primary_host>
<primary_path>/debian</primary_path>
<primary_proto>http</primary_proto>
</mirror>
<suite>buster</suite>
</project>
<target>
<hostname>lx64</hostname>
<domain>linutronix.de</domain>
<passwd>foo</passwd>
<console>ttyAMA0,115200</console>
<images>
<msdoshd>
<name>sdcard.img</name>
<size>1500MiB</size>
<partition>
<size>50MiB</size>
<label>boot</label>
<bootable />
</partition>
<partition>
<size>remain</size>
<label>rfs</label>
</partition>
</msdoshd>
</images>
<fstab>
<bylabel>
<label>boot</label>
<mountpoint>/boot</mountpoint>
<fs>
<type>vfat</type>
</fs>
</bylabel>
<bylabel>
<label>rfs</label>
<mountpoint>/</mountpoint>
<fs>
<type>ext2</type>
<tune2fs>-i 0</tune2fs>
</fs>
</bylabel>
</fstab>
<install-recommends />
<finetuning>
<rm>/var/cache/apt/archives/*.deb</rm>
</finetuning>
<pkg-list>
<pkg>linux-image-arm64</pkg>
<pkg>openssh-server</pkg>
<pkg>less</pkg>
<pkg>bash</pkg>
<pkg>vim-nox</pkg>
<pkg>wget</pkg>
<pkg>ntpdate</pkg>
<pkg>busybox</pkg>
</pkg-list>
<project-finetuning>
<losetup img="sdcard.img">
<!-- globs work, but must make sure, that only a single file is matched -->
<copy_from_partition part="1" artifact="vmlinuz">/vmlinuz-4.19.0-*-arm64</copy_from_partition>
</losetup>
<img_convert fmt="qcow2" dst="sdcard.qcow2">sdcard.img</img_convert>
<set_packer packer="tarxz">sdcard.qcow2</set_packer>
</project-finetuning>
</target>
</ns0:RootFileSystem>