All of lore.kernel.org
 help / color / mirror / Atom feed
* why ubimkvol can't recognize /dev/ubi0?
@ 2008-01-06 19:14 ` 时正
  2008-01-07  5:51     ` shizheng
  2008-01-07  7:49   ` Adrian Hunter
  0 siblings, 2 replies; 5+ messages in thread
From: 时正 @ 2008-01-06 19:14 UTC (permalink / raw)
  To: linux-mtd

Hi all,
I wanna have a try of ubifs on nandsim, and do as what the ubifs wiki
tells me
(http://osl.sed.hu/wiki/ubifs/index.php/Download_the_source).

1. compile, install and boot the new kernel(2.6.23)
the configuration option for ubi and nandsim is default turned on as module.


2. make the mtd-utils to produce ubimkvol

3. create a ubi when I got the error
# modprobe nandsim
# modprobe ubi mtd=0
# ls /dev/ubi0 -l
crw-rw---- 1 root root 253, 0 2007-12-25 01:46 /dev/ubi0
# ls /sys/class/ubi -l
drwxr-xr-x 3 root root 0 2007-12-25 01:46 ubi0
-r--r--r-- 1 root root 4096 2007-12-25 01:49 version
# ubimkvol /dev/ubi0 -n 0 -N test -s 20MiB
libubi error: readdir failed on "/sys/class/ubi"
readdir: No such file or directory
ubimkvol error: "/dev/ubi0" is not an UBI device node

it's so strange about the readdir failure, because there is the ubi0
entry in sysfs.

did I miss any step, such as kernel configuration or mtd-tools installation?

Thanks a lot!

best wishes, shizheng

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

end of thread, other threads:[~2008-01-15  8:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-06 19:14 why ubimkvol can't recognize /dev/ubi0? 时正
2008-01-06 19:14 ` 时正
2008-01-07  5:51   ` shizheng
2008-01-07  5:51     ` shizheng
2008-01-07  5:59       ` shizheng
2008-01-07  5:59         ` shizheng
2008-01-07  7:49   ` Adrian Hunter
2008-01-15  8:08     ` Artem Bityutskiy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.