Hi,
i am using the Toshiba TMPA900 eval board.
And i am trying to get linux running on it.
I succesfully got openocd run and connected to the board to flash
the bootloader u-boot. Which it got from denex using git
git clone git://git.denx.de/u-boot.git
The problem is that that version does not seem to work.
In the hyperterminal ( minicom, gtkterm, … ) i see it coming
up but it stucks at DRAM …
So i started trying to get gdb working to debug the u-boot.
Thats where i got stuck.
I change to the directory containing the u-boot and start the
gdb with:
arm-linux-gdb -x /home/andi/DATA_work/gdbinit u-boot
The sript gdbinit contains:
target remote localhost:3333
set output-radix 16
monitor gdb_breakpoint_override hard
define reset
monitor reset init
end
the reaction is:
GNU gdb 6.8
Copyright (C) 2008 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=i386-pc-linux-gnu --target=arm-linux-uclibcgnueabi”…
warning: Can not parse XML memory map; XML support was disabled at compile time
0x00000000 in ?? ()
(gdb) l
1 /*
2 * armboot - Startup Code for ARM926EJS CPU-core
3 *
4 * Copyright (c) 2003 Texas Instruments
5 *
6 * ----- Adapted for OMAP1610 OMAP730 from ARM925t code ------
7 *
8 * Copyright (c) 2001 Marius Gr�ger <mag@sysgo.de>
9 * Copyright (c) 2002 Alex Z�pke <azu@sysgo.de>
10 * Copyright (c) 2002 Gary Jennejohn <gj@denx.de>
The list command seems to find code.
But when i then try to do a step with the si comand i get:
(gdb) si
Warning:
Cannot insert breakpoint -2.
Error accessing memory address 0x40300000: Unknown error 4294967295.
(gdb)
The openocd windows shows:
Open On-Chip Debugger 0.5.0-dev-00677-g7cd2617-dirty (2010-12-27-22:43)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Warn : Adapter driver ‘jlink’ did not declare which transports it allows; assuming legacy JTAG-only
Info : only one transport option; autoselect ‘jtag’
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
adapter_nsrst_delay: 20
jtag_ntrst_delay: 20
dcc downloads are enabled
Warn : use ‘tmpa910.cpu’ as target identifier, not ‘0’
Info : J-Link initialization started / target CPU reset initiated
Info : J-Link ARM Lite V8 compiled Jul 10 2009 17:00:06
Info : JLink caps 0xb9ff7bbf
Info : JLink hw version 80000
Info : JLink max mem block 9800
Info : Vref = 3.293 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 0 TRST = 0
Info : J-Link JTAG Interface ready
Info : RCLK (adaptive clock speed)
Info : JTAG tap: tmpa910.cpu tap/device found: 0x07926031 (mfg: 0x018, part: 0x7926, ver: 0x0)
Info : Embedded ICE version 6
Info : tmpa910.cpu: hardware has 2 breakpoint/watchpoint units
Info : accepting ‘telnet’ connection from 4444
Info : JTAG tap: tmpa910.cpu tap/device found: 0x07926031 (mfg: 0x018, part: 0x7926, ver: 0x0)
target state: halted
target halted in ARM state due to breakpoint, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
Warn : NOTE! Severe performance degradation without fast memory access enabled. Type ‘help fast’.
Info : accepting ‘gdb’ connection from 3333
Info : Flash Manufacturer/Device: 0x0001 0x227e
Warn : configuration specifies 0x1000000 size, but a 0x2000000 size flash was found
Warn : acknowledgment received, but no packet pending
Warn : memory read caused data abort (address: 0xfffffffc, size: 0x4, count: 0x1)
Warn : memory read caused data abort (address: 0xfffffffc, size: 0x4, count: 0x1)
Error: timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 2c5
Error: timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 2c5
Error: could not add breakpoint
Any ideas what i might do wrong. I am a newbie to embedded linux. And hope to get some help/ideas in
this forum.
Thanks,
Andreas