[#6859] Fail to test KGDB through uart port in trunk after kernel is upgraded to 3.1.0
Submitted By: Vivi Li
Open Date
2011-10-28 05:54:21 Close Date
2012-01-17 04:16:23
Priority:
Medium Assignee:
Sonic Zhang
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
ALL Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
gcc4.3-2011R1-RC2
App binary format:
N/A
Summary: Fail to test KGDB through uart port in trunk after kernel is upgraded to 3.1.0
Details:
Fail to test KGDB through uart port in trunk after kernel is upgraded from 3.0.0 to 3.1.0.
Last passed version:
--
kernel: Linux release 3.0.0-ADI-2011R1-pre-svn10099, build #36 Wed Oct 26 16:50:57 CST 2011
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2011R1-RC2)
user-dist: release svn-10452, build #490 Wed Oct 26 16:50:21 CST 2011
--
First failed version:
--
kernel: Linux release 3.1.0-ADI-2012R1-pre-svn10106, build #42 Thu Oct 27 17:44:00 CST 2011
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2011R1-RC2)
user-dist: release svn-10454, build #578 Thu Oct 27 17:43:23 CST 2011
--
Bellow is the error log:
--
Starting Kernel at = 001c7dd0
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
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 (34 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
bio: create slab <bio-0> at 0
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@7
Switching to clocksource bfin_cs_cycles
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
debug-mmrs: setting up Blackfin MMR debugfs
msgmni has been set to 93
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART
kgdb: Registered I/O driver kgdboc.
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-08-11 05:21:47 UTC (19200107)
Freeing unused kernel memory: 7312k 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" <80> 'Y88b \___________________________________/
:8P ' :888
8a. : _a88P For further information, check out:
._/"Yaa_: .| 88P| - http://blackfin.uclinux.org/
\ YP" `| 8P `. - http://docs.blackfin.uclinux.org/
/ \.___.d| .' - http://www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - http://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.18.4 (2011-10-27 06:57:48 CST) hush - the humble shell
root:/> ^[[6nversion
kernel: Linux release 3.1.0-ADI-2012R1-pre-svn10106, build #42 Thu Oct 27 17:44:00 CST 2011
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2011R1-RC2)
user-dist: release svn-10454, build #578 Thu Oct 27 17:43:23 CST 2011
root:/> successful boot attempt
************** STEP 3: Start KGDB TEST (uart)
^[[6nifconfig eth0 10.100.4.50
root:/> ^[[6nPHY: 0:01 - Link is Up - 100/Full
?SysRq : DEBUG
Entering KGDB
Prepare KGDB through uart port debug!spawn bfin-uclinux-gdb /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux
^[[?1034hGNU 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
set remotebaud 57600
(gdb)
Case 2 ...PASS
Case 2 ...PASS
target remote /dev/ttyUSB0
Remote debugging using /dev/ttyUSB0
Case 2 ...PASS
Case 2 ...PASS
kgdb_breakpoint () at kernel/debug/debug_core.c:993
993 wmb(); /* Sync point after breakpoint */
(gdb) break kgdb_test
Breakpoint 1 at 0x7f16: file arch/blackfin/kernel/kgdb_test.c, line 54.
(gdb)
Case 3 ...PASS
Case 3 ...PASS
c
Continuing.
Case 4 ...PASS
Case 4 ...PASS
sh: can't execute '?': No such file or directory
root:/> ^[[6n[New Thread 172]
[Switching to Thread 172]
Breakpoint 1, kgdb_test (name=0x165538 "hello world!", len=12, count=85, z=16)
at arch/blackfin/kernel/kgdb_test.c:54
54 {
(gdb)
Case 5 ...PASS
Case 5 ...PASS
hbreak 59
Hardware assisted breakpoint 2 at 0x7f40: file arch/blackfin/kernel/kgdb_test.c, line 59.
(gdb)
Case 6 ...PASS
Case 6 ...PASS
info b
Num Type Disp Enb Address What
1 breakpoint keep y 0x00007f16 in kgdb_test
at arch/blackfin/kernel/kgdb_test.c:54
breakpoint already hit 1 time
2 hw breakpoint keep y 0x00007f40 in kgdb_test_proc_read
at arch/blackfin/kernel/kgdb_test.c:59
(gdb)
Case 7 ...PASS
Case 7 ...PASS
list
49 }
50
51 #endif
52
53 noinline int kgdb_test(char *name, int len, int count, int z)
54 {
55 pr_alert("kgdb name(%d): %s, %d, %d\n", len, name, count, z);
56 count = z;
57 return count;
58 }
(gdb)
Case 8 ...PASS
Case 8 ...PASS
bt
#0 kgdb_test (name=0x165538 "hello world!", len=12, count=85, z=16)
at arch/blackfin/kernel/kgdb_test.c:54
Case 9 ...PASS
Case 9 ...PASS
#1 0x00007f60 in kgdb_test_proc_read (file=<value optimized out>,
buf=<value optimized out>, count=<value optimized out>, ppos=0x2079eec)
at arch/blackfin/kernel/kgdb_test.c:64
#2 0x0007d540 in proc_reg_read (file=0x248c220,
buf=0xc <Address 0xc out of bounds>, count=85, ppos=0x2079eec)
at fs/proc/inode.c:178
#3 0x00051c7a in vfs_read (file=0x248c220, buf=0x2bf3e88 "",
count=<value optimized out>, pos=0x2079eec) at fs/read_write.c:363
#4 0x00051d90 in sys_read (fd=<value optimized out>, buf=0x2bf3e88 "",
count=4096) at fs/read_write.c:453
#5 0xffa009ee in system_call () at include/linux/thread_info.h:83
(gdb) c
Continuing.
spawn /bin/sh
uclinux50-bf537-9960-1836:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb> ps aux | grep bfin-uclinux-gdb
test 10049 0.9 1.5 38640 32232 pts/3 Ss+ 17:45 0:00 bfin-uclinux-gdb /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux
test 10060 0.0 0.0 3592 732 pts/4 S+ 17:45 0:00 grep bfin-uclinux-gdb
uclinux50-bf537-9960-1836:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb> kill -9 `pidof bfin-uclinux-gdb`
uclinux50-bf537-9960-1836:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>
--
Follow-ups
--- Sonic Zhang 2012-01-12 01:28:21
Fixed. move 2nd hb one line up in testcase.
--- Vivi Li 2012-01-17 04:45:06
OK now.
Close it.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.linux.kgdb_uart application/octet-stream 42792 Vivi Li