All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Schlatterbeck <rsc@runtux.com>
To: linux-mtd@lists.infradead.org
Subject: init_constants_early: too small LEBs?
Date: Sat, 19 Nov 2016 22:25:08 +0100	[thread overview]
Message-ID: <20161119212508.GA5237@runtux.com> (raw)

I'm trying to get an ubifs on a 2MB NOR flash.

I'm following the usual steps for generating everything from inside the 
embedded system:
ubiformat /dev/mtd7
ubiattach /dev/ubi_ctrl -m 7 -d 7
ubimkvol /dev/ubi7 -N testvol -s 1968KiB

But when I try to mount I'm getting:
# mount -t ubifs /dev/ubi7_0 /mnt/
mount: mounting /dev/ubi7_0 on /mnt/ failed: Invalid argument

and the kernel log tells me:
Nov 19 21:07:33 board kernel: UBIFS error (pid 1504):
init_constants_early: too small LEBs (3968 bytes), min. is 15360 bytes

Any advice on what to try next?

Should I use a jffs2 on top of UBI using gluebi or run jffs2 on the
naked md device instead? I'd really like to be bad block tolerant but
don't know if this makes sense with NOR-Flash (of this size) at all.

Thanks
Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   http://www.runtux.com
Reichergasse 131, A-3411 Weidling       email: office@runtux.com

             reply	other threads:[~2016-11-19 21:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-19 21:25 Ralf Schlatterbeck [this message]
2016-11-20  9:51 ` init_constants_early: too small LEBs? Boris Brezillon
2016-11-20 12:00   ` Ralf Schlatterbeck

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=20161119212508.GA5237@runtux.com \
    --to=rsc@runtux.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.