[Buildroot] Add nodes, major, how values are defined?
Cameron Hutchison
lists at xdna.net
Fri Feb 19 23:28:06 UTC 2010
Tony Mozi <spooflinux at hotmail.fr> writes:
>The general presentation is :
># <name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>
>I do not understand how some points are defined (<major> <minor> <start> <inc> <count>).
>Is there a list? Sometimes there is '-', what does it mean?
Not all files created by makedevs needs all the fields. For instance,
directories and files do not use anything from <major> onwards. They are
only used by character and block device nodes. For those file types that
do not use a field, a '-' is used there.
Also, one line in the device_table.txt file can create many sequential
nodes. For example, /dev/mtd0, /dev/mtd1, /dev/mtd2... A line that
creates multiple sequential nodes use the fields <start> <inc> and
<count>. Nodes that are singular (such as /dev/null) do not use these
fields, and will have a '-' in these places. Some lines seem to use 0
instead of '-' - I guess the field is just ignored so it wont matter
what you put there.
This is all described in more detail at the top of
target/generic/device-table.txt. Is there something about that description
that is unclear?
More information about the buildroot
mailing list