Re: Unfortunately no success tests on raspberryPi BSP with qemu

2023-05-29 Thread Heinz Junkes
Hallo Jacob,
I finally managed to get everything working properly under OS-X as well.
You only have to follow the documentation ;-(
And there especially the link to the bootable firmware:

git clone https://github.com/raspberrypi/firmware.git
cd firmware
git checkout tags/1.20200601 -b oldRaspi

And then there was a hurdle with the OS-X default filesystem:
"By default, Mac OS uses a case-insensitive file system to support 
compatibility with applications (for example, Photoshop) provided for the 
operating system. The file system itself is capable of working in a 
case-sensitive mode.”
I had to create a volume with the case-sensitive support.
And in this volume I was then able to install everything without any problems 
and with your two shell scripts get it working.

Danke,
Heinz


> On 1. May 2023, at 20:19, Jacob Killelea  wrote:
> 
> Hi Heinz,
> 
> Here's a couple notes I use to get things up and running, and I've attached 
> my scripts.
> 
> 1. You need an old version of the RPi firmware, the newer Device Tree Blobs 
> are not supported.
> 2. I use GDB in another window to load the DTB and kick off the boot process.
> 3. I usually target the Raspberry Pi 2 or 3 with SMP (the Pi 1 is just too 
> old). I've made a couple tweaks to get that one to boot that aren't in the 
> docs yet. I use arm-rtems6-objcopy -O binary [exe_name].exe kernel.img to 
> create a raw binary and load that into QEMU. Debugging symbols still work in 
> GDB, but for whatever reason, the elf files from GCC don't work with SMP.
> 4. This article has some great pointers about configuring QEMU to run Linux 
> on a Pi 3, which is essentially identical to the Pi 2, except with WiFi. 
> https://raduzaharia.medium.com/system-emulation-using-qemu-raspberry-pi-3-4973260ffb3e
> 
> 
> Hope that helps,
> Jacob
> 
> On Fri, Mar 17, 2023 at 9:49 AM Heinz Junkes  wrote:
> Hi,
> 
> I've been trying again for some time to get RTEMS (version 5 or 6) for 
> raspberryPi2 to work on a qemu.
> 
> There is a lot of documentation about it. To those I have tried it there are 
> always some 'fuzzies’ and I 
> unfortunately get never any output message when starting
> qemu-system-arm -M raspi2 -m 1G -kernel ./tests/hello.exe  -serial mon:stdio 
> -nographic 
> 
> Has anyone ever done it successfully and can send me a script?
> Danke,
> Heinz
> 
> P.S. no problems with RTEMS_BSP=xilinx_zynq_a9_qemu (on 5 and 6, with/without 
> rtems-libbsd). 
>  I have never managed to get a bootable SD card here.
> 
> ___
> users mailing list
> users@rtems.org
> http://lists.rtems.org/mailman/listinfo/users
> 

___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Unfortunately no success tests on raspberryPi BSP with qemu

2023-05-01 Thread Jacob Killelea
Hi Heinz,

Here's a couple notes I use to get things up and running, and I've attached
my scripts.

1. You need an old version of the RPi firmware, the newer Device Tree Blobs
are not supported.
2. I use GDB in another window to load the DTB and kick off the boot
process.
3. I usually target the Raspberry Pi 2 or 3 with SMP (the Pi 1 is just too
old). I've made a couple tweaks to get that one to boot that aren't in the
docs yet. I use arm-rtems6-objcopy -O binary [exe_name].exe kernel.img to
create a raw binary and load that into QEMU. Debugging symbols still work
in GDB, but for whatever reason, the elf files from GCC don't work with SMP.
4. This article has some great pointers about configuring QEMU to run Linux
on a Pi 3, which is essentially identical to the Pi 2, except with WiFi.
https://raduzaharia.medium.com/system-emulation-using-qemu-raspberry-pi-3-4973260ffb3e


Hope that helps,
Jacob

On Fri, Mar 17, 2023 at 9:49 AM Heinz Junkes 
wrote:

> Hi,
>
> I've been trying again for some time to get RTEMS (version 5 or 6) for
> raspberryPi2 to work on a qemu.
>
> There is a lot of documentation about it. To those I have tried it there
> are always some 'fuzzies’ and I
> unfortunately get never any output message when starting
> qemu-system-arm -M raspi2 -m 1G -kernel ./tests/hello.exe  -serial
> mon:stdio -nographic
>
> Has anyone ever done it successfully and can send me a script?
> Danke,
> Heinz
>
> P.S. no problems with RTEMS_BSP=xilinx_zynq_a9_qemu (on 5 and 6,
> with/without rtems-libbsd).
>  I have never managed to get a bootable SD card here.
>
> ___
> users mailing list
> users@rtems.org
> http://lists.rtems.org/mailman/listinfo/users


debug.sh
Description: application/shellscript


qemu.sh
Description: application/shellscript
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Unfortunately no success tests on raspberryPi BSP with qemu

2023-03-17 Thread Heinz Junkes
Hi,

I've been trying again for some time to get RTEMS (version 5 or 6) for 
raspberryPi2 to work on a qemu.

There is a lot of documentation about it. To those I have tried it there are 
always some 'fuzzies’ and I
unfortunately get never any output message when starting
qemu-system-arm -M raspi2 -m 1G -kernel ./tests/hello.exe  -serial mon:stdio 
-nographic

Has anyone ever done it successfully and can send me a script?
Danke,
Heinz

P.S. no problems with RTEMS_BSP=xilinx_zynq_a9_qemu (on 5 and 6, with/without 
rtems-libbsd).
 I have never managed to get a bootable SD card here.



smime.p7s
Description: S/MIME cryptographic signature
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users