Skip to contentSkip to conversation

u-boot hangs right at beginning

U-Boot-Users Glenson Muthedan 2 participants 4 messages Jun 24, 2004 – Jun 25, 2004

lore
Share & tools
lore
#0 lore raw

Hello!

I had U-Boot-0.4.0 running on my custom board(based on PXA250) quite good. But I've troubles to get U-Boot-1.1.1 running. It hangs very early in the bootloading procedure: before relocation and before any console output. Trying to debug with GDB and BDI2000, I get the following response from the board. Especially the address "0x50000000 in setup_end_tag", the value "bd=0x40000000" and the message about exceeding line numbers are quite confusing for me. Can somebody give me atleast a hint, which config-options are related to this.

Thank you very much in advance.
Glenson.

------------------------
root at linux ~/boot/u-boot-1.1.1: arm-linux-gdb u-boot

GNU gdb 5.3
...
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux"... (gdb) target remote bdi:2001
Remote debugging using bdi:2001
0x50000000 in setup_end_tag (bd=0x40000000) at armlinux.c:31233 Line number 31233 out of range; armlinux.c has 381 lines.
(gdb) b cpu_init
Breakpoint 1 at 0x58e2fda0: file armlinux.c, line 48384.
(gdb) c
Continuing.
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x58e2fda0: Unknown error 4294967295. The same program may be running in another process.
(gdb)
------------------

Signature · 2 lines
+++ Jetzt WLAN-Router f?r alle DSL-Einsteiger und Wechsler +++
GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl
#1 lore raw
Quoted 6 lines · In message <[email protected]> you wrote:

Trying to debug with GDB and BDI2000, I get the following response from the board. Especially the address "0x50000000 in setup_end_tag", the value "bd=0x40000000" and the message about exceeding line numbers are quite confusing for me. Can somebody give me atleast a hint, which config-options are related to this.

Seems you have a toolchain problem. Either your cross compiler / binutils and/or your GDB seem to be broken.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
You can't have everything... where would you put it?  - Steven Wright
#2 lore raw

Since I don't have any difficulty to compile and run the old U-Boot(0.4.0), can it still be a toolchain problem?

Quoted 20 lines
Quoted 7 lines

Trying to debug with GDB and BDI2000, I get the following response from the
board. Especially the address "0x50000000 in setup_end_tag", the value "bd=0x40000000" and the message about exceeding line numbers are quite confusing for me. Can somebody give me atleast a hint, which config-options
are related to this.

Seems you have a toolchain problem. Either your cross compiler / binutils and/or your GDB seem to be broken.

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de You can't have everything... where would you put it? - Steven Wright

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

Since I don't have any difficulty to compile and run the old U-Boot(0.4.0), can it still be a toolchain problem?

Yes. The toolchain includes the passing of information between compiler and debugger; maybe some of the changes made in U-Boot (like compiler flags etc.t o support gcc-3.x compilers) cause problems with your tool combination.

Best regards,

Wolfgang Denk

Signature · 6 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"I believe the use of noise to make  music  will  increase  until  we
reach  a  music  produced  through  the aid of electrical instruments
which will make available for musical purposes  any  and  all  sounds
that can be heard."                        - composer John Cage, 1937