How do I recompile the kernel?
First off: Is is necessary to recompile the kernel in order to get my sound card to work under Linux? I have attempted to follow the instructions in the Kernel-HOW-TO: http://sunsite.unc.edu/LDP/HOWTO/Kernel-HOWTO.html but to no avail. I downloaded and installed the kernel source from the debian ftp site with dselect, did make menuconfig, make dep, make clean, make zImage, make zlilo and lilo. Every step did something (make zImage took more than 10 minutes), but when it was all over I rebooted and the old kernel was still running. Once again I am unable to interpret the HOW-TO instructions (in fact those HOW-TO's have really been no help at all), and turn to the readers of this list for help. How do I recompile the kernel? Alternatively: Does anyone know a URL for some better instructions? Thank You David Densmore <[EMAIL PROTECTED]> -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: How do I recompile the kernel?
Hi, I have attached a mail by Ben Gertzfield below. The original question was about kernel modules but the 'kernel-package' handles all the things related to building a custom kernel, not only the modules. This is the way I built my kernel and it worked very well. The 'kernel-package' can be found from the misc section. After you have made your new custom kernel you can install it with 'dpkg -i /usr/src/your_new_kernel.deb'. Start of quote: > "Will" == Will Lowe <[EMAIL PROTECTED]> writes: Will> This might be going to the wrong list, but I don't think I Will> subscribe to debian-devel. Maybe it actually goes to the Will> linux kernel people. Anyway: Will> Shouldn't 1) automatically purge the Will> /lib/modules/* tree before installing? 2) update Will> /etc/modules and conf.modules? If you use the 'kernel-package' Debian package, things will work exactly this way. You just run make menuconfig/config/xconfig/whatever, and then run: make-kpkg --revision whatever.1.0 kernel_image (you can replace 'whatever' with whatever ;) and voila! you'll have a new .deb package of your kernel and modules and other assorted goodies in /usr/src. :) End of quote: // Heikki -- Heikki Vatiainen * [EMAIL PROTECTED] Tampere University of Technology * Tampere, Finland -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: How do I recompile the kernel?
>but to no avail. I downloaded and installed the kernel source from >the debian ftp site with dselect, did make menuconfig, make dep, >make clean, make zImage, make zlilo and lilo. The documentation that I have (I don't know where from) tells that 1) prior to do "make (menu)config" you should remove some remote links (I am sorry, but I don't have the information here) 2) After "make zImage" the new kernel resides in ... arch/i386/boot/zImage. Lilo however, is told that the file /vmlinuz contains the kernel. Therefore you should make a symbolic link of the kernel file to /vmlinuz before running Lilo, e.g. do $ cp /boot/vmlinuz /boot/oldkernel $ cp arch/i386/boot/zImage /boot/vmlinuz $ rm /vmlinuz $ ln -s /boot/vmlinuz /vmlinuz $ /sbin/lilo I hope this is of help. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: How do I recompile the kernel?
David Densmore <[EMAIL PROTECTED]> writes: > How do I recompile the kernel? Alternatively: Does anyone know a URL for > some better instructions? Install the kernel-package package, and then read /usr/doc/kernel-package/README.gz. This will give you a pretty painless method to compile any kernel under Debian, and you'll end up with a .deb file that you can use to install the kernel. In addidion, it makes sure that it puts everything (modules, symlinks, etc.) where Debian expects to find them. -- Rob -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .