Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12745 Discussions

how to create a directory on the board?

Altera_Forum
Honored Contributor II
1,421 Views

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
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
710 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
710 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
710 Views

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
0 Kudos
Reply