From: Frank Haverkamp <haver@vnet.ibm.com>
To: John <john@arrows.demon.co.uk>
Cc: linux-mtd@lists.infradead.org
Subject: Re: UBI and OneNand
Date: Mon, 06 Nov 2006 10:46:00 +0100 [thread overview]
Message-ID: <1162806360.5636.19.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.33.0611040819560.26940-100000@arrows.demon.co.uk>
Hi John,
On Sat, 2006-11-04 at 08:22 +0000, John wrote:
> I have a board with a MIPS core and a OneNAND flash. I plan to split
> the OneNAND into a small partition for the boot loader, and a big
> partition for the rest. The big partition will be split using UBI into:
> a partition for the Kernel
> a partition for a readonly root file system (squashfs?)
> a read/write JFFS2 partition for persistant data
> a partition for the root file system for use when the box boots next
> time
> etc....
> The concepts of UBI seem just right.
>
> I have made the kernel from ubi-2.6.git run on my board. Now I would be
> grateful for answers to some questions to help me get UBI going.
>
> 1. Should I expect UBI to run on OneNAND without change, or should I
> expect to have to write or adapt some code?
UBI should run on mostly any mtd device. I tried it on NAND as well as
NOR mtds.
>
> 2. Which git provides the best mtd-utils? Should I get mtd-tools and
> ubi-tools from different gits?
Unfortunately yes. I need to talk to David or maybe Josh to integrate
the ubi-tools into the main mtd-utils.git. Until than take my version.
>
> 3. My attempt to build the ubi tools from the git
> users/haver/mtd-utils.git failed. The tools use the argp
> functions to parse command line args, but my root file system
> based on uclibc doesn't support argp. I propose to collect argp
> sources following instructions in
> http://savannah.gnu.org/cvs/?group=gnulib and try again. Any
> better suggestions?
Mhm, I wonder if we should remove the argp parsing again and replace it
by more portable code. I am not sure about this yet.
>
> 4. The UBI faq
> http://www.linux-mtd.infradead.org/faq/ubi.html#L_run_ubi says
> that when UBI is compiled into the Kernel, you should call
> ubi_attach_mtd_dev() to launch the UBI code. But
> ubi_attach_mtd_dev() is now declared static, so I guess the
> advice is out of date. How should UBI be started when compiled
> into the kernel?
We decided that the connection between UBI and its mtd should be made at
the kernel command line, instead of exporting a function to do this.
The syntax is:
[ubi.]mtd=content[,<vid-hdr-offs>,<data-offs>] ...
^
|
name of the MTD
If compiled in the kernel the ubi. prefix must be used, if used as module
it works without it. You can offer multiple of those options after each
other to connect more than one MTD with UBI.
The vid-hdr-offs and data-offs parameters are optional. UBI will choose
hopefully resonable default values. If you are not happy with the
defaults, use the parameters to define different ones.
>
> 5. What is the way to get jffs2 running on an UBI partition? Should
> I still be aiming to use gluebi to provide an MTD partition on
> top of a UBI partition (whatever that means)? Cook book
> instructions would be very helpful.
Yes, gluebi is used to create the MTD which can be used by JFFS2. We had
some iterations over the code, and finally came up with the code
available in our ubi-2.6.git. The original from Joern was reworked by
Artem, the currently available solution has only very few changes to
JFFS2.
Frank
next prev parent reply other threads:[~2006-11-06 9:46 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-04 8:22 UBI and OneNand John
2006-11-06 9:46 ` Frank Haverkamp [this message]
2006-11-06 13:18 ` Artem Bityutskiy
2006-11-06 20:16 ` John Smith
2006-11-06 20:54 ` Josh Boyer
-- strict thread matches above, loose matches on Subject: below --
2006-11-07 2:35 UBI and OneNAND 박경민
2006-11-07 8:50 ` Frank Haverkamp
2006-11-07 10:20 ` John Smith
2006-11-07 11:39 ` Artem Bityutskiy
2006-11-07 11:47 ` Josh Boyer
2006-11-07 14:10 ` Artem Bityutskiy
2006-11-07 14:24 ` Josh Boyer
2006-11-07 14:39 ` Artem Bityutskiy
2006-11-07 9:16 ` Artem Bityutskiy
2006-11-08 16:03 ` Artem Bityutskiy
2006-11-07 12:52 Kyungmin Park
2006-11-08 16:09 ` 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=1162806360.5636.19.camel@localhost.localdomain \
--to=haver@vnet.ibm.com \
--cc=john@arrows.demon.co.uk \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox