[#5803] kgdb fails to connect on trunk head kernel

Document created by Aaronwu Employee on Sep 5, 2013
Version 1Show Document
  • View in full screen mode

[#5803] kgdb fails to connect on trunk head kernel

Submitted By: Mingquan Pan

Open Date

2009-12-30 05:03:34     Close Date

2010-01-03 23:13:51

Priority:

Medium     Assignee:

Sonic Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

4.3.4 (ADI-trunk/svn-3771)

App binary format:

N/A     

Summary: kgdb fails to connect on trunk head kernel

Details:

 

kgdb fails to connect on trunk head kernel now.

 

## Booting kernel from Legacy Image at 02000000 ...

   Image Name:   bf537-2.6.32.2-ADI-2010R1-pre-sv

   Created:      2009-12-28  21:40:16 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    4705012 Bytes =  4.5 MB

   Load Address: 00001000

   Entry Point:  001ab910

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001ab910

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)

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 (35 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

bio: create slab <bio-0> at 0

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

NET: Registered protocol family 1

msgmni has been set to 93

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bfin-uart: Blackfin serial driver

bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

brd: module loaded

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

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: 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

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

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1973-02-27 23:27:04 UTC (99703624)

Freeing unused kernel memory: 7260k freed

dma_alloc_init: dma_page @ 0x02920000 - 256 pages at 0x03f00000

                           _____________________________________

        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|            - 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.15.3 (2009-12-28 21:14:30 CST) hush - the humble shell

 

root:/> version

kernel:    Linux release 2.6.32.2-ADI-2010R1-pre-svn8090, build #4 Tue Dec 29 05:39:54 CST 2009

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3771)

user-dist: release svn-9318, build #9 Tue Dec 29 05:37:18 CST 2009

root:/> successful boot attempt

************** STEP 3: Start KGDB TEST (ethernet)

 

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

0x00000480 in ?? ()

(gdb) spawn /bin/sh

db> ps aux | grep bfin-uclinux-gdbrk/cruise/checkouts/uclinux-dist/testsuites/kgd

test     26382  1.5  5.2  31960 26656 pts/3    Ss+  05:41   0:00 bfin-uclinux-gdb /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux

test     26393  0.0  0.1   3064   732 pts/7    S+   05:41   0:00 grep bfin-uclinux-gdb

db> invalid command name "timeout"rk/cruise/checkouts/uclinux-dist/testsuites/kgd

 

 

Last known good version is:

root:/> version^M

kernel:    Linux release 2.6.31.6-ADI-2010R1-pre-svn7891, build #26 Mon Nov 30 22:11:57 CST 2009^M

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3679) ^M

user-dist: release svn-9195, build #816 Mon Nov 30 22:09:13 CST 2009^M

root:/> successful boot attempt

 

 

Follow-ups

 

--- Mike Frysinger                                           2009-12-30 10:23:14

you sure it isnt a bug in your script ?

 

db> invalid command name

"timeout"rk/cruise/checkouts/uclinux-dist/testsuites/kgd

 

--- Mingquan Pan                                             2009-12-30 23:30:41

The timeout here is indeed wrongly used, but this issue firstly is because the

expected string doesn't show up and mismatched, so the script goes to

clean_host_gdb function which include this  misuse. I would revise that. But

here should be some other issue with kgdb.

 

--- Sonic Zhang                                              2009-12-31 01:02:01

Fixed. Rollback my wrong patch.

 

--- Mingquan Pan                                             2010-01-03 23:13:58

It tests ok now. Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes