* device node creation
[not found] <CAKmrg8OVpDG58t_jARYGvjBSenbdL7S0C077b7+ivHmpfveeDA@mail.gmail.com>
@ 2012-11-12 17:42 ` anton
2012-11-12 21:08 ` Gary Thomas
0 siblings, 1 reply; 2+ messages in thread
From: anton @ 2012-11-12 17:42 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 698 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 772 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: device node creation
2012-11-12 17:42 ` device node creation anton
@ 2012-11-12 21:08 ` Gary Thomas
0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2012-11-12 21:08 UTC (permalink / raw)
To: openembedded-core
On 2012-11-12 10:42, anton@angri.ru wrote:
> 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?
Your kernel needs to be built with CONFIG_TUN (not common, you'll
probably need to rebuild it with this option). Once this option
is in place, udev will automatically create that device for you.
Note: if you add this as an module (CONFIG_TUN=m) the device will
be created when you install the module.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-12 21:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAKmrg8OVpDG58t_jARYGvjBSenbdL7S0C077b7+ivHmpfveeDA@mail.gmail.com>
2012-11-12 17:42 ` device node creation anton
2012-11-12 21:08 ` Gary Thomas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox