<div dir="ltr"><div><div><div><div>Hi all,<br><br></div><div>I have procured a RPi Model B and was testing the ported driver on the same. <br></div><div>This is where it hangs. <br></div><div>--------------------------------------------------------------------------------------------------<br>*** LIBBSD SDHCI 01 TEST ***<br>nexus0: <RTEMS Nexus device><br>bcm_dma0: <BCM2835 DMA Controller> on nexus0<br>sdhci_bcm0: <Broadcom 2708 SDHCI controller> on nexus0<br></div><Hangs><br>--------------------------------------------------------------------------------------------------<br></div>It hangs because it tries to look for a mbox device, <br></div><div>Ideally, mbox0 should be on nexus0.<br><br></div>I suspect the problem is with the bus handles and the IRQs<br><br></div>Presently, the resource structure defined in the nexus-devices.h code is as follows : <br>------------------------------------------------------------------------------------------------------------------------<br><div>static const rtems_bsd_device_resource rpi_mbox_res[] = {<br>    {<br>        .type = RTEMS_BSD_RES_MEMORY,<br>        .start_request = 0,<br>        .start_actual = 0x2000B880<br>    }, {<br>        .type = RTEMS_BSD_RES_IRQ,<br>        .start_request = 0,<br>        .start_actual = BCM2835_IRQ_ID_MAILBOX_0<br>    }<br>};<br><div><div><div>------------------------------------------------------------------------------------------------------------<br></div><div>The value of BCM2835_IRQ_ID_MAILBOX_0 is 65 in irq.h <br><br></div><div>Is this resource structure appropriate for mbox ?<br><br></div><div>In addition to that, as Andre pointed out that from the bsd mailbox code
    includes framebuffer operations, which may be redundant with the
    current RPI framebuffer support. <br> The
    main benefit from the FreeBSD code may be the DMA access to the
    mailboxes. <span class="im"></span><br><br><a href="https://github.com/spark1729/rtems-libbsd/commits/RPI_SD">Github Link </a><br><br>Thanks <br></div></div><div>Mudit<br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 4, 2016 at 9:51 AM, Chris Johns <span dir="ltr"><<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 3/06/2016 10:20 PM, Sebastian Huber wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 03/06/16 13:20, Mudit Jain wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In the latest commit I have followed the FreeBSD port guidelines given<br>
libbsd.txt using the tools to port the code.<br>
</blockquote>
<br>
Sorry for being pedantic, but please follow the guidelines exactly:<br>
<br>
</blockquote>
<br></span>
I will add we have to be very precise about doing this and patches can only be accepted if this is the case.<br>
<br>
Sebastian, I wonder if we can automate the testing for this?<span class="HOEnZb"><font color="#888888"><br>
<br>
Chris<br>
</font></span></blockquote></div><br></div>