[#4989] shared flat kernel boot fails
Submitted By: Mingquan Pan
Open Date
2009-03-13 06:11:48 Close Date
2009-03-19 07:11:20
Priority:
Medium High Assignee:
Jie Zhang
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:
Assigned (Not Start)
Uboot version or rev.:
Toolchain version or rev.:
09r1 branch
App binary format:
N/A
Summary: shared flat kernel boot fails
Details:
shared flat kernel boot fails on trunk now.
bfin> bootm
## Booting image at 02000000 ...
Image Name: Linux-2.6.28.7-ADI-2009R1-pre-sv
Created: 2009-03-13 8:17:34 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 3982313 Bytes = 3.8 MB
Load Address: 00001000
Entry Point: 0018a3d4
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 18a3d4
Linux version 2.6.28.7-ADI-2009R1-pre-svn6167 (test@uclinux52-ad73311-lcd) (gcc version 4.1.2 (ADI svn)) #18 Fri Mar 13 16:17:22 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-0x00109df0
rodata = 0x00109df0-0x0015c1f4
bss = 0x0015c200-0x0016acb4
data = 0x0016acb4-0x0017c000
stack = 0x0017a000-0x0017c000
init = 0x0017c000-0x0079a000
available = 0x0079a000-0x037ff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 0
Reset caused by Software reset
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 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:BF537:eth0:off
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: 48976k/65536k RAM, (6264k init code, 1059k kernel code, 457k 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 0015d2e8
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
Data access misaligned address violation
- Attempted misaligned data memory or data cache access.
Deferred Exception context
CURRENT PROCESS:
COMM=modprobe PID=126
CPU = 0
TEXT = 0x03080040-0x030cd360 DATA = 0x03100020-0x03116420
BSS = 0x03116420-0x03117da0 USER-STACK = 0x0311bf70
return address: [0x03096716]; contents of:
0x030966f0: 0062 3217 9117 0c07 17ea e801 0000 05bb
0x03096700: 0010 0000 04c5 e800 0000 e52d 0000 e528
0x03096710: 0c98 e529 09f6 [9142] 0c42 934a 1807 bc51
0x03096720: 9341 e801 0000 0485 0010 e52a 0be2 9341
SEQUENCER STATUS: Not tainted
SEQSTAT: 00062024 IPEND: 0030 SYSCFG: 0006
EXCAUSE : 0x24
interrupts disabled
physical IVG5 asserted : <0xffa00ba4> { _evt_ivhw + 0x0 }
RETE: <0x00000000> { _do_one_initcall + 0xfffff000 }
RETN: <0x0304e000> /* kernel dynamic memory */
RETX: <0x00000480> /* Maybe fixed code section */
RETS: <0x0308005a> [ /bin/busybox + 0x1a ]
PC : <0x03096716> [ /bin/busybox + 0x166d6 ]
DCPLB_FAULT_ADDR: <0x639015b0> /* kernel dynamic memory */
ICPLB_FAULT_ADDR: <0x03096716> [ /bin/busybox + 0x166d6 ]
PROCESSOR STATE:
R0 : 00000000 R1 : 00000000 R2 : 00000000 R3 : 00000000
R4 : 00000000 R5 : 00000000 R6 : 00000000 R7 : 00000000
P0 : 639015b2 P1 : 0088e12a P2 : 00000000 P3 : 00000000
P4 : 00000000 P5 : 00000000 FP : 0311bf64 SP : 0304df24
LB0: 00000001 LT0: 00000000 LC0: 00000000
LB1: 00000001 LT1: 00000000 LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 00000000
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 00000000
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : 00000000
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
USP : 0311bf64 ASTAT: 00000000
Hardware Trace:
0 Target : <0x00004a20> { _trap_c + 0x0 }
Source : <0xffa0062a> { _exception_to_level5 + 0x9e } CALL pcrel
1 Target : <0xffa0058c> { _exception_to_level5 + 0x0 }
Source : <0xffa0045a> { _bfin_return_from_exception + 0xe } RTX
2 Target : <0xffa0044c> { _bfin_return_from_exception + 0x0 }
Source : <0xffa004e2> { _ex_trap_c + 0x66 } JUMP.S
3 Target : <0xffa0047c> { _ex_trap_c + 0x0 }
Source : <0xffa006c4> { _trap + 0x38 } JUMP (P4)
4 Target : <0xffa006aa> { _trap + 0x1e }
Source : <0xffa006a6> { _trap + 0x1a } IF !CC JUMP
5 Target : <0xffa0068c> { _trap + 0x0 }
Source : <0x03096712> [ /bin/busybox + 0x166d2 ] 0xe529
6 Target : <0x03096704> [ /bin/busybox + 0x166c4 ]
Source : <0x03080056> [ /bin/busybox + 0x16 ] CALL pcrel
7 Target : <0x03080044> [ /bin/busybox + 0x4 ]
Source : <0xffa003fe> { _ex_dcplb_miss + 0x4a } RTX
8 Target : <0xffa003da> { _ex_dcplb_miss + 0x26 }
Source : <0xffa011dc> { _icplb_miss + 0xfc } RTS
9 Target : <0xffa01134> { _icplb_miss + 0x54 }
Source : <0xffa01128> { _icplb_miss + 0x48 } IF !CC JUMP
10 Target : <0xffa010e0> { _icplb_miss + 0x0 }
Source : <0xffa012a6> { _cplb_hdr + 0x22 } JUMP.L
11 Target : <0xffa012a4> { _cplb_hdr + 0x20 }
Source : <0xffa01292> { _cplb_hdr + 0xe } IF !CC JUMP
12 Target : <0xffa01284> { _cplb_hdr + 0x0 }
Source : <0xffa003d6> { _ex_dcplb_miss + 0x22 } CALL pcrel
13 Target : <0xffa003b4> { _ex_dcplb_miss + 0x0 }
Source : <0xffa006c4> { _trap + 0x38 } JUMP (P4)
14 Target : <0xffa006aa> { _trap + 0x1e }
Source : <0xffa006a6> { _trap + 0x1a } IF !CC JUMP
15 Target : <0xffa0068c> { _trap + 0x0 }
Source : <0xffa0078c> { _kernel_execve + 0xbc } RTI
Userspace Stack
Stack info:
SP: [0x0311bf64] <0x0311bf64> [ modprobe + 0x1bf64 ]
FP: (0x0311bf64)
Memory from 0x0311bf60 to 0311c000
0311bf60: 00000000 [00000000]<0308005a> 03100020 00000004 0311bf99 <0311bfa8> 0311bfab
0311bf80: 0311bfae 00000000 0311bfb8 0311bfbf 0311bfca 00000000 62732f00 6d2f6e69
0311bfa0: 7270646f 0065626f 2d00712d 6968002d 75642d64 00796d6d 454d4f48 54002f3d
0311bfc0: 3d4d5245 756e696c 41500078 2f3d4854 6e696273 73752f3a 62732f72 2f3a6e69
0311bfe0: 3a6e6962 7273752f 6e69622f 62732f00 6d2f6e69 7270646f 0065626f 00000000
0311c000: fd36e3ff
Return addresses in stack:
frame 1 : <0x0308005a> [ /bin/busybox + 0x1a ]
address : <0x0311bfa8> [ modprobe + 0x1bfa8 ]
rtc-bfin rtc-bfin: setting system clock to 1972-01-13 18:30:58 UTC (64175458)
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=BF537, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
Freeing unused kernel memory: 6264k freed
dma_alloc_init: dma_page @ 0x00796000 - 256 pages at 0x03f00000
NULL pointer access
Deferred Exception context
CURRENT PROCESS:
COMM=init PID=1
CPU = 0
TEXT = 0x00780040-0x00785b20 DATA = 0x00700020-0x007012e4
BSS = 0x007012e4-0x00712b60 USER-STACK = 0x00713fc4
return address: [0x00784962]; contents of:
0x00784940: 0000 0000 0062 3217 9117 0c07 17ea e801
0x00784950: 0000 05bb 0010 0000 04c5 e800 0000 e52d
0x00784960: 0000 [e528] 00eb e529 0079 9142 0c42 934a
0x00784970: 1807 bc51 9341 e801 0000 0485 0010 e52a
SEQUENCER STATUS: Not tainted
SEQSTAT: 00062027 IPEND: 0030 SYSCFG: 0006
EXCAUSE : 0x27
interrupts disabled
physical IVG5 asserted : <0xffa00ba4> { _evt_ivhw + 0x0 }
RETE: <0x00000000> { _do_one_initcall + 0xfffff000 }
RETN: <0x037e8000> /* kernel dynamic memory */
RETX: <0x00000480> /* Maybe fixed code section */
RETS: <0x0078005a> [ /bin/init + 0x1a ]
PC : <0x00784962> [ /bin/init + 0x4922 ]
DCPLB_FAULT_ADDR: <0x000003ac> /* Maybe null pointer? */
ICPLB_FAULT_ADDR: <0x00784962> [ /bin/init + 0x4922 ]
PROCESSOR STATE:
R0 : 00000000 R1 : 00000000 R2 : 00000000 R3 : 00000000
R4 : 00000000 R5 : 00000000 R6 : 00000000 R7 : 00000000
P0 : 00000000 P1 : 00000000 P2 : 00000000 P3 : 00000000
P4 : 00000000 P5 : 00000000 FP : 00713fb8 SP : 037e7f24
LB0: 00000001 LT0: 00000000 LC0: 00000000
LB1: 00000001 LT1: 00000000 LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 00000000
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 00000000
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : 00000000
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
USP : 00713fb8 ASTAT: 00000000
Hardware Trace:
0 Target : <0x00004a20> { _trap_c + 0x0 }
Source : <0xffa0062a> { _exception_to_level5 + 0x9e } CALL pcrel
1 Target : <0xffa0058c> { _exception_to_level5 + 0x0 }
Source : <0xffa0045a> { _bfin_return_from_exception + 0xe } RTX
2 Target : <0xffa0044c> { _bfin_return_from_exception + 0x0 }
Source : <0xffa004e2> { _ex_trap_c + 0x66 } JUMP.S
3 Target : <0xffa0047c> { _ex_trap_c + 0x0 }
Source : <0xffa003b2> { _ex_workaround_261 + 0x22 } JUMP.S
4 Target : <0xffa00390> { _ex_workaround_261 + 0x0 }
Source : <0xffa006c4> { _trap + 0x38 } JUMP (P4)
5 Target : <0xffa006aa> { _trap + 0x1e }
Source : <0xffa006a6> { _trap + 0x1a } IF !CC JUMP
6 Target : <0xffa0068c> { _trap + 0x0 }
Source : <0xffa0045a> { _bfin_return_from_exception + 0xe } RTX
7 Target : <0xffa0044c> { _bfin_return_from_exception + 0x0 }
Source : <0xffa003a2> { _ex_workaround_261 + 0x12 } IF !CC JUMP
8 Target : <0xffa00390> { _ex_workaround_261 + 0x0 }
Source : <0xffa006c4> { _trap + 0x38 } JUMP (P4)
9 Target : <0xffa006aa> { _trap + 0x1e }
Source : <0xffa006a6> { _trap + 0x1a } IF !CC JUMP
10 Target : <0xffa0068c> { _trap + 0x0 }
Source : <0x0078495e> [ /bin/init + 0x491e ] 0xe52d
11 Target : <0x00784958> [ /bin/init + 0x4918 ]
Source : <0x00780056> [ /bin/init + 0x16 ] CALL pcrel
12 Target : <0x00780044> [ /bin/init + 0x4 ]
Source : <0xffa0078c> { _kernel_execve + 0xbc } RTI
13 Target : <0xffa0070c> { _kernel_execve + 0x3c }
Source : <0xffa00714> { _kernel_execve + 0x44 } IF CC JUMP
14 Target : <0xffa0070c> { _kernel_execve + 0x3c }
Source : <0xffa00714> { _kernel_execve + 0x44 } IF CC JUMP
15 Target : <0xffa0070c> { _kernel_execve + 0x3c }
Source : <0xffa00714> { _kernel_execve + 0x44 } IF CC JUMP
Userspace Stack
Stack info:
SP: [0x00713fb8] <0x00713fb8> [ init + 0x13fb8 ]
FP: (0x00713fb8)
Memory from 0x00713fb0 to 00714000
00713fb0: 00000000 00000000 [00000000]<0078005a><00700020> 00000001 00713fde 00000000
00713fd0:<00713fe4> 00713feb 00000000 692f0000 0074696e 454d4f48 54002f3d 3d4d5245
00713ff0: 756e696c 692f0078 0074696e 00000000 5b45b818
Return addresses in stack:
frame 1 : <0x0078005a> [ /bin/init + 0x1a ]
address : <0x00700020> [ init + 0x20 ]
address : <0x00713fe4> [ init + 0x13fe4 ]
Kernel panic - not syncing: Attempted to kill init!
failed version: uclinux-dist:7878, linux:6167, toolchain 09r1 branch
passed version: uclinux-dist:7866, linux:6167, toolchain Jan 17,2009
Follow-ups
--- Mingquan Pan 2009-03-18 02:35:00
It looks with branch toolchain revision 3267, built shared-flat image running on
bf548-ezkit board is ok, but failed with bf537 stamp board. The kernel source is
the same.
--- Jie Zhang 2009-03-19 02:00:10
I cannot reproduce it.
--- Mingquan Pan 2009-03-19 07:11:20
Yeah, it is also ok with 3267 on 537 stamp. Close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found