View previous topic :: View next topic |
Author |
Message |
angill Tux's lil' helper
Joined: 26 Aug 2003 Posts: 87 Location: Ohio
|
Posted: Tue Sep 02, 2003 3:48 pm Post subject: compiling kernel modules without dumping other configs |
|
|
I keep trying to get my cd-rw drive to work and I keep trying to compile kernel modules but every time I do, I loose my eth0 support, my ntfs filesystem support, and my alsa modules. SO... I can always get them back by running make mrproper and then running genkernel and everything is back the way it was; however my cd-rw still doesn't work. Can someone please tell me the proper way to compile kernel modules without dumping things in the kernel that are already working? I mean step by step, cause I have followed step by step howto's from various threads on how to do it and every time I mess something up.
Thanks in advance for you consideration _________________ what if the hokey pokey is what it's all about? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54276 Location: 56N 3W
|
Posted: Tue Sep 02, 2003 5:02 pm Post subject: |
|
|
angill,
The current kernel configuration is saved at the top of the kernel tree in a file called .config. When you have a kernel you like., make a copy of this this file. (note the leading full stop). Then you can get back to your working kernel by copying the file back.
Make menuconfig and friends operate on the content of .config by defalt but you can load other files if you want.
To get your CD-RW to go you need to enable SCSI support, Generic SCSI support, SCSI CD-ROM support and ide_scsi.
Lastly, you have to add /dev/hdx=ide-scsi to the kernel parameters in grub (or lilo) to prevent the IDE subsystem attaching the drive. Change hdx to your CD-RW device.
dmesg should show (near the top) that your writer(s) have been detected as in :-
Kernel command line: root=/dev/hda5 hdc=ide-scsi hdd=ide-scsi
ide_setup: hdc=ide-scsi
ide_setup: hdd=ide-scsi
and close to the bottom:-
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: RICOH Model: DVD+RW MP5125 Rev: 1.38
Type: CD-ROM ANSI SCSI revision: 02
Vendor: SAMSUNG Model: CD-R/RW SW-408B Rev: BS02
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
sr0: mmc-3 profile capable, current profile: 1Ah
Uniform CD-ROM driver Revision: 3.12
sr1: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
as the scsi subsysyem picks them uo.
Regards,
NeddySeagoon _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
bonsaikitten Apprentice
Joined: 01 Jan 2003 Posts: 213 Location: Shanghai, China
|
Posted: Tue Sep 02, 2003 5:08 pm Post subject: |
|
|
in your linux source directory (/usr/src/linux usually) there should be a file named .config
I don't know how genkernel works, but you can copy this file (it should contain your momentary kernel config) somewhere else. Then, if you configure a kernel and change options, you can always undo them by copying the old .config back. |
|
Back to top |
|
|
Chris Finch Tux's lil' helper
Joined: 10 Mar 2003 Posts: 106 Location: Darmstadt, Germany
|
Posted: Tue Sep 02, 2003 6:08 pm Post subject: |
|
|
I, too, have only a vague idea of what genkernel is. However, once you have created a configuration you like with that tool, and you just want to make a small change, you could cd into /usr/src/linux and type "make xconfig" (or "make menuconfig" if X is not working, yet). |
|
Back to top |
|
|
angill Tux's lil' helper
Joined: 26 Aug 2003 Posts: 87 Location: Ohio
|
Posted: Wed Sep 03, 2003 2:09 pm Post subject: |
|
|
Okay this is even more of a stupid question but... how do I view the dmesg after I'm into linux? Cause I use GDM so anytime I kill X to look at the terminal it restarts. Is there a dmesg output to log anywhere? _________________ what if the hokey pokey is what it's all about? |
|
Back to top |
|
|
Ox- Guru
Joined: 19 Jun 2003 Posts: 305
|
Posted: Wed Sep 03, 2003 2:26 pm Post subject: |
|
|
Yes, just type into a console window (i.e. gnome-terminal, xterm, eterm, aterm). Or you can |
|
Back to top |
|
|
angill Tux's lil' helper
Joined: 26 Aug 2003 Posts: 87 Location: Ohio
|
Posted: Wed Sep 03, 2003 3:03 pm Post subject: |
|
|
This is the dmesg output I am getting -
Code: | SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
|
Any ideas? I have the generic scsi modules and scsi cdrom modules compiled into the kernel and I know that my device is on /dev/hdc _________________ what if the hokey pokey is what it's all about? |
|
Back to top |
|
|
bonsaikitten Apprentice
Joined: 01 Jan 2003 Posts: 213 Location: Shanghai, China
|
Posted: Wed Sep 03, 2003 6:42 pm Post subject: |
|
|
If I read your error correctly then something tries to load a scsi hostadapter module but your burner is ide
There are good howtos for IDE-CD-Burners in Linux, I'm too lazy to google for them myself |
|
Back to top |
|
|
angill Tux's lil' helper
Joined: 26 Aug 2003 Posts: 87 Location: Ohio
|
Posted: Wed Sep 03, 2003 6:59 pm Post subject: |
|
|
would be more than happy to run my burner as IDE, however everything I have been reading says I need to emulate scsi on the ide for the burner to work. AS of the moment all burning software detects my drive as non writeable.
Anyone else have an idea? _________________ what if the hokey pokey is what it's all about? |
|
Back to top |
|
|
Chris Finch Tux's lil' helper
Joined: 10 Mar 2003 Posts: 106 Location: Darmstadt, Germany
|
Posted: Wed Sep 03, 2003 9:32 pm Post subject: |
|
|
This thread https://forums.gentoo.org/viewtopic.php?t=71952 describes how to circumvent scsi-emulation, but doing so has serious drawbacks and I wouldn't advise using that method any time soon.
Search the forums for ide-scsi, scsi emulation, burning: you will find lots of useful threads.
Alternatively, have a look in the cdrtools docs, but those can sometimes be slightly outdated. |
|
Back to top |
|
|
|