[#6916] BF537-STAMP kernel fails to boot up with RTS/CTS enabled
Submitted By: Vivi Li
Open Date
2011-12-01 02:27:52 Close Date
2011-12-06 03:38:02
Priority:
Medium High Assignee:
Sonic Zhang
Status:
Closed Fixed In Release:
N/A
Found In Release:
2011R1 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.:
gcc4.3-2011R1-RC2
App binary format:
N/A
Summary: BF537-STAMP kernel fails to boot up with RTS/CTS enabled
Details:
BF537-STAMP kernel fails to boot up with RTS/CTS enabled.
This is found in 2011 branch.
--
U-Boot 2011.09-svn2741 (ADI-2011R1) (Nov 10 2011 - 12:06:38)
CPU: ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)
Board: ADI BF537 stamp board
Support: http://blackfin.uclinux.org/
Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz
RAM: 64 MiB
Flash: 4 MiB
MMC:
In: serial
Out: serial
Err: serial
KGDB: [on serial] ready
Net: bfin_mac
Hit any key to stop autoboot: 0
bfin> run ramboot
Using bfin_mac device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename 'uImage'.
Load address: 0x1000000
Loading: T #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
done
Bytes transferred = 4768707 (48c3c3 hex)
## Booting kernel from Legacy Image at 01000000 ...
Image Name: bf537-0.2-3.0.8-ADI-2011R1-svn10
Created: 2011-12-01 6:10:40 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4768643 Bytes = 4.5 MiB
Load Address: 00001000
Entry Point: 001b3c48
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001b3c48
Linux version 3.0.8-ADI-2011R1-svn10231 (test@linux73-bf537-wt-adxl) (gcc version 4.3.5 (ADI-2011R1-RC2) ) #93 Thu Dec 1 14:10:31
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Limiting kernel memory to 56MB due to anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001284d8
rodata = 0x001284d8-0x00188b98
bss = 0x00189000-0x00198b28
data = 0x00198b28-0x001ac000
stack = 0x001aa000-0x001ac000
init = 0x001ac000-0x008d5000
available = 0x008d5000-0x03800000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 0
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 125 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14224
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50f
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: 47692k/65536k RAM, (7332k init code, 1181k kernel code, 527k data, 1024k dma, 7780k reserved)
NR_IRQS:146
Configuring Blackfin Priority Driven Interrupts
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (35 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_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@ffc00500, dma channel@7
Switching to clocksource bfin_cs_cycles
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
debug-mmrs: setting up Blackfin MMR debugfs
msgmni has been set to 93
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: 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=24)@sclk=125MHz)
bfin_mac bfin_mac.0: eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1
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-03 18:12:10 UTC (238330)
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=bf537-stamp, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
dma_alloc_init: dma_page @ 0x02947000 - 256 pages at 0x03f00000
------------[ cut here ]------------
WARNING: at drivers/gpio/gpiolib.c:101 _gpio_ensure_requested+0x5a/0xbc()
autorequest GPIO-22
Modules linked in:
Hardware Trace:
0 Target : <0x00128294> { _dump_stack + 0x0 }
Source : <0x000113e2> { _warn_slowpath_common + 0x46 } CALL pcrel
1 Target : <0x000113e2> { _warn_slowpath_common + 0x46 }
Source : <0x00032472> { _print_modules + 0x4e } RTS
2 Target : <0x0003246c> { _print_modules + 0x48 }
Source : <0x00128468> { _printk + 0x14 } RTS
3 Target : <0x00128464> { _printk + 0x10 }
Source : <0x00012034> { _vprintk + 0x164 } RTS
4 Target : <0x00012028> { _vprintk + 0x158 }
Source : <0x0001201a> { _vprintk + 0x14a } IF CC JUMP pcrel
5 Target : <0x00012012> { _vprintk + 0x142 }
Source : <0x00012142> { _vprintk + 0x272 } JUMP.S
6 Target : <0x00012142> { _vprintk + 0x272 }
Source : <0x00011c38> { _console_unlock + 0x1a8 } RTS
7 Target : <0x00011c30> { _console_unlock + 0x1a0 }
Source : <0x00011c22> { _console_unlock + 0x192 } IF CC JUMP pcrel
8 Target : <0x00011c12> { _console_unlock + 0x182 }
Source : <0x00011c04> { _console_unlock + 0x174 } IF CC JUMP pcrel (BP)
9 Target : <0x00011bfc> { _console_unlock + 0x16c }
Source : <0x0002868e> { _up + 0x3e } RTS
10 Target : <0x00028688> { _up + 0x38 }
Source : <0x0002867a> { _up + 0x2a } IF CC JUMP pcrel (BP)
11 Target : <0x00028650> { _up + 0x0 }
Source : <0x00011bf8> { _console_unlock + 0x168 } CALL pcrel
12 Target : <0x00011bd6> { _console_unlock + 0x146 }
Source : <0x00011aee> { _console_unlock + 0x5e } IF CC JUMP pcrel
13 Target : <0x00011ac2> { _console_unlock + 0x32 }
Source : <0x00011b24> { _console_unlock + 0x94 } IF CC JUMP pcrel (BP)
14 Target : <0x00011b1c> { _console_unlock + 0x8c }
Source : <0x00011606> { __call_console_drivers + 0x62 } RTS
15 Target : <0x00011600> { __call_console_drivers + 0x5c }
Source : <0x000115da> { __call_console_drivers + 0x36 } IF CC JUMP pcrel
Stack info:
SP: [0x0201bca0] <0x0201bca0> /* kernel dynamic memory */
FP: (0x0201bdf8)
Memory from 0x0201bca0 to 0201c000
0201bca0:[0201bcec] 000113e6 0201bcec 00166b00 00000000 00166b00 00000065 000a0a9e
0201bcc0: 00011450 00199804 00000016 0000ffff 00000016 00000000 0019ec08 00000000
0201bce0: 001890fc 00000009 0201bcec <00166b84> 0201bd04 000a0a9e 00036e5e 0293b8e0
0201bd00: 00000049 00000016 000a0c26 00199804 00195544 00500001 00500001 020092c4
0201bd20: 000ad254 000ad26c 02009200 02906600 00500001 00000000 0287f7c0 00000026
0201bd40: 00500001 00000000 0201bd58 00000023 00167898 02009200 03f00000 <000ab86e>
0201bd60: 02009200 000a843e 00000000 00000001 0287f7c0 000ac482 02906600 02938400
0201bd80: 001a24ac 00500001 02906630 00500001 0206b164 00000001 <000a4742> 0206b160
0201bda0: 02938400 00500001 00000000 00000001 00000000 000b3a68 <000b3aa6> 0201a000
0201bdc0: 00000002 00000000 027946d4 <0004f382> 00196080 02796650 0287f7c0 00000000
0201bde0: 0200e940 00000002 00000026 02796650 0201be74 0201bdf8 (00000000)<0004bca0>
0201be00: 0287f7c0 02796650 0004f314 00000000 0201bf90 00000000 0201be74 0201bebc
0201be20: 0004be70 0287f7c0 0201bf00 0201bf00 00000000 02019660 00000000 00053602
0201be40: 02796650 00000000 02019660 00055802 02796650 027949d4 00000000 00000000
0201be60: 02073005 00000000 0201bea0 0201be74 027949d4 02796650 0201bec8 00056762
0201be80: 0201bf00 0201bf90 00000000 0201a000 00000000 0201bebc 02073000 00000000
0201bea0: 00129404 02018eb4 02073000 0201bec4 0201bedc ffa01e00 00129404 0200e940
0201bec0: 027946d4 00000000 00000000 00056a0e 0201bf00 00000002 00000000 00000001
0201bee0: 0201bf90 ffffff9c 02073000 00000000 04000000 000000d0 0201bf90 00000041
0201bf00: 0200e940 027946d4 05b6719b 00000007 02073005 00000000 02012794 02796650
0201bf20: 00000101 00000004 00000000 00000000 001a29fc 0005deba 0201cbc0 0201cbc8
0201bf40: 0201cbc4 00000000 00000000 00000002 00000000 00000003 00000000 00000000
0201bf60: 0004ba4a ffffff9c 00000001 00000000 00000000 02073000 00000000 00000000
0201bf80: 00000000 00000001 00000000 00000000 00000002 00000000 00000026 00000100
0201bfa0: 0004baf4 001c4864 001c4640 001c4864 00000002 00000000 00000000 00000000
0201bfc0: 001c4640 001c4864 00000000 00000000 001ac172 00000000 00000000 00000000
0201bfe0: 00000000
00000000 00000000 00000000 00000000 ffffffff 00000006
Return addresses in stack:
address : <0x00166b84> /* kernel dynamic memory */
address : <0x000ab86e> { _uart_startup + 0x56 }
address : <0x000a4742> { _tty_open + 0x18e }
address : <0x000b3aa6> { _kobj_lookup + 0x8e }
address : <0x0004f382> { _chrdev_open + 0x6e }
frame 1 : <0x0004bca0> { ___dentry_open + 0xcc }
address : <0x00001556> { _kernel_thread_helper + 0x6 }
---[ end trace 20e9a1cbb779ea36 ]---
Freeing unused kernel memory: 7332k freed
PHY: 0:01 - Link is Up - 100/Full
--
Follow-ups
--- Sonic Zhang 2011-12-05 02:03:25
Fixed. Requesting CTS PIN only when serial device starts up.
--- Vivi Li 2011-12-06 03:55:50
OK in latest 2011R1 branch.
Close it.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.config.rts_cts application/octet-stream 51869 Vivi Li
config.linux.rts_cts application/octet-stream 35830 Vivi Li