Forum Discussion

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

how to create a directory on the board?

Hi,

I have a stratix 1s10 with a uclinux. I'd like to create a directory (mkdir new_directory) but I don't have the permission. I think it's a question of right, but ...

I don't want to create my directory in Nios IDE and download the romfs.bin ; I want to create it directly on the board.

How can I do that in my board ?

Regards

John

3 Replies

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

    Hi John,

    The romfs is read-only ... you'll need to switch to a r/w file system

    to create directories, create/modify files, change attributes, etc.

    You might want to consider jffs2.

    Regards,

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

    Thanks a lot for your answer,

    But the only file I can download is romfs.bin. When I build my file-system, I don't have jffs2. How can I create this file ?

    Regards,

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

    Hi John,

    You'll need to enable jffs2 in the kernel configuration, then create your own

    jffs2 image using the mkfs.jffs2 utility. You can get the sources from:

    http://www.psyent.com/download (http://www.psyent.com/download)

    The sources at this site were ported for use under cygwin ... but you'd

    be doing yourself a favor (at least for the time being) to build the utility under

    linux -- as the cygwin version doesn't do a good job with some of the file

    attributes.

    Regards,

    --Scott