2011-06-03 06:04:13     debugging over serial.......connection between host and platform issue, while using FEL

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

2011-06-03 06:04:13     debugging over serial.......connection between host and platform issue, while using FEL

Chandrashekhar Lavania (INDIA)

Message: 100985   

 

Hi,

 

I am using Fedora Electronic Lab as my host OS. My vesion is a spin of Fedora 14.

 

FEL can be found at http://spins.fedoraproject.org/fel/

 

I am using 2010R1-RC4 toolchain, and the 2010R1-RC5 distribution

 

I was trying to debug a simple helloworld application over serial.

 

This is what i did:

 

1. Removed any console mapping by removing the "earlyprintk" and "console" mappings from the uboot environment variable ramargs.

 

2. Entered platform using telnet.

 

3. fired the following commands on the platform:

 

root:/home> getty -n 115200 /dev/ttyBF1

 

root:/home> gdbserver /dev/ttyBF1 /home/Eclipse_Test_FDPIC

 

Here my executable is called Eclipse_Test_FDPIC

 

4. fired the following commands on host

 

[root@localhost home]# bfin-linux-uclibc-gdb -b 115200 Eclipse_Test_FDPIC

 

It enters the gdb prompt

 

gdb> target remote /dev/ttyUSB0

 

Now it hangs .

 

 

 

Then I used the same board, same OS image, same uboot configurations (ramargs etc.), same toolchains, with ubuntu 9.10

 

The same thing worked and the connection got established when I used Ubuntu 9.10

 

Any idea what may be causing this issue?

 

 

 

If I fire the dmesg | grep tty on my board I get the following:

 

root:/>dmesg | grep tty

 

console [tty0] enabled, bootconsole disabled

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART

 

Regards,

 

Shekhar

QuoteReplyEditDelete

 

 

2011-06-03 09:56:18     Re: debugging over serial.......connection between host and platform issue, while using FEL

Mike Frysinger (UNITED STATES)

Message: 100988   

 

run `stty` on both distros to see if the options are the same

QuoteReplyEditDelete

 

 

2011-06-06 05:21:00     Re: debugging over serial.......connection between host and platform issue, while using FEL

Chandrashekhar Lavania (INDIA)

Message: 101009   

 

Hi Mike,

 

The result of stty is same for both:

 

 

for FEL 14

 

[liveuser@localhost ~]$ stty

speed 38400 baud; line = 0;

eol = M-^?; eol2 = M-^?; swtch = M-^?;

ixany iutf8

 

 

for Ubuntu 9.10

 

uclinux@ubuntu:~$ stty

speed 38400 baud; line = 0;

eol = M-^?; eol2 = M-^?; swtch = M-^?;

ixany iutf8

 

Regards,

Shekhar

Attachments

    Outcomes