[U-Boot] Booting through nand flash with other address

Scott Wood
2012-10-04T17:21:07Z

On 10/04/2012 05:18:57 AM, Manukumar wrote:
> Dear all,
>
> Yes i am using P1020RDb board.

Note that there are (at least) two variants of this board, one using
P1_P2_RDB and the other p1_p2_rdb_pc.

> Actually i have to make 2 boot(u-boot) B1 and B2
> B1 is stored 0x0000_0000,B2 is stored in 0x010_0000 of nand flash.
>
> when 1 power cycle is given
> Board gets booted from 0x0000_0000
>
> my requirement is to boot B2 from 0x010_0000
> how can i do that?

You can't. That's not what TEXT_BASE means. The hardware is only
capable of booting from the beginning of NAND flash.

At best you could have one SPL at the beginning of NAND flash that
chooses which main U-Boot to load, but that is something you'd have to
implement yourself.

-Scott