2008-07-15 06:40:57 Kernel Panic :BUG: failure at drivers/mtd/nand/nand_base.c:2438/nand_scan_tail()!
Oussema Harbi (TUNISIA)
Message: 58843
I got this big after compiling uclinux and loading it on the bf537 stamp board.
i loaded from Ram ,and it worked perfectly ,but when i load it into flash and execute it from there ,i get this error :
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
SMSC LAN83C185: Registered new driver
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)
bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver
NFTL driver: nftlcore.c $Revision: 3544 $, nftlmount.c $Revision: 2399 $
physmap platform flash device: 00400000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
RedBoot partition parsing not available
Using physmap partition information
Creating 4 MTD partitions on "physmap-flash.0":
0x00000000-0x00040000 : "Bootloader"
0x00040000-0x00120000 : "Kernel"
0x00120000-0x003f0000 : "RootFS"
0x003f0000-0x00400000 : "MAC Address"
NAND device: Manufacturer ID: 0xb3, Chip ID: 0xb3 (Unknown NAND 1GiB 1,8V 16-bit)
No oob scheme defined for oobsize 128
BUG: failure at drivers/mtd/nand/nand_base.c:2438/nand_scan_tail()!
Kernel panic - not syncing: BUG!
Here are the modifications i made ,starting from the default configuration:
*enabled Nand device support
*enabled Nand ECC smart Media ..
*Memory Tech: NFTL support
*enabled Support for Intel/Sharp flash chips
*enabled Support for AMD/Fujitsu flash chips
*enabled Support for RAM chips in bus mapping
*enabled Support for ROM chips in bus mapping
*enabled flat support
*remove power manag
*remove infrared
*add direct char device access
*enabled cfi-flash devie ..
*removed generic uClinux Ram/Rom
*enabled physical system RAM
*enabled Mtd using block device
*disabled security
*removed SMBfs support
*removed nfs fs support
*yaffs activated <-- as module
*jffs support <-- as module
*removed alsa
*removed sound card support
*removed Backlight & LCD <-- error when removing
*removed HardMonitoring
*removed support for hot-pluggable device
Applications :
*removed rsh ,rcp,rshd
*removed pngview,watchdog
*removed video test ,input device test ..
*enabled flat shared libraries
Does anyone has an idea ,how should i procede ?
QuoteReplyEditDelete
2008-07-15 07:15:01 Re: Kernel Panic :BUG: failure at drivers/mtd/nand/nand_base.c:2438/nand_scan_tail()!
Mike Frysinger (UNITED STATES)
Message: 58844
post the kernel output from a working boot. you should also make sure that your NAND device is actually supported ... this error message is pretty worrisome:
NAND device: Manufacturer ID: 0xb3, Chip ID: 0xb3 (Unknown NAND 1GiB 1,8V 16-bit)
No oob scheme defined for oobsize 128
QuoteReplyEditDelete
2008-07-15 08:37:48 Re: Kernel Panic :BUG: failure at drivers/mtd/nand/nand_base.c:2438/nand_scan_tail()!
Oussema Harbi (TUNISIA)
Message: 58848
The output from a working kernel is -version of 2005 :
root: /> dmesg
Linux version 2.6.22.18-ADI-2008R1-svn (root@oussema-laptop) (gcc version 4.1.2 (ADI svn)) #28 Tue Jul 15 18
Hardware Trace Active and Enabled
Warning: limiting memory to 56MB due to hardware anomaly 05000263
Reset caused by Software reset
Blackfin support (C) 2004-2007 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 100 MHz System Clock
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
text = 0x00001000-0x00102d90
rodata = 0x00103000-0x0014d708
data = 0x0014e000-0x00160000
stack = 0x0014e000-0x00150000
init = 0x00160000-0x0071a000
bss = 0x0071a000-0x00728c50
available = 0x00728c50-0x037ff000
DMA Zone = 0x03f00000-0x04000000
On node 0 totalpages: 14335
DMA zone: 111 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 14224 pages, LIFO batch:3
Normal zone: 0 pages used for memmap
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists. Total pages: 14224
Kernel command line: mtdparts=physmap-flash.0:146k(uboot)ro,850k(kernel),-(rootfs)
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 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: 14335
Memory available: 49432k/65536k RAM, (5864k init code, 1031k kernel code, 432k data, 1024k dma, 7756k reser)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin Data A SRAM: 16 KB (15 KB free)
Blackfin Data B SRAM: 16 KB (16 KB free)
Blackfin Instruction SRAM: 48 KB (40 KB free)
Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
stamp_init(): registering device resources
Generic PHY: Registered new driver
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
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
SMSC LAN83C185: Registered new driver
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)
bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver
NFTL driver: nftlcore.c $Revision: 3544 $, nftlmount.c $Revision: 2399 $
physmap platform flash device: 00400000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
3 cmdlinepart partitions found on MTD device physmap-flash.0
Creating 3 MTD partitions on "physmap-flash.0":
0x00000000-0x00024800 : "uboot"
0x00024800-0x000f9000 : "kernel"
mtd: partition "kernel" doesn't start on an erase block boundary -- force read-only
0x000f9000-0x00400000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
No NAND device found!!!
bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma chan7
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Setting up Blackfin MMR debugfs
rtc-bfin rtc-bfin: setting the system clock to 1970-01-01 03:10:46 (11446)
Freeing unused kernel memory: 5864k freed
dma_alloc_init: dma_page @ 0x00717000 - 256 pages at 0x03f00000
QuoteReplyEditDelete
2008-07-15 10:30:43 Re: Kernel Panic :BUG: failure at drivers/mtd/nand/nand_base.c:2438/nand_scan_tail()!
Mike Frysinger (UNITED STATES)
Message: 58854
that one isnt exactly the same configuration, but your NAND device still isnt working ... did you enable the same NAND configuration options ?
you should verify your NAND chip you're attempting to used is actually supported by Linux