missing udev events

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

missing udev events

975,303 Views
Akar
Contributor II

Hi,

I am new to udev.

I am using i.MX35 eval board with LTIB and kernel 2.6.31.

I have cross compiled udev-142 for i.MX35.

Then i copied "udevadm" to the board and executed as below

    ./udevadm monitor

After this i plugged and unplugged the USB pendrive to USB hostport of the board. I was expecting the udev events and kernel events to happen and display messages accordingly.

But i was able to see only the kernel events happening no udev events happened.

I think i am missing something for udev events to trigger may be udev rules or something.

Please let me know what am i missing.

Below are the messages what I get. I get only kernel events not udevevents

root@freescale ~$ ./udevadm_142 monitor

monitor will print the received events for:

UDEV - the event which udev sends out after rule processing

KERNEL - the kernel uevent

KERNEL[282033.257775] remove   /devices/platform/fsl-ehci.0/usb1/1-1/1-1:1.0 (usb)

KERNEL[282033.258096] remove   /class/usb_device/usbdev1.4 (usb_device)

KERNEL[282033.258313] remove   /devices/platform/fsl-ehci.0/usb1/1-1 (usb)

KERNEL[282035.367465] add      /devices/platform/fsl-ehci.0/usb1/1-1 (usb)

KERNEL[282035.367743] add      /devices/platform/fsl-ehci.0/usb1/1-1/1-1:1.0 (usb)

KERNEL[282035.367936] add      /class/usb_device/usbdev1.5 (usb_device)

Labels (1)
8 Replies

973,805 Views
daiane_angolini
NXP Employee
NXP Employee

I think you can close the "question" of this topic....

0 Kudos

973,805 Views
daiane_angolini
NXP Employee
NXP Employee

It looks like your udev is properly installed. It makes me wonder if the rule is OK as well.

What would be the expected udev behavior for USB plug/unplug?

Or, in other words, where is the USB rule?

0 Kudos

973,805 Views
Akar
Contributor II

I got the problem.

Actually udevd daemon running was of older version that is 117 and I was using version 142. so I compiled udevd of version 142 and started running on my board after that I am getting udev events.

973,805 Views
daiane_angolini
NXP Employee
NXP Employee

Great!

0 Kudos

973,805 Views
daiane_angolini
NXP Employee
NXP Employee

It looks like you have the right rule files.

Can you see any udev deamon? Use ps | grep udev and see if there is any udevd running

0 Kudos

973,805 Views
Akar
Contributor II

Hi Daiane,

I see udev deamon running

root@freescale ~$ ps

PID USER VSZ STAT COMMAND

1 root 2100 S init

2 root 0 SW< kthreadd

3 root 0 SW< ksoftirqd/0

4 root 0 SW< events/0

5 root 0 SW< khelper

8 root 0 SW< async/mgr

123 root 0 SW< kblockd/0

134 root 0 SW< mxc_spi.0

138 root 0 SW< ksuspend_usbd

143 root 0 SW< khubd

162 root 0 SW< kmmcd

180 root 0 SW< mc13892/0

257 root 0 SW pdflush

258 root 0 SW pdflush

259 root 0 SW< kswapd0

305 root 0 SW< aio/0

310 root 0 SW< nfsiod

939 root 0 SW< mtdblockd

1044 root 0 SW< rpciod/0

1058 root 0 SW mxc_ts

1069 root 1776 S < udevd --daemon

2056 root 0 SWN jffs2_gcd_mtd8

2069 root 2180 S /usr/sbin/inetd

2076 root 2188 S /usr/sbin/dropbear

2083 root 2104 S -sh

2264 root 2104 R ps

0 Kudos

973,805 Views
daiane_angolini
NXP Employee
NXP Employee

I´m not sure if I undestand your problem.

You can see kernel events, but udev does not take any action for it. Is that right?

Could you, please, share your rules file? It used to be 10-imx.rules or something like that.

0 Kudos

973,804 Views
Akar
Contributor II

Hi Daiane,

yes you are correct I can see kernel events but not udev. I have attached the 10-imx.rules.

I see some more rules files like

05-udev-early.rules

60-persistent-storage-tape.rules

60-persistent-storage.rules

40-alsa.rules

65-automount.rules

50-udev-default.rules

80-drivers.rules

60-persistent-input.rules

95-udev-late.rules

when are these rules files used I am new to this udev. can you please explain me about these rule files.

Thanks a lot for your quick response. I really don’t know anything about this.

0 Kudos