raspberry pi simulation

Niteesh gsnb.gn at gmail.com
Sun Dec 1 16:43:01 UTC 2019


I want to simulate old raspberry pi 1 and 2 using qemu.
* qemu-system-arm -kernel hello.exe  -cpu cortex-a7 -M raspi2 -m 512
-no-reboot -serial stdio*

I use the above command to run the examples, and it does run, but not
always sometimes I get this weird output's where my whole screen gets
filled up with 0's. and sometimes I get an *RTEMS_FATAL_SOURCE_EXCEPTION*
with *executing thread is NULL *message at the bottom.
with a dump of something like this:

RTEMS RPi 2B 1.1 (1GB) [00a21041]


*** FATAL


**
fatal source: 9 (RTEMS_FATAL_SOURCE_EXCEPTION)

R0   = 0x0020e6d8 R8  = 0x00000000
R1   = 0x00000000 R9  = 0x00000001
R2   = 0x00303e10 R10 = 0x00001000
R3   = 0x00000000 R11 = 0x49444c45
R4   = 0x00000000 R12 = 0x00303c78
R5   = 0x0020e6d8 SP  = 0x00300b80
R6   = 0x00000000 LR  = 0x00302b1c
R7   = 0x00000000 PC  = 0x00204016
CPSR = 0x600001f3 VEC = 0x00000004
FPEXC = 0x40000000
FPSCR = 0x00000000
D00 = 0x0000000000000000
D01 = 0x0000000000000000
D02 = 0x0000000000000000
D03 = 0x0000000000000000
D04 = 0x0000000000000000
D05 = 0x0000000000000000
D06 = 0x0000000000000000
D07 = 0x0000000000000000
D08 = 0x0000000000000000
D09 = 0x0000000000000000
D10 = 0x0000000000000000
D11 = 0x0000000000000000
D12 = 0x0000000000000000
D13 = 0x0000000000000000
D14 = 0x0000000000000000
D15 = 0x0000000000000000
D16 = 0x0000000000000000
D17 = 0x0000000000000000
D18 = 0x0000000000000000
D19 = 0x0000000000000000
D20 = 0x0000000000000000
D21 = 0x0000000000000000
D22 = 0x0000000000000000
D23 = 0x0000000000000000
D24 = 0x0000000000000000
D25 = 0x0000000000000000
D26 = 0x0000000000000000
D27 = 0x0000000000000000
D28 = 0x0000000000000000
D29 = 0x0000000000000000
D30 = 0x0000000000000000
D31 = 0x0000000000000000
RTEMS version: 5.0.0.c6d8589bb00a9d2a5a094c68c90290df1dc44807-modified
RTEMS tools: 7.5.0 20191114 (RTEMS 5, RSB
83fa79314dd87c0a8c78fd642b2cea3138be8dd6, Newlib 3e24fbf6f)
executing thread ID: 0x089010001
executing thread name:

I also did try running the examples on the real raspi3 but still got no
luck. The steps I followed where mixture from where sources.
1. I first created a img file using objcopy.
2. Copied the kernel.img to SD card and modified the config.txt,
But still it couldn't boot got no output on my serial.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20191201/8bf2e482/attachment.html>


More information about the devel mailing list