Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Linux File System without IDE/ATA

I am trying to build an embedded system that has a single Intel J3 flash for both the kernel and the filesystem. The kernel is 1.8Mbyte leaving ~ 2.2Mbyte for the file system. However, when I try to configure the filesystem, the NIOS IDE reports no space available. The IDE/ATA has been disabled in the kernel during configuration. Any suggestions?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi badgree,

    take a look to the filesystem size using the properties menu on the romfs.bin file into IDE. If you have compiled the filesystem with full option (selecting all files), the size will be over 2 Mbytes, exceeding the freespace on your flash.

    Furthermore, the default target address for the root filesystem is 0x200000 (you can find it into the .stf file under your filesystem project, i.e. Filesystem.stf); this reserves 2 Mbytes for the uClinux Kernel, even if the kernel size is smaller, limiting free space for the filesystem to 2 Mbytes.

    To reduce filesystem size try eliminating the unnecessary files.

    The busybox way will also reduce the filesystem size to about 700~800 Kbytes. Take a look to the NiosII Linux distribution Reference Guide for more info.

    I hope this helps

    Fab