2008-07-29 10:33:44     mtd devices are absent !!!

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

2008-07-29 10:33:44     mtd devices are absent !!!

Oussema Harbi (TUNISIA)

Message: 59554   

 

i am compiling uclinux-2008R2 for an Atcom ip04 -i used the patches from astfin site-,

 

but when i load the images i got on the ship and start them  ,i just get these 4 devices under /dev :

 

console log pts zero

 

although the rootfs partition is mounted properly and the network is working well -so the devices are recognized.

 

 

 

my dmesg gives this :

 

Linux version 2.6.22.18-ADI-2008R1-svn (oussema@oussema-laptop) (gcc version 4.1.2 (ADI svn)) #15 Tue Jul 29 16:16:01 CEST 2008

Hardware Trace Active and Enabled

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

Compiled for ADSP-BF532 Rev 0.5

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

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

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x00138d00

  rodata    = 0x00139000-0x0018e2d4

  data      = 0x0018f000-0x001a4000

    stack   = 0x00190000-0x00192000

  init      = 0x001a4000-0x001b9000

  bss       = 0x001b9000-0x001c879c

  available = 0x001c879c-0x03b00000

  rootfs    = 0x03b00000-0x03f00000  << when i work this davids uImage ,this rootfs begins from 03c..                                                         may that be the source of the error ???

  DMA Zone  = 0x03f00000-0x04000000

On node 0 totalpages: 15104

  DMA zone: 118 pages used for memmap

  DMA zone: 0 pages reserved

  DMA zone: 14986 pages, LIFO batch:3

  Normal zone: 0 pages used for memmap

Instruction Cache Enabled

Data Cache Enabled (write-back)

Built 1 zonelists.  Total pages: 14986

Kernel command line: ethaddr=00:09:45:54:20:e3 root=/dev/mtdblock3 rw ip=10.0.0.105:10.0.0.44:10.0.0.2:255.255.255.0:BF1:eth0:off ip=10.0.0.f

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)

Kernel managed physical pages: 15104

Memory available: 58012k/65536k RAM, (84k init code, 1247k kernel code, 490k data, 1024k dma, 584k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Instruction SRAM: 32 KB (24 KB free)

Calibrating delay loop... 798.72 BogoMIPS (lpj=1597440)

Security Framework v1.0.0 initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

ip0x_init(): chip_id=527A50CB,dspid=E5040005

ip0x_init(): registering device resources

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

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

yaffs Jul 29 2008 15:53:50 Installing.

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 = 21) is a BFIN-UART

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

dm9000 Ethernet Driver

eth0: dm9000 at 20100000,20100002 IRQ 48 MAC: 00:09:45:54:20:e3

dm9000: read wrong id 0x2b2a2928

dm9000: read wrong id 0x2b2a2928

dm9000: wrong id: 0x2b2a2928

dm9000: not found (0).

uclinux[mtd]: RAM probe address=0x3b00000 size=0x400000

Creating 1 MTD partitions on "RAM":

0x00000000-0x00400000 : "ROMfs" << the size is 400000 ,with david image it's 300000 why is that ?

 

and where can i change that ,i cant find the right file !!!

NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)

Scanning device for bad blocks

Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":

0x00000000-0x00800000 : "linux kernel"

0x00800000-0x01000000 : "file system"

0x01000000-0x10000000 : "donnees"

usbmon: debugfs is not available

driver isp1362-hcd, 2005-04-04

isp1362-hcd isp1362-hcd.0: ISP1362 Host Controller

isp1362-hcd isp1362-hcd.0: new USB bus registered, assigned bus number 1

isp1362_hc_reset:

Software reset timeout

isp1362-hcd isp1362-hcd.0: irq 44, io mem 0x20300000

isp1362_hc_start:

isp1362_hc_start: Invalid chip ID 00ff

isp1362-hcd isp1362-hcd.0: startup error -19

isp1362-hcd isp1362-hcd.0: USB bus 1 deregistered

init error, -19

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

ip_tables: (C) 2000-2006 Netfilter Core Team

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

drivers/rtc/hctosys.c: unable to open rtc device (rtc0) << is this crutial ?

eth0: link down

IP-Config: Complete:

      device=eth0, addr=10.0.0.105, mask=255.255.255.0, gw=10.0.0.2,

     host=BF1, domain=, nis-domain=(none),

     bootserver=10.0.0.44, rootserver=10.0.0.44, rootpath=

EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended

VFS: Mounted root (ext2 filesystem).

Freeing unused kernel memory: 84k freed

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

eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

 

 

Does any one have an idea ,about what am i doing wrong here ?

 

Thank you in advance .

 

Regards

 

Oussema

 

 

QuoteReplyEditDelete

 

 

2008-07-29 11:11:57     Re: mtd devices are absent !!!

Mike Frysinger (UNITED STATES)

Message: 59559   

 

there is no 2008R2 release, so what version are you using ?

 

if you want different partition sizes, customize your board resources file.

 

review the documentation if you want to know about /dev and how it is managed:

http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:dev-management

 

as for the RTC, review your kernel settings in the RTC menu

QuoteReplyEditDelete

 

 

2008-07-29 11:50:02     Re: mtd devices are absent !!!

Oussema Harbi (TUNISIA)

Message: 59562   

 

thank you Mike ,

 

 

 

the version am using is : uClinux-dist-2008R1-RC8.tar.bz2

 

"f you want different partition sizes, customize your board resources file."

 

I said i already modified the  partitions "kernel " and "filesystem".But am still unable to find where the partition "Romfs" is coming from ?

 

The problem is that i did made the image with bap's uClinux2008.mk makefile ,so i didnt chane anything ,b ut am still getting a not working image !!

 

Regards

 

Oussema

QuoteReplyEditDelete

 

 

2008-07-29 16:10:31     Re: mtd devices are absent !!!

Robin Getz (UNITED STATES)

Message: 59570   

 

Oussema:

 

I'm trying to understand - what is "bap's"? there is no such file as "uClinux2008.mk" in the official 2008R1 release.

 

If you are using a modified version of the build system or uClinux-dist - you need to go to who ever modified it for help - since we have no idea what they did. (Sorry)

 

We try to work with the astfin folks pretty closely - but they do things differently than we do.

 

-Robin

QuoteReplyEditDelete

 

 

2008-07-30 01:10:40     Re: mtd devices are absent !!!

Mike Frysinger (UNITED STATES)

Message: 59577   

 

the kernel output you showed told you where the romfs partition is coming from:

 

uclinux[mtd]: RAM probe address=0x3b00000 size=0x400000

Creating 1 MTD partitions on "RAM":

 

the uClinux ROMFS is automatically sized according to the file system you've embedded

QuoteReplyEditDelete

 

 

2008-07-30 04:54:46     Re: mtd devices are absent !!!

Oussema Harbi (TUNISIA)

Message: 59593   

 

Robin :

 

"I'm trying to understand - what is "bap's"? there is no such file as "uClinux2008.mk" in the official 2008R1 release."

 

baps is just an other uClinux -with some tweeks to fit the Voip devices ... -

 

uclinux2008.mk is a make file that downloads the uClinux source from your site ,then automaticly configurates it for the ip08/04 board (using bf532) ,among the modifications it does ,there is this section :

 

in file uClinux-dist/linux-2.6.x/drivers/mtd/nand/bfin_nand.c 

 

     {

         .name = "linux kernel",

         .offset = 0,

        .size = 0x800000,

     },

 

     {

         .name = "file system",

        .offset = 0x800000,

        .size = (CONFIG_BFIN_NAND_SIZE-0x800000),

     }

 

 

Any way thank you for your answer - that's already a kind of help :-)

 

I told you before about making kernel update simple with the command : ipkg install vmlinux ,it's working now on stamp 537 board and kernel update is done successfully from uclinx console,i want to do the same with ip04 ,and as the offical -if i may call it so - release of the uImage_r2.ip08 image doesnt contain the necessary tools ,and when i compile by my self i always get missing devices ....

 

Mike ,

 

"the kernel output you showed told you where the romfs partition is coming from"

 

I am actually asking about the source file where the Romfs partition is declared or defined ;Or should i underdstand that this partition is automaticly created when i include the mtd-ram driver ?

 

Reagards

 

Oussema

QuoteReplyEditDelete

 

 

2008-07-30 05:42:39     Re: mtd devices are absent !!!

Mike Frysinger (UNITED STATES)

Message: 59595   

 

it's the uclinux map, so just look at that driver if you want to know more about it

Attachments

    Outcomes