From: Michael Lawnick <nospam_lawnick@gmx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Add MTD core & partition
Date: Mon, 22 Sep 2008 12:13:44 +0000 (UTC) [thread overview]
Message-ID: <loom.20080922T120126-340@post.gmane.org> (raw)
In-Reply-To: 200809191538.50597.sr@denx.de
Stefan Roese <sr <at> denx.de> writes:
>
> On Friday 19 September 2008, Michael Lawnick wrote:
> > > BTW: Which NOR FLASH driver are you using? The common CFI driver? It has
> > > no real connection to the MTD layer which is needed for the UBI port from
> > > Kyungmin. Did you think about this?
> >
> > We are using CFI driver for AM29GL512.
> > As said we are _planning_ to integrate, i.e. I'm currently gathering
> > information. We need r/o access from u-boot to find our kernel and boot it.
> > Writing to flash could be done from Linux.
>
> Understood.
>
> > What are the problems to face?
>
> As I mentioned the CFI driver is missing the interface to the MTD layer. This
> is available for NAND and OneNAND but missing for NOR in the U-Boot CFI
> implementation. It really is not needed right now and such an extension has
> to be made carefully since it adds new code which increases the image size of
> all boards using this driver. The only option (I can think of) to not
> increase the image size for those boards would be to add this MTD connection
> via #ifdef's. But this will not help to make the code more readable.
>
Hmm, seems I've got some problems to understand.
If there is a clearly defined API (which I haven't found yet) it should be
independent from H/W (NAND/NOR/SRAM/...) IMHO. If not, UBI will be NAND-only :-(
Could you give me a kick into the right direction, so I will find e.g. a .h file
where the functions are listed that have to be supported by H/W-layer driver?
#ifdef's could be avoided by using a different sort of driver for the same H/W,
e.g. cfi_flash and cfi_ubi_flash.
Kind regards,
Michael
prev parent reply other threads:[~2008-09-22 12:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-29 8:13 [U-Boot] [PATCH] Add MTD core & partition Kyungmin Park
2008-09-06 22:13 ` Wolfgang Denk
2008-09-07 23:28 ` Kyungmin Park
2008-09-08 7:35 ` Stefan Roese
2008-09-08 19:30 ` Scott Wood
2008-09-09 1:15 ` Kyungmin Park
2008-09-19 12:31 ` Michael Lawnick
2008-09-19 13:07 ` Stefan Roese
2008-09-19 13:24 ` Michael Lawnick
2008-09-19 13:38 ` Stefan Roese
2008-09-22 12:13 ` Michael Lawnick [this message]
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=loom.20080922T120126-340@post.gmane.org \
--to=nospam_lawnick@gmx.de \
--cc=u-boot@lists.denx.de \
/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