[#6606] kernel config with nand would fail to boot on bf548-ezkit
Submitted By: Mingquan Pan
Open Date
2011-05-18 03:17:48 Close Date
2011-06-02 04:16:01
Priority:
Medium Assignee:
steven miao
Status:
Closed 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:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
5013
App binary format:
N/A
Summary: kernel config with nand would fail to boot on bf548-ezkit
Details:
kernel config with nand would fail to boot on bf548-ezkit from April 20.
bfin> bootm
## Booting kernel from Legacy Image at 02000000 ...
Image Name: bf548-0.2-2.6.39-rc4-ADI-2011R1-
Created: 2011-04-21 1:46:51 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 10398844 Bytes = 9.9 MiB
Load Address: 00001000
Entry Point: 002c5dd8
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 002c5dd8
Linux version 2.6.39-rc4-ADI-2011R1-pre-svn9863 (test@uclinux61-bf548-std) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #342 Thu Apr 21 09:46:43 CST 2011
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart1] enabled
early printk enabled on early_BFuart1
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001e62f8
rodata = 0x001e62f8-0x00287a7c
bss = 0x00288000-0x0029b8a8
data = 0x0029b8a8-0x002bc000
stack = 0x002ba000-0x002bc000
init = 0x002bc000-0x01175000
available = 0x01175000-0x03e00000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 1
Reset caused by Software reset
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF548 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
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
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 15748
Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart1,57600 console=ttyBF1,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf548-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: 45004k/65536k RAM, (15076k init code, 1940k kernel code, 856k data, 2048k dma, 612k reserved)
NR_IRQS:295
Configuring Blackfin Priority Driven Interrupts
console [ttyBF1] enabled, bootconsole disabled
console [ttyBF1] enabled, bootconsole disabled
Calibrating delay loop... 1044.48 BogoMIPS (lpj=2088960)
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 (41 KB free)
Blackfin L2 SRAM: 128 KB (128 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
bio: create slab <bio-0> at 0
Data access CPLB miss
<5> - Used by the MMU to signal a CPLB miss on a data access.
Kernel OOPS in progress
Deferred Exception context
CURRENT PROCESS:
COMM=swapper PID=1 CPU=0
invalid mm
return address: [0x000470dc]; contents of:
0x000470b0: a102 a1d8 0982 1c03 2055 300b 3019 67fb
0x000470c0: 0c3b 1817 0000 0000 640a ad42 a118 9169
0x000470d0: b102 304a 40c8 a0c1 5041 5e90 [a1d0] b140
0x000470e0: 5e8d b111 6c09 9369 a102 a1d8 0982 1fe6
ADSP-BF548-0.2 525(MHz CCLK) 131(MHz SCLK) (mpu off)
Linux version 2.6.39-rc4-ADI-2011R1-pre-svn9863 (test@uclinux61-bf548-std) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #342 Thu Apr 21 09:46:43 CST 2011
SEQUENCER STATUS: Not tainted
SEQSTAT: 00002026 IPEND: 8008 IMASK: 003f SYSCFG: 0006
Peripheral interrupts masked off
Kernel interrupts masked off
EXCAUSE : 0x26
physical IVG3 asserted : <0xffa00780> { _trap + 0x0 }
physical IVG15 asserted : <0xffa00fc8> { _evt_system_call + 0x0 }
logical irq 6 mapped : <0xffa003bc> { _bfin_coretmr_interrupt + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x0201bec0> /* kernel dynamic memory (maybe user-space) */
RETX: <0x00000480> /* Maybe fixed code section */
RETS: <0x00047572> { _kmem_cache_alloc + 0x72 }
PC : <0x000470dc> { _cache_alloc_refill + 0xd8 }
DCPLB_FAULT_ADDR: <0x497ca8cc> /* reserved memory */
ICPLB_FAULT_ADDR: <0x000470dc> { _cache_alloc_refill + 0xd8 }
PROCESSOR STATE:
R0 : 77c7c080 R1 : 79c7ed30 R2 : 00000002 R3 : 0000003a
R4 : 00000000 R5 : 00100100 R6 : 00000001 R7 : 02002ca8
P0 : 02002ca8 P1 : 00000001 P2 : 497ca8b0 P3 : 02000120
P4 : 02002ca0 P5 : 0200a800 FP : 02002cb0 SP : 0201bde4
LB0: ffa01798 LT0: ffa01792 LC0: 00000000
LB1: 0004729c LT1: 00047296 LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 0000002c I0 : 00200200
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: 00211d76 A0.x: 00000000 A1.w: 0000078c A1.x: 00000000
USP : 00000000 ASTAT: 02002040
Hardware Trace:
0 Target : <0x0000400c> { _trap_c + 0x0 }
Source : <0xffa00714> { _exception_to_level5 + 0xa4 } JUMP.L
1 Target : <0xffa00670> { _exception_to_level5 + 0x0 }
Source : <0xffa00524> { _bfin_return_from_exception + 0x18 } RTX
2 Target : <0xffa0050c> { _bfin_return_from_exception + 0x0 }
Source : <0xffa005c8> { _ex_trap_c + 0x74 } JUMP.S
3 Target : <0xffa00438> { _ex_dcplb_miss + 0x0 }
Source : <0xffa007da> { _trap + 0x5a } JUMP (P4)
4 Target : <0xffa00780> { _trap + 0x0 }
FAULT : <0x000470dc> { _cache_alloc_refill + 0xd8 } P0 = W[P2 + 7]
Source : <0x000470da> { _cache_alloc_refill + 0xd6 } 0x5e90
5 Target : <0x000470ba> { _cache_alloc_refill + 0xb6 }
Source : <0x000470ee> { _cache_alloc_refill + 0xea } IF CC JUMP pcrel (BP)
6 Target : <0x000470bc> { _cache_alloc_refill + 0xb8 }
Source : <0x00047160> { _cache_alloc_refill + 0x15c } IF CC JUMP pcrel (BP)
7 Target : <0x0004714c> { _cache_alloc_refill + 0x148 }
Source : <0x000470a8> { _cache_alloc_refill + 0xa4 } IF CC JUMP pcrel
8 Target : <0x00047086> { _cache_alloc_refill + 0x82 }
Source : <0x0004706e> { _cache_alloc_refill + 0x6a } IF CC JUMP pcrel
9 Target : <0x0004706a> { _cache_alloc_refill + 0x66 }
Source : <0x00047066> { _cache_alloc_refill + 0x62 } IF !CC JUMP pcrel (BP)
10 Target : <0x00047064> { _cache_alloc_refill + 0x60 }
Source : <0x00047060> { _cache_alloc_refill + 0x5c } IF CC JUMP pcrel (BP)
11 Target : <0x00047004> { _cache_alloc_refill + 0x0 }
Source : <0x0004756e> { _kmem_cache_alloc + 0x6e } CALL pcrel
12 Target : <0x0004756a> { _kmem_cache_alloc + 0x6a }
Source : <0x00047528> { _kmem_cache_alloc + 0x28 } IF CC JUMP pcrel
13 Target : <0x0004751c> { _kmem_cache_alloc + 0x1c }
Source : <0x0004757a> { _kmem_cache_alloc + 0x7a } JUMP.S
14 Target : <0x0004757a> { _kmem_cache_alloc + 0x7a }
Source : <0x001e5040> { __cond_resched + 0x20 } RTS
15 Target : <0x001e503a> { __cond_resched + 0x1a }
Source : <0x001e5032> { __cond_resched + 0x12 } IF CC JUMP pcrel (BP)
Kernel Stack
Stack info:
SP: [0x0201bdb4] <0x0201bdb4> /* kernel dynamic memory (maybe user-space) */
FP: (0x0201bfe0)
Memory from 0x0201bdb0 to 0201c000
0201bdb0: 00000001 [00000001] 0004720c 00000000 ffa00718 0028a000 00008008 00002026
0201bdd0: 00100100 00000000 0000000c 00000000 00000480 00000480 00008008 00002026
0201bdf0: 00000000 0201bec0 00000480 000470dc 00047572 77c7c080 02002040 0004729c
0201be10: ffa01798 00047296 ffa01792 00000000 00000000 0000078c 00000000 00211d76
0201be30: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0201be50: 00000000 00000000 00000000 00000000 0000002c 00000000 00000000 00000000
0201be70: 00200200 00000000 02002cb0 0200a800 02002ca0 02000120 497ca8b0 00000001
0201be90: 02002ca8 02002ca8 00000001 00100100 00000000 0000003a 00000002 79c7ed30
0201beb0: 77c7c080 77c7c080 02002ca8 00000006 ffffffff 00000000 0026341a 00000000
0201bed0: 000000d0 0004793a 00000010 000000d0 010000d0 00000000 00047572 02000120
0201bef0: 00000000 00288010 00000001 000000d0 0000ffff 00000000 00047d22 000000d0
0201bf10: 0206a620 00105936 0206a620 00000001 0024f370 0024f720 001055cc 002ab0e4
0201bf30: 00000000 0024f718 00000001 002cdb46 002db704 00000000 00000000 00000000
0201bf50: 00000000 00237200 ffffffff 002cd9a8 0024e964 00000000 00000240 00000000
0201bf70: 00000000 002cd8e6 002de4a8 002cd8c8 00000000 00000000 00000000 00000000
0201bf90: 0024d178 001f8810 <0000110a><0000110a> 00000000 00000000 002a0000 00035374
0201bfb0: 002a0480 002d0000 002bc170 002de4a8 002de728 002de400 00000000 00000000
0201bfd0: 00000000 00000000 00000000 00000000 (00000000)
00000000 00000000
0201bff0: 00000000 00000000 ffffffff 00000006
Return addresses in stack:
address : <0x0000110a> { _do_one_initcall + 0x10a }
address : <0x0000110a> { _do_one_initcall + 0x10a }
frame 1 : <0x00001556> { _kernel_thread_helper + 0x6 }
Modules linked in:
Kernel panic - not kernel panic detected... trying to recover from it
last passed version:
root:/> ^[[6nversion^M
kernel: Linux release 2.6.38.3-ADI-2011R1-pre-svn9857, build #336 Tue Apr 19 19:08:35 CST 2011^M
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5013) ^M
user-dist: release svn-10142, build #5466 Tue Apr 19 19:07:05 CST 2011^M
root:/> ^[[6nsuccessful boot attempt
Follow-ups
--- steven miao 2011-05-26 06:38:17
this crash is same as #6607
--- steven miao 2011-06-01 04:15:31
same fix as #6607
--- Mingquan Pan 2011-06-02 04:23:47
Yes, the kernel config with nand can boot now.
Linux version 2.6.39-ADI-2011R1-pre-svn9919 (test@uclinux61-bf548-std) (gcc
version 4.3.5 (ADI-trunk/svn-5013) ) #518 Thu Jun 2 15:35:44 CST 2011
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart1] enabled
early printk enabled on early_BFuart1
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00216f08
rodata = 0x00216f08-0x002c5660
bss = 0x002c6000-0x002d99b4
data = 0x002d99b4-0x002fa000
stack = 0x002f8000-0x002fa000
init = 0x002fa000-0x00b3b000
available = 0x00b3b000-0x03e00000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 1
Reset caused by Software reset
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF548 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
boot memmap: 0000000000b3b000 - 0000000003e00000 (usable)
On node 0 totalpages: 15872
free_area_init_node: node 0, pgdat 002f6b18, node_mem_map 00b3d000
DMA zone: 124 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 15748 pages, LIFO batch:0
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
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 15748
Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50
earlyprintk=serial,uart1,57600 console=ttyBF1,57600
ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf548-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)
Kernel managed physical pages: 15872
Memory available: 51380k/65536k RAM, (8452k init code, 2135k kernel code, 909k
data, 2048k dma, 612k reserved)
NR_IRQS:295
Configuring Blackfin Priority Driven Interrupts
console [ttyBF1] enabled, bootconsole disabled
Calibrating delay loop... 1044.48 BogoMIPS (lpj=2088960)
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 (41 KB free)
Blackfin L2 SRAM: 128 KB (128 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
bio: create slab <bio-0> at 0
SCSI subsystem initialized
libata version 3.00 loaded.
spi spi0.2: Warning: SPI CPHA not set: Slave Select not under software
control!
See Documentation/blackfin/bfin-spi-notes.txt
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0,
regs_base@ffc00500, dma channel@4
bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0,
regs_base@ffc02300, dma channel@5
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller,
regs_base@ffc00700
i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller,
regs_base@ffc02200
Advanced Linux Sound Architecture Driver Version 1.0.24.
cfg80211: Calling CRDA to update world regulatory domain
musb-hdrc: version 6.0, musb-dma, host, debug=0
musb-hdrc: ConfigData=0x00 (UTMI-8)
musb-hdrc: HDRC RTL version 1.900
musb-hdrc musb-hdrc: MUSB HDRC host driver
musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb-hdrc musb-hdrc: USB Host mode controller at ffc03c00 using DMA, IRQ 82
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 100
io scheduler noop registered (default)
bf54x-lq043: FrameBuffer initializing...
dma_alloc_init: dma_page @ 0x02af2000 - 512 pages at 0x03e00000
bfin-uart: Blackfin serial driver
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART
bfin-otp: initialized
brd: module loaded
register bfin atapi driver
scsi0 : pata-bf54x
ata1: PATA max UDMA/66 irq 68
physmap platform flash device: 02000000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID
0x000089 Chip ID 0x00881e
physmap-flash.0: Found an alias at 0x1000000 for the chip at 0x0
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
erase region 0: offset=0x0,size=0x20000,blocks=127
erase region 1: offset=0xfe0000,size=0x8000,blocks=4
RedBoot partition parsing not available
Using physmap partition information
Creating 5 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000080000 : "bootloader(nor)"
0x000000080000-0x000000480000 : "linux kernel(nor)"
0x000000480000-0x000000fe0000 : "file system(nor)"
0x000000fe0000-0x000000ff8000 : "config(nor)"
0x000000ff8000-0x000001000000 : "u-boot env(nor)"
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word
m25p80: probe of spi0.1 failed with error -22
BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog
Devices, Inc.
bf5xx-nand bf5xx-nand.0: data_width=8, wr_dly=3, rd_dly=3
NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V
8-bit)
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000080000 : "bootloader(nand)"
0x000000080000-0x000000480000 : "linux kernel(nand)"
0x000000480000-0x000010000000 : "file system(nand)"
smsc911x: Driver version 2008-10-21.
smsc911x smsc911x.0: eth0: Features changed: 0x00004800 -> 0x00004000
smsc911x-mdio: probed
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1)
net eth0: MAC Address: 00:e0:22:fe:bf:4e
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
input: bf54x-keys as /devices/platform/bf54x-keys/input/input0
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 2004-06-01 09:00:15 UTC
(1086080415)
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card at address e624
ata1.00: ATA-6: TOSHIBA MK4032GAX, AD101A, max UDMA/100
ata1.00: 78140160 sectors, multi 16: LBA48
ata1.00: configured for UDMA/66
blk_queue_max_segments: set to minimum 1
scsi 0:0:0:0: Direct-Access ATA TOSHIBA MK4032GA AD10 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.2 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support
DPO or FUA
sda: detected capacity change from 0 to 40007761920
sda: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI disk
net eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=bf548-ezkit, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
Freeing unused kernel memory: 8452k freed
usb 1-1: new high speed USB device number 2 using musb-hdrc
scsi1 : usb-storage 1-1:1.0
scsi 1:0:0:0: Direct-Access SanDisk U3 Cruzer Micro 6.51 PQ: 0 ANSI: 0
CCS
sd 1:0:0:0: [sdb] 2014271 512-byte logical blocks: (1.03 GB/983 MiB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 45 00 00 08
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sdb: detected capacity change from 0 to 1031306752
sdb: sdb1 sdb2
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Attached SCSI removable disk
root:/>
Case 1 ...PASS
Case 1 ...PASS
Close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found