<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>Thanks for the help.</div><div>I tried to use your code, but I always get "<span style="color:rgb(163,21,21);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:14px;white-space:pre">ERROR: SD could not be mounted after timeout</span>".</div><div>Even after raising the waiting time.</div><div><br></div><div>The sources I use start here:</div><div><a href="https://github.com/nilhoel1/rtems-pru/blob/pruss-shell/main.c#L110">https://github.com/nilhoel1/rtems-pru/blob/pruss-shell/main.c#L110</a></div><div><br></div><div>And my uart output is:</div><div>""</div><div>waiting for SD...<br><br>usbus0: 480Mbps High Speed USB v2.0<br>usbus1: 480Mbps High Speed USB v2.0<br>media listener: event = DISK ATTACH, state = INQUIRY, src = mmcsd<br>media listener: event = DISK ATTACH, state = SUCCESS, src = mmcsd, dest = /dev/mmcsd-0<br>media listener: event = MOUNT, state = INQUIRY, src = /dev/mmcsd-0<br>ugen0.1: <Mentor Graphics OTG Root HUB> at usbus0<br>ugen1.1: <Mentor Graphics OTG Root HUB> at usbus1<br>uhub0: <Mentor Graphics OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0<br>uhub1: <Mentor Graphics OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1<br>media listener: event = MOUNT, state = FAILED, src = /dev/mmcsd-0<br>media listener: event = PARTITION INQUIRY, state = INQUIRY, src = /dev/mmcsd-0<br>media listener: event = PARTITION INQUIRY, state = SUCCESS, src = /dev/mmcsd-0<br>media listener: event = PARTITION ATTACH, state = INQUIRY, src = /dev/mmcsd-0<br>media listener: event = PARTITION ATTACH, state = SUCCESS, src = /dev/mmcsd-0, dest = /dev/mmcsd-0-0<br>media listener: event = MOUNT, state = INQUIRY, src = /dev/mmcsd-0-0<br>media listener: event = MOUNT, state = FAILED, src = /dev/mmcsd-0-0<br>media listener: event = DISK ATTACH, state = INQUIRY, src = mmcsd<br>media listener: event = DISK ATTACH, state = SUCCESS, src = mmcsd, dest = /dev/mmcsd-1<br>media listener: event = MOUNT, state = INQUIRY, src = /dev/mmcsd-1<br>media listener: event = MOUNT, state = FAILED, src = /dev/mmcsd-1<br>media listener: event = PARTITION INQUIRY, state = INQUIRY, src = /dev/mmcsd-1<br>media listener: event = PARTITION INQUIRY, state = SUCCESS, src = /dev/mmcsd-1<br>media listener: event = PARTITION ATTACH, state = INQUIRY, src = /dev/mmcsd-1<br>media listener: event = PARTITION ATTACH, state = SUCCESS, src = /dev/mmcsd-1, dest = /dev/mmcsd-1-0<br>media listener: event = MOUNT, state = INQUIRY, src = /dev/mmcsd-1-0<br>media listener: event = MOUNT, state = FAILED, src = /dev/mmcsd-1-0<br>media listener: event = DISK ATTACH, state = INQUIRY, src = mmcsd1boot<br>uhub0: 1 port with 1 removable, self powered<br>uhub1: 1 port with 1 removable, self powered<br>ERROR: SD could not be mounted after timeout<br></div><div>""</div><div><br></div><div>Thanks,</div><div>Nils</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 12 Aug 2019 at 18:01, Christian Mauderer <<a href="mailto:list@c-mauderer.de">list@c-mauderer.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 12/08/2019 07:28, Nils Hölscher wrote:<br>
> Hi,<br>
> <br>
> Can anyone help me with this?<br>
> I need to access the BBB's SD-Card, so that I can load my pru example on<br>
> the pru.<br>
> <br>
> Thanks,<br>
> Nils<br>
> <br>
<br>
Hello Nils,<br>
<br>
take a look at the following application:<br>
<br>
<a href="https://gitlab.com/c-mauderer/rtems-bbb/blob/master/apps/wifi-sample/init.c#L64" rel="noreferrer" target="_blank">https://gitlab.com/c-mauderer/rtems-bbb/blob/master/apps/wifi-sample/init.c#L64</a><br>
<br>
<a href="https://gitlab.com/c-mauderer/rtems-bbb/blob/master/apps/wifi-sample/libbsdhelper.c#L122" rel="noreferrer" target="_blank">https://gitlab.com/c-mauderer/rtems-bbb/blob/master/apps/wifi-sample/libbsdhelper.c#L122</a><br>
<br>
You should mainly need the stuff from the libbsdhelper_init_sd_card()<br>
and libbsdhelper_wait_for_sd().<br>
<br>
Please note that the SD card needs quite some time to initialize on BBB.<br>
I haven't had a look at it why that is the case.<br>
<br>
Best regards<br>
<br>
Christian<br>
</blockquote></div></div>