Menu

#299 kgdb test over ethernet fails on bf609-ezkit

master head
closed
None
low
fixed
ALL
2015-05-07
2015-03-20
panmingquan
No

kgdb test over ethernet fails on bf609-ezkit.

bfin> bootm 0x2000000

Booting kernel from Legacy Image at 02000000 ...

Image Name: bf609-0.0-4.0.0-rc3-ADI-2014R1-p
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 7664397 Bytes = 7.3 MiB
Load Address: 00001000
Entry Point: 00339bac
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 00339bac
console [ttyBF0] enabled
bootconsole [early_shadow0] disabled
physmap platform flash device: 01000000 at b0000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x008821
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
Creating 3 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000080000 : "bootloader(nor)"
0x000000080000-0x000000480000 : "linux kernel(nor)"
0x000000480000-0x000001000000 : "file system(nor)"
m25p80 spi0.59: w25q32 (4096 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x000000000000-0x000000080000 : "bootloader(spi)"
0x000000080000-0x000000200000 : "linux kernel(spi)"
0x000000200000-0x000000400000 : "file system(spi)"
adi-spi3 adi-spi3.0: registered ADI SPI controller spi0
adi-spi3 adi-spi3.1: registered ADI SPI controller spi1
CAN device driver interface
bfin_can bfin_can.0: bfin_can device registered(&reg_base=ffc00a00, rx_irq=47, tx_irq=48, err_irq=49, sclk=100000000)
stmmaceth stmmaceth.0: no reset control found
stmmac - user ID: 0x10, Synopsys ID: 0x36
Ring mode enabled
DMA HW capability register supported
Enhanced/Alternate descriptors
Enabled extended descriptors
RX Checksum Offload Engine supported (type 2)
Wake-Up On Lan supported
Enable RX Mitigation via HW Watchdog Timer
libphy: stmmac: probed
eth0: PHY ID 20005c90 at 1 IRQ POLL (stmmac-0:01) active
netpoll: kgdboe: local port 6443
netpoll: kgdboe: local IPv4 address 10.100.4.50
netpoll: kgdboe: interface 'eth0'
netpoll: kgdboe: remote port 6442
netpoll: kgdboe: remote IPv4 address 10.100.4.174
netpoll: kgdboe: remote ethernet address ff:ff:ff:ff:ff:ff
netpoll: kgdboe: device eth0 not up yet, forcing it
eth0: device MAC address 02:80:ad:20:31:e8
dma_alloc_init: dma_page @ 0x04f1c000 - 256 pages at 0x07f00000
netpoll: kgdboe: carrier detect appears untrustworthy, waiting 4 seconds
stmmaceth stmmaceth.0 eth0: Link is Up - 100Mbps/Full - flow control off
KGDB: Registered I/O driver kgdboe
kgdboe: debugging over ethernet enabled
usbcore: registered new interface driver usb-storage
input: bfin-rotary as /devices/platform/bfin-rotary/input/input0
i2c /dev entries driver
Driver 'mmcblk' needs updating - please use bus_type methods
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 t)
can: netlink gateway (rev 20130117) max_hops=1
console [netcon0] enabled
netconsole: network logging started
Freeing unused kernel memory: 5856K (00336000 - 008ee000)

BusyBox v1.23.1 (2015-03-18 04:26:28 CST) hush - the humble shell

root:/> successful boot attemptifconfig eth0 10.100.4.50
root:/> Ethernet may has been activated already!
random: nonblocking pool is initialized
version
kernel: Linux release 4.0.0-rc3-ADI-2014R1-pre-00465-ga43d96b-dirty, build #4 Wed Mar 18 11:34:23 CST 2015
toolchain: /home/test/workspace/src/kernel/label/BF609-EZKIT-UPGRADE/output/host/usr/bin/bfin-linux-uclibc-gcc release gcc version 4.3.5 (ADI-master/git-a2bfd7b)
user-dist: release git-e992474, build #1 Wed Mar 18 04:33:40 CST 2015
root:/>
Linux version: 4.0.0-rc3-ADI-2014R1-pre-00465-ga43d96b-dirty
GCC version: 4.3.5 (ADI-master/git-a2bfd7b)
user-dist version: git-e992474

** STEP 3: Start KGDB TEST (ethernet)

ifconfig eth0 10.100.4.50
root:/> spawn bfin-uclinux-gdb /home/test/workspace/src/kernel/label/BF609-EZKIT-UPGRADE/output/build/linux-custom/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

Case 2 ...PASS

Case 2 ...PASS
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
break kgdb_test
Ignoring packet error, continuing...
spawn /bin/sh
$ ps | grep bfin-uclinux-gdb
$ kill -9 pidof bfin-uclinux-gdb
$
Last passed time: 2015-03-05_02-20-49
User-dist commit f13ae895767028d13d62fd342b7a1fe4f74b4d9a
Kernel commit ffccafc40a4c483d83881044b90b707db4928c93
Testsuites commit 687592984960a8634d690e1d99e1c884f2acf6bd

Case 3 ...FAIL

Case 3 ...FAIL

KGDB TEST (ethernet) FAIL
KGDB TEST (ethernet) ............[FAIL]

Discussion

  • panmingquan

    panmingquan - 2015-03-20

    while kgdb test on bf537 and bf527 are ok.

     
  • Sonic Zhang

    Sonic Zhang - 2015-03-20
    • assigned_to: Sonic Zhang
    • Resolution: none --> assigned
     
  • Sonic Zhang

    Sonic Zhang - 2015-05-05
    • Resolution: assigned --> fixed
     
  • Sonic Zhang

    Sonic Zhang - 2015-05-05
    • save/restore irq status in stmmac poll control function other than disable/enable irq directly
    • avoid check NAPI_STAT_SCHED status when kgdb is active
     
  • panmingquan

    panmingquan - 2015-05-07

    kgdb test over ethernet is ok now.
    close.

     
  • panmingquan

    panmingquan - 2015-05-07
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB