Code: Alles auswählen
# apt-get install linux-source-2.6.15
$ tar xjf /usr/src/linux-source-2.6.15.tar.bz2
$ cd linux-source-2.6.15
Code: Alles auswählen
# apt-get install linux-source-2.6.15
$ tar xjf /usr/src/linux-source-2.6.15.tar.bz2
$ cd linux-source-2.6.15
mach mal noch einChristian_wa hat geschrieben:Ich habe über eine Debian Linux Kernel Handbook gelesen, ich solle die Source "Installieren" damit ich sie später bearbeiten kann... Das funktioniert aber nicht ganz, da er die Source Packet nicht finden kann.
schon nach dem ersten code wird mir gesagt das es das nicht gibt. Woher bekomme ich nun sowas? Oder gibt es eine neuere Version der Source?Code: Alles auswählen
# apt-get install linux-source-2.6.15 $ tar xjf /usr/src/linux-source-2.6.15.tar.bz2 $ cd linux-source-2.6.15
Code: Alles auswählen
ln -s /usr/src/linux-source-2.6.15 /usr/src/linux
Code: Alles auswählen
make menuconfig
was ist nun wieder falsch?chris@PC-CHRIS:~$ cd /home/chris/linux-2.6.15.6/
chris@PC-CHRIS:~/linux-2.6.15.6$ make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/mconf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/mconf
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
>> Unable to find the Ncurses libraries.
>>
>> You must install ncurses-devel in order
>> to use 'make menuconfig'
make[2]: *** [scripts/lxdialog/ncurses] Fehler 1
make[1]: *** [menuconfig] Fehler 2
make: *** [menuconfig] Fehler 2
von http://kernel-handbook.alioth.debian.or ... n-buildingAfter the configuration process is finished, the new or updated kernel configuration will be stored in .config file in the top-level directory. Once it's in place, you need to decide whether you want a kernel with or without initrd support. See Managing the initial RAM disk (initrd) image, Chapter 6 for details on what initrd is. If you decide to go for a initrd-enabled kernel, it should include the initrd support in its configuration. The build for a non-initrd kernel is started using the commands
$ make-kpkg clean
$ fakeroot make-kpkg --revision=custom.1.0 kernel_image
Habe auch schon bei Google was gefunden, bin mir aber nicht sicher wie das gemeint ist. http://lists.debian.org/debian-user-ger ... 01448.htmlchris@PC-CHRIS:~$ fakeroot make-kpkg --initrd --revision=custom1.0 kernel_image
We do not seem to be in a top level linux kernel source directory
tree. Since we are trying to make a kernel package, that does not make
sense. Please change directory to a top level linux kernel source
directory, and try again. (If I am wrong, and this is indeed a top
level linux kernel source directory, then I have gotten sadly out of
date with current kernels, and you should upgrade kernel-package)
Code: Alles auswählen
cp /home/chris/linux-2.6.15.6/kernel
Code: Alles auswählen
cd /home/chris/linux-2.6.15.6/
Was ist wenn ich dann damit alles kaputt mache?chris@PC-CHRIS:~$ cd /home/chris/linux-2.6.15.6
chris@PC-CHRIS:~/linux-2.6.15.6$ fakeroot make-kpkg --initrd --revision=custom1.0 kernel_image
Warning: You are using the initrd option, that may not
work, depending on your kernel version and architecture,
unless you have applied the initrd cramfs patch to
the kernel, or modified mkinitrd not to use cramfs by
default. The cramfs initrd patch, is included in the
Debian supplied kernel sources. New kernels on most
architectures do work fine.
By default, I assume you know what you are doing, and I
apologize for being so annoying. Should I abort[Ny]?
Code: Alles auswählen
cd /usr/src/linux-source-2.6.15