From: Ajit Kumar Date: Wed, 9 Feb 2005 21:09:44 +0530 Subject: [U-Boot-Users] u-boot crashing in 'm8260_cpm_reset' In-Reply-To: <20050209042708.8DDE18987F@sc8-sf-spam1.sourceforge.net> Message-ID: <200502091606.j19G6sC04159@mail.deccanetworld.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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