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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

register in devfs

Altera_Forum
Honored Contributor II
1,067 Views

Hi, 

 

I have problem to do an open in the /dev of my driver. 

I write a driver and i put its entry in the /dev thougth the File system in the NIOS ide ( i do a copy paste of another entry ...) Because when i use the mknod command i have an error! 

 

Any idea? 

Thanks 

 

Olivier
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
334 Views

Did you modify the major and minor numbers of the file you copied in the FS? 

 

mknod is failing because the dev directory is read only. You can actually create your device file anywhere (it doesn't have to be in /dev that is just convention), so if /tmp is writable you could mknod there. 

 

Tuck
0 Kudos
Reply