Possible to compile individual kernel source modules? emu10k1
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Possible to compile individual kernel source modules? emu10k1
I searched abit before Im posting this - not sure if it has been asked, if it has sorry
Just wondering, the /usr/src/linux folder has all the drivers, and it has emu10k1 driver folder with the *.h and *.c files, i need to compile it and add it to /lib/modules/2.4.31/drivers/sound/emu10k1
When I installed slack it did not add the emu10k1.o into that folder, so I cannot /sbin/modprobe it and start it up.
Just wondering if its possible to compile just an individual driver/app in the /usr/src/linux without having to compile the entire kernel. Cause when i compile the kernel it doesnt add the file into the directory /lib/modules/... so i can use it
This is what ive been using to compile it
make menuconfig (i have the emu10k1 selected as module)
make dep
make && make modules_install
make install
make bzImage (and copied it to /boot/vmlinuz
But it still does not add the file I need into the folder
Maybe im compiling the kernel wrong, I dunno
Just wondering if its possible to compile an individual driver from /usr/src/linux liks /usr/src/linux/drivers/sound/emu10k1
Tried to do the make, and such in that folder but it never works
Ok did that and re compiled the kernel (im almost positive it was the same version as each other (it was the source that slack10.2 installed))
did all of that then
make bzImage
i copied that along with the .config file in the /usr/src/linux back to /boot (not sure if that was the right thing to do)
when i rebooted the system, lilo comes up and i select linux, but then the screen goes blank and I cant do anything (not even pass the Linux 3 at lilo to boot into cli mode)
should I just start over and reinstall slack? or any suggestions on fixing this? I already tried taking the backup config file and putting it back in /boot as well as a backup vmlinuz file, but it still is messed up.
The install said when the compile was finished that the boot image was now too big to put on floppy also. I was able to regain access to the files by putting in slack cd1 and booting to its screen -- and then mount /dev/hda2 (where linux is) mounting it to /e
I can gain access to the files but im not sure what to do to fix this. If i am going to have to reinstall thats fine but i need a way to copy my files from the linux disk to my windows partition or burn to cd, but is that even possible to burn to cd from slacks install cd?
I cant get them on my windows partition cause it says ntfs not supported, is there maybe an include command to include it when i boot from the slack cd? --with-ntfs did not work.
no need to start over
just need to get a boot image in the /boot folder that will load your system
the simplest way to do that is boot with disk 1
run setup
then choose the configure option, this will allow you to pick a kernel and it will install and run lilo for you
once you have done that then we can worry about the module
just a note, if all you are doing is making a module you don't have to rebuild the kernel
Ok this is kinda annoying need abit more advice, lol
I found that /dev/hdc is the cdrom with the slack install in it
so i did a mount /dev/hdc /cdrom (/cdrom is the dir its looking for the kernel images in)
i do 'ls /cdrom' ,, and all the files are in there from the cdrom
but when i type setup and follow it to the page where it asks what location to install the image from, and i select cdrom it gives the error that it cant find the cdrom, and it was just mounted a min ago
so i ctrl c out of the setup program and ls /cdrom
and its unmounted again
any idea how to keep it mounted so i can install the image?
i feel your pain.
ok other way to do this is boot with disk 1
mkdir anything
mount /dev/hda1 /anything (assuming hda1 is your / partition
chroot /anything
cd /
now mount your cdrom
you should be able to cd to the kernels directory and simply
installpkg kernel.tgz
at this point make sure your /etc/lilo.conf file is pointing to the correct image in /boot
then run
lilo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.