lzari errors observed when accessing data from NAND Flash

Flash K bootloader99 at yahoo.com
Thu Oct 10 11:12:12 PDT 2013


 Hi,
 1. I am presently working on porting a 2.4 BSP
 to a 3.0. 
 2. The 2.4 based system uses the JFFS2 File system that
 supports LZARI compression. 
 3. Now the support for LZARI compression is not present in
 the 3.0 Kernel.
 4. However as some of the files on the Embedded system need
 to be retained 
 during the upgrade (from 2.4 to 3.0) we have explicitly
 added suppport for LZARI. 
 5. This includes modifying the kconfig file, adding the
 compr_lzari.c at the location fs\jffs2\ 
 and building the lzari support in the Kernel.
 After booting the Kernel, we see the following messages when
 trying to access files
 output of dmesg:
 [ 6480.539070] Error: jffs2_decompress returned -1
 [ 6480.543887] read_cache_page() returned error: -1
 [ 6480.548657] Error garbage collecting node at 010a5018!
 [ 6480.572338] Decompressor "lzari" returned -1
 [ 6480.577397] Error: jffs2_decompress returned -1
 [ 6480.582214] read_cache_page() returned error: -1
 [ 6480.586983] Error garbage collecting node at 010a5018!
 [ 6480.609512] Decompressor "lzari" returned -1
 [ 6480.614579] Error: jffs2_decompress returned -1
 [ 6480.619404] read_cache_page() returned error: -1
 [ 6480.624176] Error garbage collecting node at 010a5018!
  
 These errors are crashing the File system.
 Hardware Details: ARM iMX21 based processor, Micron
 NAND Flash
  
 I am presently trying to debug this. 
 Could somebody help in guiding me how to debug file system
 errors?
 I need to find the root cause and fix this. I have begun going through the jffs2 filesystem drivers but am not able to make significant progress.

 Regards,
 Flash
 
 



More information about the linux-mtd mailing list