[uClibc-cvs] [buildroot 0000290]: (buildroot) udev doesn't manage /dev when it's configured [patch included]

bugs at busybox.net bugs at busybox.net
Thu Jun 9 10:08:43 UTC 2005


A NOTE has been added to this issue.
======================================================================
<http://busybox.net/bugs/view.php?id=290> 
======================================================================
Reported By:                db
Assigned To:                uClibc
======================================================================
Project:                    buildroot
Issue ID:                   290
Category:                   Other
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     assigned
======================================================================
Date Submitted:             06-06-2005 00:09 PDT
Last Modified:              06-09-2005 03:08 PDT
======================================================================
Summary:                    (buildroot) udev doesn't manage /dev when it's
configured [patch included]
Description: 
As is well known by now, "devfs" is about to be removed from Linux 2.6
kernels.
Plus it turns out that embedded systems tend to use that more than most
other
systems, for various reasons ... including systems that buildroot makes.

Buildroot hasn't yet been able to rely on "udev" since it doesn't turn it
on.
It just sits there dead, doing nothing useful.

This patch provides a basic working integration of udev-058 (current)
with
buildroot, and has been tested with Linux 2.6.12-rc5 on two ARM9 cores.
The model is a basic one (no initramfs or initrd), and it just sets up a
ramfs /dev holding the system's device nodes.  The integration will
likely
be improved or tweaked in system-specific ways.  And it seems like udev
hasn't yet been tuned for work on embedded systems either...

======================================================================

----------------------------------------------------------------------
 andersen - 06-09-05 03:08 
----------------------------------------------------------------------
I note that udev.mk is trying to run mkdev.  This is bad, because
mkdev requires root, and buildroot should never be run as root,
lest a typo might result in nuking something in your build system.

It would be far better to fix the buildroot tar target to use fakeroot
rather than kluding in calls to mkdev and running as root.  A version
of busybox mkdevs that uses the device tables used for cramfs, jffs2,
and ext2 targets could make generating needed device nodes with fakeroot
a pretty simple task.  The busybox makedevs +
busybox/patches/makdevs_table.diff
would do the trick...

Anyway, for now I've nuked the mkdev calls.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
06-06-05 00:09 db             New Issue                                    
06-06-05 00:09 db             File Added: br2-udev.patch                    
06-09-05 03:08 andersen       Note Added: 0000239                          
======================================================================




More information about the uClibc-cvs mailing list