Altera_Forum
Honored Contributor
9 years agomake_sdimage.py creates invalid ext3 partition
I am using the make_sdimage.py to create a 128G SD image. Parameters to the script are:
-s 117G -n sd_mage-128G.bin -P u-boot-with-spl.sfp,num=1,format=raw,size=1M,type=A2 -P zImage,socfpga.dtb,u-boot.scr,num=2,format=vfat,size=1G -P rootfs,num=3,format=ext3,size=114G When i boot from the SD card, the SPL and u-boot load fine, the kernel faults when trying to mount the rootfs: EXT4-fs (mmcblk0p3): mounting ext3 filesystem using the ext4 subsystem EXT4-fs (mmcblk0p3): bad geometry: block count 29884416 exceed size of device (29884415 blocks) EXT4-fs (mmcblk0p3): bad geometry: block count 29884416 exceed size of device (29884415 blocks) EXT4-fs (mmcblk0p3): warning: mounting ext3 filesystem as ext2 EXT4-fs (mmcblk0p3): warning: mounting unchecked fs, running e2fsck is recommended EXT4-fs (mmcblk0p3): VFS: Mounted root (ext2 filesystem) on device 179:3 EXT2-fs (mmcblk0p3): error: ext2_check_page: bad entry in directory# 2: : inode out of bounds - offset=0, inode244069792, rec_len=3152, name_len=0 devtmpfs: error mounting -2 I saw a similar error when using a 64G SD card and trying to mount it on my Linux dev system. It would appear there may be an off-by-one error somewhere in the script, but I haven't dug into it to try and find it. I'm hoping someone here is familiar with the script or has seen a similar problem.