* Ubifs
@ 2008-12-10 13:50 Жека
0 siblings, 0 replies; 6+ messages in thread
From: Жека @ 2008-12-10 13:50 UTC (permalink / raw)
To: linux-mtd
thank you for a prompt, a problem is decided!!!
# mknod /dev/ubi0 c 253 0
# 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)
# ubimkvol /dev/ubi0 -N test -s 29MiB
nand_wp: C0 ST 80
nand_wp: C0 ST 80
nand_wp: C0 ST 80
nand_wp: C0 ST 80
nand_wp: C0 ST 80
nand_wp: C0 ST 80
nand_wp: C0 ST 80
nand_wp: C0 ST 80
Volume ID 0, size 1980 LEBs (30412800 bytes, 29.0 MiB), LEB size 15360 bytes
(15.0 KiB), dynamic, name "test", alignment 1
best regards, Evgeny
^ permalink raw reply [flat|nested] 6+ messages in thread
* Ubifs
@ 2008-12-10 11:44 Жека
2008-12-10 11:55 ` Ubifs Artem Bityutskiy
2008-12-10 12:51 ` Ubifs Artem Bityutskiy
0 siblings, 2 replies; 6+ messages in thread
From: Жека @ 2008-12-10 11:44 UTC (permalink / raw)
To: linux-mtd
Hi Artem!!!
On my system after create UBI device /dev/ubi0_0 it was not created...
I did check... here is a result
# cat /sys/class/ubi/ubi0/dev
253:0
# ls -l /dev/ubi0
brw-rw---- 1 root root 253, 0 Jan 1 00:11 /dev/ubi0
best regards, Evgeny
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Ubifs
2008-12-10 11:44 Ubifs Жека
@ 2008-12-10 11:55 ` Artem Bityutskiy
2008-12-10 12:51 ` Ubifs Artem Bityutskiy
1 sibling, 0 replies; 6+ messages in thread
From: Artem Bityutskiy @ 2008-12-10 11:55 UTC (permalink / raw)
To: Жека; +Cc: linux-mtd
Hi,
On Wed, 2008-12-10 at 13:44 +0200, Жека wrote:
> Hi Artem!!!
> On my system after create UBI device /dev/ubi0_0 it was not created...
Err, sorry, I confused you because in my reply I used UBI _volume_
nodes, not UBI device nodes.
/dev/ubiX are UBI device nodes.
/dev/ubiX_Y are UBI volume nodes - volume Y on device X.
So I think when you successfully create the volume, you'll get the
volume device.
But you got it right, judging from your response.
> I did check... here is a result
>
> # cat /sys/class/ubi/ubi0/dev
> 253:0
> # ls -l /dev/ubi0
> brw-rw---- 1 root root 253, 0 Jan 1 00:11 /dev/ubi0
It should be character device, not block device, i.e. use
mknod /dev/ubi0 c 253 0
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Ubifs
2008-12-10 11:44 Ubifs Жека
2008-12-10 11:55 ` Ubifs Artem Bityutskiy
@ 2008-12-10 12:51 ` Artem Bityutskiy
1 sibling, 0 replies; 6+ messages in thread
From: Artem Bityutskiy @ 2008-12-10 12:51 UTC (permalink / raw)
To: Жека; +Cc: linux-mtd
On Wed, 2008-12-10 at 13:44 +0200, Жека wrote:
> Hi Artem!!!
> On my system after create UBI device /dev/ubi0_0 it was not created...
> I did check... here is a result
>
> # cat /sys/class/ubi/ubi0/dev
> 253:0
> # ls -l /dev/ubi0
> brw-rw---- 1 root root 253, 0 Jan 1 00:11 /dev/ubi0
Just pushed a fix which makes ubi utilities to be more verbose about
errors.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Ubifs
@ 2008-12-10 9:02 Жека
2008-12-10 11:04 ` Ubifs Artem Bityutskiy
0 siblings, 1 reply; 6+ messages in thread
From: Жека @ 2008-12-10 9:02 UTC (permalink / raw)
To: linux-mtd
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Ubifs
2008-12-10 9:02 Ubifs Жека
@ 2008-12-10 11:04 ` Artem Bityutskiy
0 siblings, 0 replies; 6+ messages in thread
From: Artem Bityutskiy @ 2008-12-10 11:04 UTC (permalink / raw)
To: Жека; +Cc: linux-mtd
On Wed, 2008-12-10 at 11:02 +0200, Жека wrote:
> 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
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
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-12-10 13:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-10 13:50 Ubifs Жека
-- strict thread matches above, loose matches on Subject: below --
2008-12-10 11:44 Ubifs Жека
2008-12-10 11:55 ` Ubifs Artem Bityutskiy
2008-12-10 12:51 ` Ubifs Artem Bityutskiy
2008-12-10 9:02 Ubifs Жека
2008-12-10 11:04 ` Ubifs Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox