This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to enable jffs2 support on OMAP-L138?

Other Parts Discussed in Thread: OMAP-L138

Hello, my file system is a .jffs2 file about 50MB, I followed the wiki document <JFFS2 kernel configuration> to config the kernel. But when starting the kernel, there is still a trouble--"No filesystem could mount root, tried:  ext3 ext2 cramfs vfat msdos iso9660". So how to enable support in the kernel on the OMAP-L138? Thanks very much.                              

  • Hi,

    What are your bootargs ? Can also attach the boot log.

    Refer this link  to create a jffs2 file system

    Thx,

    --Prabhakar Lad

  • U-Boot > printenv                                                                                                                                                           
    bootdelay=3                                                                                                                                                                 
    baudrate=115200                                                                                                                                                             
    bootfile="uImage"                                                                                                                                                           
    ethaddr=00:08:ee:03:d6:6b                                                                                                                                                   
    ethact=                                                                                                                                                                     
    mtdparts=mtdparts=nand_flash:64k(UBL)ro,512k(U-Boot),1472k(U-Boot-Env),3m(kernel),30m(root.jffs2),-(root.yaffs)                                                             
    stdin=serial                                                                                                                                                                
    stdout=serial                                                                                                                                                               
    stderr=serial                                                                                                                                                               
    ver=U-Boot 2009.01 (  17 2012 - 17:09:07)                                                                                                                              
    filesize=3B0000                                                                                                                                                             
    fileaddr=C1180000                                                                                                                                                           
    ipaddr=192.168.140.138                                                                                                                                                      
    serverip=192.168.140.3                                                                                                                                                      
    bootcmd=nboot.e 0xc0700000 0 0x200000; bootm                                                                                                                                
    bootargs=mem=128M console=ttyS2,115200n8 root=/dev/mtdblock4 rw rootfstype=jffs2 ip=off rootwait noinitrd    

    Above is my uboot envsetting, I don't know this problem whether with   uboot versio? I see "To load a JFFS2 filesystem image to NAND flash with u-Boot you must use a version of u-Boot which supports the
    ".trimffs" option to the "nand write" command. This command is supported in u-Boot-2011.09" on the wiki documents <Put JFFS2 Image to Flash
    >. I am using the u-Boot-2009 and using "nand write.jffs2" to load the filesystem to NAND flash.

  • Now there is a question:

    "mtd->read(0x10000 bytes from 0xab0000) returned ECC error                                                                                                                      
    Empty flash at 0x00aafffc ends at 0x00ab0000                                                                                                                                   
    mtd->read(0xc000 bytes from 0xab4000) returned ECC error                                                                                                                       
    Empty flash at 0x00ab3ffc ends at 0x00ab4000                                                                                                                                   
    mtd->read(0x8000 bytes from 0xab8000) returned ECC error                                                                                                                       
    Empty flash at 0x00ab7ffc ends at 0x00ab8000
    ............
    ...........
    ........."

    what's the problem?

    I don't found the datasheet of NAND flash on the OMAP-L138 evm. It's 29F4G08AAC.Did make jffs2 file wrong?