From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Wegner Date: Thu, 14 Jan 2010 17:15:33 +0100 Subject: [U-Boot] U-Boot (porting) problem on MCF5445x board In-Reply-To: <20100114143353.GC4092@leila.ping.de> References: <20100114143353.GC4092@leila.ping.de> Message-ID: <20100114161533.GD4092@leila.ping.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, two more observations: - there are some entries in the linker script reminiscent from and embedded environment forcing .text from start.o, traps.o, interrupts.o, dlmalloc.o and zlib.o to the beginning of the .text section; if I remove these, U-Boot crashes without any output (did not yet find out where) - when debugging properly, I can break in console.c:printf() and get these: Breakpoint 1, printf (fmt=0x40030000 "`? RR\213$(") at console.c:381 381 i = vsprintf(printbuffer, fmt, args); (gdb) c Continuing. Breakpoint 1, printf ( fmt=0x4003e556 "Freescale MCF%d (Mask:%01x Version:%x)\n") at console.c:381 381 i = vsprintf(printbuffer, fmt, args); (gdb) c 0x40030000 is in the middle of the .text section. Furthermore, when stepping further with 'c' U-Boot again crashes sometime before printing the unexpected exception report. I do not understand where this different behaviour with and without breakpoints results from. Maybe this gives someone more experienced a hint what I am doing wrong. Regards, Wolfgang