Skip to contentSkip to conversation

u-boot crashing in 'm8260_cpm_reset'

U-Boot-Users Ajit Kumar 2 participants 2 messages Feb 9, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Ajit Kumar

author
#1 lore raw

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20050209/03f8560e/attachment.htm

#2 lore raw
Quoted 6 lines · In message <[email protected]> you wrote:

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 .

Can you access other entries of the global data structure without problems?

Quoted 2 lines

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

Don't do this, please. The source is on the CVS Server, so you are just wating bandwidht.

Quoted 6 lines

------=_NextPart_000_0032_01C50EEB.AE41F9F0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =

And NEVER post HTML to this list!

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
Due to lack of disk space, this fortune database has been discontinued.