Article [#5577] copy from target to host through serial uart0 has chars distorted

[#5577] copy from target to host through serial uart0 has chars distorted

Submitted By: Mingquan Pan

Open Date

2009-09-29 06:14:11     Close Date

2009-10-15 22:33:57

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

09r1-rc9

App binary format:

N/A     

Summary: copy from target to host through serial uart0 has chars distorted

Details:

copy from target to host through serial uart0 has chars distorted on bf537 stamp.

stty -F /dev/ttyBF0 ispeed 57600 ospeed 57600 -icrnl -ixon igncr -opost ^M^M

-onlcr -isig -icanon -iexten -echo -echoe -echok -echoke -hupcl -echoctl min 1 t^M^M

ime 0^M

root:/> ls^M

^[[00m^[[00mbbb^[[00m                      ^[[00;32mbuild_serial_uart_kernel.exp^[[00m  ^[[00;32mserial_test_log^[[00m^M

^[[00;32mbuild_serial_kernel.exp^[[00m  ^[[00mccc^[[00m                           ^[[00;32mserial_uart_test.exp^[[00m^M

^[[00;32mbuild_serial_kernel_log^[[00m  ^[[00;32mserial_test.exp^[[00m^M

^[[mtest@uclinux56-ad73322-snormtd-df:..testsuites/serial> stty -F /dev/ttyS0 ispeed ^M 57600 ospeed 57600 -icrnl -ixon igncr -opost -onlcr -isig -icanon -iexten -echo ^M -echoe -echok -echoke -hupcl -echoctl min 1 time 0^M

test@uclinux56-ad73322-snormtd-df:..testsuites/serial> ls^M

^[[00m^[[00mbbb^[[00m                      ^[[00;32mbuild_serial_uart_kernel.exp^[[00m  ^[[00;32mserial_test_log^[[00m^M

^[[00;32mbuild_serial_kernel.exp^[[00m  ^[[00mccc^[[00m                           ^[[00;32mserial_uart_test.exp^[[00m^M

^[[00;32mbuild_serial_kernel_log^[[00m  ^[[00;32mserial_test.exp^[[00m^M

^[[mtest@uclinux56-ad73322-snormtd-df:..testsuites/serial> cat /dev/ttyS0 > bbb ^M

cat ccc > /dev/ttyBF0 ^M

root:/> ^M

test@uclinux56-ad73322-snormtd-df:..testsuites/serial> Catted file is got on host.

diff -u bbb ccc ^M

--- bbb 2009-09-28 17:44:51.000000000 +0000^M

+++ ccc 2009-09-28 17:39:15.000000000 +0000^M

@@ -1,4 +1,4 @@^M

-炉00000000 A __etext_l2^M

+00000000 A __etext_l2^M

00000000 A __stext_l2^M

00001000 T _do_one_initcall^M

00001000 T __stext^M

test@uclinux56-ad73322-snormtd-df:..testsuites/serial>

Two files diffs.

Last passed time: 2009_Sep_27_20_54, ucdist ver: 8901, kernel ver: 7475

Case 11 ...FAIL

Running on:

kernel:    Linux release 2.6.31.1-ADI-2010R1-pre-svn7481, build #20 Mon Sep 28 17:36:06 GMT 2009^M

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)^M

user-dist: release svn-8906, build #292 Mon Sep 28 17:35:22 GMT 2009^M

Follow-ups

--- Sonic Zhang                                              2009-10-13 00:06:59

Should include complete tty config parameters.

-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts

--- Mingquan Pan                                             2009-10-15 22:33:57

It is passed now. close.

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

No Files Were Found

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.