LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-16-2002, 02:26 AM   #1
Goatdemon
Member
 
Registered: May 2002
Location: The good 'ol USofA
Distribution: ArchLinux - Slackware 8.1
Posts: 398

Rep: Reputation: 30
slack kernel recompile


are there any special settings required for recompiling the kernel under slack 8.1 my new kernel doesn't seem to boot

i've tried...
make xconfig
make dep
make bzImage
make modules
make modules_install
make install

in redhat it puts another vmlinuz file in the boot dir (ie:vmlinuzcustom), but not in slack. after make install in slack it seems to automatically update lilo. i rebooted the system did a uname -a, it said last updated may31, 2002, i686 -unknown. so, i assume i didn't work because in redhat it says athlon instead of unknown and the date is wrong, it should say July 15 2002. so i do it again

the second time i noticed, after doing make xconfig that the box that comes up after saving my settings said "next step do make bzImage, bzlilo, ???", not make dep as it does in red hat, so i skipped make dep, and went to make bzimage.

any suggestions will be appreciated... i hope this is coherent, it's late.... so tired, so so tired.
 
Old 07-16-2002, 12:31 PM   #2
yonyonson
LQ Newbie
 
Registered: May 2002
Location: Madison, WI, USA
Distribution: slackware
Posts: 13

Rep: Reputation: 0
I haven't touched Slackware 8.1 at all, but are you sure Slackware reconfigured your lilo.conf and re-ran LILO (via /sbin/lilo)? If things are still causing problems I'd do it all by hand; Copy kernel to /boot (or wherever you want), add entry for it in /etc/lilo.conf, re-run LILO, restart.

Hope this helps.
 
Old 07-16-2002, 07:36 PM   #3
Goatdemon
Member
 
Registered: May 2002
Location: The good 'ol USofA
Distribution: ArchLinux - Slackware 8.1
Posts: 398

Original Poster
Rep: Reputation: 30
are you saying that it's generating the kernel somewhere other than the /boot directory because i cannot find the new kernel, in redhat its generated in /boot.
 
Old 07-16-2002, 07:59 PM   #4
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
For my own system, Slack 8.1, I do not know what the make install will do. I have never used it. Slack 8.1 does put the kernel (vmlinuz) in the /boot directory now. It used to be in the top level root directory.

But the make bzImage will create the new kernel in the arch/i386/boot directory of the sources as the file "bzImage". Copy it to the /boot directory using the file name of your choice. I use the name "vmlinuz-2.4.18DVD" because I have a DVD+RW patch applied to the 2.4.18 kernel.

Make the correct change in the /etc/lilo.conf file for it to load the new kernel instead of the old one. Then run the command "lilo" for it to update the boot information.

If you use modules then you might also want to copy the "System.map" file of the kernel source directory to the /boot directory as well.

Then reboot. The new kernel should load.

You can create an additional section in the lilo.conf to allow the kernel to be tested first. Duplicate the partition begins and ends section. Modify the image statement to the new kernel name and change the label to a different label like "test". When you run the "lilo" command, it should report both labels on the console screen. When you reboot and see the LILO prompt press the CTRL key to select the kernel option desired, like "test." If all is well, then change the labels around in the lilo.conf file and rerun lilo when you are ready to make the change as the default.

Perhaps another here will know more about the "make install" operation and what is actually done. But you could start by looking in the / and /boot directories to see where it might have put the new kernel you built, and if lilo.conf was changed.
 
Old 08-17-2002, 06:54 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
A little late, but I have been searching around about kernel options and such, and here is a place that explains the "make install" bit:
http://www.p-two.net/modules.php?op=...catid=&topic=3

It basically, does it all for you. Make install moves the kernel, updates lilo and runs lilo for you.

Cool
 
Old 08-17-2002, 05:03 PM   #6
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
Some Distros say not to use make install, but i heard with Slack it's okay, but i still prefer copying the new kernel from /usr/src/linux/arch/i386/boot/bzImage to /boot/newkernel Then i add another stanza for the new kernel in /etc/lilo.conf and re-run lilo, reboot and test my new kernel, if it works, make it as default in LILO and delete the stanza you made to test your new kernel, re-run LILO and your done.
If it's still not clear, a while back there was a big thread about Slackware kernel compilation, just search for it.
Good Luck
-NSKL
 
Old 08-17-2002, 11:27 PM   #7
Goatdemon
Member
 
Registered: May 2002
Location: The good 'ol USofA
Distribution: ArchLinux - Slackware 8.1
Posts: 398

Original Poster
Rep: Reputation: 30
grand master c, i hear ya i feel ya... on redhat 7.3 it used make install but i still had to do the lilo configurations myself. they need a standardized way of recompiling the kernel, only one site/company/group makes it (i think) make install should be standard i dont like copying the kernel and misc files to different folders.
 
Old 08-18-2002, 11:29 AM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
In slack 8.1 you need to edit the Makefile to use the make install option.
 
Old 08-18-2002, 04:20 PM   #9
Goatdemon
Member
 
Registered: May 2002
Location: The good 'ol USofA
Distribution: ArchLinux - Slackware 8.1
Posts: 398

Original Poster
Rep: Reputation: 30
where could i find information on editing a make file?
 
Old 08-18-2002, 05:13 PM   #10
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
It's only a text file.....any text editor will do the job.
 
Old 08-19-2002, 05:25 AM   #11
Sfin
Member
 
Registered: Apr 2002
Location: Michigan
Distribution: Slackware 8.0
Posts: 197

Rep: Reputation: 30
Like Aussie said, in Slack 8.1 you will need to change the following in the Makefile:

#export INSTALL_PATH=/boot
 
Old 08-20-2002, 05:41 AM   #12
meat-head
LQ Newbie
 
Registered: May 2002
Location: Tampa
Distribution: Slackware 9.1
Posts: 21

Rep: Reputation: 15
I do the following:

make xconfig
make dep
make clean
make bzImage
cat arch/i386/boot/bzImage < /vmlinuz
#make sure you have the old kernel image backed up
cp System.map /boot/System.map
make modules
make modules_install
#edit /etc/lilo.conf
/sbin/lilo
 
  


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
Slack-current 2.6.12.3 recompile JohnSeth Slackware - Installation 1 08-21-2005 01:29 PM
Recompile of Kernel, Slack 10: i've lost device support sganarelle Slackware 2 08-14-2004 07:48 AM
Recompile Slack aleksander777 Slackware 8 07-29-2004 03:35 PM
why should i recompile these programs in new slack? doublefailure Slackware 2 03-26-2003 12:33 AM
Kernel recompile problem in Slack 8 Darkstar Linux - Software 1 03-26-2002 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:45 PM.

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
Open Source Consulting | Domain Registration