Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-16-2002, 02:26 AM
|
#1
|
Member
Registered: May 2002
Location: The good 'ol USofA
Distribution: ArchLinux - Slackware 8.1
Posts: 398
Rep:
|
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.
|
|
|
07-16-2002, 12:31 PM
|
#2
|
LQ Newbie
Registered: May 2002
Location: Madison, WI, USA
Distribution: slackware
Posts: 13
Rep:
|
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.
|
|
|
07-16-2002, 07:36 PM
|
#3
|
Member
Registered: May 2002
Location: The good 'ol USofA
Distribution: ArchLinux - Slackware 8.1
Posts: 398
Original Poster
Rep:
|
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.
|
|
|
07-16-2002, 07:59 PM
|
#4
|
Senior Member
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180
Rep:
|
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.
|
|
|
08-17-2002, 06:54 AM
|
#5
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-17-2002, 05:03 PM
|
#6
|
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
|
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
|
|
|
08-17-2002, 11:27 PM
|
#7
|
Member
Registered: May 2002
Location: The good 'ol USofA
Distribution: ArchLinux - Slackware 8.1
Posts: 398
Original Poster
Rep:
|
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.
|
|
|
08-18-2002, 11:29 AM
|
#8
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
In slack 8.1 you need to edit the Makefile to use the make install option.
|
|
|
08-18-2002, 04:20 PM
|
#9
|
Member
Registered: May 2002
Location: The good 'ol USofA
Distribution: ArchLinux - Slackware 8.1
Posts: 398
Original Poster
Rep:
|
where could i find information on editing a make file?
|
|
|
08-18-2002, 05:13 PM
|
#10
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
It's only a text file.....any text editor will do the job.
|
|
|
08-19-2002, 05:25 AM
|
#11
|
Member
Registered: Apr 2002
Location: Michigan
Distribution: Slackware 8.0
Posts: 197
Rep:
|
Like Aussie said, in Slack 8.1 you will need to change the following in the Makefile:
#export INSTALL_PATH=/boot
|
|
|
08-20-2002, 05:41 AM
|
#12
|
LQ Newbie
Registered: May 2002
Location: Tampa
Distribution: Slackware 9.1
Posts: 21
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 01:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|