Compiling 2.6.7 Kernel
Anyone has a good guide on compiling 2.6.7 kernel?
Thanks |
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 :D the stickies at the top of this forum have a lot more good info about recompiling your kernel. |
Quote:
|
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. |
Quote:
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? |
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.
|
Quote:
After selecting the new kernel at lilo, got a blank screen after that. Any idea why? |
|
Quote:
# 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? |
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.
|
Quote:
|
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. |
Quote:
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? |
You probably just need to enable usb support in your kernel config.
|
Quote:
|
All times are GMT -5. The time now is 04:09 PM. |