<div dir="ltr"><div dir="ltr"><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><br></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 30, 2019 at 10:17 PM 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 30/06/2019 18:29, Vijay Kumar Banerjee wrote:<br>
> > @@ -366,6 +374,9 @@ driver_t fbd_driver = {<br>
> > devclass_t fbd_devclass;<br>
> > <br>
> > DRIVER_MODULE(fbd, fb, fbd_driver, fbd_devclass, 0, 0);<br>
> > +#ifdef __rtems__<br>
> > +DRIVER_MODULE(fbd, am335x_lcd, fbd_driver, fbd_devclass, 0, 0);<br>
> <br>
> Why is this necessary in this case? I don't see a similar connection in<br>
> FreeBSD.<br>
> <br>
> the fbd needs to be linked to the am335x_lcd which provides the fb0 device<br>
> and the fbd needs to attach to fb0. <br>
<br>
It seems that this connection (or a similar one) hasn't been there on<br>
FreeBSD. So I wonder why it should be necessary on RTEMS.<br>
<br>
Note that the situation is a bit different from the one of the i2c bus.<br>
There your driver implemented a base for a bus system. Therefore the<br>
generic bus had been connected to a device specific driver. I'm not sure<br>
that's the case here.<br>
<br>
It's quite possible that you just have to link the fbd with a line like<br>
the following in nexus-devices.h:<br>
<br>
SYSINIT_MODULE_REFERENCE(fbd);<br>
<br></blockquote><div>This is not working :</div><div>```<br>fb0: failed to attach fbd device</div><div>``` </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>