Skip to content

Commit

Permalink
Add system files and Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ljishen committed Aug 16, 2017
1 parent 69de8e2 commit 316a44b
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
system/* filter=lfs diff=lfs merge=lfs -text
24 changes: 24 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# VERSION 1.0

FROM debian:stretch-slim

MAINTAINER Jianshen Liu <jliu120@ucsc.edu>

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"]
3 changes: 3 additions & 0 deletions system/hda.qcow2
Git LFS file not shown
3 changes: 3 additions & 0 deletions system/initrd.img-4.9.0-3-arm64
Git LFS file not shown
3 changes: 3 additions & 0 deletions system/vmlinuz-4.9.0-3-arm64
Git LFS file not shown

0 comments on commit 316a44b

Please sign in to comment.