[elbe-devel] [PATCH v2] examples arm64-qemu-virt: add project-finetuning section
Manuel Traut
manut at linutronix.de
Fri Dec 21 13:17:56 CET 2018
From: Torben Hohn <torben.hohn at linutronix.de>
try to extract the kernel from the image (untested, used filename from
packages.debian.org file-list). While at it, use latest kernel.
Also convert image to qcow2, because this image is intended to be used
with qemu.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
changes since v1:
* update kernel
* use kernel filename from
https://packages.debian.org/jessie/arm64/linux-image-3.16.0-6-arm64/filelist
* update description
* fix open/close of copy_from_partition
examples/arm64-qemu-virt.xml | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/examples/arm64-qemu-virt.xml b/examples/arm64-qemu-virt.xml
index 6b03b294..cbc6ae57 100644
--- a/examples/arm64-qemu-virt.xml
+++ b/examples/arm64-qemu-virt.xml
@@ -10,12 +10,9 @@
-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 linux-arm64/arch/arm64/boot/Image \
+ -kernel elbe-build-*/zImage \
-append "console=ttyAMA0 root=/dev/vda2" \
sdcard.img
-
- 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>
@@ -67,7 +64,7 @@
<rm>/var/cache/apt/archives/*.deb</rm>
</finetuning>
<pkg-list>
- <pkg>linux-image-3.16.0-4-arm64</pkg>
+ <pkg>linux-image-3.16.0-6-arm64</pkg>
<pkg>openssh-server</pkg>
<pkg>less</pkg>
<pkg>bash</pkg>
@@ -76,5 +73,11 @@
<pkg>ntpdate</pkg>
<pkg>busybox</pkg>
</pkg-list>
+ <project-finetuning>
+ <losetup img="sdcard.img">
+ <copy_from_partition part="1" artifact="zImage">/boot/vmlinuz-3.16.0-6-arm64</copy_from_partition>
+ </losetup>
+ <img_convert fmt="qcow2" dst="sdcard.qcow2">sdcard.img</img_convert>
+ </project-finetuning>
</target>
</ns0:RootFileSystem>
--
2.19.2
More information about the elbe-devel
mailing list