Aw: Re: mdev woes

Jason Curl jcurlmail at arcor.de
Thu Jun 28 20:01:44 UTC 2007


Mike Frysinger wrote:
> On Thursday 28 June 2007, Jason Curl wrote:
>> Mike Frysinger wrote:
>>> On Thursday 28 June 2007, Jason Curl wrote:
>>>> As a nice feature, does it exist in the newest mdev.conf the ability to
>>>> specify the name of the device that should be created?
>>> all mdev functionality is explained in docs/mdev.txt
>>>
>>> if you want to change the name, write a little script to do so and have
>>> mdev.conf execute it
>> Do all the hotplug variables set by the kernel propogate to the programs
>> that mdev run?
> 
> of course ... that's how the environment works, children processes inherit 
> from the parent (mdev)
> 
>> mdev
>> already knows about the device, so a symlink option like udev has would
>> save flash space overall (less scripts, faster and as an option in the
>> menuconfig would mean only those who want it would use it).
> 
> there is a patch on the mailing list to add this ... i'm debating adding it as 
> the purpose of mdev is to provide the bare min required features; if you need 
> more, go use udev

I like the link especially for 'stderr' and what not, certainly much 
faster at boot.

But I'm starting to understand that everything else would be too much 
for the purposes of mdev as what I'd really like is to name a 
usb-to-serial device based on it's position in the usb-tree instead of 
what the kernel calls it. Then I can be guaranteed of a physical 
interface and not an arbitrary device number (ttyUSB*) when two of the 
same devices are connected to each USB port.

At least I don't think it's easily possible from a shell script given 
what I've seen at http://linux-hotplug.sourceforge.net

> 
> mdev.txt is not a document that tells you how to create a proper booting 
> system.  if you need that, go read LFS.

LFS mentioned booting the script and then starting init:
http://www.linuxfromscratch.org/hints/downloads/files/readonly_rootfs.txt

I'm an SE, trying my hardest to get a boot system correct. Thanks for 
help so far!

Regards,
Jason.



More information about the busybox mailing list