linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Zwiegers <jan@eagle.co.za>
To: linux-hotplug@vger.kernel.org
Subject: Re: PCI hotplug/udev problem
Date: Mon, 17 Jan 2005 11:38:35 +0000	[thread overview]
Message-ID: <41EBA3BB.4010603@eagle.co.za> (raw)
In-Reply-To: <1105692480.4134.1.camel@allblack.org>


[-- Attachment #1.1: Type: text/plain, Size: 1239 bytes --]

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
>
>  
>

[-- Attachment #1.2: Type: text/html, Size: 1686 bytes --]

[-- Attachment #2: tree.txt --]
[-- Type: text/plain, Size: 347 bytes --]

/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

[-- Attachment #3: .hotplug_d.log.old --]
[-- Type: text/plain, Size: 832 bytes --]

--------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--------


[-- Attachment #4: edredaq.hotplug.log.old --]
[-- Type: text/plain, Size: 1612 bytes --]

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)

[-- Attachment #5: .hotplug_d.log --]
[-- Type: text/plain, Size: 7871 bytes --]

--------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--------


  parent reply	other threads:[~2005-01-17 11:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-14  8:48 PCI hotplug/udev problem Jan Zwiegers
2005-01-14  9:00 ` Kay Sievers
2005-01-14  9:17 ` Kay Sievers
2005-01-17 10:40 ` Kay Sievers
2005-01-17 11:38 ` Jan Zwiegers [this message]
2005-01-18 17:12 ` Kay Sievers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41EBA3BB.4010603@eagle.co.za \
    --to=jan@eagle.co.za \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).