Porting BSD Mailbox for RPi

Mudit Jain muditjain18011995 at gmail.com
Thu Jun 9 09:20:44 UTC 2016


Hi all,

I have procured a RPi Model B and was testing the ported driver on the
same.
This is where it hangs.
--------------------------------------------------------------------------------------------------
*** LIBBSD SDHCI 01 TEST ***
nexus0: <RTEMS Nexus device>
bcm_dma0: <BCM2835 DMA Controller> on nexus0
sdhci_bcm0: <Broadcom 2708 SDHCI controller> on nexus0
<Hangs>
--------------------------------------------------------------------------------------------------
It hangs because it tries to look for a mbox device,
Ideally, mbox0 should be on nexus0.

I suspect the problem is with the bus handles and the IRQs

Presently, the resource structure defined in the nexus-devices.h code is as
follows :
------------------------------------------------------------------------------------------------------------------------
static const rtems_bsd_device_resource rpi_mbox_res[] = {
    {
        .type = RTEMS_BSD_RES_MEMORY,
        .start_request = 0,
        .start_actual = 0x2000B880
    }, {
        .type = RTEMS_BSD_RES_IRQ,
        .start_request = 0,
        .start_actual = BCM2835_IRQ_ID_MAILBOX_0
    }
};
------------------------------------------------------------------------------------------------------------
The value of BCM2835_IRQ_ID_MAILBOX_0 is 65 in irq.h

Is this resource structure appropriate for mbox ?

Github Link <https://github.com/spark1729/rtems-libbsd/commits/RPI_SD>

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160609/08ecf4dc/attachment.html>


More information about the devel mailing list