Nico 77
Lt. Commander
- Registriert
- Feb. 2002
- Beiträge
- 1.107
Ich habe gerade angefangen mich mit Linux zu beschäftigen, habe aber folgendes Problem, bevor ich mich einarbeite würde ich gerne meine Netzwerkkarte installieren.
Das Betriebsystem wäre Knoppix 3.2 vom 26.07., wie kriege ich den Treiber für die Karte installiert? Werde nämlich aus der Readme nicht ganz schlau?
Das Betriebsystem wäre Knoppix 3.2 vom 26.07., wie kriege ich den Treiber für die Karte installiert? Werde nämlich aus der Readme nicht ganz schlau?
Code:
NETGEAR FA511 CardBus Mobile Adapter
----------------------------------------
Contents of the Subdirectory:
-----------------------------
redhatx.x\tulip.c The linux driver source code file
redhatx.x\pci-scan.h The linux driver header file
redhatx.x\kerncomp.h The linux driver header file
redhatx.x\tulip_cb.o The linux dirver
redhatx.x\makefile Makefile for generating driver object file
Installation Procedure:
-----------------------
1. During installation of Linux, make sure that the "Development"
selectionare (or C Development and Development Libraries for
Redhat 6.0) and "Kernel Development" selectionare and "Workstation"
selectionare choosen under "Component to Install" window. This
will copy the C compiler and kernel development component into
the system for compiling the driver. For RedHat 6.0, 6.1, 6.2, please
upgrade PCMCIA-CS to version 3.1.19 (Please see note at the bottom
for how to upgrade to version 3.1.19). For RedHat 6.0, 6.1 user, We
recommend you to upgrade your system to 6.2 or 7.0, because it is robust.
2. Also in the Network Configuration window during installation, you
will be asked if you want to configure LAN (not dailup) networking
for your installed system. Answer YES.
3. Login as root.
4. Insert the Installation CDROM, and mount the disk into the system with
the following command: mount -t iso9660 /dev/cdrom /mnt/cdrom
5. Copy the linux drivers from the CDROM into the system harddrive with the
following command. Five files will be copied: tulip.c, pci-scan.h, kerncomp.h,
tulip_cb.o, makefile.
Command: cp /mnt/cdrom/linux/redhatx.x/* .
6. Compile tulip.c by executing "make" command at the prompt.
The following command will be executed.
for redhat 6.x
gcc -DCARDBUS -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c tulip.c \
-o tulip_cb.o -I/usr/src/linux/pcmcia-cs-3.1.19/include
for redhat 7.0
gcc -DCARDBUS -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c tulip.c \
-o tulip_cb.o -I/usr/src/linux/pcmcia-cs-3.1.19/include \
-I/usr/src/linux/include
7. Find the names of the files in the /lib/modules directory. you might see the
following directory. eg "2.2.14"...
8. Copy the newly compiled tulip.o into the latest kernel's modules.
for redhat 6.0
cp tulip_cb.o /lib/modules/2.2.5-15/net/tulip_cb.o
cp tulip_cb.o /lib/modules/2.2.5-15/pcmcia/tulip_cb.o
for redhat 6.1
cp tulip_cb.o /lib/modules/2.2.12-20/net/tulip_cb.o
cp tulip_cb.o /lib/modules/2.2.12-20/pcmcia/tulip_cb.o
for redhat 6.2
cp tulip_cb.o /lib/modules/2.2.14-5.0/net/tulip_cb.o
cp tulip_cb.o /lib/modules/2.2.14-5.0/pcmcia/tulip_cb.o
for redhat 7.0
cp tulip_cb.o /lib/modules/2.2.16-22/net/tulip_cb.o
cp tulip_cb.o /lib/modules/2.2.16-22/pcmcia/tulip_cb.o
9. Use vi or emac editor to append the following line into
/etc/pcmcia/config
card "NETGEAR FA511 CardBus Mobile Adapter"
manfid 0x022d, 0x511A
bind "tulip_cb"
10. reboot system.
11. You can check if the driver is properly activating the card using
the "dmesg" command right after system bootup.
***Note***
How to upgrade to PCMCIA-CS-3.1.19 from old version on RedHat 6.0
1. Find the PCMCIA-CS-3.1.19 package pcmcia-cs-3.1.19.tar.gz on
CD-ROM, you can also find it from website [url]ftp://ftp.tux.org/util/pcmcia[/url] .
2. Copy pcmcia-cs-3.1.19.tar.gz to the directory /usr/src/linux
3. Uncompress the package using the following command
tar xvfz pcmcia-cs-3.1.19.tar.gz
this will generate the directory ./pcmcia-cs-3.1.19
4. Change to the directory pcmcia-cs-3.1.19
5. Execute the following commands
make clean
make config
make all
make install
these will upgrade PCMCIA-CS to version 3.1.19
6. Execute the following commands to restart PCMCIA service
/etc/rc.d/init.d/pcmcia stop
/etc/rc.d/init.d/pcmcia start