From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?q?Markus_Klotzb=FCcher?= Date: Mon, 19 Jun 2006 12:30:27 +0200 Subject: [U-Boot-Users] PROBLEM ABOUT PORTING U-BOOT-1.1.4 TO INTEL PXA255 BOARD In-Reply-To: (scut.paradise@gmail.com's message of "Mon, 19 Jun 2006 16:38:32 +0800") References: Message-ID: <87y7vtigjg.fsf@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Scut Paradise, If you think you're going to get more help the more times you resend you message, you are probably wrong. "???" writes: > int board_init (void) > { > DECLARE_GLOBAL_DATA_PTR; > > /* memory and cpu-speed are setup before relocation */ > /* so we do _nothing_ here */ > > /* arch number of cerf PXA Board */ > gd->bd->bi_arch_number = MACH_TYPE_XHYPER255; > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~It stops here!!!! > > /* adress of boot parameters */ > gd->bd->bi_boot_params = 0xa0000100; > > return(0); The fact that the "DECLARE_GLOBAL_DATA_PTR" is defined inside board_init indicates that you are not using top of the tree U-Boot. Please switch to current sourcen first of all. The DECLARE_GLOBAL_DATA_PTR statement needs to be defined globally due to gcc misbehaviour. Regards Markus Klotzbuecher