From: Angelo Dureghello <angelo70@gmail.com>
To: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: UBI 1MiB size partition
Date: Mon, 24 Nov 2014 10:01:55 +0100 [thread overview]
Message-ID: <5472F403.50702@gmail.com> (raw)
Dear all,
i read UBI faq and surfed the net, but can't find still a clear answer
to this:
I have a 1MiB partition on a nand flash o would like to format as UBI.
I already have the rootfs atrtached as UBI0 / UBI0_0, so i am going
to attach this partition as UBI1.
But with the available ubi commands i am not able. Is this a limitiation
due to the small partition size ?
[root@barix ~]# flash_erase /dev/mtd5 0 8
Erasing 128 Kibyte @ e0000 -- 100 % complete
[root@barix ~]# ubiattach -m 5
UBI: attaching mtd5 to ubi1
UBI: scanning is finished
UBI: empty MTD device detected
UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB
handling, reserved 4, need 20
UBI: attached mtd5 (name "config", size 1 MiB) to ubi1
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 8, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 0, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 0/0, WL threshold: 4096, image sequence
number: 193419012
UBI: available PEBs: 0, total reserved PEBs: 8, PEBs reserved for bad
PEB handling: 4
UBI: background thread "ubi_bgt1d" started, PID 2686
UBI device number 1, total 8 LEBs (1015808 bytes, 992.0 KiB), available
0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
[root@barix ~]#
[root@barix ~]# ubimkvol /dev/ubi1 -N config -m
ubimkvol: error!: UBI device does not have free logical eraseblocks
As you see, i can't create a volume so i cannot mount.
From the tools help, seems i cannot set bad PEB handling count.
Every help is very appreciated.
Thanks
angelo
next reply other threads:[~2014-11-24 9:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-24 9:01 Angelo Dureghello [this message]
2014-11-24 10:08 ` UBI 1MiB size partition Richard Weinberger
2014-11-24 10:18 ` Angelo Dureghello
2014-11-24 10:21 ` Richard Weinberger
2014-11-28 9:39 ` Artem Bityutskiy
2014-11-28 9:49 ` Angelo Dureghello
2014-11-28 9:59 ` 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=5472F403.50702@gmail.com \
--to=angelo70@gmail.com \
--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.