Selection of ethernet peripheral by application

Joel Sherrill joel at rtems.org
Wed Jun 2 18:57:24 UTC 2021


On Wed, Jun 2, 2021 at 1:37 PM Kinsey Moore <kinsey.moore at oarcorp.com>
wrote:

> Hello,
>
> From what I’ve seen of the various BSPs supported by LibBSD that have
> multiple ethernet peripherals,
>
> only one tends to be chosen and supported. I’ve encountered a situation
> where the majority of platform
>
> examples (Zynq Ultrascale+ MPSoC dev boards) use CGEM3 as the only/primary
> ethernet interface and I
>
> need to have the option of selecting a different peripheral as the primary
> interface.
>
>
>
> Unfortunately, the current configuration of LibBSD/RTEMS does not allow
> for easy switching among the
>
> available interfaces. The easy one-off option is to just create a BSP
> variant with a little bit of extra logic
>
> to select the correct interface in LibBSD, but this problem seems more
> generally applicable than just
>
> ethernet and just this one BSP. Is the best alternative to configure all
> available devices in
>
> nexus-devices.h and let LibBSD figure it out?
>

Thinking out loud. The first order selection of the driver is the
LIBBSD_ABC header guard to
select a BSP. Some BSPs have a second ifdef. I think qoriq is an example.
But this would
require adding a BSP configure option or variant.

--joel


>
>
> Thanks,
> Kinsey
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210602/c27559af/attachment-0001.html>


More information about the devel mailing list