<div dir="ltr"><div dir="ltr">On Sat, Nov 30, 2019 at 3:03 AM Christian Mauderer <<a href="mailto:list@c-mauderer.de">list@c-mauderer.de</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 29/11/2019 21:12, Niteesh wrote:<br>
> I am interested in contributing to the raspberry pi BSP. As of now RTEMS<br>
> only has support for RPi1 and RPi2, but It seems that most of the code<br>
> for RPi2 should work unmodified for RPi3 and RPi4, I am sure about the<br>
> peripherals since the base address of the registers haven't changed in<br>
> the new ones.<br>
> I looked at the previous GSOC work and README section of the<br>
> raspberrypi, but they look not up to date. I want to know the current<br>
> status of the BSP, what all is completed, yet to be done? so that's I<br>
> could start working on something.<br>
> <br>
<br>
Hello Niteesh,<br>
<br>
from a quick look there are the following drivers:<br>
- Serial<br>
- GPIO<br>
- I2C<br>
- SPI<br>
- Some Framebuffer<br>
<br>
In 2016 a GSoC student tried to port the USB and Ethernet driver. But it<br>
seems that this work hadn't been merged:<br>
<br>
  <a href="https://devel.rtems.org/wiki/GSoC/2016" rel="noreferrer" target="_blank">https://devel.rtems.org/wiki/GSoC/2016</a><br>
<br>
Regarding good starting points: I think you already found some with just<br>
this mail.<br>
<br>
- If you have an old Pi1 or 2, you could try to run some basic RTEMS<br>
there as a first step. Or did you already try that?<br></blockquote><div>I only have the Pi3 model B. But I did try running basic examples like hello, ticker</div><div>on qemu using this command:</div><div> qemu-system-arm -M raspi2 -m 1G -kernel hello.exe -serial mon:stdio -net none -nographic -dtb bcm2709-rpi-2-b.dtb<br></div><div>But this does not work sometimes for the same program, it results in fatal source exception.</div><div>I am yet to try these examples on Pi3 because I waiting for my USB - TTL converter</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
- You say that it "should work" on RPi3 and RPi4. It would be great if<br>
you could try it and update the documentation if it does.<br>
<br>
- If you take some notes while doing the tests, it would be great if you<br>
could donate them to the documentation so the old README could be<br>
replaced:<br>
<a href="https://docs.rtems.org/branches/master/user/bsps/bsps-arm.html#raspberrypi" rel="noreferrer" target="_blank">https://docs.rtems.org/branches/master/user/bsps/bsps-arm.html#raspberrypi</a><br>
<br>
- If you want to start a bigger project you could take a look at the USB<br>
work and test it. Most likely it still needs some work.<br></blockquote><div>I am very much interested in working on projects like USB, but I lack the basic's. I having a look at the previous GSOC work, and</div><div>other USB work's from different BSP's(beagle). Can you recommend some resources or things that I should know before hand?</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
- If you are interested in any other peripheral of the Pi: Just ask.<br></blockquote><div>I found no example of the GPIO working on raspberrypi, And also there no clear doc for the GPIO API, is there any examples or docs</div><div>that you could point me to? </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Best regards<br>
<br>
Christian<br>
</blockquote></div></div>