Enable network for the Intel 82551ER chip - pc386

Joel Sherrill joel.sherrill at OARcorp.com
Tue Mar 27 15:54:52 UTC 2012

On 03/27/2012 10:46 AM, João Paulo Scalão Martins wrote:
> Thank you, Mr. Joel.
> I've downloaded the libbsdport from GIT, and I'm trying to implement 
> the drivers in my code, but I don't know how...
> Do you know which file contains the 82551 driver? The folder 
> bsd_eth_drivers/if_em does not have this NIC driver, specifically.

$ grep 82551 */*.c
if_fxp/if_fxp.c:    { 0x1059,    -1,    "Intel 82551QM Pro/100 M Mobile 
Connection" },
if_fxp/if_fxp.c:    { 0x1229,    0x0f,    "Intel 82551 Pro/100 Ethernet" },
if_fxp/if_fxp.c:    { 0x1229,    0x10,    "Intel 82551 Pro/100 Ethernet" },
if_fxp/if_fxp.c:        sc->revision == FXP_REV_82551_E || sc->revision 
== FXP_REV_82551_F
if_fxp/if_fxp.c:        || sc->revision == FXP_REV_82551_10) {
if_fxp/if_fxp.c:         * If this is an 82550/82551, then we're using 
if_fxp/if_fxp.c:         * the chip is an 82550/82551 or not.
if_fxp/if_fxp.c:    { FXP_REV_82551_F, UCODE(fxp_ucode_d102e),

> Do I have to do the "make, make install" procedure for the libbsdport 
> ? I just don't know which folders I have to add to my "include path", 
> neither the headers files that contains the driver attach functions...

You have to run bootstrap from the top of the tree.

I configure and build using a script with this in it

rm -rf b-bsd
mkdir  b-bsd
cd     b-bsd
../libbsdport/configure CFLAGs="-O0 -g" \
   --with-rtems-top=${prefix} \
   --enable-std-rtems-installdirs \
   --prefix=${prefix} >c.log 2>&1 && \
   make >b.log 2>&1 && \
   make install >i.log 2>&1
echo $status

prefix is where I installed RTEMS

> Best regards,
> Joao

Joel Sherrill, Ph.D.             Director of Research&   Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
     Support Available             (256) 722-9985

More information about the users mailing list