* init_constants_early: too small LEBs?
@ 2016-11-19 21:25 Ralf Schlatterbeck
2016-11-20 9:51 ` Boris Brezillon
0 siblings, 1 reply; 3+ messages in thread
From: Ralf Schlatterbeck @ 2016-11-19 21:25 UTC (permalink / raw)
To: linux-mtd
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: init_constants_early: too small LEBs?
2016-11-19 21:25 init_constants_early: too small LEBs? Ralf Schlatterbeck
@ 2016-11-20 9:51 ` Boris Brezillon
2016-11-20 12:00 ` Ralf Schlatterbeck
0 siblings, 1 reply; 3+ messages in thread
From: Boris Brezillon @ 2016-11-20 9:51 UTC (permalink / raw)
To: Ralf Schlatterbeck; +Cc: linux-mtd
Hi Ralf,
On Sat, 19 Nov 2016 22:25:08 +0100
Ralf Schlatterbeck <rsc@runtux.com> wrote:
> 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?
Why not putting JFFS2 directly on your MTD device (no UBI in the
middle).
> 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.
You shouldn't need UBI, AFAIR, JFFS2 already deals with
wear-leveling/bad-block problems.
Regards,
Boris
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: init_constants_early: too small LEBs?
2016-11-20 9:51 ` Boris Brezillon
@ 2016-11-20 12:00 ` Ralf Schlatterbeck
0 siblings, 0 replies; 3+ messages in thread
From: Ralf Schlatterbeck @ 2016-11-20 12:00 UTC (permalink / raw)
To: linux-mtd
On Sun, Nov 20, 2016 at 10:51:41AM +0100, Boris Brezillon wrote:
> On Sat, 19 Nov 2016 22:25:08 +0100
> Ralf Schlatterbeck <rsc@runtux.com> wrote:
>
> > I'm trying to get an ubifs on a 2MB NOR flash.
>
> Why not putting JFFS2 directly on your MTD device (no UBI in the
> middle).
>
> > 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.
>
> You shouldn't need UBI, AFAIR, JFFS2 already deals with
> wear-leveling/bad-block problems.
I also need to reinitialize the complete filesystem if something is
inconsistent from a known-good source (in that case on a NAND flash).
The idea was to ubiformat everything (which preserves wear counters) and
re-create the filesystem on top of it (and in the first place I thought
I'd use ubifs). I don't think there is a way to re-create a jffs *and*
preserving wear counters?
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-11-20 12:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-19 21:25 init_constants_early: too small LEBs? Ralf Schlatterbeck
2016-11-20 9:51 ` Boris Brezillon
2016-11-20 12:00 ` Ralf Schlatterbeck
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.