Discussion:
Cross building udev cannot creat device node
李建文
2014-06-03 03:05:08 UTC
Permalink
I cross build Udev and run on arm and found cannot creat device node.

Linux version 3.0.35 (gcc version 4.6.2 20110630 (prerelease)
(Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #161
SMP PREEMPT Fri May 30 18:21:18 CST 2014

udev 182

/sbin # [ 7350.371305] mmc1: new high speed SDHC card at address 1234
[7350.154204] [7540] builtin_kmod[ 7350.380433] mmcblk1: mmc1:1234
SA04G 3.63 GiB
_validate: validate module index
[7350.157103] [7540] event_queu[ 7350.389884] mmcblk1: p1
e_insert: seq 733 queued, 'add' 'mmc'
[7350.161978] [7550] worker_new: seq 733 running
[7350.162079] [7550] udev_device_new_from_syspath: device 0x450a8 has
devpath '/devices/platform/sdhci-esdhc-imx.0/mmc_host/mmc1/mmc1:1234'
[7350.162486] [7540] udev_monitor_send_device: passed 229 bytes to
netlink monitor 0x43360
[7350.162632] [7540] event_queue_insert: seq 734 queued, 'add' 'bdi'
[7350.163103] [7554] worker_new: seq 734 running
[7350.163277] [7554] udev_device_new_from_syspath: device 0x43360 has
devpath '/devices/virtual/bdi/179:24'
[7350.163669] [7550] udev_device_read_db: no db file to read
/run/udev/data/+mmc:mmc1:1234: No such file or directory
[7350.163734] [7550] udev_rules_apply_to_event: RUN
'/etc/dev.d/default/gs_hotplug.dev %k %n %M %m'
/etc/udev/rules.d/50-udev.rules:48
[7350.164178] [7540] udev_monitor_send_device: passed 151 bytes to
netlink monitor 0x43360
[7350.164645] [7554] udev_device_read_db: no db file to read
/run/udev/data/+bdi:179:24: No such file or directory
[7350.164710] [7554] udev_rules_apply_to_event: RUN
'/etc/dev.d/default/gs_hotplug.dev %k %n %M %m'
/etc/udev/rules.d/50-udev.rules:48
[7350.164987] [8725] udev_event_spawn: starting
'/etc/dev.d/default/gs_hotplug.dev mmc1:1234 1234 0 0'
[7350.166045] [8726] udev_event_spawn: starting
'/etc/dev.d/default/gs_hotplug.dev 179:24 24 0 0'
[7350.172073] [7540] event_queue_insert: seq 735 queued, 'add' 'block'
[7350.173630] [7540] event_queue_insert: seq 736 queued, 'add' 'block'
[7350.175565] [7554] spawn_read: '/etc/dev.d/default/gs_hotplug.dev
179:24 24 0 0'(out) '179:24 24 0 0'
[7350.176439] [7550] spawn_read: '/etc/dev.d/default/gs_hotplug.dev
mmc1:1234 1234 0 0'(out) 'mmc1:1234 1234 0 0'
[7350.223230] [7554] spawn_read: '/etc/dev.d/default/gs_hotplug.dev
179:24 24 0 0'(err) 'sh: hid_mouse: unknown operand'
[7350.223278] [7554] spawn_read: '/etc/dev.d/default/gs_hotplug.dev
179:24 24 0 0'(err) 'sh: hid_keyboard: unknown operand'
[7350.223361] [7554] spawn_wait: '/etc/dev.d/default/gs_hotplug.dev
179:24 24 0 0' [8726] exit with return code 0
[7350.223572] [7554] udev_monitor_send_device: passed -1 bytes to
netlink monitor 0x45220
[7350.223620] [7554] worker_new: seq 734 processed with 0
[7350.223750] [7540] event_queue_delete: seq 734 done with 0
[7350.225500] [7550] spawn_read: '/etc/dev.d/default/gs_hotplug.dev
mmc1:1234 1234 0 0'(err) 'sh: hid_mouse: unknown operand'
[7350.225532] [7550] spawn_read: '/etc/dev.d/default/gs_hotplug.dev
mmc1:1234 1234 0 0'(err) 'sh: hid_keyboard: unknown operand'
[7350.225606] [7550] spawn_wait: '/etc/dev.d/default/gs_hotplug.dev
mmc1:1234 1234 0 0' [8725] exit with return code 0
[7350.225852] [7550] udev_monitor_send_device: passed -1 bytes to
netlink monitor 0x44ca8
[7350.225890] [7550] worker_new: seq 733 processed with 0
[7350.225940] [7540] event_queue_delete: seq 733 done with 0
[7350.226030] [7540] udev_monitor_send_device: passed 252 bytes to
netlink monitor 0x43360
[7350.226137] [7550] worker_new: seq 735 running
[7350.226263] [7550] udev_device_new_from_syspath: device 0x450a8 has
devpath '/devices/platform/sdhci-esdhc-imx.0/mmc_host/mmc1/mmc1:1234/block/mmcblk1'
[7350.226888] [7550] udev_device_read_db: no db file to read
/run/udev/data/b179:24: No such file or directory
[7350.226948] [7550] udev_rules_apply_to_event: RUN
'/etc/dev.d/default/gs_hotplug.dev %k %n %M %m'
/etc/udev/rules.d/50-udev.rules:48
[7350.226988] [7550] udev_node_add: handling device node
'/dev/mmcblk1', devnum=b179:24, mode=0600, uid=0, gid=0
[7350.227038] [7550] node_fixup: can not stat() node '/dev/mmcblk1'
(No such file or directory)
[7350.229375] [7550] udev_device_update_db: created empty file
'/run/udev/data/b179:24' for
'/devices/platform/sdhci-esdhc-imx.0/mmc_host/mmc1/mmc1:1234/block/mmcblk1'
[7350.230143] [8761] udev_event_spawn: starting
'/etc/dev.d/default/gs_hotplug.dev mmcblk1 1 179 24'
[7350.234969] [7550] spawn_read: '/etc/dev.d/default/gs_hotplug.dev
mmcblk1 1 179 24'(out) 'mmcblk1 1 179 24'
[7350.276693] [7550] spawn_read: '/etc/dev.d/default/gs_hotplug.dev
mmcblk1 1 179 24'(err) '/dev/mmcblk1: error opening volume'
[7350.278910] [7550] spawn_read: '/etc/dev.d/default/gs_hotplug.dev
mmcblk1 1 179 24'(err) 'sh: vfat: unknown operand'
[7350.284648] [7550] spawn_wait: '/etc/dev.d/default/gs_hotplug.dev
mmcblk1 1 179 24' [8761] exit with return code 0
[7350.284733] [7550] udev_monitor_send_device: passed -1 bytes to
netlink monitor 0x44ca8
[7350.284776] [7550] worker_new: seq 735 processed with 0
[7350.284854] [7540] event_queue_delete: seq 735 done with 0
[7350.284945] [7540] udev_monitor_send_device: passed 269 bytes to
netlink monitor 0x43360
[7350.285044] [7550] worker_new: seq 736 running
[7350.285187] [7550] udev_device_new_from_syspath: device 0x43410 has
devpath '/devices/platform/sdhci-esdhc-imx.0/mmc_host/mmc1/mmc1:1234/block/mmcblk1/mmcblk1p1'
[7350.286144] [7550] udev_device_read_db: no db file to read
/run/udev/data/b179:25: No such file or directory
[7350.286207] [7550] udev_rules_apply_to_event: RUN
'/etc/dev.d/default/gs_hotplug.dev %k %n %M %m'
/etc/udev/rules.d/50-udev.rules:48
[7350.286246] [7550] udev_node_add: handling device node
'/dev/mmcblk1p1', devnum=b179:25, mode=0600, uid=0, gid=0
[7350.286295] [7550] node_fixup: can not stat() node '/dev/mmcblk1p1'
(No such file or directory)
[7350.288551] [7550] udev_device_update_db: created empty file
'/run/udev/data/b179:25' for
'/devices/platform/sdhci-esdhc-imx.0/mmc_host/mmc1/mmc1:1234/block/mmcblk1/mmcblk1p1'
[7350.620473] [8780] udev_event_spawn: starting
'/etc/dev.d/default/gs_hotplug.dev mmcblk1p1 1 179 25'
[7350.625424] [7550] spawn_read: '/etc/dev.d/default/gs_hotplug.dev
mmcblk1p1 1 179 25'(out) 'mmcblk1p1 1 179 25'
[7350.664754] [7550] spawn_read: '/etc/dev.d/default/gs_hotplug.dev
mmcblk1p1 1 179 25'(err) '/dev/mmcblk1p1: error opening volume'
[7350.666344] [7550] spawn_read: '/etc/dev.d/default/gs_hotplug.dev
mmcblk1p1 1 179 25'(err) 'sh: vfat: unknown operand'
[7350.671612] [7550] spawn_wait: '/etc/dev.d/default/gs_hotplug.dev
mmcblk1p1 1 179 25' [8780] exit with return code 0
[7350.671697] [7550] udev_monitor_send_device: passed -1 bytes to
netlink monitor 0x44ca8
[7350.671742] [7550] worker_new: seq 736 processed with 0
[7350.719399] [7540] event_queue_delete: seq 736 done with 0
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Greg KH
2014-06-03 03:55:28 UTC
Permalink
On Tue, Jun 03, 2014 at 11:05:08AM +0800, =E6=9D=8E=E5=BB=BA=E6=96=87 w=
Post by 李建文
I cross build Udev and run on arm and found cannot creat device node.
=20
Linux version 3.0.35 (gcc version 4.6.2 20110630 (prerelease)
(Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #161
SMP PREEMPT Fri May 30 18:21:18 CST 2014
=20
udev 182
Are you using DEVTMPFS in your kernel? udev no longer creates the
device nodes, the kernel does.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug=
" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
李建文
2014-06-03 04:18:34 UTC
Permalink
greg k-h
thanks for your reply, from which verison of udev no longger creates
the device nodes?
I awaly use a very old udev. now I want upgrade udev to 182, but
failed, should I enable
DEVTMPFS ?

and I had tried to build kernel with CONFIG_DEVTMPFS, and also cannot
find dynamic device node be created.
/ # zcat /proc/config.gz |grep CONFIG_DEVTMPFS
CONFIG_DEVTMPFS=3Dy
CONFIG_DEVTMPFS_MOUNT=3Dy
On Tue, Jun 03, 2014 at 11:05:08AM +0800, =E6=9D=8E=E5=BB=BA=E6=96=87=
I cross build Udev and run on arm and found cannot creat device node=
=2E
Linux version 3.0.35 (gcc version 4.6.2 20110630 (prerelease)
(Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #16=
1
SMP PREEMPT Fri May 30 18:21:18 CST 2014
udev 182
Are you using DEVTMPFS in your kernel? udev no longer creates the
device nodes, the kernel does.
thanks,
greg k-h
--=20
Javen / Jianwen Li / =E6=9D=8E=E5=BB=BA=E6=96=87
Tel=EF=BC=9A086-0571-86849591 EXT 3516
Mob:15067198505
Email:***@grandstream.com
Department: System Development=EF=BC=88HZ=EF=BC=89
Posts: Linux Drvier Engineer
Grandstream Networks, inc. (China)
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug=
" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Greg KH
2014-06-03 04:48:22 UTC
Permalink
A: No.
Q: Should I include quotations after my reply?


http://daringfireball.net/2007/07/on_top

On Tue, Jun 03, 2014 at 12:18:34PM +0800, =E6=9D=8E=E5=BB=BA=E6=96=87 w=
Post by Greg KH
greg k-h
thanks for your reply, from which verison of udev no longger creates
the device nodes?
I do not remember, read the release notes, or look at the git commit lo=
g
for the details on when this happened.
Post by Greg KH
I awaly use a very old udev. now I want upgrade udev to 182, but
failed, should I enable
DEVTMPFS ?
=20
Yes, you always should.
Post by Greg KH
and I had tried to build kernel with CONFIG_DEVTMPFS, and also cannot
find dynamic device node be created.
/ # zcat /proc/config.gz |grep CONFIG_DEVTMPFS
CONFIG_DEVTMPFS=3Dy
CONFIG_DEVTMPFS_MOUNT=3Dy
I don't know what is going on, sorry. 3.0 is very old and obsolete,
please move to a modern kernel version if you want help from the
community.

good luck,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug=
" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
李建文
2014-06-03 07:10:56 UTC
Permalink
Post by Greg KH
and I had tried to build kernel with CONFIG_DEVTMPFS, and also canno=
t
Post by Greg KH
find dynamic device node be created.
/ # zcat /proc/config.gz |grep CONFIG_DEVTMPFS
CONFIG_DEVTMPFS=3Dy
CONFIG_DEVTMPFS_MOUNT=3Dy
I don't know what is going on, sorry. 3.0 is very old and obsolete,
please move to a modern kernel version if you want help from the
community.
greg, thank you for your help. previously, DEVTMPFS not work for me
because I mount /dev as ramfs (mount -t ramfs udev /dev)
once I remove "mount -t ramfs udev /dev" in my bootscript=EF=BC=8C devt=
mpfs
can created device node correctly

Javen
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug=
" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Loading...