imx6 LTIB error when generating rootfs.ext2.gz

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

imx6 LTIB error when generating rootfs.ext2.gz

Jump to solution
2,116 Views
Tarek
Senior Contributor I

Hi ,

I'm using BSP 4.0.0 to build rootfs for imx6q. I have enabled the option to build rootfs.ext2:

I'm getting the following error:

Filesystem stats, including padding:

    Total size            = 752424k

    Total number of files = 7864

Your ramdisk exceeds the old default size of 4096k, you may need to

set the command line argument for ramdisk_size in your bootloader

allowing 10% free this gives 827666k .  For instance, for u-boot:

setenv bootargs root=/dev/ram rw ramdisk_size=827666

creating an ext2 compressed filesystem image: rootfs.ext2.gz

genext2fs: Running in LTIB backwards compatibility mode: -i -> -N

genext2fs: couldn't allocate a block (no free space)

Died at ./ltib line 603, <> line 664.

traceback:

main:603

Started: Thu May 23 13:54:49 2013

Ended:   Thu May 23 13:56:09 2013

Elapsed: 80 seconds

Build Failed

Exiting on error or interrupt

1 Solution
829 Views
Tarek
Senior Contributor I

It looks like ltib/bin/Ltibutils.pm is not calculating the rootfs size correctly!

I changed this line:

genext2fs -U -b $blocks -i $inodes -D $dev_tab -d $stage $tdir/rootfs.ext2

To

genext2fs -U -b $fs_size_p10 -i $inodes -D $dev_tab -d $stage $tdir/rootfs.ext2

It's not the best fix but this works for now.

View solution in original post

3 Replies
829 Views
rebelalliance
Contributor III

Ok I am getting the same error as above using L3.0.35_4.0.0_130424_source.tar.gz Linux BSP for imx6Q on SabreSD platform.  The rootfs built fine with all the default options initially and ran fine on my system.  Then I tinkered with some kernel settings to enable support for USB Modem.  After that ltib tried to rebuild the rootfs.ext2.gz and I got this error:

Processing deployment operations

==================================

making filesystem image file

staging directory is /mnt/veriton/umar/imx6/ltib/rootfs.tmp

sh: line 1: 12305 Broken pipe             find . -perm -444 ! -type b ! -type c -print0

     12306 Segmentation fault      (core dumped) | cpio -p0d --quiet /mnt/veriton/umar/imx6/ltib/rootfs.tmp

Died at ./ltib line 603, <> line 678.

traceback:

main:603

Started: Wed May 29 16:24:20 2013

Ended:   Wed May 29 16:24:27 2013

Elapsed: 7 seconds

Build Failed

Exiting on error or interrupt

Please advise.


830 Views
Tarek
Senior Contributor I

It looks like ltib/bin/Ltibutils.pm is not calculating the rootfs size correctly!

I changed this line:

genext2fs -U -b $blocks -i $inodes -D $dev_tab -d $stage $tdir/rootfs.ext2

To

genext2fs -U -b $fs_size_p10 -i $inodes -D $dev_tab -d $stage $tdir/rootfs.ext2

It's not the best fix but this works for now.

829 Views
rebelalliance
Contributor III

Thanks Tarek.

I didn't try out your solution because I did a clean re-build and the issue seems to have disappeared.

0 Kudos