[#5160] uImage doesn't pass parameter from uboot to kernel now

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

[#5160] uImage doesn't pass parameter from uboot to kernel now

Submitted By: Mingquan Pan

Open Date

2009-05-25 23:26:55     Close Date

2009-05-27 02:15:01

Priority:

Medium High     Assignee:

Mike Frysinger

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

09r1-rc6

App binary format:

N/A     

Summary: uImage doesn't pass parameter from uboot to kernel now

Details:

 

uImage doesn't pass parameter from uboot to kernel now from about May 20.

And so kernel command line is empty when kernel boots up,which make jffs testcase etc fails.

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:22:FE:47:E0

Hit any key to stop autoboot:  0

bfin> set bootargs root=/dev/mtdblock2 rw rootfstype=jffs2 earlyprintk=serial,uart0,57600

bfin> save

Saving Environment to Flash...

. done

Un-Protected 1 sectors

Erasing Flash...

. done

Erased 1 sectors

Writing to Flash... done

. done

Protected 1 sectors

bfin>

...

 

bfin> bootm 20040000

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

   Image Name:   Linux-2.6.28.10-ADI-2010R1-pre-s

   Created:      2009-05-22  14:56:07 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    908348 Bytes = 887.1 kB

   Load Address: 00001000

   Entry Point:  00191b84

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 00191b84

Linux version 2.6.28.10-ADI-2010R1-pre-svn6451 (test@uclinux52-ad73311-lcd) (gcc version 4.1.2 (ADI svn)) #7 Fri May 22 22:55:56 CST 2009

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

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x001116f0

  rodata    = 0x001116f0-0x00163240

  bss       = 0x00164000-0x00175020

  data      = 0x00175020-0x00186000

    stack   = 0x00184000-0x00186000

  init      = 0x00186000-0x001a2000

  available = 0x001a2000-0x037ff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 0

Reset caused by Software reset

Blackfin support (C) 2004-2009 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 125 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: 14223

Kernel command line:

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

console [ttyBF0] enabled

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

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

Memory available: 55100k/65536k RAM, (112k init code, 1089k kernel code, 467k data, 1024k dma, 7744k reserved)

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)

Security Framework initialized

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: 48 KB (37 KB free)

PDA for CPU0 reserved at 00166000

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_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: 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

NET: Registered protocol family 1

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

msgmni has been set to 107

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Serial: Blackfin serial driver

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

brd: module loaded

bfin_mii_bus: probed

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)

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

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(nor)"

0x00040000-0x001c0000 : "linux kernel(nor)"

0x001c0000-0x003f0000 : "file system(nor)"

0x003f0000-0x00400000 : "MAC Address(nor)"

TCP cubic registered

NET: Registered protocol family 17

List of all partitions:

1f00             256 mtdblock0 (driver?)

1f01            1536 mtdblock1 (driver?)

1f02            2240 mtdblock2 (driver?)

1f03              64 mtdblock3 (driver?)

No filesystem could mount root, tried:

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

 

Last passed time: 2009_May_20_22_10, ucdist ver: 8085, kernel ver: 6403

This fail time: 2009_May_22,ucdist ver: 8091, kernel ver: 6451

 

Follow-ups

 

--- Mike Frysinger                                           2009-05-26 00:16:19

are you sure you didnt compile the kernel command line in ?

 

--- Mingquan Pan                                             2009-05-26 00:37:41

The CONFIG_CMDLINE_BOOL is not set by default. And I also didnit change that.

Attached the config for jffs2 test case.

 

--- Mingquan Pan                                             2009-05-27 02:15:01

It can pass now. So close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.jffs2    application/octet-stream    27060    Mingquan Pan

 

 

 

Save changes

Attachments

Outcomes