* [U-Boot] there is no need for uboot to use linux's mtd driver!
@ 2009-06-09 11:52 liu.yaojin at zte.com.cn
2009-06-11 19:24 ` Wolfgang Denk
2009-06-16 18:33 ` Scott Wood
0 siblings, 2 replies; 5+ messages in thread
From: liu.yaojin at zte.com.cn @ 2009-06-09 11:52 UTC (permalink / raw)
To: u-boot
i am porting uboot to our board.and i am a fresh man to the uboot.
after several days on studying uboot.i found uboot's mtd drvier framework
for nand is very foolish!
i think uboot should just have some api,such as
read/write_page,oob,crc,but let them be null functions.
!!!because!!! the semiconductor company's engineers will provide the
functions!!!.so when they port uboot to their cpu ,it will very
easy.furthermore, using the null api is good to customer and kinds of
engineers!~
we shouldn't spend so much time on bootloader.but the author seems to make
our work harder!
--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail is solely property of the sender's organization. This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender.
This message has been scanned for viruses and Spam by ZTE Anti-Spam system.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] there is no need for uboot to use linux's mtd driver!
2009-06-09 11:52 [U-Boot] there is no need for uboot to use linux's mtd driver! liu.yaojin at zte.com.cn
@ 2009-06-11 19:24 ` Wolfgang Denk
2009-06-16 18:33 ` Scott Wood
1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2009-06-11 19:24 UTC (permalink / raw)
To: u-boot
Dear liu.yaojin at zte.com.cn,
In message <200906111737.n5BHblLO059758@mse1.zte.com.cn> you wrote:
>
> i am porting uboot to our board.and i am a fresh man to the uboot.
> after several days on studying uboot.i found uboot's mtd drvier framework
> for nand is very foolish!
You are welcome to provide a patch that implements such a small and
efficient solution as you propose here - note that it should work on
all the processors and boards that are supported so far.
It's probably a good exercise for a newbie... Happy hacking.
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Until you walk a mile in another man's moccasins, you can't imagine
the smell.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] there is no need for uboot to use linux's mtd driver!
2009-06-09 11:52 [U-Boot] there is no need for uboot to use linux's mtd driver! liu.yaojin at zte.com.cn
2009-06-11 19:24 ` Wolfgang Denk
@ 2009-06-16 18:33 ` Scott Wood
2009-06-16 21:02 ` Mike Frysinger
1 sibling, 1 reply; 5+ messages in thread
From: Scott Wood @ 2009-06-16 18:33 UTC (permalink / raw)
To: u-boot
On Tue, Jun 09, 2009 at 07:52:19PM +0800, liu.yaojin at zte.com.cn wrote:
> i am porting uboot to our board.and i am a fresh man to the uboot.
> after several days on studying uboot.i found uboot's mtd drvier framework
> for nand is very foolish!
As Wolfgang pointed out, patches that actually improve things are welcome.
Don't forget to account for the possibility that a board has more than
one type of NAND controller.
> i think uboot should just have some api,such as
> read/write_page,oob,crc,but let them be null functions.
> !!!because!!! the semiconductor company's engineers will provide the
> functions!!!.
Those functions would be almost identical for a many NAND controllers.
Note that you *can* provide your own read/write page, oob, crc, etc.
functions. I agree that there should be a way for the generic functions
to not be compiled if they're not needed.
> we shouldn't spend so much time on bootloader.
That's precisely why Linux's code was reused, rather than spending time
writing something from scratch.
-Scott
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-06-16 21:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-09 11:52 [U-Boot] there is no need for uboot to use linux's mtd driver! liu.yaojin at zte.com.cn
2009-06-11 19:24 ` Wolfgang Denk
2009-06-16 18:33 ` Scott Wood
2009-06-16 21:02 ` Mike Frysinger
2009-06-16 21:06 ` Scott Wood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox