Tests to enable Dcache on MPC8270ZUQLDA PPC board restart the system

Om Vadlapatla pdfdoc15 at yahoo.com
Fri May 12 02:32:10 EST 2006


Hello,

Processor:                           MPC8270
Debugger:                            Abatron BDI 2000
Board & processor Initialization by: Uboot 1.1.2

Aim: 
I try to enable d-cache at the Register level with out
having any exceptions. I want to write my own code to
compile into the kernel that is no longer supported by
Montavista (3.0).

Proceedure:
~in window 1 (DIP window) I reset the processor then
the flash mem loads the U-boot version 1.1.2. I do not
load the OS so the system is running at the U-boot
prompt.

=>

~In window 2 (BDI debugger window) I use the Abarton
BDI to force the PPC to enter debug mode by issuing -
"halt" instruction.

MPC8270>halt
 Target CPU        : MPC8280/MGT5200 (Zeppo)
    Target state      : debug mode
    Debug entry cause : COP halt
    Current PC        : 0x0ffe935c
    Current CR        : 0x44004044
    Current MSR       : 0x0000b002
    Current LR        : 0x0ffe13a8

~now by issueing commands from the BDI I try to set
the BATs and the MMU as follows:

I tried two BAT schemes on the abatron that are
attached in BAT register setting table.do &
8280_InitMMU.cmm :

Test 1:- 

For seting DBAT regs by BDI commands ccording to
(BAT_register_setting_table.doc):

// initialize bats  
MPC8270>rm dbat0u 0xffe0003f
MPC8270>rm dbat0l 0xffe00022
MPC8270>rm dbat1u 0x00001fff
MPC8270>rm dbat1l 0x00000002
MPC8270>rm dbat2u 0x300007ff
MPC8270>rm dbat2l 0x30000002
MPC8270>rm dbat3u 0x400003FF
MPC8270>rm dbat3l 0x40000022
MPC8270>rm dbat4u 0xFB0001FF
MPC8270>rm dbat4l 0xFB000022
MPC8270>rm dbat5u 0xFE400003
MPC8270>rm dbat5l 0xFE400022
MPC8270>rm dbat6u 0xF0000003
MPC8270>rm dbat6l 0xF0000022
MPC8270>rm dbat7u 0xFF000003
MPC8270>rm dbat7l 0xFF000022

MPC8270>rm hid0 0x8000c088 // set HID0 to enable 
                           // I & D Cache

MPC8270>go // to let the processor run

I check the PC and it is at 0x200 the Machine check
exception.

Test 2:-
commands I issued throught Abatron BDI window:

// initialization of BATs reffre to (8280_InitMMU.cmm)
// please keep in mind that even though these BAT 
// initialization are for a Stand alone systems I only

// plan to test if I am able to initialize the data 
// cache without the 0x200 (Machine check exception) 
// exception.

MPC8270>rm ibat0u 0x000003fe
MPC8270>rm ibat0l 0x00000002
MPC8270>rm ibat1u 0x04700002
MPC8270>rm ibat1l 0x04700022
MPC8270>rm ibat3u 0xff0000fe
MPC8270>rm ibat3l 0xff000001
MPC8270>rm dbat0u 0x000007fe 
MPC8270>rm dbat0l 0x00000002
MPC8270>rm dbat1u 0x0400007e
MPC8270>rm dbat1l 0x0400002a
MPC8270>rm dbat2u 0x0450007e
MPC8270>rm dbat2l 0x0450002a
MPC8270>rm dbat3u 0xff0000fe
MPC8270>rm dbat3l 0xff000022
// the Bats initialize fine no problem till here 

MPC8270>rm msr 0x9030 // enable MMU (EE + ME + DR +
IR)

// I feel I may be messing it up here (can some one
// correct me?)

MPC8270>go // this is to let the processor run 
           // however ends up restarting the system 

// I dont issue the foll command coz of reset
MPC8270>rm hid0 0x8000c088  // this is to set and
                            // enable the I & D Caches
                            
This is how the DIP window where the boot prompt is
looks after this test 2:-
-------------------------------------------------------
U-Boot 1.1.2 (Jan 27 2006 - 14:27:57) ### Release
1.1.5 ### 

MPC8260 Reset Status: Bus Monitor, External Soft,
External Hard

MPC8260 Clock Configuration
 - Bus-to-Core Mult 4x, VCO Div 2, 60x Bus Freq  25-75
, Core Freq 100-300
 - dfbrg 1, corecnf 0x1a, busdf 5, cpmdf 1, plldf 0,
pllmf 5
 - vco_out  400000002, scc_clk  100000000, brg_clk  
25000000
 - cpu_clk  266666668, cpm_clk  200000001, bus_clk  
66666667

CPU:   MPC8260 (HiP7 Rev 14, Mask 1.0 1K49M) at
266.666 MHz
Board: Fujitsu FW4060
I2C:   ready
DRAM:  256 MB
FLASH:  2 MB
In:    serial
Out:   serial
Err:   serial
Net:   FCC2 ETHERNET
IDE:   Bus 0: OK 
  Device 0: Model: Hitachi XXM2.3.0 Firm: Rev 3.00
Ser#: X0405 20050304185152
            Type: Removable Hard Disk
            Capacity: 61.1 MB = 0.0 GB (125184 x 512)
Hit any key to stop autoboot:  0 
=>Bad trap at PC: fffffffc, SR: 1000, vector=800
NIP: FFFFFFFC XER: 20000000 LR: 00001088 REGS:
0ffa7dc0 TRAP: 0800 DAR: 0FFE55FC
MSR: 00001000 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 00

GPR00: 0000A000 0FFA7EB0 00000004 00000000 0FFF0E80
0000000A FFFFFFFD FFFFFFFF 
GPR08: 0FFA7C18 F0000080 00008000 F0000090 00000000
0403FF80 0FFF6000 101C8000 
GPR16: 00000000 00000000 00000000 0100FFE0 00000000
00000001 00000000 00000000 
GPR24: 00000000 FFFFFFFF 00000001 00000003 0FFFEFC8
0FFA7F64 0FFF74AC 0FFF0E80 
Call backtrace: 
Exception in kernel pc fffffffc signal 0

U-Boÿ

U-Boot 1.1.2 (Jan 27 2006 - 14:27:57) ### Release
1.1.5 ### 

MPC8260 Reset Status: External Soft, External Hard

MPC8260 Clock Configuration
 - Bus-to-Core Mult 4x, VCO Div 2, 60x Bus Freq  25-75
, Core Freq 100-300
 - dfbrg 1, corecnf 0x1a, busdf 5, cpmdf 1, plldf 0,
pllmf 5
 - vco_out  400000002, scc_clk  100000000, brg_clk  
25000000
 - cpu_clk  266666668, cpm_clk  200000001, bus_clk  
66666667

CPU:   MPC8260 (HiP7 Rev 14, Mask 1.0 1K49M) at
266.666 MHz
Board: Fujitsu FW4060
I2C:   ready
DRAM:  256 MB
FLASH:  2 MB
In:    serial
Out:   serial
Err:   serial
Net:   FCC2 ETHERNET
IDE:   Bus 0: OK 
  Device 0: Model: Hitachi XXM2.3.0 Firm: Rev 3.00
Ser#: X0405 20050304185152
            Type: Removable Hard Disk
            Capacity: 61.1 MB = 0.0 GB (125184 x 512)
Hit any key to stop autoboot:  0 
=> Bad trap at PC: fffffffc, SR: 1000, vector=800
NIP: FFFFFFFC XER: 00000000 LR: 00001088 REGS:
0ffa7dc0 TRAP: 0800 DAR: 0FFE55FC
MSR: 00001000 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 00

GPR00: 0000A000 0FFA7EB0 00000004 00000000 0FFF0E80
0000000A FFFFFFFD 00000000 
GPR08: 00000002 F0000080 00008000 F0000090 00000000
0403FF80 0FFF6000 101C8000 
GPR16: 00000000 00000000 00000000 0100FFE0 00003002
00000001 00000000 0FFCB098 
GPR24: 0FFCE410 00000001 00000001 00000003 0FFFEFC8
0FFA7F64 0FFF74AC 0FFF0E80 
Call backtrace: 
Exception in kernel pc fffffffc signal 0
-------------------------------------------------------

Have I wrongly inilialized the MSR?
Please post comments and suggestions of how I can
initialized MMU for d-cache performance. I am very new
to this.

Thanky you,
Best regards,

Om Vadlapatla

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8280_InitMMU.cmm
Type: application/octet-stream
Size: 1775 bytes
Desc: 790078158-8280_InitMMU.cmm
Url : http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060511/20dbd442/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BAT register setting table.doc
Type: application/msword
Size: 28672 bytes
Desc: 1927371312-BAT register setting table.doc
Url : http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060511/20dbd442/attachment.doc 


More information about the Linuxppc-embedded mailing list