From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Zwiegers Date: Mon, 17 Jan 2005 11:38:35 +0000 Subject: Re: PCI hotplug/udev problem Message-Id: <41EBA3BB.4010603@eagle.co.za> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------000806020402080709020902" List-Id: References: <1105692480.4134.1.camel@allblack.org> In-Reply-To: <1105692480.4134.1.camel@allblack.org> To: linux-hotplug@vger.kernel.org This is a multi-part message in MIME format. --------------000806020402080709020902 Content-Type: multipart/alternative; boundary="------------040105070609000509000205" --------------040105070609000509000205 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi Kay I have also added a script /etc/hotplug.d/edredaq.hotplug and I have attached the log for that as well. This script does not get executed at boot time, but when I run /sbin/udevstart again it runs fine. I have attached two logs for you. The one is just after boot and the other after I have run /sbin/udevstart (.old file). In the boot log (.hotplug_d.log.old) you can see it never saw my directory edredaq. Thanks Jan Kay Sievers wrote: >On Mon, 2005-01-17 at 11:31 +0200, Jan Zwiegers wrote: > > >>Hi Kay >> >>Just a quick question, maybe you know the answer off-hand. >>If I reboot my machine and then load my driver the device nodes are >>not created. >>However the /sys/class/edredaq directory appear correctly. >> >>If I then run udevstart the nodes gets created. >>Do you maybe have any ideas? >> >> > >Please place the following executable script as: > /etc/hotplug.d/default/00-log.hotplug > >================ >#!/bin/sh > >echo -e "--------$SEQNUM--------\n"\ >`date +%s` $ACTION $DEVPATH"\n"\ >`env`\ >"\n--------$SEQNUM--------\n" >> /dev/.hotplug_d.log >================ > >remove and load your module and look at/post the logfile. > >How does: > tree /sys/class/edredaq > >look like? > >Kay > > > --------------040105070609000509000205 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Kay

I have also added a script /etc/hotplug.d/edredaq.hotplug and I have attached the log for that as well.
This script does not get executed at boot time, but when I run /sbin/udevstart again it runs fine.

I have attached two logs for you. The one is just after boot and the other after I have run /sbin/udevstart (.old file).

In the boot log (.hotplug_d.log.old) you can see it never saw my directory edredaq.

Thanks
Jan

Kay Sievers wrote:
On Mon, 2005-01-17 at 11:31 +0200, Jan Zwiegers wrote:
  
Hi Kay

Just a quick question, maybe you know the answer off-hand.
If I reboot my machine and then load my driver the device nodes are
not created. 
However the /sys/class/edredaq directory appear correctly.

If I then run udevstart the nodes gets created.
Do you maybe have any ideas?
    

Please place the following executable script as:
  /etc/hotplug.d/default/00-log.hotplug

================
#!/bin/sh

echo -e "--------$SEQNUM--------\n"\
`date +%s` $ACTION $DEVPATH"\n"\
`env`\
"\n--------$SEQNUM--------\n" >> /dev/.hotplug_d.log
================

remove and load your module and look at/post the logfile.

How does:
  tree /sys/class/edredaq

look like?

Kay

  
--------------040105070609000509000205-- --------------000806020402080709020902 Content-Type: text/plain; name="tree.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="tree.txt" /sys/class/edredaq |-- pci76xdrv0 | |-- dev | |-- device -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:02.0 | `-- driver -> ../../../bus/pci/drivers/pci76xdrv `-- pci76xdrv1 |-- dev |-- device -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:04.0 `-- driver -> ../../../bus/pci/drivers/pci76xdrv 6 directories, 2 files --------------000806020402080709020902 Content-Type: text/plain; name=".hotplug_d.log.old" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename=".hotplug_d.log.old" --------316-------- 1105959652 remove /class/edredaq/pci76xdrv0 DEVPATH=/class/edredaq/pci76xdrv0 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=316 --------316-------- --------317-------- 1105959652 remove /class/edredaq/pci76xdrv1 DEVPATH=/class/edredaq/pci76xdrv1 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=317 --------317-------- --------318-------- 1105959653 add /class/edredaq/pci76xdrv0 DEVPATH=/class/edredaq/pci76xdrv0 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=318 --------318-------- --------319-------- 1105959653 add /class/edredaq/pci76xdrv1 DEVPATH=/class/edredaq/pci76xdrv1 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=319 --------319-------- --------------000806020402080709020902 Content-Type: text/plain; name="edredaq.hotplug.log.old" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="edredaq.hotplug.log.old" Mon Jan 17 12:56:32 SAST 2005 : arguments (edredaq) env(OLDPWD=/ DEVPATH=/class/edredaq/pci76xdrv0 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug HOME=/ SHLVL=2 SEQNUM=312 _=/bin/env) Mon Jan 17 12:56:32 SAST 2005 : arguments (edredaq) env(OLDPWD=/ DEVPATH=/class/edredaq/pci76xdrv1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug HOME=/ SHLVL=2 SEQNUM=313 _=/bin/env) Mon Jan 17 12:56:34 SAST 2005 : arguments (edredaq) env(OLDPWD=/ DEVPATH=/class/edredaq/pci76xdrv0 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 SEQNUM=314 _=/bin/env) Mon Jan 17 12:56:34 SAST 2005 : arguments (edredaq) env(OLDPWD=/ DEVPATH=/class/edredaq/pci76xdrv1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 SEQNUM=315 _=/bin/env) Mon Jan 17 13:00:52 SAST 2005 : arguments (edredaq) env(OLDPWD=/ DEVPATH=/class/edredaq/pci76xdrv0 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug HOME=/ SHLVL=2 SEQNUM=316 _=/bin/env) Mon Jan 17 13:00:52 SAST 2005 : arguments (edredaq) env(OLDPWD=/ DEVPATH=/class/edredaq/pci76xdrv1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug HOME=/ SHLVL=2 SEQNUM=317 _=/bin/env) Mon Jan 17 13:00:53 SAST 2005 : arguments (edredaq) env(OLDPWD=/ DEVPATH=/class/edredaq/pci76xdrv0 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 SEQNUM=318 _=/bin/env) Mon Jan 17 13:00:53 SAST 2005 : arguments (edredaq) env(OLDPWD=/ DEVPATH=/class/edredaq/pci76xdrv1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 SEQNUM=319 _=/bin/env) --------------000806020402080709020902 Content-Type: text/plain; name=".hotplug_d.log" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename=".hotplug_d.log" --------320-------- 1105959723 remove /class/vc/vcs2 DEVPATH=/class/vc/vcs2 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=320 --------320-------- --------321-------- 1105959723 remove /class/vc/vcsa2 DEVPATH=/class/vc/vcsa2 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=321 --------321-------- --------322-------- 1105959723 remove /class/vc/vcs3 DEVPATH=/class/vc/vcs3 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=322 --------322-------- --------323-------- 1105959723 remove /class/vc/vcsa3 DEVPATH=/class/vc/vcsa3 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=323 --------323-------- --------324-------- 1105959723 remove /class/vc/vcs4 DEVPATH=/class/vc/vcs4 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=324 --------324-------- --------326-------- 1105959723 remove /class/vc/vcs5 DEVPATH=/class/vc/vcs5 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=326 --------326-------- --------327-------- 1105959723 remove /class/vc/vcsa5 DEVPATH=/class/vc/vcsa5 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=327 --------327-------- --------328-------- 1105959723 remove /class/vc/vcs6 DEVPATH=/class/vc/vcs6 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=328 --------328-------- --------329-------- 1105959723 remove /class/vc/vcsa6 DEVPATH=/class/vc/vcsa6 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=329 --------329-------- --------325-------- 1105959723 remove /class/vc/vcsa4 DEVPATH=/class/vc/vcsa4 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=325 --------325-------- --------248-------- 1105959810 add /class/printer/lp0 DEVPATH=/class/printer/lp0 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=248 --------248-------- --------249-------- 1105959811 add /class/net/sit0 DEVPATH=/class/net/sit0 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 INTERFACE=sit0 SEQNUM=249 --------249-------- --------250-------- 1105959814 add /class/vc/vcs4 DEVPATH=/class/vc/vcs4 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=250 --------250-------- --------251-------- 1105959814 add /class/vc/vcsa4 DEVPATH=/class/vc/vcsa4 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=251 --------251-------- --------252-------- 1105959814 remove /class/vc/vcs4 DEVPATH=/class/vc/vcs4 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=252 --------252-------- --------253-------- 1105959814 remove /class/vc/vcsa4 DEVPATH=/class/vc/vcsa4 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=253 --------253-------- --------254-------- 1105959814 add /class/vc/vcs4 DEVPATH=/class/vc/vcs4 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=254 --------254-------- --------255-------- 1105959814 add /class/vc/vcsa4 DEVPATH=/class/vc/vcsa4 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=255 --------255-------- --------256-------- 1105959814 add /class/vc/vcs2 DEVPATH=/class/vc/vcs2 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=256 --------256-------- --------257-------- 1105959814 add /class/vc/vcsa2 DEVPATH=/class/vc/vcsa2 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=257 --------257-------- --------258-------- 1105959814 remove /class/vc/vcs2 DEVPATH=/class/vc/vcs2 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=258 --------258-------- --------259-------- 1105959814 remove /class/vc/vcsa2 DEVPATH=/class/vc/vcsa2 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=259 --------260-------- 1105959814 add /class/vc/vcs2 DEVPATH=/class/vc/vcs2 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=260 --------260-------- --------261-------- 1105959814 add /class/vc/vcsa2 DEVPATH=/class/vc/vcsa2 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=261 --------261-------- --------262-------- 1105959814 add /class/vc/vcs5 DEVPATH=/class/vc/vcs5 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=262 --------262-------- --------259-------- --------263-------- 1105959814 add /class/vc/vcsa5 DEVPATH=/class/vc/vcsa5 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=263 --------263-------- --------264-------- 1105959814 remove /class/vc/vcs5 DEVPATH=/class/vc/vcs5 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=264 --------264-------- --------265-------- 1105959814 remove /class/vc/vcsa5 DEVPATH=/class/vc/vcsa5 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=265 --------265-------- --------266-------- 1105959814 add /class/vc/vcs5 DEVPATH=/class/vc/vcs5 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=266 --------266-------- --------270-------- 1105959814 remove /class/vc/vcs6 DEVPATH=/class/vc/vcs6 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=270 --------270-------- --------271-------- 1105959814 remove /class/vc/vcsa6 DEVPATH=/class/vc/vcsa6 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=271 --------271-------- --------272-------- 1105959814 add /class/vc/vcs6 DEVPATH=/class/vc/vcs6 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=272 --------272-------- --------273-------- 1105959814 add /class/vc/vcsa6 DEVPATH=/class/vc/vcsa6 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=273 --------273-------- --------274-------- 1105959814 add /class/vc/vcs3 DEVPATH=/class/vc/vcs3 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=274 --------274-------- --------275-------- 1105959814 add /class/vc/vcsa3 DEVPATH=/class/vc/vcsa3 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=275 --------275-------- --------276-------- 1105959814 remove /class/vc/vcs3 DEVPATH=/class/vc/vcs3 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=276 --------276-------- --------279-------- 1105959814 add /class/vc/vcsa3 DEVPATH=/class/vc/vcsa3 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=279 --------279-------- --------268-------- 1105959814 add /class/vc/vcs6 DEVPATH=/class/vc/vcs6 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=268 --------268-------- --------269-------- 1105959814 add /class/vc/vcsa6 DEVPATH=/class/vc/vcsa6 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=269 --------269-------- --------278-------- 1105959814 add /class/vc/vcs3 DEVPATH=/class/vc/vcs3 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=278 --------278-------- --------277-------- 1105959814 remove /class/vc/vcsa3 DEVPATH=/class/vc/vcsa3 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=277 --------277-------- --------267-------- 1105959814 add /class/vc/vcsa5 DEVPATH=/class/vc/vcsa5 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add _=/bin/env PWD=/ HOME=/ SHLVL=2 SEQNUM=267 --------267-------- --------------000806020402080709020902-- ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ 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