:?:
Hallo,
Ich brauche mal Eure hilfe !
Mein Linux :SuSe10.0
Kernel vers.2.6.13-15.7
Der zu installierende Treiber : acerhk-0.5.31
Ich habe aus den Internet ein Treibermodul geladen. Der Anleitung zufolge sollte die Installation
mit ein make eingeleitet werden..
Leider bricht die Installation mit folgender Meldung ab :
cmd. line:1: fatal: cannot open file `/lib/modules/2.6.13-15.7-default/build/include/linux/version.h' for reading (No such file or directory) usw.
Für diesen Fall, wird in der Anleiung, folgendes vorgeschlagen :
3. Before you compile the driver, change KERNELSRC in the makefile to your
path to the kernel build environment. If you are using a self compiled kernel,
point it to the root of your sources. If you are using a packaged kernel of
your distribution, install the package with kernel headers
(Debian:kernel-headers) and point KERNELSRC to where the headers and config
files are located. If you are using Debian, this
would be "/lib/modules/<kernelversion>/build".
Leider kann ich mit der(von mir) unterstrichenen Zeile wenig anfangen.
Hier kommt jetzt die zuverändern Makefile:
# change KERNELSRC to the location of your kernel build tree only if #autodetection does not work
#KERNELSRC=/usr/src/linux
KERNELSRC?=/lib/modules/`uname -r`/build
KERNELVERSION=$(shell awk -F\" '/REL/ {print $$2}' $(KERNELSRC)/include/linux/version.h)
KERNELMAJOR=$(shell echo $(KERNELVERSION)|head -c3)
# next line is for kernel 2.6, if you integrate the driver in the kernel tree
# /usr/src/linux/drivers/acerhk - or something similar
# don't forget to add the following line to the parent dir's Makefile:
# (/usr/src/linux/drivers/Makefile)
# obj-m += acerhk/
CONFIG_ACERHK?=m
obj-$(CONFIG_ACERHK) += acerhk.o
(das ist nur ein Ausschnitt)
Da ich mich noch nie mit den kernel befasst habe und auch mit den Begriff kernel-header nichts anfangen kann “sorry”
bitte ich um Unterstützung!
Mit besten Gruss
Erdmann
Hallo,
Ich brauche mal Eure hilfe !
Mein Linux :SuSe10.0
Kernel vers.2.6.13-15.7
Der zu installierende Treiber : acerhk-0.5.31
Ich habe aus den Internet ein Treibermodul geladen. Der Anleitung zufolge sollte die Installation
mit ein make eingeleitet werden..
Leider bricht die Installation mit folgender Meldung ab :
cmd. line:1: fatal: cannot open file `/lib/modules/2.6.13-15.7-default/build/include/linux/version.h' for reading (No such file or directory) usw.
Für diesen Fall, wird in der Anleiung, folgendes vorgeschlagen :
3. Before you compile the driver, change KERNELSRC in the makefile to your
path to the kernel build environment. If you are using a self compiled kernel,
point it to the root of your sources. If you are using a packaged kernel of
your distribution, install the package with kernel headers
(Debian:kernel-headers) and point KERNELSRC to where the headers and config
files are located. If you are using Debian, this
would be "/lib/modules/<kernelversion>/build".
Leider kann ich mit der(von mir) unterstrichenen Zeile wenig anfangen.
Hier kommt jetzt die zuverändern Makefile:
# change KERNELSRC to the location of your kernel build tree only if #autodetection does not work
#KERNELSRC=/usr/src/linux
KERNELSRC?=/lib/modules/`uname -r`/build
KERNELVERSION=$(shell awk -F\" '/REL/ {print $$2}' $(KERNELSRC)/include/linux/version.h)
KERNELMAJOR=$(shell echo $(KERNELVERSION)|head -c3)
# next line is for kernel 2.6, if you integrate the driver in the kernel tree
# /usr/src/linux/drivers/acerhk - or something similar
# don't forget to add the following line to the parent dir's Makefile:
# (/usr/src/linux/drivers/Makefile)
# obj-m += acerhk/
CONFIG_ACERHK?=m
obj-$(CONFIG_ACERHK) += acerhk.o
(das ist nur ein Ausschnitt)
Da ich mich noch nie mit den kernel befasst habe und auch mit den Begriff kernel-header nichts anfangen kann “sorry”
bitte ich um Unterstützung!
Mit besten Gruss
Erdmann