2008-04-30 07:33:08     error at loading with jffs2

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

2008-04-30 07:33:08     error at loading with jffs2

Vincent Puig (SPAIN)

Message: 55288    Hi again, I am trying to load the kernel using a jffs2 file system. This is what I did:

 

CM-BF537> tftpboot 0x1000000 rootfs.jffs2

CM-BF537> protect off 0x20100000 0x203fffff

CM-BF537> erase 0x20100000 0x203fffff

CM-BF537> cp.b 0x1000000 0x20100000 0xBE019      *** the size of vmImage is 0xBE018

 

CM-BF537> md.b 0x20100000 0x02

20100000: 85 19    ..                                       *** so it's correct

 

CM-BF537> erase 0x20040000 0x200FFFFF

CM-BF537> tftp 0x1000000 vmImage

CM-BF537> cp.b 0x1000000 0x20040000 0xBE019

 

CM-BF537> print

bootdelay=5

baudrate=115200

loads_echo=1

ethaddr=02:80:ad:20:31:b8

hostname=CM_BF537

flashboot=bootm 0x20040000

bootcmd=run flashboot

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

stdin=serial

stdout=serial

stderr=serial

filesize=be018

fileaddr=1000000

netmask=255.255.255.0

ipaddr=xxx

serverip=xxx

 

CM-BF537> run bootcmd

## Booting image at 20040000 ...

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

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    778200 Bytes = 760 kB

   Load Address: 00001000

   Entry Point:  00144000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 144000

������f   ~f����f����� x��x �  x��  ��� `�

doesn't work

 

 

Wham am I doing wrong?, I guess it could be the bootargs variable, but what should I do?.

 

Thanks

QuoteReplyEditDelete

 

 

2008-04-30 08:04:47     Re: error at loading with jffs2

Robin Getz (UNITED STATES)

Message: 55289    Vincent:

 

The default baud rate of the kernel is 57600 - your U-Boot is set to 115200.

 

Just add a "console=ttyBF0,115200" to the bootargs, and you should be OK.

 

-robin

QuoteReplyEditDelete

 

 

2008-05-05 04:02:24     Re: error at loading with jffs2

Vincent Puig (SPAIN)

Message: 55478   

 

Thank you Robin, that was the problem.

 

Now I am getting this error:

 

No filesystem could mount root, tried:  jffs2

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

 

Is it a kernel configuration problem?

 

However, I have a doubt, I know It's a silly question but... How do I know that I have to use "mtdblock3"?, why not "mtdblock2" or any else?.

 

Thanks again.

 

All the report here:

 

## Booting image at 20040000 ...

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

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    778200 Bytes = 760 kB

   Load Address: 00001000

   Entry Point:  00144000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 144000                             **** why 144000?, why not 1000¿?¿?

Linux version 2.6.22.18-ADI-2008R1-svn (vincent@canutet) (gcc version 4.1.2 (ADI svn)) #12 Wed Apr 30 12:44:24 CEST 2008

Hardware Trace Active and Enabled

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

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: 32MB

Kernel Managed Memory: 32MB

Memory map:

  text      = 0x00001000-0x001066a0

  rodata    = 0x00107000-0x001359c4

  data      = 0x00136000-0x00144000

    stack   = 0x00136000-0x00138000

  init      = 0x00144000-0x00156000

  bss       = 0x00156000-0x00162c50

  available = 0x00162c50-0x01eff000

  DMA Zone  = 0x01f00000-0x02000000

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 7874

Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 ip=${ipaddr}:${serverip}:${gateway}:${netmask}:${hostname}::off console=ttyBF0,115200

Configuring Blackfin Priority Driven Interrupts

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

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

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

Memory available: 30024k/32768k RAM, (72k init code, 1045k kernel code, 298k data, 1024k dma, 308k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (9 KB free)

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

Blackfin Instruction SRAM: 48 KB (40 KB free)

Security Framework v1.0.0 initialized

Capability LSM initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

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

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

io scheduler noop registered (default)

io scheduler cfq registered

pfx: pfbits driver for bf5xx

Serial: Blackfin serial driver

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

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

arch/blackfin/mach-bf537/boards/cm_bf537.c:bfin_get_ether_addr: Setting Ethernet MAC to a random one

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

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

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

IP-Config: Unable to set interface netmask (-22).

List of all partitions:

No filesystem could mount root, tried:  jffs2

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

PHY: 0:01 - Link is Up - 100/Full

 

 

My bootargs:

 

bootargs=root=/dev/mtdblock2 rw rootfstype=jffs2 ip=${ipaddr}:${serverip}:${gateway}:${netmask}:${hostname}::off console=ttyBF0,115200

 

QuoteReplyEditDelete

 

 

2008-05-05 16:22:29     Re: error at loading with jffs2

Robin Getz (UNITED STATES)

Message: 55522   

 

Vincent:

 

First question - have a look at the last question in the faq:

 

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

 

 

 

Second question - the kernel didn't find any block devices, so it looks like you have not selected the flash drivers properly.

 

 

 

-Robin

Attachments

    Outcomes