Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 1771] New: Fakeroot and the target/generic/device_table.txt create bad device nodes.
@ 2010-05-13 20:53 bugzilla at busybox.net
  2010-05-21 21:44 ` [Buildroot] [Bug 1771] " bugzilla at busybox.net
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2010-05-13 20:53 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=1771

           Summary: Fakeroot and the target/generic/device_table.txt
                    create bad device nodes.
           Product: buildroot
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: akennedy at drs-tem.com
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


BUILD=Slackware 12.0 (slightly modified)
TARGET=ARM
Filesystem=Jffs2.

brw-r----- 1 root root  3,  1 2010-04-27 09:55 hda
brw-r----- 1 root root  3,  1 2010-04-27 09:55 hda1
brw-r----- 1 root root  3,  2 2010-04-27 09:55 hda2
<SNIP>
brw-r----- 1 root root  3, 65 2010-04-27 09:55 hdb
brw-r----- 1 root root  3, 65 2010-04-27 09:55 hdb1
brw-r----- 1 root root  3, 66 2010-04-27 09:55 hdb2
<SNIP>
brw-r----- 1 root root 22,  0 2010-04-27 09:55 hdc
brw-r----- 1 root root 22,  0 2010-05-13 15:23 hdc0
brw-r----- 1 root root 22,  1 2010-04-27 09:55 hdc1
brw-r----- 1 root root 22,  2 2010-04-27 09:55 hdc2
<SNIP>

I attempted something "new" with the above.  For /dev/hdc* I made the following
change in target/generic/device_table.txt to see what whould happen:

/dev/hda        b       640     0       0       3       0       0       0      
-
/dev/hda        b       640     0       0       3       1       1       1      
15
/dev/hdb        b       640     0       0       3       64      0       0      
-
/dev/hdb        b       640     0       0       3       65      1       1      
15
#/dev/hdc       b       640     0       0       22      0       0       0      
-
#/dev/hdc       b       640     0       0       22      1       1       1      
15
/dev/hdc        b       640     0       0       22      0       0       1      
15

As you see from the above, the devices get made /dev/hdc (correctly), but then
/dev/hdc0 (what's that!?!) however, hda and hdb are completely wrong.

For me the fix is simple, I make the correction to the file as I did for hdc
for any others that I need like that, then I run a post script that deletes any
occurance of hd.0.

-- 
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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-05 15:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-13 20:53 [Buildroot] [Bug 1771] New: Fakeroot and the target/generic/device_table.txt create bad device nodes bugzilla at busybox.net
2010-05-21 21:44 ` [Buildroot] [Bug 1771] " bugzilla at busybox.net
2010-05-25 22:58 ` bugzilla at busybox.net
2010-06-05 15:19 ` bugzilla at busybox.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox