[U-Boot-Users] Question about MPC8272 HRCW

Wolfgang Denk wd at denx.de
Wed Jun 22 08:50:57 CEST 2005


In message <17080.32989.840476.307428 at astp0002.localdomain> you wrote:
>
...
>     Raymond> 0xFE00_0000 = 0x1F00100 > 16M, So if my flash is 8M bytes,
>     Raymond> i can't use this configuration, right?
> 
> Wrong, read again. You will see your flash in the last 8MB
> (FF800000-FFFFFFFF). In fact, you will see it repeating itself four
...
> For MONITOR_BASE=TEXT_ADDR=0xFFF00000 you need
> CFG_FLASH_BASE=0xFF800000. Check BDI initialisations and set the HRCW to


Actually I think that using  "CFG_FLASH_BASE=0xFF800000"  or  similar
for  a  high-boot configuration is not optimal, as it does not adjust
automatically for varying flash sizes.

Usually I use something like

	#define CFG_FLASH_BASE	(0-flash_info[0].size)

or even

	#define CFG_FLASH_BASE	(0-flash_info[0].size-flash_info[1].size)

in such cases.


Just an idea....

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
No, I'm not going to explain it. If you  can't  figure  it  out,  you
didn't want to know anyway... :-)
                   - Larry Wall in <1991Aug7.180856.2854 at netlabs.com>




More information about the U-Boot mailing list