[U-Boot] U-boot debug with BDI3000

Hi,
Does anyone have a working BDI2000/3000 configuration for CN5010 dev.board? I need it to have DDR and NOR flash support so that I can flash a new bootloader into NOR.
Thanks!
Shuyou

Dear sywang,
Am 07.10.2010 um 09:49 schrieb sywang:
Hi,
Does anyone have a working BDI2000/3000 configuration for CN5010 dev.board?
Yes I have one, but not on-hand currently. Will have a look for it tomorrow or on monday.
I need it to have DDR and NOR flash support so that I can flash a new bootloader into NOR.
AFAIR it is enough to setup bootbus for correct sizes. TLB is not necessary to get access to NOR cause this is already setup by reset. It is not as fast as it could be but you have at least access to NOR and erase/prog works.
regards
Andreas Bießmann

Andreas,
Thanks for your help. When you have it, please send an email with the configuration file to me.
Thanks! Shuyou
-----Original Message----- From: Andreas Bießmann [mailto:andreas.devel@googlemail.com] Sent: 2010年10月8日 0:14 To: sywang Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] U-boot debug with BDI3000
Dear sywang,
Am 07.10.2010 um 09:49 schrieb sywang:
Hi,
Does anyone have a working BDI2000/3000 configuration for CN5010
dev.board?
Yes I have one, but not on-hand currently. Will have a look for it tomorrow or on monday.
I need it to have DDR and NOR flash support so that I can flash a new bootloader into NOR.
AFAIR it is enough to setup bootbus for correct sizes. TLB is not necessary to get access to NOR cause this is already setup by reset. It is not as fast as it could be but you have at least access to NOR and erase/prog works.
regards
Andreas Bießmann

While debugging u-boot by BDI3000 and GDB, I have the following issue. Do you encounter such a problem? How to fix it? Any suggestions are warmly welcome?
(gbd) n [wangsy@localhost u-boot]$ /home/wangsy/gdb-mips/bin/mips-linux-gdb u-boot-octeon_bbgw_ref_failsafe GNU gdb (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=mips-linux". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /home/wangsy/uboot_porting/OCTEON-SDK_1008_ago/bootloader/u-boot/u-boot-octe on_bbgw_ref_failsafe...done. (gdb) target extended-remote 192.168.5.20:2001 Remote debugging using 192.168.5.20:2001 0x1fc0003c in ?? () (gdb) n warning: GDB can't find the start of the function at 0x1fc0003c.
GDB is unable to find the start of the function at 0x1fc0003c and thus can't determine the size of that function's stack frame. This means that GDB may be unable to access that stack frame, or the frames below it. This problem is most likely caused by an invalid program counter or stack pointer. However, if you think GDB should simply search farther back from 0x1fc0003c for code which looks like the beginning of a function, you can increase the range of the search using the `set heuristic-fence-post' command. Cannot find bounds of current function (gdb) set heuristic-fence-post 0 (gdb) n warning: GDB can't find the start of the function at 0x1fc0003c. Cannot find bounds of current function (gdb) n Cannot find bounds of current function (gdb) n Cannot find bounds of current function
Thanks! Shuyou
participants (2)
-
Andreas Bießmann
-
sywang