address question in lib_ppc/board.c
Hi,
Thanks first.
In my first email, "_led is 0xfffaca58" should be "_end is 0xfffaca58", It's my mistake.
I can't understand that why reloc_off can be < 0, but after reading Masao's mail, I got it.
Thanks,
yuwp
Quoted 9 lines
From: Wolfgang Denk <[email protected]>
To: "wyu hotmail" <[email protected]>
CC: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] address question inlib_ppc/board.c
Date: Wed, 02 Jun 2004 15:37:10 +0200Quoted 2 lines · In message <[email protected]> you wrote:
I'm porting my custom PPC405EP board from bubinga405ep board, now I
have a
Quoted 4 lines
Quoted 3 lines
question about macro
CFG_MONITOR_BASE:
Ininclude/configs/BUBINGA405EP.h,CFG_MONITOR_BASEwas defined as0xFFF80000, base address of FLASH.
Quoted 11 lines
Correct.
Quoted 3 lines
in function
board_init_f:len = (ulong)&_end - CFG_MONITOR_BASE;Here,
_ledis0xfffaca58What's "
_led" here?Quoted 3 lines
But in function
board_init_r:gd->reloc_off = dest_addr - CFG_MONITOR_BASE;Here,
dest_addris an address in SDRAM, in my board,dest_addr=
0x1fd3000,
Quoted 19 lines
Looks good to me.
Quoted 1 line
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!