[Suzaku-en:00242] Mtd&JFFS2 Setting

jh.lee email@hidden
Tue Oct 31 14:53:43 JST 2006


Hi all,

I am goint to mount jffs2 partition on SUZAKU-S (sz030).
When setting JFFS2, some problems occured.

I did the following procedures.

1) In kernel menuconfig, following configuration was applied.
    Kernel setting
     - Memory Technology Device(MTD)
           [*]Memory Technology Device (MTD) support
           [*]    MTD partitioning support
           [*]    Direct char device access to MTD devices
           [*]    Readonly block devices access to MTD devices
     - File systems 
           [*]Journaling Flash File System v2 (JFFS2) support
           (0) JFFS2 debugging verbosity (0=quiet, 2=noisy)
    Vendor/User setting
     - Flash Tools
           [*]mtd-utils
           [*]    erase
           [*]    eraseall
           [*]    mkfs.jffs2
2) in sz030(8MB Flash), I used Free2 partition to mount JFFS2.
     - vendors/AtmarkTechno/SUZAKU-S/Makefile
        #18    ROMFS_DIRS = ...... conf --> directory name to mount jffs2
        #52    DEVICES += \
        #61                    mtd8,c,90,16    mtdr8,c,90,17    mtdblock8,b,31,18
        #96    FLASH_DEVICES = \
        #104                   free2,c,90,16
     - vendors/AtmarkTechno/SUZAKU-S/etc/rc/sysinit
        #12    echo "Mouning conf: "
        #13    mount -t jffs2 /dev/mtdblock /conf
     - using mkfs.jffs2, made jffs2 image
       [localhost#]mkfs.jffs2 -d romfs/conf/ -o jffs2.img
       [localhost#]cp jffs2.img romfs/dev/\@mtdblock8\,b\,31\,8
        
 when booting the target B/D, following error messages occured

    .......
    Further such events for this erase block will not be printed
    JFFS2:  Erase block at 0x00052000 is not formatted. It will be erased.
    jffs2_scan_eraseblock(): Magic bitmask 0x01985 not found at 0x00053000: 0x6374 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x01985 not found at 0x00053004: 0x7320 instead
    jffs2_scan_eraseblock(): Magic bitmask 0x01985 not found at 0x00053008: 0x6d6f instead
    .......
    Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
    .......

I used 'eraseall' command to erase mtdblock8, but still saw this errror messages.
(although mounting and writing files were success.)

I've no idea of this error, and cannot find this solution even in the John Williams site.
Can anyone help me?

- joonhyun lee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.atmark-techno.com/pipermail/suzaku-en/attachments/20061031/8bca0419/attachment.html>


More information about the suzaku-en mailing list