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

Manukumar
2012-10-04T10:18:57Z

Dear all,

Yes i am using P1020RDb board.
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?

Regards
Manukumar

On Wed, 2012-10-03 at 10:22 -0500, Scott Wood wrote:
> On 10/03/2012 07:24:35 AM, Manukumar wrote:
> > Dear all,
> >
> > In u-boot(u-boot-2010.12)
>
> That's almost two years old. Please upgrade.
>
> > 1) The TEXT_BASE address is 11001000.
>
> Judging from this you seem to be using either P1010RDB or P1023RDS (or
> maybe some out-of-tree board?). Always let us know what board you're
> talking about.
>
> > 2) Nand Flash Erasing at Address 0x00000000
> > 3) Nand Flash Writing u-boot-nand.bin at address 0x00000000
> > 4) When Power is switched On the booting happens.
> >
> > till this there is no issue, now i want to change the
> > booting address to different location(ex:0x02000000)
>
> Because you don't have as much RAM on this board, or some other reason?
>
> > do i want to change the TEXT_BASE address accordingly
> > to boot it from 0x02000000.
> > like below,
> >
> > 1) The TEXT_BASE address is 0x02000000.
> > 2) Nand Flash Erasing at Address 0x02000000
> > 3) Nand Flash writing u-boot-nand.bin at address 0x02000000 .
>
> Did you update other relevant variables such as
> CONFIG_SYS_NAND_U_BOOT_DST and CONFIG_SYS_NAND_U_BOOT_START?
>
> Plus you really should leave that 0x1000 offset in there. On mpc85xx
> NAND boot, TEXT_BASE is 4K after the start of the image, since the boot
> page comes first.
>
> -Scott