[U-Boot] BDI initialization for MPC8572

Vadim B. vb at google.com
Thu Aug 20 22:59:38 CEST 2009


guys, I am trying to set up a BDI2000 probe to control an MPC8572
based board (MPC8572DS from freescale to be exact).
ftp://78.31.64.234/bdigdb/config/powerpc/mpc85xx/ has a  config
version for this CPU, but it does pretty much nothing.

For some reason the instructions put into the CFG file do not make it
to the processor.

For instance, there is an instruction in the  [INIT] section of the file:

#0 WSPR    624             0x100f0000

after the target resets the value is not set even though the config
file has been successfully downloaded:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
 CONFIG: loading configuration file passed
- CONFIG: loading register definition passed
- TARGET: processing user reset request
- BDI asserts HRESET
- Reset JTAG controller passed
- JTAG exists check passed
- IDCODE  is 0x000E801D
- SVR     is 0x80E80011
- PVR     is 0x80210030
- CCSRBAR is 0x0_ff700000
- BDI scans core HALT command
- BDI scans core HALT command
- BDI removes HRESET
- TARGET: resetting target passed
- TARGET: processing target startup ....
- TARGET: processing target startup passed
eval8572>info
   Target CPU        : MPC8572 Core#0
   Core state        : halted
   Debug entry cause : COP halt
   Current PC        : 0xfffffffc
   Current CR        : 0x00000000
   Current MSR       : 0x00000200
   Current LR        : 0x00000000
   Current CCSRBAR   : 0x0_ff700000
eval8572>rdspr 624
SPR  624 : 0x00000001            1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

but it can be set now from the BDI telnet console:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
eval8572>RMSPR 624 0x100f0000
eval8572>rdspr 624
SPR  624 : 0x100f0000    269418496
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Am I missing something obvious? Can someone please share a BDI config
file for 8572?

TIA,
--
Vadim


More information about the U-Boot mailing list