installing kernel-source-2.6.8
Greetings all
I seem to be doing fine until here. 1) Type or cut n paste the following in the console to start compiling the kernel and build a .deb kernel image (This will take a while depending on the speed of your system): make-kpkg buildpackage -rev Custom.1 kernel_image OK here it is I typed that into the console and it did nothing actually it gave me an error... bash: make-kpkg: command not found Note: You need to have the kernel-package .deb package installed or you'll get an error. as far I know I installed the kernel-package already otherwise I would not be here yet Note The walk-through is for 2.6.6 I am installing 2.6.8 ---------------another problem below---------------------------------------------- also when I try to patch the bootsplash like so patch -p1 <bootsplashname> it goes to the next line with nothing there like so cwolf:/usr/src/kernel-source-2.6.8# kernel-patch-bootsplash_3.1.4-3_i386.deb notice here^ it is blank after entering and nothing seems to happen. there is not even the locatin name also the help page calls the bootsplash <bootsplash-3.1.4-2.6.6-debian.diff> now this is an example but what I am wondering about the (-debian.diff) now I looked around the webpage that it links me to and only saw either .diff or .deb but no debian.diff is that the problem? |
make-kpkg is not part of the kernel that is running your machine, it is part of a utility suite to compile a new kernel. You have to install it, it is not installed as part of a vanilla debian install. Use apt-get to install it on your machine. To find the package name, try "apt-cache search make-kpkg".
The patch command compares 2 files, and modifies the original to have the same data as the patch contains. For it to work, you need to know the location of the bootsplash_3.1.4-3_i386 file. I don't know what the location of that may be, but rather doubt that it is in the /usr/src/kernel-source-2.6.8 directory. It could be in there, but I think it may be a subdirectory of that. Peace, JimBass |
patch -Np1 -i path/to/patchfile or
patch -Np1 < path/to/patchfile -Np1 is most common, it assumes you are in the base (top level) directory of the source to be patched and the patch was made in the conventional manner. |
Thanks that helped
Now I have another problem after compiling it and installing it I went to set upt the gurb boot here is the problem title Linux 2.6.6 root (hd1,0) kernel (hd1,0)/boot/vmlinuz-2.6.6root=/dev/hdb1 ro vga=791 savedefault boot of course vmlunuz would be 2.6.8 for me but I went to that dir and the only vmlinuz I can find is vmlinuz-2.4.27-1-386 what do I do? |
That's a weird grub.conf/menu.lst. :confused: try:
default=0 timeout=30 title Linux 2.6.8 root (hd1,0) kernel (hd1,0)/boot/vmlinuz-2.6.8 root=/dev/hdb1 ro and of course verify that the kernel is at hd(1,0)/boot/vmlinuz-2.6.8 |
lol I made a mistake I was trying to put somtihg in red and I put ( not [ making the color red
|
Quote:
title------Debian GNU/Linux, kernel 2.4.27-1-386 root------(hd1,0) kernel---/boot/vmlinuz-2.4.27-1-386 root=/dev/hdb1 ro initrd----/boot/initrd.img-2.4.27-1-386 savedefault boot now lets look at somthing: Notice what is in red /boot/vmlinuz-2.4.27-1-386 well that should be changed to /boot/vmlinuz-2.6.6 but I do not find it any where in that dir. OK (so you will know what I have done thus far i am going to go through each step what is in red I did not do its just explanations) turn on the terminal command line #su <-' password <-' #apt-cache search kernel-source | grep 2.6 <-' #apt-get install kernel-source-2.6.8 <-' (now 2.6.8 was the latest ver) #cd /usr/src <-' #tar xvfj kernel-source-2.6.8.tar.bz2 <-' #rm linux <-' #ln -s /usr/src/kernel-source-2.6.6 /usr/src/linux <-' the How to website that I get the info at suggested that I install a Boot Splash so here is what I did.. I also dl a patch which it suggested and set to /usr/src/kernel-source-2.6.8 so I did #cd /usr/src/kernel-source-2.6.8 <-' #patch -p1 bootsplash-3.1.6-2.6.8.diff <-' now when I did that It just stayed^ there no # or any thing just a blank line and I could not quit or exit it so I tried this #patch -p1 kernel-patch-bootsplash_3.1.4-3_i386.deb same problem so I did not install the bootsplash #cd /usr/src/linux <-' #vi Makefile <-' here i put the date into the file as suggested by the How to page I als dl 2.6 kernel config and put it into /usr/src/linux: #apt-get install libqt3-dev <-' I need to do this so the next thing I type in would work #make xconfig <-' no in here I edited what I needed to edit then saved it #apt-cache search make-kpkg <-' [COLOR]I need to know the file name to install #kernel-package <-' #make-kpkg buildpackage -rev Custom.1 kernel_image <-' #cd /usr/src <-' #dpkg -i kernel-source-2.6.8-20041213_Custom.1_all.deb ok here in the How to web site it shows this (kernel-image-2.6.6_Custom.1_i386.deb <-') but all I could find was the file I entered which seemed to work #cd /boot/grub/ <-' after that I went into the menu.lst, and saw the older kernel boot there also that the files were in /boot so just to make sure I checked to see if the file that I was looking for (vmlinuz-2.6.8) was there. It was no. now here I am what did I do wrong and how do i fix it. |
here is what i got when I installed the
#dpkg -i kernel-source-2.6.8-20041213_Custom.1_all.deb :/usr/src# dpkg -i kernel-source-2.6.8-20041213_Custom.1_all.deb (Reading database ... 87759 files and directories currently installed.) Preparing to replace kernel-source-2.6.8-20041213 Custom.1 (using kernel-source-2.6.8-20041213_Custom.1_all.deb) ... Unpacking replacement kernel-source-2.6.8-20041213 ... Setting up kernel-source-2.6.8-20041213 (Custom.1) ... kernel-source-2.6.8-20041213 Custom.1 this was different of course but I do not remember what it sad probably somethig like COLOR=purple]kernel-2.4.27-1-386 Custom.1[/COLOR] I just did it again so I could copy the response and show you. Thank you all sorry for the lengthly post |
As to why patch didn't work, see my previous post.;)
Don't feel to bad, I wasted about 4 hr. one night reading the man page for patch before I posted a question to a board, so the quirk in patch's syntax is burned indelibly into my mind. You have to direct the patch file into patch (patch < patchfile) or specify the input file for patch with -i (patch -i patchfile). It looks like the kernel isn't actually being copied into /boot. Does /lib/modules/<version> exist? Also /boot System.map-<version> ? (<version> is shorthand of course) |
All times are GMT -5. The time now is 06:11 PM. |