QEMU bare-metal application

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

QEMU bare-metal application

1,403 Views
sbangalore
Contributor I

I am trying to run a simple bare-metal application within QEMU on the LS1043A. The example I am testing is here:

GitHub - freedomtan/aarch64-bare-metal-qemu at 2ae937a2b106b43bfca49eec49359b3e30eac1b1 

The example is supposed to print 'Hello World' on a serial output.

Here's the command I am using to launch QEMU along with the example program (test64.elf)

>> kvm -M virt -cpu host -nographic -enable-kvm -serial tcp:127.0.0.1:4444,server,telnet -kernel ./test64.elf

QEMU starts running and I can see the corresponding PID as well. It waits for a telnet connection on port 4444. When I open a telnet session to connect to QEMU, QEMU accepts the connection, but I don't see the output from the example program displayed in the telnet session.

Questions:

1. Is the UART0 address 0x90000000 correct for the LS1043A?

2. Is this a valid example of a bare-metal application?

3. Can someone please share an example of a bare-metal application that works on the LS1043A DCM board?

Thanks in advance,

0 Kudos
Reply
0 Replies