[#5417] sport to uart on bf533 stamp board copy file from host to board has wrong characters transferred
Submitted By: Mingquan Pan
Open Date
2009-08-04 05:37:43 Close Date
2010-01-03 23:59:56
Priority:
Medium Assignee:
Sonic Zhang
Status:
Closed Fixed In Release:
N/A
Found In Release:
2009R1-RC6 Release:
Category:
N/A Board:
STAMP
Processor:
BF533 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Rejected
Uboot version or rev.:
Toolchain version or rev.:
09r1-rc9
App binary format:
N/A
Summary: sport to uart on bf533 stamp board copy file from host to board has wrong characters transferred
Details:
sport to uart on bf533 stamp board copy file from host to board has wrong characters transferred.
## Booting image at 02000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1-svn70
Created: 2009-08-04 9:21:39 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4075671 Bytes = 3.9 MB
Load Address: 00001000
Entry Point: 0017f6dc
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 17f6dc
Linux version 2.6.28.10-ADI-2009R1-svn7093 (test@my-local-machine) (gcc version 4.1.2 (ADI svn)) #14 Tue Aug 4 17:21:26 CST 2009
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Warning: limiting memory to 56MB due to hardware anomaly 05000263
Board Memory: 128MB
Kernel Managed Memory: 128MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00105770
rodata = 0x00105770-0x00154738
bss = 0x00155000-0x00165458
data = 0x00165458-0x00174000
stack = 0x00172000-0x00174000
init = 0x00174000-0x007bc000
available = 0x007bc000-0x037ff000
DMA Zone = 0x07f00000-0x08000000
Hardware Trace Active and Enabled
Boot Mode: 0
Reset caused by Software reset
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF533 Rev 0.3
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 398 MHz core clock and 79 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14223
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=10.100.4.50 ip=10.100.4.50:10.100.4.174:10.100.4.50:255.255.255.0:1:eth0:off
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console handover:boot [early_BFuart0] boot [early_shadow0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 48852k/131072k RAM, (6432k init code, 1041k kernel code, 443k data, 1024k dma, 73280k reserved)
Calibrating delay loop... 792.57 BogoMIPS (lpj=1585152)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 64 KB (53 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
msgmni has been set to 95
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 21) is a BFIN-UART
bfin-sport-uart.0: ttySS0 at MMIO 0xffc00800 (irq = 16) is a SPORT0
bfin-sport-uart.1: ttySS1 at MMIO 0xffc00900 (irq = 18) is a SPORT1
brd: module loaded
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@cam.org>
eth0: SMC91C11xFD (rev 1) at 20300300 IRQ 40 [nowait]
eth0: Ethernet addr: 00:e0:22:fe:07:59
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@5
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 00:07:42 UTC (462)
eth0: link down
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.50,
host=1, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
Freeing unused kernel memory: 6432k freed
dma_alloc_init: dma_page @ 0x007b9000 - 256 pages at 0x07f00000
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
_____________________________________
a8888b. / Welcome to the uClinux distribution \\\\
d888888b. / _ _ \\\\
8P\\\"YP\\\"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \\\\ \\\\/ / |
8\\\' .88 \\\\ | | | | _ \\\\| | | | \\\\ / |
8`._.\\\' Y8. \\\\ | |__ | | | | | |_| | / \\\\ |
d/ `8b. \\\\ \\\\____||_|_| |_|\\\\____|/_/\\\\_\\\\ |
dP . Y8b. \\\\ For embedded processors including |
d8:\\\' \\\" `::88b \\\\ the Analog Devices Blackfin /
d8\\\" \\\'Y88b \\\\___________________________________/
:8P \\\' :888
8a. : _a88P For further information, check out:
._/\\\"Yaa_: .| 88P| - http://blackfin.uclinux.org/
\\\\ YP\\\" `| 8P `. - http://docs.blackfin.uclinux.org/
/ \\\\.___.d| .\\\' - http://www.uclinux.org/
`--..__)8888P`._.\\\' jgs/a:f - http://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.13.4 (2009-08-04 17:14:49 CST) built-in shell (msh)
Enter \\\'help\\\' for a list of built-in commands.
root:/> version
kernel: Linux release 2.6.28.10-ADI-2009R1-svn7093, build #14 Tue Aug 4 17:21:26 CST 2009
toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)
user-dist: release svn-8613, build #7 Tue Aug 4 17:20:50 CST 2009
root:/> successful boot attempt
Starting test for UART ...
*********************************t)
root:/> cat /proc/kallsyms > ccc
root:/> stty -F /dev/ttySS0 cs8 ispeed 57600 ospeed 57600 -icrnl -ixon igncr -op
ost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoke -hupcl -echoctl min
1 time 0
root:/> cat /dev/ttySS0 > aaa
sh-3.00$ rcp root@10.100.4.50:/ccc .
sh-3.00$ stty -F /dev/ttyUSB0 cs8 ispeed 57600 ospeed 57600 -icrnl -ixon igncr -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoke -hupcl -echoctl min 1 time 0
sh-3.00$ cat ccc > /dev/ttyUSB0
sh-3.00$ ^C
root:/> Catted file is got on target.
root:/> diff -u ccc aaa
--- ccc Thu Jan 1 00:07:49 1970
+++ aaa Thu Jan 1 00:09:13 1970
@@ -1,4 +1,4 @@
-00001000 T _do_one_initcall
+00001000`T _do_one_initcall
00001000 T __stext
00001000 T _text
00001000 T __text
@@ -162,7 +162,7 @@
00007a80 T _module_frob_arch_sections
00007ea8 T _module_finalize
00007fc8 t _sport_get
-00008028 t _fops_sport_wo_open
+00008028 t _fops_sport_wo_ope~
0000804c t _fops_sport_open
00008078 t _sport_set
000080d0 T _l2_sram_alloc
@@ -195,7 +195,7 @@
00008c28 T _blackfin_dcache_invalidate_range
00008c44 T _blackfin_dcache_flush_range
00008c60 T _blackfin_dflush_page
-00008c68 T _blackfin_invalidate_entire_dcache
+00008c68 T _blackfin_invalidate_entire_dcaghe
00008c98 T _blackfin_invalidate_entire_icache
00008cc8 T _irq_panic
00008cd4 t _bfin_ack_noop
@@ -432,7 +432,7 @@
00010b80 T _console_start
00010ba0 T _console_stop
00010bc0 T _console_device
-00010c14 T _console_unblank
+00010c14 T _c?nsole_unblank
00010c94 T _resume_console
00010cb4 T _vprintk
00010f90 T _do_syslog
@@ -468,7 +468,7 @@
00013268 t _itimer_get_remtime
000132d0 T _do_setitimer
00013500 T _sys_setitimer
-00013584 T _alarm_setitimer
+00013584 T _alarm_setitimgr
000135d4 T _it_real_fn
000135ec T _do_getitimer
00013708 T _sys_getitimer
@@ -1094,7 +1094,7 @@
000228b4 T _hrtimer_nanosleep
00022984 T _sys_nanosleep
000229e0 T _hrtimer_start
-000229f8 T _ktime_get_ts
+000229f8 ü _ktime_get_ts
00022a44 T _ktime_get
00022a64 T _hrtimer_interrupt
00022c1c T _ktime_get_real
@@ -1153,7 +1153,7 @@
000239a0 T _atomic_notifier_chain_unregister
000239d4 T _unregister_die_notifier
000239e4 t _notes_read
-00023a10 t _uevent_helper_store
+00023a10 t _ueventhelper_store
00023a68 t _uevent_helper_show
00023a80 t _uevent_seqnum_show
00023aac t _max_compare
@@ -1261,13 +1261,13 @@
0002854c T _sys_getuid16
00028574 T _sys_geteuid16
0002859c T _sys_getgid16
-000285c4 T _sys_getegid16
+00p285c4 T _sys_getegid16
000285ec t _find_sec
00028644 t _section_addr
0002866c t _section_objs
000286a0 t _each_symbol_in_section
00028708 t _modinfo_version_exists
-00028714 t _modinfo_srcversion_exists
+00028714 t _modi?fo_srcversion_exists
00028720 T _module_refcount
Follow-ups
--- Sonic Zhang 2009-08-06 01:37:18
It looks like a USB-SERIAL converter hardware compatibility issue. If you test
it via normal uart on PC instead of USB-SERIAL converter, this bug can\'t be
repicated.
--- Mingquan Pan 2009-08-10 03:51:01
Yeah, the sport uart ttySS0 could pass ok by testing using normal uart on host.
Change the test script. But it looks the USB SERIAL convert line works quite
well with ttyBF0 and testing is ok.
--- Mingquan Pan 2010-01-04 00:00:03
So use normal uart on PC instead of USB-SERIAL converter. Close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found