[U-Boot-Users] beginner with u-boot
Pham, Son
SPham at WhiteRockNetworks.com
Thu Feb 9 01:47:45 CET 2006
Hello,
I start using Abatron BDI2000/gdb for BDM. I have EST SBC8260 board and try to put u-boot onto this board.
Take me a while to create a correct est8260.cfg file and now I able to "prog 00xFE000000 u-boot.bin BIN"
onto this board at the flash 0xFE000000. After I "reset run", look like u-boot does not relocate to RAM.
I can tell it maps to 0x40000000:
BDI>md 0x40000000
40000000 : 0e0e0e0e 0e0e0e0e 34343434 34343434 ........44444444
40000010 : 8e8e8e8e 8e8e8e8e 05050505 05050505 ................
BDI>md 0x40000100
40000100 : 3aa00001 60000000 48000010 00000000 :...`...H.......
40000110 : 3aa00002 48000004 7ca000a6 4800305d :...H...|...H.0]
40000120 : 3c60f001 80830104 38a07fff 7c842838 <`......8...|.(8
40000130 : 90830104 3c604000 60630000 38630148 ....<`@.`c..8c.H
40000140 : 7c6803a6 4e800020 3c60f000 60613f80 |h..N.. <`..`a?.
40000150 : 38000000 9401fffc 9401fffc 48000005 8...........H...
40000160 : 7dc802a6 800e33fc 7dc07214 48003899 }.....3.}.r.H.8.
40000170 : 7ea3ab78 48004629 00000000 00000000 ~..xH.F)........
BDI>md 0
00000000 : 00000000 00000000 00000000 00000000 ................
00000010 : 00000000 00000000 00000000 00000000 ................
BDI>i
Target CPU : MPC82xx (Groucho)
Target state : debug mode
Debug entry cause : <reserved 0>
Current PC : 0x00000210
Current CR : 0x20000002
Current MSR : 0x00000000
Current LR : 0x40003c0c
Look like it stops at 0x00000210. Also I could not able to write to 0x0.
I followed section 10.1.1 Debugging of U-boot before relocation and got some error:
[root at penrock u-boot-1.1.4]# /opt/eldk/usr/bin/ppc_82xx-gdb u-boot
GNU gdb Red Hat Linux (6.3.0.0-1.21_1rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-redhat-linux --target=ppc-linux"...
(gdb) target remote 192.168.43.88:2001
Remote debugging using 192.168.43.88:2001
0x00000210 in ?? ()
(gdb) b cpu_init_f
Breakpoint 1 at 0x40003a1c: file cpu_init.c, line 111.
(gdb) c
Continuing.
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x40003a1c: Unknown error 4294967295.
This EST SBC8260 has 16M RAM, so I changed the sbc8260.h from 64 to 16.
Even I tried both and have the same problem.
I am a beginner of BDI2000/gdb, EST8260 and U-boot. I would like someone explain me
what I already done and please show me how to debug u-boot and show me to make
uboot is run on this board. Please details as much as you can.
I am looking forward.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060208/9e60a8bf/attachment.htm
More information about the U-Boot
mailing list