[PATCH] mdev doesn't correctly determine whether device is block/char (2.6.25 kernel)
Lombard, David N
dnlombar at ichips.intel.com
Wed May 14 09:05:57 PDT 2008
On Wed, May 14, 2008 at 04:39:11PM +1000, virdiq virdiq wrote:
> I'm having problems with busybox-1.10.2 and the 2.6.25 kernel (with the
> deprecated sysfs structure turned off) where mdev always creates character
> device nodes (when some of them should be block device nodes). I've tried
> the trunk version of busybox as well as busybox 1.10.1 and busybox 1.10.2
> with all current patches... all with no solution to the problem.
FWIW, I'm running 2.6.25 and 1.8.2 and don't have any such problem.
~ # ls -l /dev
crw------- 1 root 0 5, 1 Aug 30 09:51 console
crw-rw---- 1 root 0 10, 63 Aug 30 09:46 cpu_dma_latency
crw-rw---- 1 root 0 1, 7 Aug 30 09:46 full
crw-rw---- 1 root 0 1, 2 Aug 30 09:46 kmem
crw-rw---- 1 root 0 1, 11 Aug 30 09:46 kmsg
crw-rw---- 1 root 0 1, 1 Aug 30 09:46 mem
crw-rw---- 1 root 0 10, 62 Aug 30 09:46 network_latency
crw-rw---- 1 root 0 10, 61 Aug 30 09:46 network_throughput
crw------- 1 root 0 1, 3 Aug 30 09:46 null
crw-rw---- 1 root 0 10, 144 Aug 30 09:46 nvram
crw-rw---- 1 root 0 1, 4 Aug 30 09:46 port
crw-rw---- 1 root 0 5, 2 Aug 30 09:46 ptmx
drwxr-xr-x 2 root 0 0 Aug 30 09:46 pts
crw-rw---- 1 root 0 1, 8 Aug 30 09:46 random
crw-rw---- 1 root 0 10, 135 Aug 30 09:46 rtc
brw-rw---- 1 root 0 8, 0 Aug 30 09:46 sda
brw-rw---- 1 root 0 8, 1 Aug 30 09:46 sda1
brw-rw---- 1 root 0 8, 2 Aug 30 09:46 sda2
crw-rw---- 1 root 0 5, 0 Aug 30 09:46 tty
crw-rw---- 1 root 0 4, 64 Aug 30 09:46 ttyS0
crw-rw---- 1 root 0 4, 65 Aug 30 09:46 ttyS1
crw-rw---- 1 root 0 1, 9 Aug 30 09:46 urandom
crw-rw---- 1 root 0 1, 5 Aug 30 09:46 zero
~ #
Only /dev/null and /dev/pts/ were on the initrd (created via the
kernel's scripts/gen_initramfs_list.sh and usr/gen_init_cpio).
The usual mdev start was used:
echo /sbin/mdev > /proc/sys/kernel/hotplug
/sbin/mdev -s
--
David N. Lombard, Intel, Irvine, CA
I do not speak for Intel Corporation; all comments are strictly my own.
More information about the busybox
mailing list