Open pykello opened 8 years ago
qemu-system-arm -machine raspi2 -m 128M -nographic -kernel uart01.bin qemu-system-arm: -machine raspi2: Unsupported machine type
Not sure which uart01 example, but if this is for a raspberry pi 2 then you need the peripherals to be based at 0x3F000000 not 0x20000000 that might help...
without the gdb stuff it should just print to the console, at least in other qemu runs I can use ctrl-a then x to exit out.
On 06/25/2016 11:17 AM, Hadi Moshayedi wrote:
Qemu 2.6 added support for raspi2. But I couldn't get the uart01 example run correctly using raspi2.
The steps I took was:
- Edit |uart01/memmap| and change origin to |0x10000| (which is the address qemu starts executing),
- make
- |/usr/local/bin/qemu-system-arm -machine raspi2 -m 512M -nographic -gdb tcp::26000 -S -kernel uart01.bin|
Then start |arm-none-eabi-gdb| and run following commands:
|target remote localhost:26000 symbol-file ./uart01.elf |
Then, when I start the program, it seems that the inner while loop never breaks and I don't see any output.
I am wondering if I'm doing any steps incorrectly.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dwelch67/raspberrypi/issues/22, or mute the thread https://github.com/notifications/unsubscribe/AAXjrLtYAPRMLpatUBwG6aMMnM4ULnrKks5qPUZvgaJpZM4I-XX5.
Hello,
I am also trying to use qemu. Uart01 will not work, as for me it seems, that simply only uart0 is redirected into console (maybe qemu does not yet support uart1). Go for uartx01 example It should work fine with steps you provided + changing peripherals offsets as David mentioned.
Qemu 2.6 added support for raspi2. But I couldn't get the uart01 example run correctly using raspi2.
The steps I took was:
uart01/memmap
and change origin to0x10000
(which is the address qemu starts executing),/usr/local/bin/qemu-system-arm -machine raspi2 -m 512M -nographic -gdb tcp::26000 -S -kernel uart01.bin
Then start
arm-none-eabi-gdb
and run following commands:Then, when I start the program, it seems that the inner while loop never breaks and I don't see any output.
I am wondering if I'm doing any steps incorrectly.