<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>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>------------------------------------------------------------------------------------------------------------<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 ?<span></span><br></div><br><a href="https://github.com/spark1729/rtems-libbsd/commits/RPI_SD" target="_blank">Github Link </a><br><br>Thanks </div>