From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Percival Date: Thu, 30 Mar 2006 23:21:34 +0000 Subject: Hotplug only coldplugs... Message-Id: <1143760894.8931.14.camel@localhost.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org G'Day, I hope it is OK to post these sorts of questions here; I was not sure where it should be taken. I have been trying to set up diethotplug for an embedded system, but have not had any success with actually hotplugging devices. The only devices that are to be attached are a compact flash memory device and a USB flash memory, which will always be on hda1 and sda1 respectively. After much playing around with the scripts, I have been able to get the USB memory to mount when `/etc/init.d/hotplug start' is called, which seems to be a good start, but I have not been able to get any effect outside of this case. I have not spend much time on compact flash yet, which is why the scripts for it are not yet working. In one test I tried, I left the device plugged in, unmounted it, and run `hotplug usb', but nothing seemed to happen --- I even added an echo statement the the start of /etc/hotplug/usb.rc, but did not see it. Since coldplugging works, I would assume my scripts are all correctly set up, so I am a little stuck on what the problem could be. In addition, /proc/sys/kernel/hotplug says hotplug needs to be at /sbin/hotplug, which it is, but when I replace hotplug with a script that merely echoes any arguments it receives, and try plugging in the device, there is no response. Perhaps this is to be expected, but it seems odd to me. If anyone could offer any advice to what I should try doing here, it would be most appreciated. Thanks, Matthew Percival PS When the system is used as a USB device rather than a USB host, can hotplug be used somehow to identify when it is connected to a host? I have not been able to find anything saying it can, but I can always hope. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel