Thank you for your answer. But as you said in the letter, "NOR can be mapped in 
its entirety, while with NAND only the first 4KiB gets
mapped, and that code has to fetch the rest of u-boot from NAND and copy it to 
RAM before continuing." Why did you also mentioned that there is no need to 
modify the start.s, isn't there any difference between booting from NOR and 
NAND for start.s?

2008-05-19 



jiale.Yin 



发件人: Scott Wood 
发送时间: 2008-05-17  03:16:52 
收件人: jiale.Yin 
抄送: u-boot-users 
主题: Re: [U-Boot-Users] Boot from NAND FLASH 
 
On Fri, May 16, 2008 at 02:54:34PM +0800, jiale.Yin wrote:
> Our board is reference with the mpc8313erdb,and its design is to link CS0
> to the NAND FLASH, so I have to boot from NAND other than NOR.In
> /board/mpc8313erdb I can find some files, such as nand_boot.c, nand.c and
> nand_ecc.c,

I assume you're talking about the Freescale BSP, as those files are not in
mainline u-boot.

> which I think are related with booting from NAND.What I want
> to know is if booting from NAND,is there any need to modify the start.s

No, beyond what's already been changed in the BSP to support it.  Make sure
you use a NAND configuration when building u-boot.

> and what is needed to ba added. What's the difference between NOR-BOOT and
> NAND-BOOT. Thank you!

NOR can be mapped in its entirety, while with NAND only the first 4KiB gets
mapped, and that code has to fetch the rest of u-boot from NAND and copy it
to RAM before continuing.

-Scott
BEGIN:VCARD
VERSION:2.1
N:Yin;jiale
FN:jiale Yin
NICKNAME:icePhoenix
ORG:SHU;Communication College
ADR;WORK:;;ÉϺ£ÊÐÕ¢±±ÇøÑÓ³¤Â·149ºÅ;Shanghai;Shanghai;200072;China
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:=C9=CF=BA=A3=CA=D0=D5=A2=B1=B1=C7=F8=D1=D3=B3=A4=C2=B7149=BA=C5
Shanghai
Shanghai
200072
China
ADR;HOME;POSTAL;PARCEL:;;;Shanghai;Shanghai;;China
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:
Shanghai
Shanghai

China
KEY;X509;ENCODING=BASE64:
    MIIETTCCAzWgAwIBAgIDAPOZMA0GCSqGSIb3DQEBBAUAMEoxCzAJBgNVBAYT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2NhY3JsLmNybDANBgkqhkiG9w0BAQQFAAOCAQEAexvdh7de
    1or7EIp3sma5WHnak6cWAE5qV8oc3sV4S+JQ8/rZa2WBS1eHbuG/W/za8NMK77oHoHsQTZV1Xow2
    YxJlhT9VdiLE+p6VAz8wClOLVbgbC8p5fc4pn5ALVe3yl1JJ/UxwCFBmDTNnWp4Y22wtKIdno8J7
    PnOig1ExFtQWBdP2rSepkOipA4wnjS7lz734k2SDeFOjAnZg5wQnzjuJoG4Up/N7kmlP+uy7geMO
    SdilK65tCrTniAIHdH1iSNom5p7ahxmtH2vsKtA4gqNgS7Rz6YYKJdVmYi9wyC8nLRUFp5oL6uFO
    V7dXHk6tmFSlWcYXdo7KFAypWjHpmg==


EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
X-QQ:157075433
X-WAB-GENDER:2
REV:20080519T201335Z
END:VCARD

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to