[#4567] cat file through extensive uart port diffs with the original file

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

[#4567] cat file through extensive uart port diffs with the original file

Submitted By: Mingquan Pan

Open Date

2008-10-28 04:09:41     Close Date

2008-11-20 05:53:34

Priority:

Medium     Assignee:

Sonic Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Rejected

Uboot version or rev.:

    Toolchain version or rev.:

Oct 10

App binary format:

N/A     

Summary: cat file through extensive uart port diffs with the original file

Details:

 

cat file through extensive uart3 port on bf548 diffs with the original file, it also sees on bf537 uart1 and bf527 uart0 port.

 

the procedure on bf527 board is(uart0 port is considered as ttyBF0):

 

root:/> catPHY: 0:01 - Link is Up - 100/Full^M

/proc/kallsyms > ccc ^M

root:/> stty -F /dev/ttyBF0 ispeed 57600 ospeed 57600 -icrnl igncr ^M

root:/> cat /dev/ttyBF0 > aaa ^M

test@uclinux60-bf527-std:~/work/cruise/checkouts/uclinux-dist/testsuites/serial> rcp root@10.100.4.50:/ccc . ^M

test@uclinux60-bf527-std:~/work/cruise/checkouts/uclinux-dist/testsuites/serial> stty -F /dev/ttyUSB0 ispeed 57600 ospeed 57600 ^M

test@uclinux60-bf527-std:~/work/cruise/checkouts/uclinux-dist/testsuites/serial>  cat ccc > /dev/ttyUSB0  ^M

test@uclinux60-bf527-std:~/work/cruise/checkouts/uclinux-dist/testsuites/serial> ^C^M

root:/> ^M

root:/> Catted file is got on target.

diff -u ccc aaa ^M

--- ccc Mon Mar 30 07:11:44 2020^M

+++ aaa Mon Mar 30 07:12:50 2020^M

@@ -74,7 +74,7 @@^M

00005270 T _safe_user_instruction^M

0000527c T _fixed_code_end^M

0000528c W _native_machine_halt^M

-000052a0 T _machine_halt^M

+000052a0 T _machine_haltt^M

000052ac W _native_machine_power_off^M

000052c0 T _machine_power_off^M

000052cc T _machine_restart^M

root:/>

 

stty -F /dev/ttyBF0 ispeed 57600 ospeed 57600  ^M

root:/> ls^M

^[[00m^[[00mbbb^[[00m                      ^[[00;32mbuild_serial_uart_kernel.exp^[[00m  ^[[00mccc^[[00m              ^[[00;32mserial_uart_test.exp^[[00m  ^[[00;32msport_uart_test.exp^[[00m^M

^[[00;32mbuild_serial_kernel.exp^[[00m  ^[[00;32mbuild_sport_uart_kernel.exp^[[00m   ^[[00;32mserial_test.exp^[[00m  ^[[00;32mserial_uart_test_log^[[00m^M

^[[mtest@uclinux60-bf527-std:~/work/cruise/checkouts/uclinux-dist/testsuites/serial> stty -F /dev/ttyUSB0 ispeed 57600 ospeed 57600 -icrnl  igncr^M

test@uclinux60-bf527-std:~/work/cruise/checkouts/uclinux-dist/testsuites/serial> cat /dev/ttyUSB0 > bbb ^M

cat ccc > /dev/ttyBF0 ^M

root:/> ^M

test@uclinux60-bf527-std:~/work/cruise/checkouts/uclinux-dist/testsuites/serial> diff -u ccc bbb ^M

--- ccc 2008-10-27 17:38:22.000000000 +0800^M

+++ bbb 2008-10-27 17:42:16.000000000 +0800^M

@@ -143,7 +143,7 @@^M

000063b0 T _get_gptimer_count^M

000063f8 T _get_gptimer_period^M

00006440 T _get_gptimer_pwidth^M

-00006488 T _set_gptimer_pwidth^M

+00006488 T _set_gptimer_pwidth00001000 t _run_init_process^M

000064dc T _set_gptimer_period^M

00006530 T _set_gptimer_status^M

00006580 T _set_gptimer_config^M

@@ -280,7 +280,11 @@^M

00009cbc T _task_prio^M

00009cd0 T _task_nice^M

00009ce4 T _idle_cpu^M

-00009d04 T _idle_task^M

+00009d04 Tptimer_pwidth00001000 t _run_init_process^M

+000064dc T _set_gptimer_period^M

+00006530 T _set_gptimer_status^M

+00006580 T _set_gptimer_config^M

+000065d4 T _enable_gpti _idle_task^M

00009d1c T _sys_sched_get_priority_max^M

00009d54 T _sys_sched_get_priority_min^M

00009d88 T _in_sched_functions^M

test@uclinux60-bf527-std:~/work/cruise/checkouts/uclinux-dist/testsuites/serial>

 

kernel revision:

 

root:/> version^M

kernel:    Linux release 2.6.26.5-ADI-2009R1-pre-svn5483, build #69 Sun Oct 26 16:12:47 CST 2008^M

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

user-dist: release svn-7263, build #1095 Sun Oct 26 16:11:40 CST 2008^M

 

Follow-ups

 

--- Sonic Zhang                                              2008-11-07 04:52:17

Test suite should config ttyUSB0 on host properly.

 

stty -F /dev/ttyUSB0 -icrnl -ixon igncr -opost -onlcr -isig -icanon -iexten

-echo -echoe -echok -echoke -hupcl -echoctl

 

Look like following status on my host:

speed 57600 baud; rows 0; columns 0; line = 0;

intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;

eol2 = <undef>; swtch = <undef>;

start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush =

^O; min = 1; time = 0;

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

-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr igncr -icrnl -ixon -ixoff

-iuclc -ixany -imaxbel

-iutf8

-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0

ff0

-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop

-echoprt -echoctl -echoke

 

 

--- Mingquan Pan                                             2008-11-20 05:53:34

Yes, adding -echo -echoe to stty config can fix this problem. So close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes