Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB/SCSI/IEEE1394 modules interefere & won't unload
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
DrZoidberg
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2003
Posts: 119
Location: New Port Richey, Florida

PostPosted: Tue Nov 09, 2004 10:38 pm    Post subject: USB/SCSI/IEEE1394 modules interefere & won't unload Reply with quote

I have a firewire DVD burner and a USB CF card reader and they don't always work at the same time. Sometimes you have to reboot to get one to work after having used the other.

Before rebooting, I try to remove modules and rmmod almost never works for sd_mod sr_mod and everything USB/1394 related. rmmod just goes zombie after a while.

I have been having these problems since 2.4.X and in 2.6.X kernels with most USB devices. If I plug in my USB hard disk/mp3 player, unplug it and then plug in a CF reader, the reader is never recognised. (mount gives the error /dev/sda1 does not exist.) If I plug in the CF reader first, then it works and the mp3 player does not. Can't unload the modules so I have to reboot to use the other device.

I have hotplug installed but I don't really understand how it loads modules when a device is plugged in. lsmod seems to indicate the correct modules are being loaded. But using more than one USB device is a problem.

Would building all the usb/firewire stuff into the kernel help?

I have a pretty slow G4 550Mhz system, so rebuilding the kernel takes a little while. Any suggestions?
Back to top
View user's profile Send private message
zeekec
n00b
n00b


Joined: 24 Feb 2004
Posts: 56
Location: Athens, GA, USA

PostPosted: Wed Nov 10, 2004 2:12 pm    Post subject: Reply with quote

You might check to see if the new devices are on /dev/sdb1 or some other /dev/sd?1. The old device might not be removed before the new device is added.
Also check /proc/scsi/scsi to see if the device is recognized.

Erik

P.S. Are you using udev of devfs?

P.P.S. Check dmesg for messages.
Back to top
View user's profile Send private message
DrZoidberg
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2003
Posts: 119
Location: New Port Richey, Florida

PostPosted: Thu Nov 11, 2004 2:01 am    Post subject: Reply with quote

Quote:

You might check to see if the new devices are on /dev/sdb1 or some other /dev/sd?1. The old device might not be removed before the new device is added.
Also check /proc/scsi/scsi to see if the device is recognized.


I tried looking at various sd{a,b...}{1,2,...} but no luck. The dmesg is not very helpful: it says the device was found and nothing else. When the device is recognised and works, dmesg says something about /dev/sda1.
Sorry, I'm not using my own computer so I can't post specifics.

Quote:

P.S. Are you using udev of devfs?

I don't know what udev is. Unless it is part of Gentoo's default install, I guess I'm not using it.[/quote]
Back to top
View user's profile Send private message
zeekec
n00b
n00b


Joined: 24 Feb 2004
Posts: 56
Location: Athens, GA, USA

PostPosted: Thu Nov 11, 2004 6:17 pm    Post subject: Reply with quote

Sorry, I don't know what your exact problem is.

My system works fine. I can plug/replug/unplug devices without any problems.

I'm using the latest gentoo-dev-sources for my kernel, udev, and hotplug. You might try installing those. (Udev automagically creates/destroys dev nodes when needed.)

Maybe posting you dmesg results and/or your messages log would help. (Please post only the relavent sections.)

Erik

P.S. Not to sound condecending, but you do remember to unmount the device before unplugging it.
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Fri Nov 12, 2004 2:08 am    Post subject: Reply with quote

I have a similar problem with my Firewire CD-RW... It works fine but once I have turned it off and turn it on later the driver doesn't register it.

When I turn it off after using it I get the following in my dmesg:
Code:
ieee1394: Node suspended: ID:BUS[0-00:1023]  GUID[000721905000d365]

The device file in /dev is removed and everything looks fine. But when I turn it back on absolutely nothing happens, no errors in dmesg even with all ieee1394 and scsi debugging in the kernel turned on. It happens both when everything is compiled as modules and when it's compiled in the kernel itself. If it's as modules sbp2 won't unload anymore, not even when forced. Trying to use
Code:
/sys/bus/ieee1394/destroy_node
and doing a rescan after does print out a
Code:
ieee1394: Node removed: ID:BUS[0-00:1023]  GUID[000721905000d365]

but that doesn't change anything.
Any combination of unplugging & replugging cables and rescanning doesn't help either.

That's when I kind of ran out of ideas of what to try. I've been having this problem with all 2.6 kernels (I started from 2.6.1), it never occured with the 2.4 series. Currently I am running kernel 2.6.9 with the latest udev & hotplug.

I never bothered much about this since the CDRW works perfectly fine, it's just that I can't turn it off and turn it on again and have it work. Since I'm on a laptop and don't keep a long uptime this has never disturbed me much, but I found it interesting that someone else is experiencing a simliar problem...
Back to top
View user's profile Send private message
DrZoidberg
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2003
Posts: 119
Location: New Port Richey, Florida

PostPosted: Fri Nov 12, 2004 4:25 am    Post subject: Reply with quote

I decided to try udev and it doesn't seem to make any difference with the firewire/USB stuff. In fact, emerging udev (030) broke irda. For some reason, I have to mknod /dev/ircomm0 every boot. I stuck the command in /etc/conf.d/local.start. Everything works again, but figuring out how to sync my old Palm Vx to jpilot is getting really old. (Every time I upgrade, irda gets goofed up somehow. And macs don't have serial ports.) Should I emerge a newer udev? I notice there are about 12 newer ~PPC versions.

@Diskbreaker:
I get similar messages when switching off my DVD+/-RW drive. And sbp2 will not unload.
Back to top
View user's profile Send private message
zeekec
n00b
n00b


Joined: 24 Feb 2004
Posts: 56
Location: Athens, GA, USA

PostPosted: Fri Nov 12, 2004 5:01 pm    Post subject: Reply with quote

DrZoidberg wrote:
I decided to try udev and it doesn't seem to make any difference with the firewire/USB stuff. ... Should I emerge a newer udev? I notice there are about 12 newer ~PPC versions.


I run my whole system with ~ppc and haven't had many problems.

I'm afraid that I don't know the exact source of your problem. If you're running a 2.6.9 kernel watchout for the ub driver. It seems to have replaced the usb-storage driver for an external harddrive of mine. It would be OK, but it only enumerates the first 7 partitions. I have 13. Look for /dev/ub* devices.

Erik
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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