From 316a44b9776dc737687e479927adfdb710c4afdd Mon Sep 17 00:00:00 2001 From: Jianshen Liu Date: Tue, 15 Aug 2017 22:57:25 -0700 Subject: [PATCH] Add system files and Dockerfile --- .gitattributes | 1 + docker/Dockerfile | 24 ++++++++++++++++++++++++ system/hda.qcow2 | 3 +++ system/initrd.img-4.9.0-3-arm64 | 3 +++ system/vmlinuz-4.9.0-3-arm64 | 3 +++ 5 files changed, 34 insertions(+) create mode 100644 .gitattributes create mode 100644 docker/Dockerfile create mode 100644 system/hda.qcow2 create mode 100644 system/initrd.img-4.9.0-3-arm64 create mode 100644 system/vmlinuz-4.9.0-3-arm64 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..534080e --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +system/* filter=lfs diff=lfs merge=lfs -text diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..4bb469b --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,24 @@ +# VERSION 1.0 + +FROM debian:stretch-slim + +MAINTAINER Jianshen Liu + +RUN apt-get update \ + && apt-get install -y qemu + +ENV MEMORY 2G +ENV VMLINUXZ /root/system/vmlinuz-4.9.0-3-arm64 +ENV INITRD_IMG /root/system/initrd.img-4.9.0-3-arm64 +ENV DRIVE_FILE /root/system/hda.qcow2 + +CMD ["sh", "-c", \ + "qemu-system-aarch64 -M virt -m $MEMORY -smp 2 -cpu cortex-a53 \ + -kernel $VMLINUXZ \ + -initrd $INITRD_IMG \ + -append 'root=/dev/vda1' \ + -drive if=none,file=${DRIVE_FILE},format=qcow,id=hd \ + -device virtio-blk-pci,drive=hd \ + -netdev user,id=mynet \ + -device virtio-net-pci,netdev=mynet \ + -nographic"] diff --git a/system/hda.qcow2 b/system/hda.qcow2 new file mode 100644 index 0000000..0a20881 --- /dev/null +++ b/system/hda.qcow2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6477950d6967314239e4c094871a94d47fdd1fd71607e9bb13b77e2ee5a2ee35 +size 1385472000 diff --git a/system/initrd.img-4.9.0-3-arm64 b/system/initrd.img-4.9.0-3-arm64 new file mode 100644 index 0000000..e1c7118 --- /dev/null +++ b/system/initrd.img-4.9.0-3-arm64 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9417ee7a0c122c1d8b814d6be14ee3f8d06a8f717e51b01505a2fd85d0b01d09 +size 17178470 diff --git a/system/vmlinuz-4.9.0-3-arm64 b/system/vmlinuz-4.9.0-3-arm64 new file mode 100644 index 0000000..c77b459 --- /dev/null +++ b/system/vmlinuz-4.9.0-3-arm64 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:504edcc389906b967447598fd499329cfe987973df5e523ebd1d47645ddfba95 +size 14080512