fix qemu invocation for arm kernel

Download the correct dtb from debian when making a kernel and use it
when invoking qemu-system-arm.  Also, provide additional serial
parameters.
This commit is contained in:
Mindy Preston
2016-01-14 14:23:57 +00:00
parent c29135c18a
commit 55bfabc8f2
3 changed files with 4 additions and 1 deletions

View File

@@ -2,9 +2,10 @@ FROM ubuntu:15.10
COPY alpine/initrd-arm.img .
COPY alpine/kernel/zImage .
COPY alpine/kernel/dtb .
RUN apt-get update && apt-get install -y qemu-system-arm
RUN gzip -9 initrd-arm.img
ENTRYPOINT [ "qemu-system-arm", "-machine", "vexpress-a9", "-cpu", "cortex-a9", "-no-reboot", "-serial", "stdio", "-kernel", "zImage", "-initrd", "initrd-arm.img.gz", "-m", "256", "-append", "console=ttyAMA0", "-vnc", "none" ]
ENTRYPOINT [ "qemu-system-arm", "-machine", "vexpress-a15", "-cpu", "cortex-a15", "-no-reboot", "-serial", "stdio", "-kernel", "zImage", "-initrd", "initrd-arm.img.gz", "-dtb", "dtb", "-m", "256", "-append", "console=ttyAMA0,38400n8", "-vnc", "none" ]