[U-Boot] [PATCH] Add MTD core & partition

Stefan Roese sr at denx.de
Fri Sep 19 15:38:50 CEST 2008


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. :-(

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================


More information about the U-Boot mailing list