All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] U-boot newbie: Bring-up issues on MPC8260 board
@ 2006-12-29 13:55 raghuveer.murthy at wipro.com
  2006-12-29 19:54 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: raghuveer.murthy at wipro.com @ 2006-12-29 13:55 UTC (permalink / raw)
  To: u-boot

Hi,
 
I am trying to bring u-boot up on a MPC8260 based board.
It stops after showing the following output:
 
*****************************************************************
U-Boot 1.1.4 (Dec 29 2006 - 18:31:04)
 
MPC8260 Reset Status: External Soft, External Hard
 
MPC8260 Clock Configuration
 - Bus-to-Core Mult 3x, VCO Div 2, 60x Bus Freq  33-100, Core Freq
100-300
 - dfbrg 0, corecnf 0x08, busdf 3, cpmdf 1, plldf 0, pllmf 1
 - vco_out  264000000, scc_clk   66000000, brg_clk   66000000
 - cpu_clk  198000000, cpm_clk  132000000, bus_clk   66000000
 
CPU:   MPC8260 (HiP3 Rev 01, Mask C.2 6K23A) at 198 MHz
Board: EST PSI8260
DRAM:  64 MB
 
*********************************************************************
 
Using the visionICE emulator, got the following exception:
 
!HALT! - [msg90003] Target Stopped for unknown reason; PC = 0x00000200
 
Upon debugging, it was found that the code stops running after a couple
of instructions 
into ram in the assembly code segment of "in_ram" in the
"cpu/mpc8260/start.S" in the
u-boot source directory. 
 
The snippet of code is below:
 
in_ram:
 
        /*
         * Relocation Function, r14 point to got2+0x8000
         *
         * Adjust got2 pointers, no need to check for 0, this code
         * already puts a few entries in the table.
         */
        li      r0,__got2_entries at sectoff@l
        la      r3,GOT(_GOT2_TABLE_)
        lwz     r11,GOT(_GOT2_TABLE_)
        mtctr   r0                                       /* not updating
correctly */
                                    <--------------------- /* tried
adding sync and isync here */
        sub     r11,r3,r11
        addi    r3,r3,-4
                                   <---------------------- /* tried
adding sync and isync here */
1:      lwzu    r0,4(r3)
        add     r0,r0,r11
        stw     r0,0(r3)
        bdnz    1b
 
 
Since the "mtctr r0" is not updating properly, isync instruction was
given@the 2 places
mentioned above. But, this redirects the Program Counter to exception
0x00000200, either 
immediately after isync instruction or after a executing a single
instruction. Please note that
the icache is enabled.
 
Is it anything to do with Instruction pipelining, or do I need to look
into any specific Core
register configuration. 
 
Kindly let me know what is going wrong here.
 
Regards,
Raghuveer
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20061229/7e023456/attachment.htm 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot-Users] U-boot newbie: Bring-up issues on MPC8260 board
  2006-12-29 13:55 [U-Boot-Users] U-boot newbie: Bring-up issues on MPC8260 board raghuveer.murthy at wipro.com
@ 2006-12-29 19:54 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2006-12-29 19:54 UTC (permalink / raw)
  To: u-boot

In message <DC91351678E31E4FB24B551221F507EC043F2486@blr-itp-msg.wipro.com> you wrote:
>
> I am trying to bring u-boot up on a MPC8260 based board.
> It stops after showing the following output:
...
> CPU:   MPC8260 (HiP3 Rev 01, Mask C.2 6K23A) at 198 MHz
> Board: EST PSI8260
> DRAM:  64 MB
...
> Kindly let me know what is going wrong here.

See the FAQ:
http://www.denx.de/wiki/view/DULG/UBootCrashAfterRelocation

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
It is better to marry than to burn.
                                - Bible ``I Corinthians'' ch. 7, v. 9

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-29 19:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-29 13:55 [U-Boot-Users] U-boot newbie: Bring-up issues on MPC8260 board raghuveer.murthy at wipro.com
2006-12-29 19:54 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.