2008-09-26 13:00:16     JFFS2 on SPI NOR Flash kernel panic

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-09-26 13:00:16     JFFS2 on SPI NOR Flash kernel panic

Harvey Sugar (UNITED STATES)

Message: 62805   

 

I am trying to bring up uClinux on a BF536 based board with SPI FLASH.  I have had uClinux running out of RAM just fine.

 

For the partitioning I am using the partitions as defined in stamp.c for the BF537 stamp board.  Here is the result I get when booting my kernel for SPI flash:

 

printenv bootargs

bootargs=root=/dev/mtdblock2 rw rootfstype=jffs2

bfin> eeprom read 1000000 120000 2

EEPROM @0x0 read: addr 01000000  off 120000  count 2 ... done

bfin> md.b 1000000 2

01000000: 85 19    ..

bfin> eeprom read 1000000 40000 e0000

EEPROM @0x0 read: addr 01000000  off 40000  count 917504 ... ..............done

bfin> bootm 1000000

## Booting image at 01000000 ...

   Image Name:   Linux-2.6.22.18-ADI-2008R1-svn

   Created:      2008-09-26  15:39:40 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    847522 Bytes = 827.7 kB

   Load Address: 00001000

   Entry Point:  00166000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 166000

Linux version 2.6.22.18-ADI-2008R1-svn (hsugar@sasha) (gcc version 4.1.2 (ADI svn)) #12 Fri Sep 26 11:39:37 EDT 2008

Hardware Trace Active and Enabled

Warning: limiting memory to 56MB due to hardware anomaly 05000263

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF536 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 400 MHz core clock and 100 MHz System Clock

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x00104f50

  rodata    = 0x00105000-0x00154840

  data      = 0x00155000-0x00166000

    stack   = 0x00156000-0x00158000

  init      = 0x00166000-0x0017c000

  bss       = 0x0017c000-0x0018ae30

  available = 0x0018ae30-0x037ff000

  DMA Zone  = 0x03f00000-0x04000000

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 14224

Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2

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)

Memory available: 55184k/65536k RAM, (88k init code, 1039k kernel code, 448k data, 1024k dma, 7756k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data B SRAM: 16 KB (16 KB free)

Blackfin Instruction SRAM: 48 KB (39 KB free)

Security Framework v1.0.0 initialized

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

JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

JFFS2: default compression mode: priority

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 0xffc02000 (irq = 20) is a BFIN-UART

SMSC LAN83C185: Registered new driver

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)

bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver

m25p80 spi0.1: m25p64 (8192 Kbytes)

mtd .name = m25p80, .size = 0x00800000 (8M) .erasesize = 0x00010000 (64K) .numeraseregions = 0

m25p80 spi0.1: ignoring 3 default partitions on m25p80

mtd: Giving out device 0 to m25p80

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting the system clock to 1970-01-09 00:03:57 (691437)

MTDSB: dev_name "/dev/root"

MTDSB: path_lookup() returned 0, inode 0028f5e0

List of all partitions:

1f00       8192 mtdblock0 (driver?)

No filesystem could mount root, tried:  jffs2

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

QuoteReplyEditDelete

 

 

2008-09-26 13:30:10     Re: JFFS2 on SPI NOR Flash kernel panic

Mike Frysinger (UNITED STATES)

Message: 62807   

 

please read the FAQ:

http://docs.blackfin.uclinux.org/doku.php?id=faq

Attachments

    Outcomes