Regarding nandwrite issue for huge files ?

Sascha Hauer s.hauer at pengutronix.de
Fri Feb 12 02:30:13 EST 2010


Hi Arun,

On Fri, Feb 12, 2010 at 12:32:19PM +0530, R Arun Kumar wrote:
> Hai,
> 
> I am able to successfully port the barebox for my custom IMX31 board and
> also boot linux on the same.
> I am trying to write the uImage and the root.jffs2 file from barebox and
> found that even though uImage is written successfully and able to boot from
> nand flash also. The nand file write for files more than 3.5 mega size is
> not able to write and the barebox loader is hanged.
> 
> Please help or suggest what could be the issue ?

I don't know what is going wrong here. I often use this driver with
files > 3.5Mb, works for me. Can you add a #define DEBUG in
drivers/nand/nand.c and see if it's always the same location that fails?
You could also make your kernel partition a bit bigger so that the
rootfs starts at another place and see if it's still the same location
that fails.
Have you tried lowering the Nand clock?

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list