Eciton Station: Installing Debian Jessie On Qemu Aarch64
Eciton Station: Installing Debian Jessie On Qemu Aarch64
Block devices
We need to prepare image files for the emulated HDD as well as the installation CDROM. The CDROM image, we just
download - until Debian Jessie has actually been released, from the weekly snapshots. I would recommend the netinst
iso, which is 150MB in size and grabs all packages from the network. If you need to do an installation somewhere with no
networking, go for the 4.4GB single DVD image instead.
For the HDD image, we just need to create an empty file of sufficient size to hold our system - I would say 8GB, but if
you're doing something very limited you could get away with less.
1 #!/bin/sh
2
1 of 3 06/05/2019 à 14:07
Installing Debian Jessie on QEMU AArch64 https://station.eciton.net/installing-debian-jessie-on-qemu-aar...
3 CDROM_IMG=debian-testing-arm64-netinst.iso
4 HDA_IMG=hda.img
5
6 make_cdrom_arg()
7 {
8 echo "-drive file=$1,id=cdrom,if=none,media=cdrom" \
9 "-device virtio-scsi-device -device scsi-cd,drive=cdrom"
10 }
11
12 make_hda_arg()
13 {
14 echo "-drive if=none,file=$1,id=hd0" \
15 "-device virtio-blk-device,drive=hd0"
16 }
17
18 HDA_ARGS=`make_hda_arg $HDA_IMG`
19 if [ $# -eq 1 ]; then
20 case $1 in
21 install)
22 CDROM_ARGS=`make_cdrom_arg $CDROM_IMG`
23 ;;
24 *)
25 CDROM_ARGS=""
26 ;;
27 esac
28 fi
29
30 qemu-system-aarch64 -m 1024 -cpu cortex-a57 -M virt -nographic \
31 -pflash flash0.img -pflash flash1.img \
32 $CDROM_ARGS $HDA_ARGS -netdev user,id=eth0 \
33 -device virtio-net-device,netdev=eth0 </pre>
From
here on, you have a standard Debian installer, which I'm not going to help you with, since there are many other resources
available (and the installer is generally quite straightforward).
social
atom feed
2 of 3 06/05/2019 à 14:07
Installing Debian Jessie on QEMU AArch64 https://station.eciton.net/installing-debian-jessie-on-qemu-aar...
rss feed
Proudly powered by Pelican, which takes great advantage of Python.
3 of 3 06/05/2019 à 14:07