[U-Boot-Users] address question in lib_ppc/board.c

Wolfgang Denk wd at denx.de
Wed Jun 2 15:37:10 CEST 2004


In message <Sea2-F14V7nOh9KvpvD000014b0 at hotmail.com> you wrote:
> 
> I'm porting my custom PPC405EP board from bubinga405ep board, now I have a 
> question about macro CFG_MONITOR_BASE:
> In include/configs/BUBINGA405EP.h, CFG_MONITOR_BASE was defined as 
> 0xFFF80000, base address of FLASH.

Correct.

> in function board_init_f:
> 	len = (ulong)&_end - CFG_MONITOR_BASE;
> Here, _led is 0xfffaca58

What's "_led" here?

> But in function board_init_r:
>            gd->reloc_off = dest_addr - CFG_MONITOR_BASE;
> Here, dest_addr is an address in SDRAM, in my board, dest_addr = 0x1fd3000, 

Looks good to me.

> that is, dest_addr < CFG_MONITOR_BASE. How to understand this?

Well, we're going to relocate the code  to  RAM.  RAM  is  mapped  at
0x0000,  so  all  RAM  addresses  will  always  be smaller then flash
addresses.

What exactly is your problem?

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
EMACS belongs in <sys/errno.h>: Editor too big!




More information about the U-Boot mailing list