[#4837] kgdb backtrace stop on bf518f and bf526 ezbrd
Submitted By: Mingquan Pan
Open Date
2009-01-22 05:00:48 Close Date
2010-06-11 04:20:42
Priority:
Medium Assignee:
Sonic Zhang
Status:
Closed Fixed In Release:
N/A
Found In Release:
2009R1-RC6 Release:
Category:
N/A Board:
N/A
Processor:
BF518 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Not reproducible
Uboot version or rev.:
Toolchain version or rev.:
Jan 17,2009
App binary format:
N/A
Summary: kgdb backtrace stop on bf518f and bf526 ezbrd
Details:
kgdb backtrace stop on bf518f and bf526 ezbrd.
## Booting kernel from Legacy Image at 02000000 ...
Image Name: Linux-2.6.28-ADI-2009R1-pre-svn6
Created: 2009-01-19 13:57:11 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 3411197 Bytes = 3.3 MB
Load Address: 00001000
Entry Point: 001886cc
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001886cc
Linux version 2.6.28-ADI-2009R1-pre-svn6027 (test@51x) (gcc version 4.1.2 (ADI svn)) #6 Mon Jan 19 21:57:04 CST 2009
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00102aa0
rodata = 0x00102aa0-0x00157350
bss = 0x00157350-0x0016b88c
data = 0x0016b88c-0x0017c000
stack = 0x0017a000-0x0017c000
init = 0x0017c000-0x00632000
available = 0x00632000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 3
Blackfin support (C) 2004-2008 Analog Devices, Inc.
Compiled for ADSP-BF518 Rev 0.0
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 125 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-through)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: console=ttyBF0,57600 kgdboe=@10.100.4.50/,@10.100.4.174/
kgdboe: local port 6443
kgdboe: local IP 10.100.4.50
kgdboe: interface eth0
kgdboe: remote port 6442
kgdboe: remote IP 10.100.4.174
kgdboe: remote ethernet address ff:ff:ff:ff:ff:ff
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console [ttyBF0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 57584k/65536k RAM, (4824k init code, 1030k kernel code, 486k data, 1024k dma, 584k reserved)
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)
PDA for CPU0 reserved at 00158344
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
ezbrd_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
msgmni has been set to 112
io scheduler noop registered (default)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART
brd: module loaded
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
kgdboe: local port 6443
kgdboe: local IP 10.100.4.50
kgdboe: interface eth0
kgdboe: remote port 6442
kgdboe: remote IP 10.100.4.174
kgdboe: remote ethernet address ff:ff:ff:ff:ff:ff
kgdboe: device eth0 not up yet, forcing it
dma_alloc_init: dma_page @ 0x03a31000 - 256 pages at 0x03f00000
kgdboe: carrier detect appears untrustworthy, waiting 4 seconds
PHY: 0:01 - Link is Up - 100/Full
kgdb: Registered I/O driver kgdboe.
kgdboe: debugging over ethernet enabled
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 2004-06-04 00:51:23 UTC (1086310283)
Freeing unused kernel memory: 4824k freed
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
8`._.' Y8. \ | |__ | | | | | |_| | / \ |
d/ `8b. \ \____||_|_| |_|\____|/_/\_\ |
dP . Y8b. \ For embedded processors including |
d8:' " `::88b \ the Analog Devices Blackfin /
d8" 'Y88b \___________________________________/
:8P ' :888
8a. : _a88P For further information, check out:
._/"Yaa_: .| 88P| - blackfin.uclinux.org/
\ YP" `| 8P `. - docs.blackfin.uclinux.org/
/ \.___.d| .' - www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.13.2 (2009-01-19 19:13:02 CST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/>
#### Debugging is through ethernet port.
************** STEP 3: Start KGDB TEST
ifconfig eth0 10.100.4.50
root:/> spawn bfin-uclinux-gdb /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux
GNU gdb 6.6
Copyright (C) 2006 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=i686-pc-linux-gnu --target=bfin-uclinux"...
(gdb)
Case 1 ...PASS
Case 1 ...PASS
target remote udp:10.100.4.50:6443
warning: The remote protocol may be unreliable over UDP.
Some events may be lost, rendering further debugging impossible.
Remote debugging using udp:10.100.4.50:6443
kgdb_breakpoint () at kernel/kgdb.c:1722
Case 2 ...PASS
Case 2 ...PASS
1722 atomic_set(&kgdb_setting_breakpoint, 0);
(gdb) break kgdb_test
Breakpoint 1 at 0x872a: file arch/blackfin/kernel/kgdb_test.c, line 54.
Case 3 ...PASS
Case 3 ...PASS
(gdb) c
Continuing.
Case 4 ...PASS
Case 4 ...PASS
root:/> [New Thread 145]
[Switching to Thread 145]
Breakpoint 1, kgdb_test (name=0x877c "J谩聽每\n谩\024\003b", len=1062572, count=12, z=85) at arch/blackfin/kernel/kgdb_test.c:54
54 printk(KERN_DEBUG "kgdb name(%d): %s, %d, %d\n", len, name, count, z);
Case 5 ...PASS
Case 5 ...PASS
(gdb) hbreak 56
Hardware assisted breakpoint 2 at 0x8750: file arch/blackfin/kernel/kgdb_test.c, line 56.
(gdb)
Case 6 ...PASS
Case 6 ...PASS
info b
Num Type Disp Enb Address What
1 breakpoint keep y 0x0000872a in kgdb_test at arch/blackfin/kernel/kgdb_test.c:54
breakpoint already hit 1 time
2 hw breakpoint keep y 0x00008750 in kgdb_test at arch/blackfin/kernel/kgdb_test.c:56
Case 7 ...PASS
Case 7 ...PASS
(gdb) list
49 #endif
50
51
52 int kgdb_test(char *name, int len, int count, int z)
53 {
54 printk(KERN_DEBUG "kgdb name(%d): %s, %d, %d\n", len, name, count, z);
55 count = z;
56 return count;
57 }
58
(gdb)
Case 8 ...PASS
Case 8 ...PASS
bt
#0 kgdb_test (name=0x877c "J谩聽每\n谩\024\003b", len=1062572, count=12, z=85) at arch/blackfin/kernel/kgdb_test.c:54
Case 9 ...PASS
Case 9 ...PASS
#1 0x00001000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) c
Continuing.
cat /proc/kgdbtest
spawn /bin/sh
51x:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb> ps aux | grep bfin-uclinux-gdb
test 4698 0.9 2.5 30784 25812 pts/8 Ss+ 21:58 0:00 bfin-uclinux-gdb /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux
test 4719 0.0 0.0 3064 712 pts/9 R+ 21:58 0:00 grep bfin-uclinux-gdb
51x:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb> kill -9 `pidof bfin-uclinux-gdb`
51x:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>
Case 11 ...FAIL
Follow-ups
--- Sonic Zhang 2009-02-05 03:47:32
Can't replicate.
Case 8 ...PASS
bt
#0 kgdb_test (name=0x877c "Já ÿ\ná\024\003b", len=1102052,
count=12, z=85)
at arch/blackfin/kernel/kgdb_test.c:54
Case 9 ...PASS
#1 0x00001000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) c
Continuing.
cat /proc/kgdbTrying 100/FULL
test
kgdb name(12): hello world!, 85, 16
Case 10 ...PASS
Breakpoint 2, kgdb_test (name=0x877c "Já ÿ\ná\024\003b",
len=1102052, count=12, z=16)
at arch/blackfin/kernel/kgdb_test.c:56
56 return count;
Case 11 ...PASS
(gdb) print z
$1 = 16
Case 12 ...PASS
(gdb) c
Continuing.
L1(before change) : data variable addr = 0xff800000, data value is 0
L1 : code function addr = 0xffa00314
L1(after change) : data variable addr = 0xff800000, data value is 10
Case 12 ...PASS
[New Thread 223]
[Switching to Thread 223]
Breakpoint 1, kgdb_test (name=0x877c "Já ÿ\ná\024\003b",
len=1102052, count=12, z=85)
at arch/blackfin/kernel/kgdb_test.c:54
54 printk(KERN_DEBUG "kgdb name(%d): %s, %d, %d\n", len,
name, count, z);
(gdb) hbreak kgdb_l1_test
Hardware assisted breakpoint 3 at 0xffa00318: file
arch/blackfin/kernel/kgdb_test.c, line 29.
Case 13 ...PASS
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found