jserv / mini-arm-os

Build a minimal multi-tasking OS kernel for ARM from scratch
Other
1.04k stars 242 forks source link

01-HelloWorld cannot use "Press Ctrl-A and then X to exit QEMU" in ubuntu 14.04 x86_64 guest by virtualbox #1

Closed benwei closed 9 years ago

benwei commented 9 years ago

I found issue that why 01-HelloWorld cannot use "Press Ctrl-A and then X to exit QEMU" in my environment. After add "-cpu arm926", it works as well.

patch as bellow.

diff --git a/01-HelloWorld/Makefile b/01-HelloWorld/Makefile
index cb4d2eb..a88d386 100644
--- a/01-HelloWorld/Makefile
+++ b/01-HelloWorld/Makefile
@@ -21,7 +21,7 @@ startup.o: startup.S
 qemu: $(TARGET)
        @echo "Press Ctrl-A and then X to exit QEMU"
        @echo
-       qemu-system-arm -M versatilepb -m 128M -nographic -kernel $(TARGET)
+       qemu-system-arm -M versatilepb -cpu arm926 -m 128M -nographic -kernel $(TARGET)

 clean:
        rm -f *.o *.bin *.elf
jserv commented 9 years ago

Fixed in commit 2f36b2bb865e809bddd856c48b3c1bb674d8e45d

Thanks!