[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kernel-Source patchen



hi

> Oder laeuft das ganze so, dass Du nur das entsprechende Modul
> erzeugst und dieses manuell Deinem System unterschiebst?

genau, der treiber wird ins kernel-source verzeichnis kopiert, dort
kompiliert und dann kann man ihn via insmod laden.

hier ist die readme, falls das weiterhilft:


======================================================
======================================================

Loading the driver
------------------

1) Make sure that the kernel source is installed in /usr/src/linux
   or /usr/src/linux-2.4.

2) Copy the file /Linux/3c2000.tar.gz from the 3Com driver CD to
   your hard drive.

3) Change to the directory containing 3c2000.tar.gz

4) Type 'tar zxvf 3c2000.tar.gz'

5) Type 'cd 3c2000'

Note: on SuSE systems since 7.1, you will have to execute the
following commands before running make:

cp /boot/vmlinuz.version.h /usr/src/linux/include/linux/version.h
cp /boot/vmlinuz.autoconf.h /usr/src/linux/include/linux/autoconf.h

For more details se http://sdb.suse.de/en/sdb/html/mwalter_kernel_24.html

6) Type 'make load' to load the driver.

Alternatively, you may type the following to load the driver:

 insmod 3c2000.o

Something like the following will be added to /var/log/messages:

Jan 22 19:31:19 localhost kernel: 3C2000: 3Com Gigabit NIC Driver Version
A08
Jan 22 19:31:19 localhost kernel: Copyright (C) 2003 3Com Corporation.
Jan 22 19:31:19 localhost kernel: Copyright (C) 2003 Marvell.
Jan 22 19:31:19 localhost kernel: eth0: 3Com Gigabit NIC (3C2000)

Depending on your configuration, the OS may then automatically bring the
interface up and request an address from a DHCP server.  If it does not,
bring the interface up with the command:

 ifconfig eth0 up

You may have to substitue 'eth0' for your actual interface if you have
more than one ethernet NIC installed.

If your system is not configured for DHCP, you can assign an IP address
with the command:

 ifconfig eth0 a.b.c.d

Where a.b.c.d is the IP address that you wish to use.  Again, eth0 may
be different depending on your system configuration.

======================================================
======================================================

das "make load" bewirkt dabei, dass die kompilierung startet und das fertige
modul dann auch wieder per "insmod" eingebunden wird (Makefile).
ich brauche jedoch einen kernel, der die netzwerkkarte direkt unterstützt,
also die treiber im kernel-image "drin" sind *g*
module gehen deshalb nicht, weil der kernel über nfs-root läuft, also das
netzwerk unbedingt braucht, um sein root-dateisystem zu mounten und um an
die module zu kommen.

mfg christoph



Reply to: