Forum Discussion

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

register in devfs

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

1 Reply

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

    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