[#5137] output error in jtag console for u-boot

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

[#5137] output error in jtag console for u-boot

Submitted By: Vivi Li

Open Date

2009-05-18 05:21:08     Close Date

2009-06-12 06:37:02

Priority:

Medium High     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

2009R1

Found In Release:

2009R1     Status:

Closed

Board:

N/A     Processor:

BF537

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: output error in jtag console for u-boot

Details:

 

For jtag console in u-boot, there's seldom any output in netcat.

Bellow is the steps and log.

 

1. run gdbproxy on host pc

--

Linux123-ViviLi:/home/test/uboot/u-boot.2009rc1/u-boot-2008.10 # bfin-gdbproxy bfin

 

Remote proxy for GDB, v0.7.2, Copyright (C) 1999 Quality Quorum Inc.

MSP430 adaption Copyright (C) 2002 Chris Liechti and Steve Underwood Blackfin adaption Copyright (C) 2008 Analog Devices, Inc.

 

GDBproxy comes with ABSOLUTELY NO WARRANTY; for details use `--warranty' option. This is Open Source software. You are welcome to redistribute it under certain conditions. Use the '--copying' option for details.

 

Connected to libftdi driver.

IR length: 5

Chain length: 1

Device Id: 00100010011111001000000011001011 (0x00000000227C80CB)

  Manufacturer: Analog Devices

  Part(0):         BF537

  Stepping:     2

  Filename:     /opt/uClinux/bfin-elf/bin/../share/urjtag/analog/bf537/bf537

warning:   bfin: no board selected, BF537 is detected

notice:    bfin: jc: waiting on TCP port 2001

notice:    bfin-gdbproxy: waiting on TCP port 2000

--

 

2. run gdb on host pc.

--

test@Linux123-ViviLi:~/uboot/u-boot.2009rc1/u-boot-2008.10> bfin-uclinux-gdb 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) target remote :2000

Remote debugging using :2000

0x03f80a78 in ?? ()

(gdb)

--

 

3. run netcat on host pc.

--

test@Linux123-ViviLi:~> netcat localhost 2001

--

 

4. continue to run in gdb.

--

(gdb) c

Continuing.

--

Then message shows up in gdbproxy:

notice:    bfin-gdbproxy: connected

 

5. reset board and set env vars std{out,err,in} to "jtag" in minicom.

---

bfin> reset

 

U-Boot 2008.10-svn1868 (ADI-2009R1-rc1) (May 18 2009 - 13:07:13)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E2:22:FE:47:DB

Hit any key to stop autoboot:  0

bfin> set stderr jtag;set stdout jtag;set stdin jtag

--

 

6. type u-boot commands and check output in netcat.

--

test@Linux123-ViviLi:~> netcat localhost 2001

bfin

help

ls                                                                     |

--

 

Follow-ups

 

--- Vivi Li                                                  2009-05-18 05:59:24

When I only set stdout to jtag and type a command in serial console, for example

"echo", it shows "e? c? h? o?" in netcat.

 

When I only set stdin to jtag, and type a command in netcat, I can see correct

result in serial console.

 

--- Mike Frysinger                                           2009-05-21 21:09:00

try defining CONFIG_JTAG_CONSOLE_TIMEOUT to like 5000

 

also, there's a helper script you should use:

./tools/jtagconsole

 

--- Vivi Li                                                  2009-06-12 04:38:04

It can work when define CONFIG_JTAG_CONSOLE_TIMEOUT to 5000.

 

--- Vivi Li                                                  2009-06-12 06:37:02

I was testing with 500, not 5000. And 500 is enough.

Modification is committed.

Close this bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes