2010-08-21 12:25:39     Linux boot using cmd line partitioning fails.

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

2010-08-21 12:25:39     Linux boot using cmd line partitioning fails.

Abhijit Bokil (INDIA)

Message: 92663   

 

I have a BF516F based board with 4MB flash and 32MB RAM. I am trying to boot uClinux by passing cmdline partition arguments but the kernel fails to detect all passed partions (4) and panics.

 

 

 

## Booting kernel from Legacy Image at 20030000 ...

   Image Name:   Linux-2.6.28.10-ADI-2009R1.1

   Created:      2010-08-21  16:09:27 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    988699 Bytes = 965.5 kB

   Load Address: 00001000

   Entry Point:  001c0998

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001c0998

Linux version 2.6.28.10-ADI-2009R1.1 (root@anshuman.localdomain) (gcc version 4.1.2 (ADI svn)) #1 PREEMPT Sat Aug 21 21:39:24 IST 2010

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 32MB

Kernel Managed Memory: 32MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0012db60

  rodata    = 0x0012db60-0x001847f8

  bss       = 0x00185000-0x0019fcb4

  data      = 0x0019fcb4-0x001b4000

    stack   = 0x001b2000-0x001b4000

  init      = 0x001b4000-0x001d1000

  available = 0x001d1000-0x01eff000

  DMA Zone  = 0x01f00000-0x02000000

Hardware Trace Active and Enabled

Boot Mode: 1

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

Compiled for ADSP-BF516 Rev 0.1

Blackfin Linux support by   blackfin.uclinux.org/

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

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-back)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 7873

Kernel command line: mtdparts=physmap-flash.0:192k(u-boot)ro,1344k(kernel)ro,2048k(rootfs)ro,-(appfs) root=/dev/mtdblock2 rootfstype=jffs2 ro clkin_hz=25000000 earlyprintk=serial,uart0,115200

console=ttyBF0,115200

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 128 (order: 7, 512 bytes)

Console: colour dummy device 80x25

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 29588k/32768k RAM, (116k init code, 1202k kernel code, 538k data, 1024k dma, 296k reserved)

Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (15 KB free)

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

Blackfin L1 Instruction SRAM: 32 KB (26 KB free)

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

ezbrd_init(): registering device resources

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

NET: Registered protocol family 1

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

msgmni has been set to 57

io scheduler noop registered (default)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART

brd: module loaded

bfin_mii_bus: probed

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

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

physmap platform flash device: 00300000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

NOR chip too large to fit in mapping. Attempting to cope...

Support for command set 0003 not present

gen_probe: No supported Vendor Command Set found

mtd: physmap-flash.0: partitioning exceeds flash size, truncating

2 cmdlinepart partitions found on MTD device physmap-flash.0

Creating 2 MTD partitions on "physmap-flash.0":

0x00000000-0x00030000 : "u-boot"

ftl_cs: FTL header corrupt!

0x00030000-0x00180000 : "kernel"

ftl_cs: FTL header corrupt!

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

bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc03400, dma channel@5

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

i2c /dev entries driver

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 07:56:00 UTC (28560)

List of all partitions:

1f00             192 mtdblock0 (driver?)

1f01            1344 mtdblock1 (driver?)

No filesystem could mount root, tried:  jffs2

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

QuoteReplyEditDelete

 

 

2010-08-21 16:37:56     Re: Linux boot using cmd line partitioning fails.

Mike Frysinger (UNITED STATES)

Message: 92664   

 

looks more like your flash isnt properly supported.  i doubt the cmdline partitioning has anything to do with it.

 

specifically, you should research/fix these warnings before worrying about the partitioning methodology:

physmap platform flash device: 00300000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

NOR chip too large to fit in mapping. Attempting to cope...

Support for command set 0003 not present

gen_probe: No supported Vendor Command Set found

mtd: physmap-flash.0: partitioning exceeds flash size, truncating

 

look at your platform resources and make sure you set the length long enough.

 

did you enable proper flash support in your kernel config ?  post it as an attachment.

QuoteReplyEditDelete

 

 

2010-08-23 10:12:15     Re: Linux boot using cmd line partitioning fails.

Abhijit Bokil (INDIA)

Message: 92693   

 

Thanks Mike!

 

I had not enabled support for INTEL command set flash (ID 3)chips while building the kernel. After enabling that the board boots without a hitch. Also the other issue ("NOR chip too large to fit in mapping") occured as I had SPI enabled since I plan to use SPI1 which caused a clash between AMS3 and SPI0SEL2.

QuoteReplyEditDelete

 

 

2010-08-23 10:42:28     Re: Linux boot using cmd line partitioning fails.

Abhijit Bokil (INDIA)

Message: 92694   

 

I have another problem now, it seems that when I mount mtdblock3 using mount, I get this error "Erase at 0x00010000 failed immediately: -EROFS. Is the sector locked?", although I can access mtdblock3.

 

Also, another thing I had overlooked earlier on is that I continuously keep getting the error "init: /sbin/syslogd respawning too fast".

QuoteReplyEditDelete

 

 

2010-08-23 12:12:58     Re: Linux boot using cmd line partitioning fails.

Mike Frysinger (UNITED STATES)

Message: 92696   

 

"another issue" means "start a new thread"

 

as for your syslogd error, please read the FAQ:

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

Attachments

    Outcomes