[#6554] serial test on bf561 SMP kernel fails now.
Submitted By: Mingquan Pan
Open Date
2011-04-19 05:00:53
Priority:
Medium Assignee:
steven miao
Status:
Open Fixed In Release:
N/A
Found In Release:
2011R1 Release:
Category:
N/A Board:
N/A
Processor:
ALL Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Not reproducible
Uboot version or rev.:
Toolchain version or rev.:
5013
App binary format:
N/A
Summary: serial test on bf561 SMP kernel fails now.
Details:
serial test on bf561 SMP kernel fails now.
Try to figure out if we are in u-boot or the kernelor followed by ? to see other options.
----------------------------------------------------
bfin> version
U-Boot 2010.06 (ADI-2010R1-RC1) (Sep 29 2010 - 17:50:45)
bfin> We are in u-boot
sending reset
resetþ
U-Boot 2010.06 (ADI-2010R1-RC1) (Sep 29 2010 - 17:50:45)
CPU: ADSP bf561-0.3 (Detected Rev: 0.5) (bypass boot)
Board: ADI BF561 EZ-Kit Lite board
Support: http://blackfin.uclinux.org/
Clock: VCO: 600 MHz, Core: 600 MHz, System: 100 MHz
RAM: 64 MiB
Flash: 8 MiB
I
RAM size is 64 MB.
n: serial
Out: serial
Err: serial
KGDB: [on serial] ready
Net: SMC91111-0
Hit any key to stop autoboot: 0
bfin> set bootargs root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600
bfin> set serverip 10.100.4.174
bfin> set ipaddr 10.100.4.50
bfin> save
Saving Environment to Flash...
Un-Protected 8 sectors
Erasing Flash...
........ done
Erased 8 sectors
Writing to Flash... done
Protected 8 sectors
bfin> printenv ethaddr
ethaddr=00:E0:22:FE:BA:2A
bfin> mac address=00:E0:22:FE:BA:2A
tftpboot 0x2000000 uImage
SMC91111: MAC 00:e0:22:fe:ba:2a
Using SMC91111-0 device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename 'uImage'.
Load address: 0x2000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#
done
Bytes transferred = 3820775 (3a4ce7 hex)Image size is 3a4ce7
bfin> run addip
bfin> bootm
## Booting kernel from Legacy Image at 02000000 ...
Image Name: bf561-0.5-2.6.38.3-ADI-2011R1-pr
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 3820711 Bytes = 3.6 MiB
Load Address: 00001000
Entry Point: 001ad1fc
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001ad1fc
Linux version 2.6.38.3-ADI-2011R1-pre-svn9857 (test@uclinux65-561-SMP) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #6 SMP Mon Apr 18 19:14:30 GMT 2011
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00126dc0
rodata = 0x00126dc0-0x0018015c
bss = 0x00181000-0x00192f00
data = 0x00192f00-0x001a6000
stack = 0x001a4000-0x001a6000
init = 0x001a6000-0x0073e000
available = 0x0073e000-0x03f00000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 0
Reset caused by Software reset
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF561 Rev 0.5
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 600 MHz core clock and 100 MHz System Clock
NOMPU: setting up cplb tables
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
L2 SRAM : uncacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-through) in data cache
L2 SRAM : uncacheable in data cache
PERCPU: Embedded 7 pages/cpu @007c3000 s4384 r8192 d16096 u32768
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16002
Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf561-ezkit:eth0:off
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 56456k/65536k RAM, (5728k init code, 1175k kernel code, 509k data, 1024k dma, 644k reserved)
Hierarchical RCU implementation.
NR_IRQS:153
Configuring Blackfin Priority Driven Interrupts
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 1191.93 BogoMIPS (lpj=2383872)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Booting Core B.
Brought up 2 CPUs
Instruction Cache Enabled for CPU1
External memory: cacheable in instruction cache
L2 SRAM : uncacheable in instruction cache
Data Cache Enabled for CPU1
External memory: cacheable (write-through) in data cache
L2 SRAM : uncacheable in data cache
SMP: Total of 2 processors activated (4.09 BogoMIPS).
Blackfin Scratchpad data SRAM: 4 KB
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 16 KB (15 KB free)
Blackfin L1 Instruction SRAM: 16 KB (15 KB free)
Blackfin L2 SRAM: 128 KB (127 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
bio: create slab <bio-0> at 0
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@16
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: 2, 16384 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 128 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
NET: Registered protocol family 1
debug-mmrs: setting up Blackfin MMR debugfs
msgmni has been set to 110
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 35) is a BFIN-UART
brd: module loaded
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>
eth0: SMC91C11xFD (rev 2) at 2c010300 IRQ 82 [nowait]
eth0: Ethernet addr: 00:e0:22:fe:ba:2a
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
eth0: link down
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=bf561-ezkit, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
dma_alloc_init: dma_page @ 0x027dc000 - 256 pages at 0x03f00000
Freeing unused kernel memory: 5728k freed
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
_____________________________________
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.18.4 (2011-04-18 18:07:07 GMT) hush - the humble shell
root:/> version
kernel: Linux release 2.6.38.3-ADI-2011R1-pre-svn9857, build #6 SMP Mon Apr 18 19:14:30 GMT 2011
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5013)
user-dist: release svn-10140, build #2 Mon Apr 18 19:12:28 GMT 2011
root:/> uccessful boot attempt
************** STEP 3: Start SERIAL TEST
[6nstty -echo;cat
spawn /bin/sh
uclinux65-561-SMP:~/work/cruise/checkouts/uclinux-dist/testsuites/serial> 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
...
...
00009cc4 t _sysreg_emudat_get^M
00009cd0 t _sysreg_emudat_set^M
00009cdc t _sysreg_seqstat_get^M
00009ce8 t _sysreg_seqstat_set^M
00009cf4 t _sysreg_syscfg_get^C^M
root:/> ^[[6n
Case 6 ...PASS
Case 6 ...PASS
abcdefghijklmnopqrstuvwxyz0123456789^M
xyz0123456789^M
abcdefghijklmnopqrstuvwxyz012345sh: can't execute 'abcdefghijklmnopqrstuvwxyz0123456789': No such file or directory^M
6789^M
abcdefghijklmnoproot:/> ^[[6n
Last passed time: 2011_Feb_01_22_18, ucdist ver: 10073, kernel ver: 9588
Case 7 ...FAIL
Case 7 ...FAIL
Follow-ups
--- steven miao 2011-05-11 07:06:25
not producible
Case 10 ...PASS
stty -F /dev/ttyBF0 ispeed 57600 ospeed 57600 -icrnl -ixon igncr -opost -onlcr
-isig -icanon -iexten -echo -echoe -echok -echoke -hupcl -echoctl -par
enb -parodd cs8 hupcl -cstopb cread clocal -crtscts min 1 time 0
root:/> ^[[52;9Rls
bbb build_emulated_uart_kernel.exp build_serial_kernel.exp ccc
emulated_uart_test.exp serial_test.exp serial_test_log
sh-3.2$ stty -F /dev/ttyS0 ispeed 57600 ospeed 57600 -icrnl -ixon igncr -opost
-onlcr -isig -icanon -iexten -echo -echoe -echok -echoke -hupcl -echoctl -parenb
-parodd cs8 hupcl -cstopb cread clocal -crtscts min 1 time 0
sh-3.2$ ls
bbb build_emulated_uart_kernel.exp build_serial_kernel.exp ccc
emulated_uart_test.exp serial_test.exp serial_test_log
sh-3.2$ cat /dev/ttyS0 > bbb
wait for receiving data...
cat ccc > /dev/ttyBF0
root:/> ^[[52;9R
Still wait.
^C
sh-3.2$ diff -u bbb ccc
sh-3.2$
Case 11 ...PASS
Ending ./serial_test.exp
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found