public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] device node problem
@ 2009-01-08 18:44 Jakub Ladman
  2009-01-10 12:16 ` Mike Frysinger
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Ladman @ 2009-01-08 18:44 UTC (permalink / raw
  To: gentoo-embedded

Hello friends,

please be patient with my stupid question.

I have switched my embedded gentoo system to udev and now i have trouble with 
one device driver.

This is lincan from http://sourceforge.net/projects/ocera

it is a character device with major 91 and minor 0 and 1 numbers, if i use 
mknod i can have functional device nodes, but after reboot udev discards it.

I am googling any manual to udev, that may help me, but i understand it not.
Can't find how to write rule to make node from major minor numbers.

Can anybody write me, what to do?

Thank You

Jakub Ladman



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-embedded] device node problem
  2009-01-08 18:44 [gentoo-embedded] device node problem Jakub Ladman
@ 2009-01-10 12:16 ` Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2009-01-10 12:16 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 1186 bytes --]

On Thursday 08 January 2009 13:44:32 Jakub Ladman wrote:
> please be patient with my stupid question.
>
> I have switched my embedded gentoo system to udev and now i have trouble
> with one device driver.
>
> This is lincan from http://sourceforge.net/projects/ocera
>
> it is a character device with major 91 and minor 0 and 1 numbers, if i use
> mknod i can have functional device nodes, but after reboot udev discards
> it.
>
> I am googling any manual to udev, that may help me, but i understand it
> not. Can't find how to write rule to make node from major minor numbers.

udev doesnt "discard" device nodes.  Gentoo by default runs a fs out of ram 
for /dev so anything created there is lost after a reboot.  if the device 
driver isnt triggering userspace to create a device node, then most likely it 
is broken and needs fixing.

you can add a simple `mknod` statement to your /etc/conf.d/local (or 
local.start).

you can use `udevadm monitor` to see the events the driver is sending to 
userspace when you load the module.  for more info though, you really should 
ask on the udev mailing lists as this question really isnt embedded related.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-10 12:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-08 18:44 [gentoo-embedded] device node problem Jakub Ladman
2009-01-10 12:16 ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox