barebox tftp to 2k pagesize NAND

Eric Bénard eric at eukrea.com
Wed May 26 08:52:57 EDT 2010


Hi Ivo,

Le 26/05/2010 14:25, Ivo Clarysse a écrit :
> On Tue, May 25, 2010 at 2:14 PM, Eric Bénard<eric at eukrea.com>  wrote:
> [...]
>> while running barebox on a i.MX25 which has 2k pagesize nand, I noticed it's
>> not possible to do a tftp directly to NAND (tftp barebox.bin
>> /dev/nand0.barebox for example).
> [...]
>
> Eric,
>
>    Are you able to boot from 2k pagesize NAND ?
>
yes but I'm using internal boot mode.

>    I only have 512byte pagesize NAND, but shouldn't
> nand_imx.c:imx_nand_load_image(..) have something
> like:
>
> #ifdef CONFIG_ARCH_IMX25
>          if (readl(IMX_CCM_BASE + CCM_RCSR)&  (1<<  8))
>                  host.pagesize_2k = 1;
>          else
>                  host.pagesize_2k = 0;
> #endif
>
yes something like this should be necessary for direct NAND boot.

Eric



More information about the barebox mailing list