Issue in mounting compressed ram disk greater than 32 MB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue in mounting compressed ram disk greater than 32 MB

981 Views
rangab
Contributor I

 

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

Labels (1)
0 Kudos
3 Replies

543 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Ranganathan Balakrishnan,

Please check whether this ramdisk filesystem could be used on P2020RDB board, and also add bootargs "ramdisk_size=20000000" in u-boot environment.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

543 Views
rangab
Contributor I

Hi Yiping,

I have tried the bootargs ‘ramdisk_size=20000000’. But still the issue exists in our target platfrom.

The same ramdisk filesystem is usable on P2020RDB.

Regards,

Ranganathan

0 Kudos

543 Views
scottwood
NXP Employee
NXP Employee

Check your DDR timings.

0 Kudos