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.
|
|
|
06-18-2004, 04:12 AM
|
#1
|
Member
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641
Rep:
|
Compiling 2.6.7 Kernel
Anyone has a good guide on compiling 2.6.7 kernel?
Thanks
|
|
|
06-18-2004, 04:38 AM
|
#2
|
Member
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607
Rep:
|
edit /etc/lilo.conf and add these lines:
image = /boot/vmlinuz.old
root = /dev/hda1
label = Slackware.old
read-only
cp linux-2.6.7.tar.bz2 /usr/src
cd /usr/src
tar -xjf linux-2.6.7.tar.bz2
rm linux
ln -s /usr/src/linux-2.6.7 /usr/src/linux
cd linux
vim Makefile - uncomment line 474 (export INSTALL_PATH=/boot)
make mrproper
optionally: copy your old .config file (from the source tree of your previous kernel) to /usr/src/linux
make menuconfig
make
make modules_install
make install
reboot and pray
the stickies at the top of this forum have a lot more good info about recompiling your kernel.
Last edited by Kovacs; 06-18-2004 at 04:40 AM.
|
|
|
06-18-2004, 05:20 AM
|
#3
|
Member
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641
Original Poster
Rep:
|
Quote:
Originally posted by Kovacs
edit /etc/lilo.conf and add these lines:
image = /boot/vmlinuz.old
root = /dev/hda1
label = Slackware.old
read-only
|
Do I need to edit the image after I've finished? /boot/vmlinuz-2.6.7 ?
|
|
|
06-18-2004, 05:25 AM
|
#4
|
Member
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607
Rep:
|
make install moves your old kernel to vmlinux.old (and you edit lilo like this so you can boot into your old kernel in case the new one fails), and the new one will just be called vmlinuz.
I would highly recommend reading the guides at the top of the board, they have some common gotchas in them.
|
|
|
06-18-2004, 05:29 AM
|
#5
|
Member
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641
Original Poster
Rep:
|
Quote:
Originally posted by Kovacs
make install moves your old kernel to vmlinux.old (and you edit lilo like this so you can boot into your old kernel in case the new one fails), and the new one will just be called vmlinuz.
I would highly recommend reading the guides at the top of the board, they have some common gotchas in them.
|
Just figured it out too. Yea, I'm reading at the slicky now.
btw, I seems to have missed make dep, make clean, make bzImage. Now I'm at make install (Didn't know it takes so much time). Are the above 3 commands important? Can I "rollback" now?
|
|
|
06-18-2004, 05:48 AM
|
#6
|
Member
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607
Rep:
|
afaik you don't have to do any of those if you're using the make install method, I've always compiled successfully with make && make modules_install && make install.
|
|
|
06-18-2004, 06:03 AM
|
#7
|
Member
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641
Original Poster
Rep:
|
Quote:
Originally posted by Kovacs
afaik you don't have to do any of those if you're using the make install method, I've always compiled successfully with make && make modules_install && make install.
|
sheesh, 1st kernel compile failed
After selecting the new kernel at lilo, got a blank screen after that. Any idea why?
|
|
|
06-18-2004, 06:13 AM
|
#8
|
Member
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607
Rep:
|
|
|
|
06-18-2004, 06:29 AM
|
#9
|
Member
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641
Original Poster
Rep:
|
# Graphics support
#
CONFIG_FB=y
CONFIG_FB_VESA=y
CONFIG_VIDEO_SELECT=y
#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_PCI_CONSOLE=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
#
# Logo configuration
#
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y
Put the above in lilo right?
|
|
|
06-18-2004, 06:40 AM
|
#10
|
Member
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607
Rep:
|
Those bits go in your .config file for your kernel. You can either make clean or remove your 2.6.7 source directory and repeat all the steps up until you get to make. Edit your /usr/src/linux/.config and find those options and change the values accordingly. There are also corresponding entries in make menuconfig (somewhere) if you'd rather do it that way. Then make && make modules_install && make install as normal.
|
|
|
06-18-2004, 06:44 AM
|
#11
|
Member
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641
Original Poster
Rep:
|
Quote:
Originally posted by Kovacs
Those bits go in your .config file for your kernel. You can either make clean or remove your 2.6.7 source directory and repeat all the steps up until you get to make. Edit your /usr/src/linux/.config and find those options and change the values accordingly. There are also corresponding entries in make menuconfig (somewhere) if you'd rather do it that way. Then make && make modules_install && make install as normal.
|
oh so I can just re-do the kernel compiling all over again without removing or deleting any current files?
|
|
|
06-18-2004, 07:02 AM
|
#12
|
Member
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607
Rep:
|
If you don't want to delete the source then you at least have to do a "make clean", although I would personally:
back up your /usr/src/linux-2.6.7/.config to another location (eg. /usr/src).
rm -rf /usr/src/linux-2.6.7
then extract the kernel source, make the symlink to linux, edit the Makefile, make mrproper
cp your .config to /usr/src/linux, edit as above to fix the blank screen stuff
make etc. etc as normal.
|
|
|
06-18-2004, 07:51 AM
|
#13
|
Member
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641
Original Poster
Rep:
|
Quote:
Originally posted by Kovacs
If you don't want to delete the source then you at least have to do a "make clean", although I would personally:
back up your /usr/src/linux-2.6.7/.config to another location (eg. /usr/src).
rm -rf /usr/src/linux-2.6.7
then extract the kernel source, make the symlink to linux, edit the Makefile, make mrproper
cp your .config to /usr/src/linux, edit as above to fix the blank screen stuff
make etc. etc as normal.
|
thanx, got it to work.
But another problem. It seems that my usb devices are not working (mouse especially, no lights up on my usb optical mouse). Did a lsmod, not exactly sure what does the results mean but I think that all the mod are not working?
|
|
|
06-18-2004, 12:54 PM
|
#14
|
Member
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607
Rep:
|
You probably just need to enable usb support in your kernel config.
|
|
|
06-18-2004, 01:35 PM
|
#15
|
Member
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641
Original Poster
Rep:
|
Quote:
Originally posted by Kovacs
You probably just need to enable usb support in your kernel config.
|
Sorry but how do I do that?
|
|
|
All times are GMT -5. The time now is 09:10 AM.
|
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
|
|