[uClinux-dev] /dev directory entry build

John Jeffers jjef at inforamp.net
Fri Nov 16 11:48:40 EST 2001


At 10:56 PM 11/15/2001, you wrote:
>According to : http://home.at/uldp/uclinux_doc_5.html#SEC34
> >
> > Dave says using the Coldfire 20010622 distribution the MAJOR.MINOR numbers
> > are built into the /dev directory making /dev/xyz using the following:
> >
> > "This puts all the code in place, but the application will need to call the
> > open() function with a device name. This is done by adding an entry in
> > romfs_cvs.mk. In our case, we wanted to give this device the name /dev/xyz,
> > so we added an entry in the device list as '/dev/xyz,c,120,0'. We added
> > this just before the entry for ppp and were sure to add the backslash (\)
> > for line continuation."
> >
> > I cannot find this anywhere in the distro (I could be blind) and frankly
> > need to know the method  for generating a entry into /dev to complete a 
> driver.
>
>Frankly, this has changed :-)
>
>The devices are now created in the vendors Makefiles.
>So you need to look in ~/vendors/<VENDOR>/<BOARD>/Makefile
>
>A simple text grep of the tree on a commmon device node
>name would have quickly picked this up, eg:
>
>    find . -type f | xargs grep ttyp1
>
>Regards
>Greg

Greg

Sure enough there it was.  I'll send Dave an email and mention mknod as 
well for the Makefile challenged as well (its good to understand the basics).

Cheers John

This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/



More information about the uClinux-dev mailing list