[#6820] kernel xip in fdpic mode fail to boot with "No init found" error for bf561 SMP
Submitted By: Vivi Li
Open Date
2011-10-17 05:06:45 Close Date
2011-10-26 22:41:00
Priority:
Medium Assignee:
steven miao
Status:
Closed Fixed In Release:
N/A
Found In Release:
2011R1 Release:
Category:
N/A Board:
N/A
Processor:
BF561 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Duplicate
Uboot version or rev.:
Toolchain version or rev.:
gcc4.3-2011R1-RC2
App binary format:
N/A
Summary: kernel xip in fdpic mode fail to boot with "No init found" error for bf561 SMP
Details:
For bf561 SMP kernel, kernel xip in fdpic mode fail to boot with "No init found" error.
--
U-Boot 2010.06 (ADI-2010R1-RC2) (Oct 20 2010 - 04:41:42)
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
In: serial
Out: serial
Err: serial
KGDB: [on serial] ready
Net: SMC91111-0
Hit any key to stop autoboot: 0
bfin> successful reset attemp
tftpboot 0x1000000 vmImage
SMC91111: MAC 00:e0:22:fe:ba:29
Using SMC91111-0 device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename 'vmImage'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
############################
done
Bytes transferred = 2314844 (23525c hex)
bfin> Image size is 0x23525c
Case 7 ...PASS
protect off 20040000 207effff
Un-Protected 123 sectors
bfin>
Case 8 ...PASS
erase 20040000 207effff
........................................................................................................................... done
Erased 123 sectors
bfin>
Case 9 ...PASS
cp.b 0x1000000 20040000 0x23525c
Copy to Flash... done
bfin>
Case 10 ...PASS
set bootargs root=/dev/nfs rw nfsroot=10.100.4.174:/tftpboot/romfs,tcp,nfsvers=3 rootdelay=1 earlyprintk=serial,uart0,57600 console=ttyBF0,57600
bfin> run addip
bfin> printenv bootargs
bootargs=root=/dev/nfs rw nfsroot=10.100.4.174:/tftpboot/romfs,tcp,nfsvers=3 rootdelay=1 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
bfin> bootm 20040000
## Booting kernel from Legacy Image at 20040000 ...
Image Name: bf561-0.5-3.0.0-ADI-2011R1-pre-s
Image Type: Blackfin Linux Kernel Image (uncompressed)
Data Size: 2314780 Bytes = 2.2 MiB
Load Address: 20040040
Entry Point: 201ce638
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting Kernel at = 201ce638
Linux version 3.0.0-ADI-2011R1-pre-svn10095 (test@uclinux65-561-SMP) (gcc version 4.3.5 (ADI-2011R1-RC2) ) #10 SMP Sun Oct 16 19:21:32 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 = 0x20040040-0x201dc60c
rodata = 0x201dc620-0x20244e34
bss = 0x00001000-0x00015780
data = 0x00015780-0x0002a000
stack = 0x00028000-0x0002a000
init = 0x0002a000-0x00032000
available = 0x00032000-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 @000b7000 s4480 r8192 d16000 u32768
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16002
Kernel command line: root=/dev/nfs rw nfsroot=10.100.4.174:/tftpboot/romfs,tcp,nfsvers=3 rootdelay=1 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: 63672k/65536k RAM, (32k init code, 1649k kernel code, 4294965811k 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... 1112.06 BogoMIPS (lpj=2224128)
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 (2224.12 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
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
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
debug-mmrs: setting up Blackfin MMR debugfs
msgmni has been set to 124
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:29
TCP cubic registered
NET: Registered protocol family 17
smc91x smc91x.0: eth0: link down
smc91x smc91x.0: eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
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 @ 0x02196000 - 256 pages at 0x03f00000
Waiting 1sec before mounting root device...
VFS: Mounted root (nfs filesystem) on device 0:12.
Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
Hardware Trace:
0 Target : <0x201c5d10> { _dump_stack + 0x0 }
Source : <0x201c5dbe> { _panic + 0x6a } CALL (P2)
1 Target : <0x201c5db6> { _panic + 0x62 }
Source : <0x201c5f46> { _printk + 0x1a } RTS
2 Target : <0x201c5f42> { _printk + 0x16 }
Source : <0x2005b8d6> { _vprintk + 0x1c2 } RTS
3 Target : <0x2005b8ca> { _vprintk + 0x1b6 }
Source : <0x2004b28e> { __common_int_entry + 0xf6 } RTI
4 Target : <0x2004b21c> { __common_int_entry + 0x84 }
Source : <0x2004b024> { _return_from_int + 0x58 } RTS
5 Target : <0x2004b024> { _return_from_int + 0x58 }
Source : <0x2004affa> { _return_from_int + 0x2e } IF !CC JUMP pcrel
6 Target : <0x2004afcc> { _return_from_int + 0x0 }
Source : <0x2004b21a> { __common_int_entry + 0x82 } CALL (P2)
7 Target : <0x2004b210> { __common_int_entry + 0x78 }
Source : <0x20043e72> { _asm_do_IRQ + 0xbe } RTS
8 Target : <0x20043e54> { _asm_do_IRQ + 0xa0 }
Source : <0x2005fc28> { ___local_bh_enable + 0x38 } RTS
9 Target : <0x2005fbf0> { ___local_bh_enable + 0x0 }
Source : <0x20060810> { ___do_softirq + 0x160 } JUMP (P2)
10 Target : <0x200607fc> { ___do_softirq + 0x14c }
Source : <0x200607c6> { ___do_softirq + 0x116 } IF CC JUMP pcrel
11 Target : <0x2006079e> { ___do_softirq + 0xee }
Source : <0x2008989c> { _rcu_bh_qs + 0x24 } RTS
12 Target : <0x20089878> { _rcu_bh_qs + 0x0 }
Source : <0x2006079c> { ___do_softirq + 0xec } CALL (P7)
13 Target : <0x2006078c> { ___do_softirq + 0xdc }
Source : <0x2008a846> { ___rcu_process_callbacks + 0xaa } RTS
14 Target : <0x2008a83e> { ___rcu_process_callbacks + 0xa2 }
Source : <0x2008a812> { ___rcu_process_callbacks + 0x76 } IF CC JUMP pcrel
15 Target : <0x2008a80a> { ___rcu_process_callbacks + 0x6e }
Source : <0x2008a7f4> { ___rcu_process_callbacks + 0x58 } IF CC JUMP pcrel
Stack info:
SP: [0x0202df70] <0x0202df70> /* kernel dynamic memory (maybe user-space) */
FP: (0x0202dfdc)
Memory from 0x0202df70 to 0202e000
0202df70:[2020e210]<201c5dc0> 2011e94c 2020e210 00007b6f 00007b6f 00007b6f 0202dfb8
0202df90: 0002f65c <200402d0> 200a9510 000161b4 00001018 0202c000 00000000 00000000
0202dfb0: 00000000 00002000 000770c0 0000003f <201c82d0> 200b013c 20040040 0002f870
0202dfd0: 20040768 00000000 00000002 (00000000)<2004076e> 00000000 00000000 00000000
0202dff0: 00000000 00000000 ffffffff 00000006
Return addresses in stack:
address : <0x201c5dc0> { _panic + 0x6c }
address : <0x200402d0> { _init_post + 0xe8 }
address : <0x201c82d0> { _kernel_init + 0x14c }
frame 1 : <0x2004076e> { _kernel_thread_helper + 0x6 }
CPU0: stopping
Hardware Trace:
0 Target : <0x201c5d10> { _dump_stack + 0x0 }
Source : <0x2004c602> { _ipi_handler_int1 + 0x13a } CALL (P2)
1 Target : <0x2004c5fa> { _ipi_handler_int1 + 0x132 }
Source : <0x201c5f46> { _printk + 0x1a } RTS
2 Target : <0x201c5f42> { _printk + 0x16 }
Source : <0x2005b8d6> { _vprintk + 0x1c2 } RTS
3 Target : <0x2005b8ca> { _vprintk + 0x1b6 }
Source : <0x2005b8a0> { _vprintk + 0x18c } IF CC JUMP pcrel
4 Target : <0x2005b898> { _vprintk + 0x184 }
Source : <0x2004cfb2> { ___raw_spin_unlock_asm + 0x16 } RTS
5 Target : <0x2004cfb0> { ___raw_spin_unlock_asm + 0x14 }
Source : <0x2004cdf2> { _put_core_lock + 0x1a } RTS
6 Target : <0x2004cdd8> { _put_core_lock + 0x0 }
Source : <0x2004cf22> { _end_lock_coherent + 0x20 } JUMP.S
7 Target : <0x2004cf02> { _end_lock_coherent + 0x0 }
Source : <0x2004cfac> { ___raw_spin_unlock_asm + 0x10 } CALL pcrel
8 Target : <0x2004cfa4> { ___raw_spin_unlock_asm + 0x8 }
Source : <0x2004cda4> { _get_core_lock + 0x40 } RTS
9 Target : <0x2004cd88> { _get_core_lock + 0x24 }
Source : <0x2004cd78> { _get_core_lock + 0x14 } IF CC JUMP pcrel
10 Target : <0x2004cd73> { _get_core_lock + 0xf }
Source : <0x2004cd86> { _get_core_lock + 0x22 } JUMP.S
11 Target : <0x2004cd64> { _get_core_lock + 0x0 }
Source : <0x2004cfa0> { ___raw_spin_unlock_asm + 0x4 } JUMP.L
12 Target : <0x2004cf9c> { ___raw_spin_unlock_asm + 0x0 }
Source : <0x2005b896> { _vprintk + 0x182 } CALL (P2)
13 Target : <0x2005b876> { _vprintk + 0x162 }
Source : <0x2005b080> { _console_trylock + 0x60 } RTS
14 Target : <0x2005b07a> { _console_trylock + 0x5a }
Source : <0x2005b038> { _console_trylock + 0x18 } IF !CC JUMP pcrel
15 Target : <0x2005b036> { _console_trylock + 0x16 }
Source : <0x20076ef0> { _down_trylock + 0x34 } RTS
Stack info:
SP: [0x00029dd4] <0x00029dd4> /* kernel dynamic memory (maybe user-space) */
FP: (0x00029e2c)
Memory from 0x00029dd0 to 0002a000
00029dd0: 201c7fb4 [0000003f]<2004c604> 00000003 0000003f 00000001 00000000 0000001f
00029df0: 00000000 0001b020 <2008618a> 02008b60 00000046 ffe02104 00000046 00000000
00029e10: 00000000 00000000 0000dfcc <2006078c> 0000c4e0 00000007 00028000 (00000000)
00029e30:<200882a4> ffe05000 0001b020 00016c54 00000046 00000000 0000001f 0000c468
00029e50: 00000000 0000000a 00000000 201c60f0 <20085d9a> 00030a60 0000dfcc 00000000
00029e70: 00000006 00000000 <20043dfc><20043e80> 00000000 00000002 00000000 <2004b210>
00029e90: ffc00014 2004d2bc ffe05000 00028008 20040ff8 00000000 00000000 00000000
00029eb0: 20041044 00008090 00002026 00000000 0202dcdc 2011d974 20041044
00029ed0: 00000007 02002060 20122802 2011d974 201227f8 2011d974 00000000 00000000
00029ef0: 00000003 00000000 00000003 00000000 00000000 00000000 00000000 0000001b
00029f10: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0000002c
00029f30: 0000000f 00000000 02198d20 02201584 0002a000 201c60f0 20040ff8 2004d2bc
00029f50: ffe05000 00003008 00000001 00028000 00028008 20040ff8 0000001f 0000c468
00029f70: 00000004 0000001f 00003000 0000ffff 0000ffff 00028000 00000006 00028008
00029f90: 20040ff8 0000001f <20040fdc> 20040f00 00001014 00001000 201c5f2c <201c8896>
00029fb0: 0000de34 00001014 00001000 0002ca7c 0000100c 00000000 03fcd416 2020e34c
00029fd0: 0002a214 20244ba0 00000029 201c82fc 0002ca7c 0002a000 201ce772 ffe00000
00029ff0: 03f9fe5c 03f9ff80 ffb00000 00000000
Return addresses in stack:
address : <0x2004c604> { _ipi_handler_int1 + 0x13c }
address : <0x2008618a> { _handle_irq_event_percpu + 0x2e }
address : <0x2006078c> { ___do_softirq + 0xdc }
frame 1 : <0x200882a4> { _handle_percpu_irq + 0x60 }
address : <0x20085d9a> { _generic_handle_irq + 0x2a }
address : <0x20043dfc> { _asm_do_IRQ + 0x48 }
address : <0x20043e80> { _asm_do_IRQ + 0xcc }
address : <0x2004b210> { __common_int_entry + 0x78 }
address : <0x20041012> { _default_idle + 0x1a }
address : <0x20040fdc> { _cpu_idle + 0x68 }
address : <0x201c8896> { _start_kernel + 0x372 }
--
Follow-ups
--- steven miao 2011-10-26 04:15:28
not a bug, should set nfs romfs privilege correctly now
--- Vivi Li 2011-10-26 22:48:23
As it's a dupe of bug 6819, so close this one.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.config.kernel_xip.shared-flat application/octet-stream 48216 Vivi Li
config.linux.kernel_xip.shared-flat application/octet-stream 27448 Vivi Li