Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I change the order that modules are loaded?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
scobapro
n00b
n00b


Joined: 01 Apr 2003
Posts: 16

PostPosted: Wed Aug 06, 2003 1:34 am    Post subject: How do I change the order that modules are loaded? Reply with quote

I'm having a crap time with getting scsi emulation working for my atapi cd burner.

From what I've read this is accomplished through the modules ide-scsi, ide-cd, and scsi support (scsi_mod and possibly sd_mod and sr_mod?) but most importantly the first two. In particular I've been told that I need to get ide-cd *above* ide-scsi in my lsmod modules list.

I accomplished this once....don't know how it was different before....and was able to use k3b and cdrecord perfectly. Since then, no matter what order I list the modules in /etc/modules.autoload ide-cd is always below ide-scsi. Am I crazy, or does the autoload script not care what order the modules are listed in?

Also, I have attempted to rmmod and insmod ide-cd so that it shows up above ide-scsi....the only problem is...cdrecord doesn't show my devices (like it's supposed to when this is working) after I do this. It seems like the only way it worked was when autoload loaded them in the correct order.

BTW the post that describes what I'm trying to do is here:
https://forums.gentoo.org/viewtopic.php?t=68321&highlight=scsi+atapi+dummies

Please help if you can!
Back to top
View user's profile Send private message
drekka
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2003
Posts: 111

PostPosted: Wed Aug 06, 2003 2:39 am    Post subject: Reply with quote

Hi,
Not sure if this will help, but the current versions of XCDRoast can work with Atapi cdrom burners without the scsi emulation. If this is all your after, then just turn off all the scsi stuff in your kernels (modules) and you should be ok.

I'm currently using a LiteOn 48x24x48 and it works just fine.

cio
Derek.
_________________
Regards,
Derek

<nb>Reality is not what you think</nb>
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Aug 06, 2003 6:02 am    Post subject: Reply with quote

why not just compile them in directly into the kernel ?
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
scobapro
n00b
n00b


Joined: 01 Apr 2003
Posts: 16

PostPosted: Wed Aug 06, 2003 3:11 pm    Post subject: well... Reply with quote

Quote:
current versions of XCDRoast can work with Atapi cdrom burners without the scsi emulation


yeah....if it comes to it I'll have to try XCDRoast....hopefully I like it better this time...I guess I just really liked k3b (when it was working). Thanks for the help.

Quote:
why not just compile them in directly into the kernel ?


I have no problem doing that, but according to the post that I referred to in my first post, these modules need to be loaded dynamically so that I can get them in the right order. For some reason, if you compile the modules into the kernel, they don't get loaded in the correct order (however that works).

Are you using scsi emulation with k3b? There must be some people out there who are doing this successfully. I would be very interested to see how some other people are loading their modules in so that this works as advertised.

Thanks for the help.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54817
Location: 56N 3W

PostPosted: Wed Aug 06, 2003 9:39 pm    Post subject: Reply with quote

scobapro,

You don't need ide-cd but you do need all the other modules you have listed
You also need to pass a kernel parameter in grub (or lilo).

the following is from my grub.conf
kernel (hd0,0)/boot/bzImage root=/dev/hda5 hdc=ide-scsi hdd=ide-scsi

hdc=ide-scsi stops the kernel from attaching hdc as an ide device so the scsi subsystem can get it later. ( I have a CD-RW and DVD+RW so I have two entries). Change the hdx to suit your system.

X-CD-Roast is supposed to be very poor with raw IDE because it can't use DMA yet.

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
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Thu Aug 07, 2003 1:51 am    Post subject: Reply with quote

If you don't bother loading ide-cd at all, ide-scsi will attach to all your atapi devices, then everything will work fine. (you don't even need to pass anything to the kernel in your bootloader)

This is the way I setup my systems.
Back to top
View user's profile Send private message
dma
Guru
Guru


Joined: 31 Jan 2003
Posts: 437
Location: Charlotte, NC, USA

PostPosted: Thu Aug 07, 2003 3:40 pm    Post subject: Reply with quote

You might be able to hack the module dependencies. I'll have to look into this when I get back home.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum