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.

挂载jffs2格式,拷贝文件出错



IPNC8127, 3.8

文件系统中执行

mkdir /tmp/tmp

flash_eraseall  /dev/mtd7

mount -t jffs2 /dev/mtdblock7 /tmp/tmp

tar  -zvxf  ipnc.tar  /tmp/tmp

出现以下现象:

jffs2_verify_write(): Read back of page at 09fc0000 gave short read:0 not 2048

Write of 2533 bytes at 0x09fe0xf4 failed. returned -5, retlen 0
Not marking the space at 0x9fe02f4 as dirty because the flash driver returned retlen zero

请教大家这个错误现象是那块出现了问题?  谢谢;

  • Ken Yang,

    默认代码使用的ECC是BCH8,而BCH8无法支持Jffs2(存放ECC数据的空间不够),请确认你有正确配置使用的ECC。

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_UBOOT_User_Guide

    ECC Schemes and their context of usage
    ECC typeUsage
    S/W ECC Not used
    H/W ECC - Hamming Code Not used by default. Switch back to this only if using JFFS2 file system.
    H/W ECC – BCH8 Used by default to flash any image from the Uboot. Environment variables are also stored in this ECC scheme.
  • 你好:

    smart_mount   UBIFS  /dev/mtd7  /opt

    tar -zvxf  ipnc.tar  -C  /opt

    然后我执行/opt下的ipnc应用程序执行有问题,看了一下打印;

    [m3vpss]##########test0000

    (mount,653,0):ocfs2_parse_options:1515 ERROR:invalid heartbeat mount options mkdosfs 3.0.12

    unable to get drive geometry,using default 255/63

    打印日志有几条上面的信息,查了一下不知道是IPNC的那里出错了;

  • smart_mount   UBIFS  /dev/mtd7  /opt

    tar -zvxf  ipnc.tar  -C  /opt

    然后我执行/opt下的ipnc应用程序执行有问题,看了一下打印;

    [m3vpss]##########test0000

    (mount,653,0):ocfs2_parse_options:1515 ERROR:invalid heartbeat mount options mkdosfs 3.0.12

    unable to get drive geometry,using default 255/63

    打印日志有几条上面的信息,查了一下不知道是IPNC的那里出错了?

    请教高手,谢谢;