Hi,

 

I am a newbie to uboot and I am trying to port uboot onto a Rattler board (MPC8280).

I am using Wiretap CCS to debug the uboot.

 

After I run the code, it always gets a system reset (found by attaching the wiretap). The cause of this system reset is the following:

 

    “‘gd->dp_alloc_base = CPM_DATAONLY_BASE;”. This is the line 1 in commproc.c, after executing this line, uboot gets a system reset . 

 

For your reference I am attaching the complete code of m8260_cpm_reset() function:

 

 

cpu/mpc8260/commproc.c

 

m8260_cpm_reset(void)

{

 

      DECLARE_GLOBAL_DATA_PTR;

 

      volatile immap_t *immr = (immap_t *)CFG_IMMR;

 

      volatile ulong count;

 

      /* Reclaim the DP memory for our use.            */

 

1     gd->dp_alloc_base = CPM_DATAONLY_BASE;

 

2     gd->dp_alloc_top = gd->dp_alloc_base + CPM_DATAONLY_SIZE;

 

      /*    Reset CPM             */

 

3     immr->im_cpm.cp_cpcr = CPM_CR_RST;

 

 

}

 

IMMR address for the Rattler board is 0xFF000000.

 

CPM_DATAONLY_BASE is 128 (in cpm_8260.h).

CPM_DATAONLY_SIZE is (8 * 1024) - CPM_DATAONLY_BASE (in cpm_8260.h).

CPM_CR_RST is 0x80000000 (in cpm_8260.h).

 

 

 

Regards,

Ajit Kumar