Enable network for the Intel 82551ER chip - pc386

17 views
Skip to first unread message

João Paulo Scalão Martins

unread,
Mar 23, 2012, 10:14:40 AM3/23/12
to rtems...@rtems.org
Hello guys,

I'm using the PC386 BSP on a Single Board Computer and I need to enable the ethernet interface of this SBC, so I can create TCP/IP communication for my project.

My SBC uses the Intel 82551ER ethernet chip. The PC386 BSP doesn't have the specific driver for this chip, and I have some questions:

Does the ne2000 driver support this chip? How can I build the BSP with the ne2000 driver? (the source folder of pc386 has a ne2000.c file, but it seems that this file is not compiled in the building of pc386 - am I wrong?)

Thank you!

Regards from Brazil

Joao Paulo

Joel Sherrill

unread,
Mar 23, 2012, 10:44:25 AM3/23/12
to rtems...@rtems.org

On 3/23/2012 9:14 AM, João Paulo Scalão Martins wrote:
> Hello guys,
>
> I'm using the PC386 BSP on a Single Board Computer and I need to
> enable the ethernet interface of this SBC, so I can create TCP/IP
> communication for my project.
>
> My SBC uses the Intel 82551ER ethernet chip. The PC386 BSP doesn't
> have the specific driver for this chip, and I have some questions:
>

This NIC is supported by the libbsdport collection of add-on drivers.

Check that out from git.


>
> Does the ne2000 driver support this chip? How can I build the BSP with
> the ne2000 driver? (the source folder of pc386 has a ne2000.c file,
> but it seems that this file is not compiled in the building of pc386 -
> am I wrong?)
>

No on ne2000.

It is compiled but only when networking is enabled.


> Thank you!
>
> Regards from Brazil
>
> Joao Paulo

_______________________________________________
rtems-users mailing list
rtems...@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-users

João Paulo Scalão Martins

unread,
Mar 30, 2012, 9:34:06 AM3/30/12
to Chris Johns, rtems...@rtems.org
Thank you Chris!

I'm trying to use the fxp driver, but I didn't understand your init.c. As a matter of fact, I don't know how to use the fxp driver, because I have not found any fxp_driver_attach_function to put on the ifconfig struct !!!

I start writing some code, just this way: 

driver_t* libbsdport_netdriver_table[] =
{
  &libbsdport_fxp_driver,
  NULL
};

When I compile the program, the compiler gives me an error "undefined reference to libbsdport_fxp_driver". This error occurs in another .c file, at the start of a function which doesn't have any relationship with the libbsdport_netdriver_table !!!! 
I checked the header <bsp/libbsdport_api.h> and the driver libbsdport_fxp_driver is defined as extern. Sounds like the linker can not found the real definition of the driver...


Best regards...

Joao

Wendell Silva

unread,
Mar 30, 2012, 10:10:32 AM3/30/12
to João Paulo Scalão Martins, rtems...@rtems.org

Hi Joao,

Have you checked the LDFLAGS in your makefile?
Something like this:
LDFLAGS = -lif_fxp -lbsdport
(copied from Chris' makefile.am file)

I hope it helps...

--Wendell

_______________________________________________
rtems-users mailing list
rtems...@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-users




--
Att.
Wendell P. Silva
+55 12 8114-8018

João Paulo Scalão Martins

unread,
Mar 30, 2012, 2:05:25 PM3/30/12
to rtems...@rtems.org
The problem was solved by adding "-lif_fxp -lbsdport" in the LD_LIBS of my MAKEFILE.

Now I have some TCP packets being exchanged between my RTEMS-Single Board Computer and a Linux Desktop.

Thank you so much, Joel, Chris and Wendell!

Joao
Reply all
Reply to author
Forward
0 new messages