Skip to contentSkip to conversation

Ubifs

DISCUSSION Жека 2 participants 2 messages Dec 10, 2008 Memory technology devices (MTD)

lore
Share & tools
lore

Жека

author
#0 lore raw

Hi all,
I wanna have a try ubifs on nand, and do as written on
http://www.linux-mtd.infradead.org/faq/ubifs.html
1. compile, install and boot the kernel (2.6.26-rc3) the configuration option for ubi and nand is default on as module.
2. make the mtd-utils.
3. create a ubi when I got the error

# ubiattach /dev/ubi_ctrl -m 0
UBI device number 0, total 2048 LEBs (31457280 bytes, 30.0 MiB), available
2024
LEBs (31088640 bytes, 29.6 MiB), LEB size 15360 bytes (15.0 KiB)
# ubinfo
UBI version:                    1
Count of UBI devices:           1
UBI control device major/minor: 10:63
Present UBI devices:            ubi0
# ubimkvol /dev/ubi0 -N test -s 30MiB
ubimkvol: error!: "/dev/ubi0" is not an UBI device node

I did miss any step installation mtd-tools or create UBI device...

Thanks!!!

best regards, Evgeny

#1 lore raw
Quoted 8 lines · Жека

Hi all,
I wanna have a try ubifs on nand, and do as written on
http://www.linux-mtd.infradead.org/faq/ubifs.html
1. compile, install and boot the kernel (2.6.26-rc3) the configuration option for ubi and nand is default on as module.
2. make the mtd-utils.
3. create a ubi when I got the error

Quoted 11 lines
# ubiattach /dev/ubi_ctrl -m 0
UBI device number 0, total 2048 LEBs (31457280 bytes, 30.0 MiB), available
2024
LEBs (31088640 bytes, 29.6 MiB), LEB size 15360 bytes (15.0 KiB)
# ubinfo
UBI version:                    1
Count of UBI devices:           1
UBI control device major/minor: 10:63
Present UBI devices:            ubi0
# ubimkvol /dev/ubi0 -N test -s 30MiB
ubimkvol: error!: "/dev/ubi0" is not an UBI device node

Hi, please check this:

cat /sys/class/ubi/ubi0_0/dev
and
ls -l /dev/ubi0_0
Major/minor should match. E.g., on my system I have:

[dedekind@gollum /]$ cat /sys/class/ubi/ubi0_0/dev 252:1
[dedekind@gollum /]$ ls -l /dev/ubi0_0
crw-rw---- 1 root root 252, 1 2008-12-08 17:11 /dev/ubi0_0

Signature · 2 lines
Best regards,
Artem Bityutskiy (Битюцкий Артём)