Re: [U-Boot] Having problem Booting linux from nand flash

2009-11-30 Thread Wolfgang Denk
Dear Peter Pan, please don't top-post / full quote. And make sure never to post HTML again! In message <48abf2c20911292253q4850af1dy1767fdd9e3456...@mail.gmail.com> you wrote: > --0016368319a25758030479911a75 > Content-Type: text/plain; charset=ISO-8859-1 > > I assumed that the stack does not s

Re: [U-Boot] Having problem Booting linux from nand flash

2009-11-29 Thread Peter Pan
I assumed that the stack does not support "loff_t", so I search for its definition. In /include/asm-ppc/posix_types.h has a definition for "__kernel_loff_t" which is type defined to "loff_t" in /include/linux/types.h. I change this "__kernel)loff_t" from "long long" to "unsigned long". And the Func

[U-Boot] Having problem Booting linux from nand flash

2009-11-29 Thread Peter Pan
Dear Wolfgang Denk: I'm using U-Boot-2009-08 now. And I have a problem booting my linux image from nand flash. I can boot from my norflash using NFS, and mount my Nand flash, nand flash works file with fstype yaffs2. I run command nboot 80 0 0 (device 0, offset 0, into memory 0x80), then it