[Buildroot] [Bug 1771] Fakeroot and the target/generic/device_table.txt create bad device nodes.

bugzilla at busybox.net bugzilla at busybox.net
Tue May 25 22:58:40 UTC 2010


--- Comment #2 from Andy Kennedy <akennedy at drs-tem.com>  ---
(In reply to comment #1)

I attempted to e-mail this, but it looks like it didn't go through. . . so if
this is a dup, please forgive.

> --- Comment #1 from Thomas Petazzoni 
> <thomas.petazzoni at free-electrons.com>  ---
> I just made a test with the default 
> target/generic/device_table.txt and the
> result for hd* is good :

Sorry, I thought I had articulated correctly.  To restate:  this problem ONLY
occurs with the building of a jffs2 filesystem.  When I 'make tarroot' I get a
device tree with correctly populated device nodes.  Only when I 'make
jffs2root' do I get funky minor numbers.

> In the device list you pasted, the minor numbers are 
> incorrect. hda should be
> 3:0, hda1 should be 3:1, hda2 3:2, hdb should be 3:64, hdb1 
> 3:65, hdb2 3:66.
> hdc is 22:0, hdc1 is 22:1, etc. See Documentation/devices.txt 
> in the Linux
> kernel source tree for the official reference.

Yes, this was the reason for the bug report.  These devices are being made

More information, however, is that if I make the nodes myself in the <path to
target>/dev directory, modify buildroot/target/generic/device_table.txt to
EXCLUDE hd{a-c} and sd{a-c} then I get the devices correctly in the filesystem.
 Which makes me wonder if fakeroot is the red herring and the real culprit is
actually makedevs.

Hopefully I have cleared something up for you.


Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the buildroot mailing list