[oe] Creating static device nodes with udev

Mats Kärrman Mats.Karrman at tritech.se
Tue Aug 30 08:57:41 UTC 2011


Hi,

I'm using OE-classic and udev 151 on a PPC target.

I have some devices not supporting sysfs, eg ppp, so I need to create static device nodes for these.
Previously I have used scripts linked via rcS.d that runs mknod after udev has been loaded but this feels sort of sub-optimal.

I found the "udev-static-devices" recipe but I can't make it work.
What I've done is:
- I manually created a directory 'devices' with the device nodes I need using mknod.
- I tar'ed this into 'udev_static_devices_tarball'.
- I ran bitbake to put them into a package and installed this package on my target using opkg.
- I verified that my device nodes now exist in /lib/udev/devices
- I rebooted the target.
... Still, my device nodes does not exist in /dev.

Any clue on what I have forgotten? Must the "static" feature be enabled in some way?

Do anyone have a better approach to creating static device nodes? E.g. using makedevs or...

Thanks a bunch for your support!
// Mats




More information about the Openembedded-devel mailing list