[#4988] run ./traps_test # sometimes wouldn't echo the new line on some BF537 and BF533 stamp boards
Submitted By: Mingquan Pan
Open Date
2009-03-13 05:21:35 Close Date
2009-05-31 06:10:49
Priority:
Medium High Assignee:
Graf Yang
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A 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.:
Jan 17 2009
App binary format:
N/A
Summary: run ./traps_test # sometimes wouldn't echo the new line on some BF537 and BF533 stamp boards
Details:
run ./traps_test # sometimes wouldn't echo the new line on some BF537 and BF533 stamp boards.
bfin> bootm
## Booting image at 02000000 ...
Image Name: Linux-2.6.28.7-ADI-2009R1-pre-sv
Created: 2009-03-09 23:12:27 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4089976 Bytes = 3.9 MB
Load Address: 00001000
Entry Point: 0018a3c4
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 18a3c4
Linux version 2.6.28.7-ADI-2009R1-pre-svn6161 (test@uclinux52-ad73311-lcd) (gcc version 4.1.2 (ADI svn)) #6 Tue Mar 10 07:12:13 CST 2009
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Warning: limiting memory to 56MB due to hardware anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0010a5b0
rodata = 0x0010a5b0-0x0015c810
bss = 0x0015c810-0x0016b2c4
data = 0x0016b2c4-0x0017c000
stack = 0x0017a000-0x0017c000
init = 0x0017c000-0x007a7000
available = 0x007a7000-0x037ff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 0
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 100 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
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 48924k/65536k RAM, (6316k init code, 1061k kernel code, 455k data, 1024k dma, 7756k reserved)
Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)
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: 48 KB (41 KB free)
PDA for CPU0 reserved at 0015d8f8
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin GPIO Controller
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 = 18) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
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-02-26 01:46:25 UTC (4844785)
Freeing unused kernel memory: 6316k freed
dma_alloc_init: dma_page @ 0x007a3000 - 256 pages at 0x03f00000
_____________________________________
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| - blackfin.uclinux.org/
\ YP" `| 8P `. - docs.blackfin.uclinux.org/
/ \.___.d| .' - www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.13.2 (2009-03-10 05:22:36 CST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/>
root:/>
root:/>
root:/> cd bin/
root:/bin>
root:/bin> ./traps_test #
21
root:/bin> ./traps_test #
root:/bin> ./traps_test #
21
root:/bin> ./traps_test #
root:/bin> ./traps_test #
21
root:/bin> ./traps_test #
21
root:/bin> ./traps_test #
21
root:/bin> ./traps_test #
21
root:/bin> ./traps_test #
root:/bin> ./traps_test #
21
root:/bin> ./traps_test #
21root:/bin>
root:/bin> ./traps_test #
21
root:/bin> ./traps_test #
21
root:/bin> ./traps_test #
21
root:/bin> ./traps_test #
On this specific bf537 board,
failed version: uclinux-dist:7856, linux:6161
passed version: uclinux-dist:7833, linux:6155
This uImage is attached.
Follow-ups
--- Graf Yang 2009-04-09 07:15:00
I can see this bug in your passed version: uclinux-dist:7833, linux:6155
So, it maybe exist for longer time.
--- Mike Frysinger 2009-04-09 07:20:57
are you actually running "traps_test #" ? or just
"traps_test" ?
the code is pretty simple ... if this is broken, it sounds like everything is
screwed up ...
int main(int argc, char *argv[])
{
if (argc == 1) {
printf("%li\n", ARRAY_SIZE(bad_funcs) - 1);
return EXIT_SUCCESS;
}
.....
--- Graf Yang 2009-04-09 07:31:36
I do just tested "traps_test".
But I also tested "traps_test #", just now.
The same result.
--- Graf Yang 2009-04-15 03:44:26
Add a SSYNC() into bfin_serial_dma_tx_chars() to ensure DMA registers are
written with new data.
This bug is not related with traps_test, echo a char into /dev/ttyBF0 also can
reproduce this bug.
PIO mode is OK.
--- Mingquan Pan 2009-05-31 06:10:49
This issue is not seen now. So close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
uImage.traps application/octet-stream 4089663 Mingquan Pan