All of lore.kernel.org
 help / color / mirror / Atom feed
From: "iw3gtf@tiscali.it" <iw3gtf@tiscali.it>
To: linux-mtd@lists.infradead.org
Subject: Cannot write to ubi volume
Date: Wed, 4 Jun 2008 17:49:42 +0200 (CEST)	[thread overview]
Message-ID: <25645542.1212594582569.JavaMail.root@ps23> (raw)

Hallo,

according to the ubi documentation it should be possible to 'write' in 
a, say, /dev/ubi1_0 (dynamic) volume device.
I tried the following without success:

root@giorgio [ ~ ]# ubimkvol /dev/ubi1 -N "rootfs" -s 32MiB 
Volume ID 0, size 265 LEBs (33648640 bytes, 32.1 MiB), LEB size 126976 
bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
root@giorgio [ ~ ]# ls -al /dev/ubi*
crw-rw---- 1 root root 254,  0 1970-01-01 01:00 /dev/ubi0
crw-rw---- 1 root root 254,  2 1970-01-01 01:00 /dev/ubi0_1
crw-rw---- 1 root root 253,  0 1970-01-01 01:00 /dev/ubi1
crw-rw---- 1 root root 253,  1 2008-06-04 17:03 /dev/ubi1_0
crw-rw---- 1 root root  10, 63 1970-01-01 01:00 /dev/ubi_ctrl
root@giorgio [ ~ ]# dd if=/usr/local/tftp_root/k of=/dev/ubi1_0 
count=1960020 bs=1
dd: writing `/dev/ubi1_0': Operation not permitted
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00690123 s, 0.0 kB/s
root@giorgio [ ~ ]# ubinfo /dev/ubi1_0
Volume ID:   0 (on ubi1)
Type:        dynamic
Alignment:   1
Size:        265 LEBs (33648640 bytes, 32.1 MiB)
State:       OK
Name:        rootfs
Character device major/minor: 253:1

Am I completely wrong trying to write with a 'dd' ?
How should I proceed to write something into the volume ?
Is it possible to write something 'directly' in an ubi volume without 
explicitly formatting an image file (with 'ubinize' for example) ?

Excuse me if my questions are a bit silly or naive and thank you for 
your explanations.

giorgio



_________________________________________________________________

Non perdere altro tempo...corri incontro all'amore!  http://incontri.tiscali.it/

             reply	other threads:[~2008-06-04 15:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-04 15:49 iw3gtf [this message]
2008-06-05  5:08 ` Cannot write to ubi volume Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=25645542.1212594582569.JavaMail.root@ps23 \
    --to=iw3gtf@tiscali.it \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.