Adding new NIC driver - howto, faq

Adding new NIC driver - howto, faq

Post by Tom Se » Sun, 06 Jul 1997 04:00:00



Can someone point me to a howto or faq that will explain the steps needed to
add a new NIC driver?  I can obtain the nic driver, but do I need to modify
the kernel & recompile?

 
 
 

Adding new NIC driver - howto, faq

Post by Andrew E. Milesk » Tue, 08 Jul 1997 04:00:00


Quote:> Can someone point me to a howto or faq that will explain the steps needed to
> add a new NIC driver?  I can obtain the nic driver, but do I need to modify
> the kernel & recompile?

Almost all NIC drivers you'd ever need are in the kernel source
tree already. Only a few very experimental ones are not. Get a
kernel (ftp://linux.kernel.org/), make config; make dep; make zlilo

If the NIC driver is in a pre-compiled module, just use insmod.

--


 
 
 

1. WARNING: HOWTO make your system unusable - by calling MAKEDEV (add to FAQ?)

Hello,

Yesterday I found a new way to make my system unusable. The old one was like
this:
    # cd /lib
    # rm libc.so.5    # remove symlink

What I did yesterday was remove all core files from my system...
    # find / -name core | xargs rm -v
    /some/old/core
    ...
    /dev/core               # well, this was not what I wanted to remove...
    ...

Oops! Have to re-create it. Easy: use MAKEDEV:
    # cd /dev
    # ./MAKEDEV std         # this re-creates /dev/mem, /dev/zero, /dev/null, /dev/core etc.

!! After this point, the system is unusable. Something (in the shared lib code)
!! relies on the fact that /dev/zero is available. And, in MAKEDEV, it is
!! removed in order to be re-created a short time later. It is not, of course!
!! mknode, ln, cp, tar and almost everything else cannot be executed any more!
!! (Unless it is linked static). #NOTE# This is on an ELF system #

Even Ctrl-Alt-Del won't work any longer, because some of the called programs
(shutdown? halt? reboot?) rely on shared libs.

Maywe we should mention in the FAQ that it is unwise to do a "MAKEDEV std"
in the running system ;-)   (you can still do it if you're not in the
currently used /dev, like in
    "mkdir  /dev/tmpdir; cd /dev/tmpdir; /dev/MAKEDEV std; mv * ..;"
but that's a kludge). I happened to have a second root file system on my
computer which I could boot. :-))

    Martin
--
#include <std/dsclm.h>        /* SNI SU BS2000 SD43 - Muenchen, W. Germany */

#      *icro*oft... The company that finally convinced the world          #
#      that system crashes are the most natural thing in the world.       #
              ___        __           _    _
             / __|___   / _|___ _ _  | |  (_)_ _ _  ___ __
            | (_-/ _ \ |  _/ _ \ '_| | |__| | ' \ || \ \ /
             \___\___/ |_| \___/_|   |____|_|_||_\_,_/_\_\

2. Help with SLIP on Linux Universe

3. new to linux how do I read howto/FAQ under linux

4. accept() faild in CERN httpd-3.0(In HTDaemon.c)

5. New Disk (add'l) - is there a Howto?

6. enable BackingStore using c

7. Howto add a new network card?

8. please help booting from floppy with kernel parameters

9. HOWTO: Add A New RH8 Session Type

10. Adding a new partition.Howto?????

11. HOWTO - add new group & del user

12. Howto add new chipset to SVGALib?

13. HOWTO - add new group & del user