qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

qemu hello world prints nothing..


From: ckim
Subject: qemu hello world prints nothing..
Date: Tue, 26 Jan 2021 16:01:37 +0900

Hello all,

 

I wish someone could help me here. Running a simple program on qemu is not easy for me.

I tried to run baremetal hello world program and found this web page.

(https://balau82.wordpress.com/2010/02/28/hello-world-for-bare-metal-arm-using-qemu/)

This page is somewhat so old, but I decided to give it a try.

 

I followed the content except I changed

“ LDR sp, =stack_top”

to

“ldr x5, stack_top

msr sp_el0, x5”

(I’m not sure if this is ok BTW.)

 

And I used aarch64-elf- tool (this is for baremetal).

So the compile is ok until test.elf and test.bin.

 

When I execute

“qemu-system-aarch64 -M virt -cpu cortex-a57 -kernel test.bin -nographic”

nothing comes out.

What can be wrong?

 

Chan Kim

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]