[Bug 214249] New: No device node for PCMCIA CDROM
https://bugzilla.novell.com/show_bug.cgi?id=214249 Summary: No device node for PCMCIA CDROM Product: SUSE Linux 10.1 Version: Final Platform: x86 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jengelh@gmx.de QAContact: qa@suse.de When plugging in the SONY PCGA-CD51/A (or DVD) drive into the PCMCIA slot, a new IDE bus is registered (ide2). udevmonitor shows some activity that a new bus has been added, but other than that does not take action to create the device node. When I manually create /dev/hde, I can access the CDROM drive. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 ------- Comment #1 from jengelh@gmx.de 2006-10-21 08:39 MST ------- Created an attachment (id=102215) --> (https://bugzilla.novell.com/attachment.cgi?id=102215&action=view) udevmonitor -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |kasievers@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 ------- Comment #2 from kasievers@novell.com 2006-10-24 09:09 MST ------- What does udevmonitor print while you access the manually created device node? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 ------- Comment #3 from jengelh@gmx.de 2006-10-27 07:59 MST ------- It prints a lot. I am currently out of LAN cable, and I rather don't want to rewire. So, what I essentially found out is that once I `modprobe ide-cd`, the drive is recognized and udev creates the device node. Yeah that sounds like an interesting "problem" -- I do not autoload cdrom.ko and ide-cd.ko because I do not use the CDROM drive often on that box, and I see that as a good thing because so it does not waste kernel memory. Solution? It would be nicest to find out there is a CDROM drive without loading ide-cd/cdrom. That maybe does not work. So probably autoload cdrom/ide-cd when the add-ide-bus udev event happens, and unload it again if no CDROM drives were found. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 ------- Comment #4 from kasievers@novell.com 2006-10-27 08:52 MST ------- "MODALIAS=ide:m-cdrom" should autoload the ide-cd module. What do you mean with "I do not autoload cdrom.ko and ide-cd.ko", you blacklisted them in modprobe.conf? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 ------- Comment #5 from jengelh@gmx.de 2006-10-27 09:01 MST ------- It is not blacklisted. If it was, `modprobe ide-cd` would probably be a no-op(?). No, I am just saying that there is no one that loads it automatically. Which is fine for my daily usage -- because there usually. is no CDROM drive by default. Where would I add that MODALIAS line? I would actually prefer udev (or its kernel part) to recognize this automagically. The basic kernel does it already: pccard: PCMCIA card inserted into slot 0 pcmcia: registering new device pcmcia0.0 Probing IDE interface ide2... hde: TOSHIBA CD-ROM XM-7002Bc, ATAPI CD/DVD-ROM drive ide2 at 0x180-0x187,0x386 on irq 3 hde: ATAPI 16X CD-ROM drive, 128kB Cache ide-cs: hde: Vpp = 0.0 You can see similar IDE probing on boot, when no cdrom.ko nor ide-cs.ko is loaded. Couldn't udev (or its kernel part) pick that up and [generate uevents and] decide to load cdrom.ko/ide-cd.ko? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 ------- Comment #6 from kasievers@novell.com 2006-10-27 09:50 MST ------- Ok, you always use autoloading, if you don't blacklist modules. It should work, and usually does work that way automatically. In your udevmonitor log is the MODALIAS line, which should trigger the autoload of the module. In case it's not loaded, does: modprobe ide:m-cdrom load the module? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 jengelh@gmx.de changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #102215|0 |1 is obsolete| | ------- Comment #7 from jengelh@gmx.de 2006-10-29 03:27 MST ------- Created an attachment (id=102953) --> (https://bugzilla.novell.com/attachment.cgi?id=102953&action=view) udevmonitor --env output, with comments If I manually run `modprobe ide-m:cdrom`, ide_cd.ko and cdrom.ko get loaded. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 kasievers@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |jengelh@gmx.de ------- Comment #8 from kasievers@novell.com 2007-01-12 06:48 MST ------- So it's likely a sysconfig thing. Let's see if sysconfig (hwup) gets called: What does: udevtest /devices/pci0000:00/0000:00:12.0/0.0/ide2/2.0 print? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 jengelh@gmx.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|jengelh@gmx.de | ------- Comment #9 from jengelh@gmx.de 2007-01-12 09:21 MST ------- 17:20 takeshi:/home/jengelh # udevtest /devices/pci0000:00/0000:00:12.0/0.0/ide2/2.0 main: looking at device '/devices/pci0000:00/0000:00:12.0/0.0/ide2/2.0' from subsystem 'ide' main: run: '/sbin/hwup ide-devpath-/devices/pci0000:00/0000:00:12.0/0.0/ide2/2.0 -o hotplug' main: run: 'socket:/org/freedesktop/hal/udev_event' main: run: 'socket:/org/kernel/udev/monitor' 17:20 takeshi:/home/jengelh # l /sys/devices/pci0000:00/0000:00:12.0/0.0/ide2/2.0 total 0 drwxr-xr-x 3 root root 0 Jan 12 17:19 . drwxr-xr-x 4 root root 0 Jan 12 17:19 .. lrwxrwxrwx 1 root root 0 Jan 12 17:19 bus -> ../../../../../../bus/ide drwxr-xr-x 2 root root 0 Jan 12 17:19 power lrwxrwxrwx 1 root root 0 Jan 12 17:19 subsystem -> ./../../../../../bus/ide -r--r--r-- 1 root root 4096 Jan 12 17:19 drivename -r--r--r-- 1 root root 4096 Jan 12 17:19 media -r--r--r-- 1 root root 4096 Jan 12 17:19 modalias --w------- 1 root root 4096 Jan 12 17:19 uevent 17:20 takeshi:/home/jengelh # cat /sys/devices/pci0000:00/0000:00:12.0/0.0/ide2/2.0/drivename hde 17:21 takeshi:/home/jengelh # l /dev/hde /bin/ls: /dev/hde: No such file or directory -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 ------- Comment #10 from jengelh@gmx.de 2007-01-12 09:24 MST ------- When doing it again: 17:23 takeshi:/home/jengelh # /sbin/hwup ide-devpath-/devices/pci0000:00/0000:00:12.0/0.0/ide2/2.0 -o hotplug hwup: module 'hostap_cs' already present in kernel No sign of ide-cd. Except for looking at the 'media' sysfs file, there does not seem any other file actually telling us it is a cdrom drive. Maybe herein lies the hwup/udev bug? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 kasievers@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |zoz@novell.com ------- Comment #11 from kasievers@novell.com 2007-01-12 09:42 MST ------- Christian, the IDE device contains a MODALIAS with "ide-m:cdrom". Hwup should modules like plain modprobe does, right? Care to look into this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 zoz@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|zoz@novell.com |jengelh@gmx.de ------- Comment #12 from zoz@novell.com 2007-01-12 10:45 MST ------- Jan, would you please run LOG_LEVEL=6 hwup ide-devpath-/devices/pci0000:00/0000:00:12.0/0.0/ide2/2.0 -o hotplug and show me the output? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 jengelh@gmx.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|jengelh@gmx.de | ------- Comment #13 from jengelh@gmx.de 2007-01-12 11:53 MST ------- ide-devpath-/devices/pci0000:00/0000:00:12.0/0.0/ide2/2.0 -o hotplug HWDESC='ide-devpath-/devices/pci0000:00/0000:00:12.0/0.0/ide2/2.0' CONFIG='bus-pcmcia-0.0' ------------------------------------------------------------ MODE=auto HOTPLUG=yes SUBSYSTEM=ide MODALIAS= HWD_BUSID=2.0 HWD_BUSID_0=0000:00:12.0 HWD_BUSID_1=0 HWD_BUSID_2=0.0 HWD_BUSID_3=2.0 HWD_BUSNAME=ide HWD_BUSNAME_0=pci HWD_BUSNAME_1=pcmcia HWD_BUSNAME_2=pcmcia HWD_BUSNAME_3=ide HWD_BUS_N=4 HWD_CONFIG=bus-pcmcia-0.0 HWD_CONFIG_0=bus-pcmcia-0.0 HWD_CONFIG_N=1 HWD_DEVICEPATH=/sys/devices/pci0000:00/0000:00:12.0/0.0/ide2/2.0 HWD_DEVPATH=/devices/pci0000:00/0000:00:12.0/0.0/ide2/2.0 HWD_DEVTYPE=ide HWD_HWDESC=ide-devpath-/devices/pci0000:00/0000:00:12.0/0.0/ide2/2.0 HWD_HWDESCTYPE=devpath HWD_INTERFACE_N=0 MODULE=hostap_cs MODULE_OPTIONS= STARTMODE=auto ------------------------------------------------------------ hwup: module 'hostap_cs' already present in kernel hwup error: could not get driver name -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 zoz@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kasievers@novell.com AssignedTo|kasievers@novell.com |zoz@novell.com Status|NEW |ASSIGNED ------- Comment #14 from zoz@novell.com 2007-01-12 12:19 MST ------- OK, it's a getcfg problem. It runs along the list of busses to look for a config file and finds the pcmcia device config. And manual configurations are preferred. IIRC this was a feature of getcfg from its very first days. Before i can change this i have to think about possible implications. Nevertheless we have to change that somehow. Jan, for now you may try this: Create a /etc/sysconfig/hardware/hwcfg-bus-ide-2.0 which contains: MODULE=ide_cd STARTMODE=auto Please try that. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 ------- Comment #15 from jengelh@gmx.de 2007-01-12 12:38 MST ------- That creates /dev/hde on pcmcia card insert. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249 ------- Comment #16 from zoz@novell.com 2007-01-12 13:16 MST ------- Fine. At least that works. I care about that, but not today. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=214249#c17
Christian Zoz
https://bugzilla.novell.com/show_bug.cgi?id=214249
Jan Engelhardt
participants (1)
-
bugzilla_noreply@novell.com