Hi.

I have a PCI netcard. I have the .c file and now I want to get the file
compiled. In the .c file there is showed how to compile, but its not
really working here.

/*
 * Local variables:
 *  compile-command: "gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c
rtl8139.c"
 *  cardbus-compile-command: "gcc -DCARDBUS -DMODULE -Wall
-Wstrict-prototypes -O6 -c rtl8139.c -o realtek_cb.o
-I/usr/src/pcmcia/include/"
 *  c-indent-level: 4
 *  c-basic-offset: 4
 *  tab-width: 4
 * End:
 */

Here is the compile result:

linux:/usr/src/linux # cc -O -Wall -o rtl8139-diag rtl8139-diag.c '[ -f
libmii.c ] && echo -DLIBMII libmii.c'
cc: [ -f libmii.c ] && echo -DLIBMII libmii.c: No such file or directory
linux:/usr/src/linux #
  
Further I have a question to this:

he procedure to activate rtl8139 on linux is as follows:

  step 1: ftp the driver from
                ftp://cesdis.gsfc.nasa.gov/pub/linux/drivers/rtl8139.c

  step 2: compile:
           The instruction for compiling the driver is include at the
           end of the driver file. (run this instruction at
           /usr/src/linux)

  step 3: insert the driver as module:
           insmod rtl8139.o
           parameter can be added by adding options=..... behind the
istrruction
          ex::
               full duplex::(bit 4 of 'options')
                        'insmod rtl8139.o options=16'
        
        (run 'lsmod' to see if the module is inserted)

  step 4: bind your card to an IP address

     /sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask
${NETMASK}
        (run 'netstat -i' to see if there is a interface 'ne0')

Here I have my IPADDR=192.168.0.2 and BROADCAST to 192.168.0.255 and the
NETMASK to
255.255.255.0

  step 5: add your card to IP routing table, then add gateway also
     your card:
           /sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0
           (should be able to ping local network now)
     gateway:
           /sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric
1

What can I call the NETWORK above this ??.

Thank you in advance for help.

regards, Erik

[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to