LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2004, 07:53 PM   #1
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Rep: Reputation: 30
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?

Last edited by phoenix_wolf; 12-13-2004 at 08:02 PM.
 
Old 12-13-2004, 08:03 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
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
 
Old 12-13-2004, 09:49 PM   #3
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
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.
 
Old 12-13-2004, 11:41 PM   #4
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Original Poster
Rep: Reputation: 30
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?

Last edited by phoenix_wolf; 12-14-2004 at 01:35 AM.
 
Old 12-14-2004, 12:02 AM   #5
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
That's a weird grub.conf/menu.lst. 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
 
Old 12-14-2004, 01:36 AM   #6
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Original Poster
Rep: Reputation: 30
lol I made a mistake I was trying to put somtihg in red and I put ( not [ making the color red
 
Old 12-14-2004, 03:27 AM   #7
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by kevinalm
That's a weird grub.conf/menu.lst. 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
well that did not work... Now as for as the portion and hd well I used the same setup that my old kernel was on like this


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.
 
Old 12-14-2004, 03:31 AM   #8
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Original Poster
Rep: Reputation: 30
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

Last edited by phoenix_wolf; 12-14-2004 at 03:37 AM.
 
Old 12-14-2004, 10:24 AM   #9
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 06:42 PM
Installing Kernel Source with 10.1 dolphans1 Mandriva 30 10-25-2004 11:19 AM
installing kernel source newellrp1 Debian 7 05-18-2004 04:30 PM
installing kernel-source-2.4.20-20.9 wraith106 Linux - Software 11 10-11-2003 10:35 AM
Installing the kernel source PlatinumRik Linux - General 2 02-19-2003 10:37 AM


All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration