Am Samstag, 25. Januar 2003 20:47 schrieb Thomas Hertweck:
Christoph Strins wrote:
[...] Habe jetzt mal einen eigenen Kernel kompiliert, aber da fehlen mir dann die Erweiterungen vom SuSE-Kernel (Treiber für Temperatursensoren, Alsa ...). Wo kann ich solche Erweiterungen (sind ja glaube ich Kernel-Patches) bekommen und wie installiere ich sie?
Schau bei den Homepages vorbei: o http://www.alsa-project.org/ (ALSA) o http://secure.netroedge.com/~lm78/ (LM_SENSORS) Dort gibt es i.d.R. auch Dokumentation zum Installieren.
Fuer Kernel 2.4.21-pre3 gehts auch einfacher: o http://marc.theaimsgroup.com/?l=suse-linux&m=104221636525327&w=2
Hört sich ja gut an. Aber bei mir gibt es beim obigen Kernel beim
Ausführen von "make bzImage" folgenden Fehler:
...
gcc -D__KERNEL__ -I/usr/src/linux-2.4.21/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon
-nostdinc -iwithprefix include -DKBUILD_BASENAME=usercopy -c -o
usercopy.o usercopy.c
gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux-2.4.21/include -c
getuser.S -o getuser.o
gcc -D__KERNEL__ -I/usr/src/linux-2.4.21/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon
-nostdinc -iwithprefix include -DKBUILD_BASENAME=memcpy -c -o memcpy.o
memcpy.c
memcpy.c: In function `memcpy':
memcpy.c:10: warning: implicit declaration of function `__memcpy3d'
memcpy.c:10: warning: return makes pointer from integer without a cast
gcc -D__KERNEL__ -I/usr/src/linux-2.4.21/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon
-nostdinc -iwithprefix include -DKBUILD_BASENAME=strstr -c -o strstr.o
strstr.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.21/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon
-nostdinc -iwithprefix include -DKBUILD_BASENAME=mmx -c -o mmx.o mmx.c
rm -f lib.a
ar rcs lib.a checksum.o old-checksum.o delay.o usercopy.o getuser.o
memcpy.o strstr.o mmx.o
make[2]: Verlassen des Verzeichnisses
»/usr/src/linux-2.4.21/arch/i386/lib«
make[1]: Verlassen des Verzeichnisses
»/usr/src/linux-2.4.21/arch/i386/lib«
ld -m elf_i386 -T /usr/src/linux-2.4.21/arch/i386/vmlinux.lds -e stext
arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o init/do_mounts.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o \
drivers/acpi/acpi.o drivers/char/char.o drivers/block/block.o
drivers/misc/misc.o drivers/net/net.o drivers/char/drm/drm.o
drivers/net/fc/fc.o drivers/atm/atm.o drivers/ide/idedriver.o
drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/pci/driver.o
drivers/video/video.o drivers/media/media.o drivers/md/mddev.o
drivers/sensors/sensor.o \
net/network.o \
/usr/src/linux-2.4.21/arch/i386/lib/lib.a
/usr/src/linux-2.4.21/lib/lib.a
/usr/src/linux-2.4.21/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
/usr/src/linux-2.4.21/arch/i386/lib/lib.a(memcpy.o): In function
`memcpy':
memcpy.o(.text+0x1): undefined reference to `__memcpy3d'
make: *** [vmlinux] Fehler 1
Die Datei memcpy.c sieht folgendermaßen aus:
#include