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.

Problem with UBIFS



Hi,

I am trying to flash UBIFS in nand on our custom board of DM8168. Our use case is as below:

We have mapped FPGA on CS1 and NAND flash on CS0 of GPMC. We are loading bit file to FPGA through SPI of DM8168. Before few days UBIFS was working fine. But after updating a bit file for FPGA UBIFS is not working properly. Please see attached log file.


Could you please help me to resolve this issue asap?

4540.ubfis_error_log.txt

Thanks & Regards,

Rakesh Modi

  • Hi Rakesh,

    This issue seems to be unexpected power failures happened before,

    Are you getting issue after newly ( fresh installation ) flashed kernel & filesystem with UBIFS format with new bit file of FPGA?

    Plz Reproduce the issue with using new bit file of FPGA .

    and add patch fix into your kernel & again reproduce and test.

    diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c
    index 1066297..9afa056 100644
    --- a/fs/ubifs/recovery.c
    +++ b/fs/ubifs/recovery.c
    @@ -675,9 +675,10 @@  struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum,
     			clean_buf(c, &buf, lnum, &offs, &len);
     			need_clean = 1;
     		} else {
    -			ubifs_err("corrupt empty space at LEB %d:%d",
    -				  lnum, offs);
    -			goto corrupted;
    +			ubifs_warn("ignore corrupt empty space at LEB %d:%d",
    +				   lnum, offs);
    +			clean_buf(c, &buf, lnum, &offs, &len);
    +			need_clean = 1;
     		}
     	}