From: Artem Bityutskiy <dedekind1@gmail.com>
To: "Douglass, Woody" <Woodrow.Douglass@QinetiQ-NA.com>
Cc: linux-mtd@lists.infradead.org, "Matthew L. Creech" <mlcreech@gmail.com>
Subject: RE: ubi image only mounts once
Date: Mon, 06 Jun 2011 19:08:03 +0300 [thread overview]
Message-ID: <1307376483.3112.94.camel@localhost> (raw)
In-Reply-To: <29EDD457F13D0846B91A4845A68C3836E4657A@BOSQNAOMAIL1.qnao.net>
On Mon, 2011-06-06 at 11:53 -0400, Douglass, Woody wrote:
> Matt,
>
> Thanks for the quick reply. I have tried both ubiformat (passing -f with
> my image) and nandwrite, both seem to behave the same way. The
> filesystem mounts once, but when I reboot, it doesn't ever mount again.
>
> I cannot upgrade my kernel as my development schedule is too aggressive;
> I don't have time. I'm using 2.6.32 for now; if I fail at getting UBI to
> work, I can fall back on jffs2, which works, but I prefer UBIFS.
>
> Note that I did successfully load a ubi image with this kernel In the
> past with a filesystem image generated from OpenEmbedded. Could my
> mkfs.ubifs/ubinize be the issue?
I am sure the problem is your OMAP flash driver - it does not support
sub-pages correctly. There were several discussions. I have not idea
what is your kernel and which hacks it has.
Anyway, first try to check if I was right - run the mtd_subpagetest
test: http://www.linux-mtd.infradead.org/doc/general.html#L_mtd_tests
My prediction - it will fail. Let's check this.
If I'm right - you have 2 choices:
1. Fix the driver.
2. Do not use sub-pages (means you'll waste a bit more flash space).
For the latter - assume your sub-page size = page size = 2048 bytes, and
adjust your mkfs.ubifs/ubinise/ubisformat parameters accordingly. Feel
free to ask for more help - I do not want to write much now before you
have verified my theory.
Also, running all mtd tests is a good idea.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
next prev parent reply other threads:[~2011-06-06 16:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-01 17:52 ubi image only mounts once Douglass, Woody
2011-06-02 4:03 ` Matthew L. Creech
2011-06-06 15:53 ` Douglass, Woody
2011-06-06 16:08 ` Artem Bityutskiy [this message]
2011-06-06 18:31 ` Douglass, Woody
2011-06-06 18:53 ` Artem Bityutskiy
2011-06-06 19:14 ` Douglass, Woody
2011-06-06 16:13 ` Matthew L. Creech
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=1307376483.3112.94.camel@localhost \
--to=dedekind1@gmail.com \
--cc=Woodrow.Douglass@QinetiQ-NA.com \
--cc=linux-mtd@lists.infradead.org \
--cc=mlcreech@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox