AnsweredAssumed Answered

Issue in mounting compressed ram disk greater than 32 MB

Question asked by Ranganathan Balakrishnan on May 31, 2015

 

Hello,

 

I am working on a P2020 based target that has 2 GB of DDR memory.

I am trying to use ramdisk file system on the target. The base ram disk is got from FSL SDK v1.6 and added other utilities on to that.

 

The EXT2 ramdisk is created with the genext2fs tool with size of 256 MB (1K block size). It is compressed using gzip and mkimage header is added to the same.

The compressed ramdisk image is more than 32MB. Linux config is also changed to accommodate ram disk of size 256MB.

 

I am facing a strange issue in our target.  When the compressed ram disk image is greater than 32MB, during the ram disk mount in Linux, the EXT2 FS is generating the following errors:

 

[    5.458649] EXT2-fs (ram0): error: ext2_check_page: bad entry in directory #3309: : rec_len is smaller than minimal - offset=0, inode=216858624, rec_len=0, name_len=12

[ 5.474816] EXT2-fs (ram0): error: remounting filesystem read-only

[ 6.757780] EXT2-fs (ram0): warning: mounting unchecked fs, running e2fsck is recommended

Starting Bootlog daemon: [    6.789569] attempt to access beyond end of device

[ 6.794422] ram0: rw=0, want=3904112642, limit=532480

[    6.799528] Buffer I/O error on device ram0, logical block 4099539968


But the same issue is not observed when the compressed ram disk size is less than 32MB. Also this issue does not occur in the P2020RDB development platform.

I have also attached the complete log. Could someone help on the same.

 

Regards,

Ranganathan

Original Attachment has been moved to: ramdisk_log.zip

Outcomes