error!: "/dev/ubi0" is not a character device ?!?

twebb taliaferro62 at gmail.com
Thu Aug 5 09:23:46 EDT 2010


>
> cat /proc/devices give me back, that  (252 ubi8) is a character device.
> But looking above, in /dev it is listed as block device !?!
>
> For me creating entries are not transparent, this happend with
> ubiattach. No idea how to force ubiattach to write ubi8 in the
> devicelist as character device.
> Best regards
> Arno
>

I see similar oddities on my 2.6.29 kernel with UBI.  ls shows ubi
devices as blocks, but /proc/devices shows then as char devices.

[/]#
[/]# ls -l /dev/ubi*
brw-rw----    1 root     root     250,   0 Aug  5 12:53 /dev/ubi0
brw-rw----    1 root     root     250,   1 Aug  5 12:53 /dev/ubi0_0
brw-rw----    1 root     root     250,   2 Aug  5 12:53 /dev/ubi0_1
brw-rw----    1 root     root     250,   3 Aug  5 12:53 /dev/ubi0_2
brw-rw----    1 root     root     250,   4 Aug  5 12:53 /dev/ubi0_3
crw-rw----    1 root     root      10,  62 Aug  5 12:53 /dev/ubi_ctrl
[/]#
[/]# cat /proc/devices
Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 14 sound
 29 fb
 81 video4linux
 90 mtd
108 ppp
116 alsa
128 ptm
136 pts
180 usb
188 ttyUSB
189 usb_device
216 rfcomm
250 ubi0
251 usb_endpoint
252 usbmon
253 ttyHS
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  8 sd
 31 mtdblock
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
179 mmc
[/]#



More information about the linux-mtd mailing list