Results 1 to 3 of 3

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

  1. #1
    Join Date
    Oct 2005
    Posts
    12
    Rep Power
    1

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

    Hi all,

    I had a working mmu linux, but after adding few more modules, the make fails.
    What could be the solution ? (my hard disk isn't full )

    Thanks.

    Code:
    make image.rootfs.all
    make[3]: Entering directory `/home/linux_nios/nios2-linux/uClinux-dist/vendors/hvse/nmu400'
    /home/linux_nios/nios2-linux/uClinux-dist/user/genext2fs/build-host/genext2fs -m 0 -i 1024 -b 8192  -d /home/linux_nios/nios2-linux/uClinux-dist/romfs -D device_table.txt /home/linux_nios/nios2-linux/uClinux-dist/images/rootfs.ext2
    /home/linux_nios/nios2-linux/uClinux-dist/user/genext2fs/build-host/genext2fs: couldn't allocate a block (no free space)
    make[3]: *** [image.rootfs.ext2.force] Error 1
    make[3]: Leaving directory `/home/linux_nios/nios2-linux/uClinux-dist/vendors/hvse/nmu400'

  2. #2
    Join Date
    Apr 2004
    Location
    Palo Alto, CA
    Posts
    855
    Rep Power
    1

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

    Try increasing the size of the romfs image (-b 8192 to -b 16384). The message indicates that you've run out of space.

    --slacker

  3. #3
    Join Date
    Oct 2005
    Posts
    12
    Rep Power
    1

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

    Thank you Slacker.

    It sounds good to increase the size of this, but I've looked for the definition place of this parameter:
    I found that it is defined in uClinux-dist/user/Kconfig:

    config USER_RAMIMAGE_RAMFS8192
    bool "8192K"

    There is other choices from 64k up to 8192k, but no more !
    So is it really possible to increase that ?

    Anyway I find an alternative solution in removing "cxx c++ test apps" from the build (saves about 1 500k !)

Similar Threads

  1. count_binary example -- fatal error couldn't allocate heap?
    By AK51 in forum General Discussion Forum
    Replies: 11
    Last Post: January 9th, 2012, 08:18 PM
  2. How to allocate pins for Address/Control in DDR2 memory controller Megafunction.
    By laxmanvv in forum Quartus II and EDA Tools Discussion
    Replies: 1
    Last Post: April 29th, 2010, 04:50 PM
  3. How can I allocate a variable to a specific section?
    By Mhd.Mayya in forum General Software Forum
    Replies: 16
    Last Post: October 22nd, 2009, 03:16 AM
  4. Replies: 2
    Last Post: February 20th, 2008, 02:19 AM
  5. Failure to allocate memory
    By Cypher in forum Linux Forum
    Replies: 2
    Last Post: December 13th, 2006, 05:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •