[OE-core] device node creation

anton at angri.ru anton at angri.ru
Mon Nov 12 17:42:14 UTC 2012


Hello,

I'm trying to create a device node in the generated rootfs image:
/dev/net/tun. It is required for openvpn to work. Adding it in the living
system is as trivial as "mkdir /dev/net; mknod /dev/net/tun c 10 200", but
I want it to be there with no manual intrusion required.

I tried several ways:

* IMAGE_DEVICE_TABLES
* IMAGE_DEVICE_TABLE
* adding /dev/net/tun file to the package
* adding a node file to the IMAGE_ROOTFS in rootfs postprocess script
* using postinst script that creates the node

None of it worked.

What is the way /dev is populated? Where do all those 256 (why so many
btw?) pty* nodes come from? How do I create the new node?

Thanks!

--
Anton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20121112/c0e95169/attachment-0002.html>


More information about the Openembedded-core mailing list