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++

question on EPCS

Altera_Forum
Honored Contributor II
1,748 Views

Hi all, 

is it possible to put root file system (jffs2) on epcs??? 

 

Therefore you can have all in epcs (sof, kernel, rootfs)... 

 

Any help will be appreciated 

 

Carlo
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
246 Views

yes, it is possible.

0 Kudos
Altera_Forum
Honored Contributor II
246 Views

Hi dwersteg, 

thank you very much!!! 

Do you have any indication about kernel configuration or main changes to do??? (Only to understand the effort)... 

 

Thank you again 

Carlo
0 Kudos
Altera_Forum
Honored Contributor II
246 Views

you just need to ensure that there are drivers for the SPI device, i believe this is documenting on the nios wiki. you will need to map out the flash device config.c, i believe there are examples of that as well. Not much room in a spi flash though.

0 Kudos
Altera_Forum
Honored Contributor II
246 Views

Hi dwesterg, 

thak you again...you are probably right...this is not the right way... 

How much room could be needed in your opinion...from nioswiki (2c35_cf example) I see: 

 

vmimage (http://www.nioswiki.com/@api/deki/files/466/=vmimage) 1401.9 kB 

rootfs.jffs2 (http://www.nioswiki.com/@api/deki/files/470/=rootfs.jffs2) 3.38 MB 

niosii_cycloneii_2c35_full_featured_epcs_boot.sof (http://www.nioswiki.com/@api/deki/files/502/=niosii_cycloneii_2c35_full_featured_epcs_boot.sof) 821.46 kB 

 

I don't know exactly how big is the application sw that will run on the board but...what size do you have in mind (could be ok for you)??? 

 

Carlo
0 Kudos
Altera_Forum
Honored Contributor II
246 Views

Hi All, 

a new question on EPCS.... 

 

I've enable SPI serial flash on linux kernel and added partitions for epcs....now I wanted to update netlist on epcs directly from Linux....it seems impossible...if I try cp/dd .img /dev/mtd4 (the device on which epcs belongs) I obtain  

can't open /dev/mtd4: permission denied .... 

 

I don't understant....If i try to mount jffs2 on epcs everything works well... 

 

Can someone help me to understand what is happening?? 

 

Carlo :)
0 Kudos
Reply