* /dev/fw major not constant (embedded mdev devtmpfs ieee1394) @ 2010-01-21 20:56 Paul Chavent 2010-01-21 20:57 ` Greg KH 2010-01-21 20:59 ` Grant Likely 0 siblings, 2 replies; 5+ messages in thread From: Paul Chavent @ 2010-01-21 20:56 UTC (permalink / raw) To: linux-embedded; +Cc: linux-hotplug, linux1394-devel, busybox, libdc1394-devel Hi. I'am working on an embedded gnu/linux system that allow to capture an ieee1394 stream. The system is compound of a kernel, a basic initrd (libc,libgcc,busybox,libdc1394,...) and my app. I use the new firewire stack. As my system is very minimalist, i tought to create the nodes in /dev at the moment of building my initrd. But when i needed to modify my kernel configuration, it has changed the major number of /dev/fw*. It's not really important for the definitive system (it will be freeze), but i wonder how to solve this issue for my future works ? I don't need hotplug, i just need to fill /dev at startup (coldplug). The target is an embedded device, so it should be easy to build/configure/install, and lightweight. For those reasons i don't want to use udev. I tried mdev (i run mdev -s in my startup script) from busybox. The problem is that mdev only look in /sys/class for filling /dev (i have notified their mailing list http://lists.busybox.net/pipermail/busybox/2010-January/071384.html). The linux ieee1394 wiki people give me some idea (http://marc.info/?t=126390679500003&r=1&w=2) : - maintain a local patch for making the major constant - use devtmpfs I prefer to try devtmpfs, but i would like to have your opinion on how would you do for me ? Thank for your reading. Paul. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: /dev/fw major not constant (embedded mdev devtmpfs ieee1394) 2010-01-21 20:56 /dev/fw major not constant (embedded mdev devtmpfs ieee1394) Paul Chavent @ 2010-01-21 20:57 ` Greg KH 2010-01-21 21:21 ` Mike Frysinger 2010-01-21 20:59 ` Grant Likely 1 sibling, 1 reply; 5+ messages in thread From: Greg KH @ 2010-01-21 20:57 UTC (permalink / raw) To: Paul Chavent Cc: linux-embedded, linux-hotplug, linux1394-devel, busybox, libdc1394-devel On Thu, Jan 21, 2010 at 09:56:10PM +0100, Paul Chavent wrote: > Hi. > > I'am working on an embedded gnu/linux system that allow to capture an ieee1394 stream. > > The system is compound of a kernel, a basic initrd (libc,libgcc,busybox,libdc1394,...) and my app. > > I use the new firewire stack. > > As my system is very minimalist, i tought to create the nodes in /dev at the moment of building my initrd. > > But when i needed to modify my kernel configuration, it has changed the major number of /dev/fw*. > > It's not really important for the definitive system (it will be > freeze), but i wonder how to solve this issue for my future works ? > > I don't need hotplug, i just need to fill /dev at startup (coldplug). > The target is an embedded device, so it should be easy to > build/configure/install, and lightweight. > > For those reasons i don't want to use udev. Why, is udev somehow not "lightweight"? > I tried mdev (i run mdev -s in my startup script) from busybox. The > problem is that mdev only look in /sys/class for filling /dev (i have > notified their mailing list > http://lists.busybox.net/pipermail/busybox/2010-January/071384.html). > > The linux ieee1394 wiki people give me some idea (http://marc.info/?t=126390679500003&r=1&w=2) : > - maintain a local patch for making the major constant > - use devtmpfs > > I prefer to try devtmpfs, but i would like to have your opinion on how > would you do for me ? I would recommend using devtmpfs, this is exactly why it was created, and is how lots of others are using it. Why not try it out? thanks, greg k-h ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: /dev/fw major not constant (embedded mdev devtmpfs ieee1394) 2010-01-21 20:57 ` Greg KH @ 2010-01-21 21:21 ` Mike Frysinger 2010-01-21 21:26 ` Greg KH 0 siblings, 1 reply; 5+ messages in thread From: Mike Frysinger @ 2010-01-21 21:21 UTC (permalink / raw) To: Greg KH Cc: linux-embedded, busybox, libdc1394-devel, linux-hotplug, Paul Chavent, linux1394-devel On Thu, Jan 21, 2010 at 15:57, Greg KH wrote: > On Thu, Jan 21, 2010 at 09:56:10PM +0100, Paul Chavent wrote: >> I'am working on an embedded gnu/linux system that allow to capture an ieee1394 stream. >> >> The system is compound of a kernel, a basic initrd (libc,libgcc,busybox,libdc1394,...) and my app. >> >> I use the new firewire stack. >> >> As my system is very minimalist, i tought to create the nodes in /dev at the moment of building my initrd. >> >> But when i needed to modify my kernel configuration, it has changed the major number of /dev/fw*. >> >> It's not really important for the definitive system (it will be >> freeze), but i wonder how to solve this issue for my future works ? >> >> I don't need hotplug, i just need to fill /dev at startup (coldplug). >> The target is an embedded device, so it should be easy to >> build/configure/install, and lightweight. >> >> For those reasons i don't want to use udev. > > Why, is udev somehow not "lightweight"? in comparison, it is absolutely not -mike ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: /dev/fw major not constant (embedded mdev devtmpfs ieee1394) 2010-01-21 21:21 ` Mike Frysinger @ 2010-01-21 21:26 ` Greg KH 0 siblings, 0 replies; 5+ messages in thread From: Greg KH @ 2010-01-21 21:26 UTC (permalink / raw) To: Mike Frysinger Cc: Paul Chavent, linux-embedded, linux-hotplug, linux1394-devel, busybox, libdc1394-devel On Thu, Jan 21, 2010 at 04:21:26PM -0500, Mike Frysinger wrote: > On Thu, Jan 21, 2010 at 15:57, Greg KH wrote: > > On Thu, Jan 21, 2010 at 09:56:10PM +0100, Paul Chavent wrote: > >> I'am working on an embedded gnu/linux system that allow to capture an ieee1394 stream. > >> > >> The system is compound of a kernel, a basic initrd (libc,libgcc,busybox,libdc1394,...) and my app. > >> > >> I use the new firewire stack. > >> > >> As my system is very minimalist, i tought to create the nodes in /dev at the moment of building my initrd. > >> > >> But when i needed to modify my kernel configuration, it has changed the major number of /dev/fw*. > >> > >> It's not really important for the definitive system (it will be > >> freeze), but i wonder how to solve this issue for my future works ? > >> > >> I don't need hotplug, i just need to fill /dev at startup (coldplug). > >> The target is an embedded device, so it should be easy to > >> build/configure/install, and lightweight. > >> > >> For those reasons i don't want to use udev. > > > > Why, is udev somehow not "lightweight"? > > in comparison, it is absolutely not Heh, in comparison to devtmpfs, yes, good point :) thanks, greg k-h ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: /dev/fw major not constant (embedded mdev devtmpfs ieee1394) 2010-01-21 20:56 /dev/fw major not constant (embedded mdev devtmpfs ieee1394) Paul Chavent 2010-01-21 20:57 ` Greg KH @ 2010-01-21 20:59 ` Grant Likely 1 sibling, 0 replies; 5+ messages in thread From: Grant Likely @ 2010-01-21 20:59 UTC (permalink / raw) To: Paul Chavent Cc: linux-embedded, linux-hotplug, linux1394-devel, busybox, libdc1394-devel On Thu, Jan 21, 2010 at 1:56 PM, Paul Chavent <paul.chavent@fnac.net> wrote: > Hi. > > I'am working on an embedded gnu/linux system that allow to capture an > ieee1394 stream. [...] > But when i needed to modify my kernel configuration, it has changed the > major number of /dev/fw*. [...] > The linux ieee1394 wiki people give me some idea > (http://marc.info/?t=126390679500003&r=1&w=2) : > - maintain a local patch for making the major constant > - use devtmpfs > > I prefer to try devtmpfs, but i would like to have your opinion on how would > you do for me ? devtmpfs is probably your best bet as that is what it is designed for. You can also run a trivial script at boot to read /proc/devices and create the device nodes as described in chapter 3, page 47 of LDD3: http://lwn.net/images/pdf/LDD3/ch03.pdf g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-01-21 21:26 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-01-21 20:56 /dev/fw major not constant (embedded mdev devtmpfs ieee1394) Paul Chavent 2010-01-21 20:57 ` Greg KH 2010-01-21 21:21 ` Mike Frysinger 2010-01-21 21:26 ` Greg KH 2010-01-21 20:59 ` Grant Likely
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).