[U-Boot] [PATCH] cmd_mtdparts: Move to common handling of FLASH devices via MTD layer

Stefan Roese sr at denx.de
Tue May 12 13:37:36 CEST 2009


Hi Wolfgang,

On Monday 11 May 2009 20:00:54 Wolfgang Denk wrote:
> > This patch removes all references to the direct CFI FLASH interface
> > (via flash_info[]). Now that all FLASH types currently handled in
> > mtdparts are available (if selected, see below) via the MTD
> > infrastructure. This is NOR, NAND and OneNAND right now. This can be
> > achieved by defining the following options:
>
> What is the code size impact for each of these boards?

Here a few examples:

Boards with NAND:

omap3_beagle:	~5k increase

Boards with NOR :

TQM5200:	~7k increase

I have to admit that this is more than I expected. After thinking a bit more 
it came to my mind that I don't need to add mtdcore.o and mtdpart.o for those 
boards. mtdcore is sufficient and mtdpart is only needed for UBI support right 
now. So I only enabled mtdcore creation for those boards and here are the new 
results:

omap3_beagle:	~800 bytes increase
TQM5200:	~2k increase

This looks much better.

I'll wrap up another patch with this new structuring shortly and perhaps I'll 
create a branch in my u-boot-cfi-flash repository for all those MTD 
infrastructure changes so that users and board maintainers can easier test 
those changes.

Thanks.

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