[#6607] kernel config with spimmc fail to start on bf548 ezkit
Submitted By: Mingquan Pan
Open Date
2011-05-18 04:06:38 Close Date
2011-06-10 02:14:05
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 spimmc fail to start on bf548 ezkit
Details:
kernel config with spimmc fail to start on bf548 also from Apr 20. It may be dup of [#6606].
bfin> printenv ethaddr
ethaddr=00:E0:22:FE:BF:4E
bfin> mac address=00:E0:22:FE:BF:4E
tftpboot 0x2000000 uImage
smc911x: detected LAN9218 controller
smc911x: phy initialized
smc911x: MAC 00:e0:22:fe:bf:4e
Using smc911x-0 device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename 'uImage'.
Load address: 0x2000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
######################################################
done
Bytes transferred = 5553006 (54bb6e hex)
Image size is 54bb6e
bfin> run addip
bfin> bootm
## Booting kernel from Legacy Image at 02000000 ...
Image Name: bf548-0.2-2.6.39-rc4-ADI-2011R1-
Created: 2011-04-21 8:09:31 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 5552942 Bytes = 5.3 MiB
Load Address: 00001000
Entry Point: 002a9dd8
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 002a9dd8
Linux version 2.6.39-rc4-ADI-2011R1-pre-svn9863 (test@uclinux61-bf548-std) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #340 Thu Apr 21 16:09:23 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-0x001cced0
rodata = 0x001cced0-0x0026c374
bss = 0x0026d000-0x0027fea8
data = 0x0027fea8-0x002a0000
stack = 0x0029e000-0x002a0000
init = 0x002a0000-0x00a1f000
available = 0x00a1f000-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: 52516k/65536k RAM, (7676k init code, 1839k kernel code, 845k 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
------------[ cut here ]------------
kernel BUG at mm/slab.c:3058!
Kernel panic - not kernel panic detected... trying to recover from ittest@uclinux61-bf548-std:~/work/cruise/test_scripts/uclinux-dist/logs>
last passed version:
kernel: Linux release 2.6.38.3-ADI-2011R1-pre-svn9857, build #334 Wed Apr 20 00:55:16 CST 2011^M
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5013) ^M
user-dist: release svn-10142, build #5485 Wed Apr 20 00:54:25 CST 2011^M
root:/> ^[[6nsuccessful boot attempt
Follow-ups
--- steven miao 2011-05-26 06:36:32
when scsi init, slabs_free list of cache size-64 corrupts. but i don't find
anywhere concerned with this corruption, the slab code is logically correct.
next of slabs_free modified by somewhere
malloc_sizes[1].cs_cachep.nodelists[0].slabs_free = {next = 0x2002c48, prev =
0x2002cb0}
--- Mingquan Pan 2011-05-27 03:30:26
This issue is also seen when kernel configured with sdiommc on bf548 board.
bfin> bootm
## Booting kernel from Legacy Image at 02000000 ...
Image Name: bf548-0.2-2.6.39-rc7-ADI-2011R1-
Created: 2011-05-15 16:33:35 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 5510554 Bytes = 5.3 MiB
Load Address: 00001000
Entry Point: 002a9dd8
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 002a9dd8
Linux version 2.6.39-rc7-ADI-2011R1-pre-svn9883 (test@uclinux61-bf548-std) (gcc
version 4.3.5 (ADI-trunk/svn-5013) ) #442 Mon May 16 00:33:28 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-0x001cd0c0
rodata = 0x001cd0c0-0x0026c66c
bss = 0x0026d000-0x0027fe68
data = 0x0027fe68-0x002a0000
stack = 0x0029e000-0x002a0000
init = 0x002a0000-0x00a07000
available = 0x00a07000-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: 52612k/65536k RAM, (7580k init code, 1840k kernel code, 844k
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
------------[ cut here ]------------
kernel BUG at mm/slab.c:3058!
Kernel panic - not syncing:kernel panic detected... trying to recover from it
--- steven miao 2011-06-01 04:14:15
it was a bug of strncpy while copying a NULL string
if string length is zero just jump to the end.
--- Mingquan Pan 2011-06-10 02:13:52
Yes, it is fixed and boots up now. Close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found