Skip to contentSkip to conversation

Ubifs

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

lore
Share & tools
lore

Жека

author
#0 lore raw

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

#1 lore raw

Hi,

Quoted 2 lines · Жека

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.

Quoted 6 lines

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

Signature · 2 lines
Best regards,
Artem Bityutskiy (Битюцкий Артём)
#2 lore raw
In reply to Жека
Quoted 8 lines · Жека

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.

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