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

register in devfs

Altera_Forum
Honored Contributor II
1,066 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
333 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