2008-07-08 06:52:36     mtdblocks are absent

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

2008-07-08 06:52:36     mtdblocks are absent

Oussema Harbi (TUNISIA)

Message: 58477   


i installed the uImage-SVN-bf537-stamp  image on a bf53 stamp -because i dont have enough space for the new 2008 images of uClinux -


When i boot my board ,there are no mtd or mtdblocks devices created,although i am booting from flash.


the log i get is :



## Booting image at 20024000 ...

   Image Name:   Linux-

   Created:      2007-10-27   6:00:09 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3638388 Bytes =  3.5 MB

   Load Address: 00001000

   Entry Point:  00150000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 150000

Linux version (root@build) (gcc version 4.1.2 (ADI svn)) #3 Sat Oct 27 02:00:03 EDT 2007

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-0x000f6fb0

  rodata    = 0x000f8000-0x0013ee2c

  data      = 0x0013f000-0x00150000

    stack   = 0x00140000-0x00142000

  init      = 0x00150000-0x006b5000

  bss       = 0x006b5000-0x006c3b10

  available = 0x006c3b10-0x037ff000

  DMA Zone  = 0x03f00000-0x04000000

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 14224

Kernel command line: root=/dev/mtdblock0 rw ip=

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)

Physical pages: 37ff

Memory available: 49772k/64260k RAM, (5524k init code, 983k kernel code, 58k data, 1024k dma)

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 (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

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Dynamic Power Management Controller Driver v0.1: major=10, minor = 254

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)

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@0xffc00500, 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-01 21:55:18 (78918)

IP-Config: Complete:

      device=eth0, addr=, mask=, gw=,

     host=1, domain=, nis-domain=eth0.off,

     bootserver=, rootserver=, rootpath=

Freeing unused kernel memory: 5524k freed

dma_alloc_init: dma_page @ 0x006b2000 - 256 pages at 0x03f00000


Welcome to: ......





you see that i get an error about limited memory in the beginnig of the kernel loading ,then i dont see a rootfs partition/block in the memory map although the kernel command line specefies /dev/mtdblock0 as root ,




when i run >ls /dev i get this :


root:~> ls /dev

console   log       ram0      ram13     ram4      ram9      tty

dpmc      mem       ram1      ram14     ram5      random    ttyBF0

full      null      ram10     ram15     ram6      rtc0      urandom

kmem      ptmx      ram11     ram2      ram7      sport0    watchdog

kmsg      pts       ram12     ram3      ram8      sport1    zero



So does anyone knows wht=at is exactly happening ? is the error coming from the kernel image ? and is it possible to fix this without recompiling th ekernel ? and finally how can i access my root file system ?




Thanks in advance.












2008-07-08 08:15:45     Re: mtdblocks are absent


Message: 58480   




The default images use an initrd filesystem (which overrides most other settings). If you want to boot from a jffs2 parition, you need to disable that (by recompiling the kernel).






2008-07-08 09:09:52     Re: mtdblocks are absent

Oussema Harbi (TUNISIA)

Message: 58482   


Thank you for your valuable help.You spared me a very big effort trying to fix this without recompiling the kernel -although i could learn many things while trying that .


Thank you again.