help, how to recompile slackwares kernel
help well i got slackware about a week ago and i wanna recompile a new kernel so my speakers will work why my speakers wont work: insmod sound
Using /lib/modules/2.2.19/misc/sound.o.gz /lib/modules/2.2.19/misc/sound.o.gz: unresolved symbol sound_preinit_lowlevel_drivers /lib/modules/2.2.19/misc/sound.o.gz: unresolved symbol sound_unload_lowlevel_drivers /lib/modules/2.2.19/misc/sound.o.gz: unresolved symbol sound_init_lowlevel_drivers how would i be able to recompile my kernel and get those sound drivers to work?? |
To recompile: cd /usr/src/linux , make mrproper , make menuconfig , make dep , make clean , make bzImage , make modules , make modules_install , mv /boot/System.map /boot.System.map.old , mv System.map /boot/System.map cd arch/i386/boot , cp bzImage /bzImage and pico /etc/lilo.conf and edit it adding the new kernel entry, /sbin/lilo and ur done.
Before doing that try modprobe sound instead of insmod and then modprobe your drivers as well and it should work with out recompiling. Hope that helps -Nskl |
actually there is an easier way in slack:
cd /usr/src/linux make xconfig make dep make bzImage make modules make modules_install make bzlilo make clean there you go... |
This is how I do it,
Step 1. Fixing up /etc/lilo.conf Add the below entires to your lilo.conf # Backup Image image = /vmlinuz.old root = /dev/hda1 label = oldlinux Note: replace /dev/hda1 with your boot partition. Step 2. Compiling the kernel the quick way Once you have this you are ready to build that new kernel the quick way. Below is the sequence you should follow: make mrproper (I dont do this most of the time since it will remove your .config) make menuconfig (ncurses based kernel configuration menu system) make dep (fix up dependencies) make clean (get rid of old o files and stuff) make bzImage (build it) make install (read the note below for this one) make modules (build the modules) make modules_install (install the modules) Note: "make install" is one that most don't use but if you run Slackware it will work fine. What it does is: copies, moves, and renames all the files to where they need to be. It also updates lilo for you. This method is very clean fast and easy to use. Again saves a few steps that the readme file says you need to make. If your new kernel fails to work you can boot the old one by hitting the left shift key at the lilo prompt during bootup and typing oldlinux. |
Not being daft, but do you really need to recompile your kernel? I know it's good for you, but have you tried, rather than insmoding sound, modprobe sound? Or, if you've got a SBLive, then modprobe emu10k1?
|
|
make install?
So if i run make install am i done? Will make install replace my old kernel, update lilo, move System.map and all that? After make install am i done ,can I reboot my box? I never used it so im a bit paranoid as to what it does, and how...
And will make install be still safe to use if i have 4 kernel entried in lilo.conf? And what does make bzlilo do? Thanks for help -Nskl |
Quote:
|
Re: make install?
Quote:
|
this is what i would do
first download the kernel to your home directory and unpack it there. then edit lilo ...rename the current kernel vmlinuz.old and the label oldlinux...then add the the script for the new kernel your about to build label it say kernel2418 or whaeva cd to the linux directory it creates no need to run 'make mrproper' because there is no crud lyin around from previous builds. go su or root make menuconfig make dep make clean make make install make modules make modules_install after this you are ready to reboot using your new kernel |
All times are GMT -5. The time now is 06:16 AM. |