Google
  Web www.spinics.net

Re: rootfs as JFFS2 on AT91SAM9260

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Thank you Ulf and Michel. I tried to follow your advices but I think I need
some help again. 

I use the "experimental linux project" patches and the following
linux kernel configuration:
CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_PHYSMAP_START=0xD0300000
CONFIG_MTD_PHYSMAP_LEN=0x54000
CONFIG_MTD_PHYSMAP_BANKWIDTH=1
The entire configuration file is here: http://nbrouard.free.fr/.config2
I didn't know how to map /dev/mtdx and /dev/mtdblockx to a physical 
address. 

When I boot my kernel with rootfs in RAM (ext2) and try flash_info on 
flash devices, only /dev/mtd0 and /dev/mtd1 works without error:

    / $ flash_info /dev/mtd0
    MTD_open
    MTD_ioctl
    Device /dMTD_close
    ev/mtd0 has 0 erase regions
    / $ flash_info /dev/mtd1
    MTD_open
    MTD_ioctl
    Device /dMTD_close
    ev/mtd1 has 0 erase regions
    / $ flash_info /dev/mtd2
    MTD_open
    File open error
    / $ flash_info /dev/mtd3
    MTD_open
    File open error
    / $ flash_info /dev/mtdblock0
    mtdblock_open
    ok
    mtdblock_release
    ok
    / $ flash_info /dev/mtdblock1
    mtdblock_open
    ok
    mtdblock_release
    ok
    / $ flash_info /dev/mtdblock2
    File open error
    / $ flash_info /dev/mtdblock3
    File open error

Then, when I flash rootfs.arm.jffs2 at 0xD0300000 with SAM-BA.exe and boot 
the linux kernel with the following arguments:
mem=64M console=ttyS0,115200 root=/dev/mtdblock0 rw rootfstype=jffs2 debug
I obtain the error:

  jffs2_get_sb(): dev_name "/dev/root"
  jffs2_get_sb(): path_lookup() returned 0, inode c3c85070
  jffs2_get_sb_mtd(): New superblock for device 0 ("physmap-flash.0")
  jffs2: Too few erase blocks (1)
  No filesystem could mount root, tried:  jffs2
  Kernel panic - not syncing: VFS: Unable to mount root fs on
  unknown-block(31,0)

The entire output is here: http://nbrouard.free.fr/output2

What is wrong in my configuration?
If someone could give me some help...

Nicolas Brouard



-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

[Site Home]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux ARM Kernel]     [Linux MIPS]     [ECOS]     [Tools]     [DDR & Rambus]     [Monitors]

Powered by Linux