Re: [U-Boot] Instructions in TEXT section can not load data from other section

2010-03-17 Thread Scott Wood
On Wed, Mar 17, 2010 at 09:49:15AM +, jrjr wrote: > > Because I want to use LED controlled by OR3 to debug the code,so I don't want > to clear OR0. It's temporary; you can use bank 3 after BRn/ORn are set to their final values (confusingly named PRELIM) in cpu_init_f(). -Scott _

Re: [U-Boot] Instructions in TEXT section can not load data from other section

2010-03-17 Thread Joakim Tjernlund
jrjr wrote on 2010/03/17 10:49:15: > > Because I want to use LED controlled by OR3 to debug the code,so I don't want > to clear OR0. > > You remind me, so I enable the "Calculate absolute address in FLASH and jump > there " part, > > It seems that I get close to the point: jump to "in_flash:" fai

Re: [U-Boot] Instructions in TEXT section can not load data from other section

2010-03-17 Thread jrjr
fff80168:4e 80 00 20 blr fff8016c : And my text_base is 0xfff8. Something is wrong with the "absolute address" and "relative address", I am not sure about that. Expect for your advise. --JRJR > Subject: RE: [U-Boot] Instructions in TEXT section can not l

Re: [U-Boot] Instructions in TEXT section can not load data from other section

2010-03-17 Thread Joakim Tjernlund
jrjr wrote on 2010/03/17 09:45:08: > > And I have made some change in cpu/mpc8260/start.S, I removed following lines: > > #ifndef CONFIG_SYS_RAMBOOT > /* When booting from ROM (Flash or EPROM), clear the*/ > /* Address Mask in OR0 so ROM appears everywhere*/ > /*---

Re: [U-Boot] Instructions in TEXT section can not load data from other section

2010-03-17 Thread jrjr
wrong? --JRJR > Subject: RE: [U-Boot] Instructions in TEXT section can not load data from > other section > To: jason...@hotmail.com > CC: u-boot@lists.denx.de > From: joakim.tjernl...@transmode.se > Date: Wed, 17 Mar 2010 08:05:23 +0100 > > jrjr wrote on 2010/03/17

Re: [U-Boot] Instructions in TEXT section can not load data from other section

2010-03-17 Thread jrjr
igure? Thanks for your help. --JRJR > Subject: RE: [U-Boot] Instructions in TEXT section can not load data from > other section > To: jason...@hotmail.com > CC: u-boot@lists.denx.de > From: joakim.tjernl...@transmode.se > Date: Wed, 17 Mar 2010 08:05:23 +0100 >

Re: [U-Boot] Instructions in TEXT section can not load data from other section

2010-03-16 Thread jrjr
ol-NG-1.6.0) ppc_82xx-gcc gcc version 4.2.2 from ELDK powerpc-603-linux-gnu-gcc gcc version 4.1.0 from crosstool 0.43 The problem is still there: ( --JRJR > Subject: Re: [U-Boot] Instructions in TEXT section can not load d

Re: [U-Boot] Instructions in TEXT section can not load data from other section

2010-03-16 Thread Joakim Tjernlund
> > Hi, everyone. > > I have got a problem when I porting U-BOOT to my board > > with MPC8247. My configuration file is based on the MPC8260ADS_config. > > The problem is : The instruction in TEXT section can not load data in > > other (DATA) sections. It seems there is a relocation to the data se

[U-Boot] Instructions in TEXT section can not load data from other section

2010-03-16 Thread jrjr
Hi, everyone. I have got a problem when I porting U-BOOT to my board with MPC8247. My configuration file is based on the MPC8260ADS_config. The problem is : The instruction in TEXT section can not load data in other (DATA) sections. It seems there is a relocation to the data section . Fo