Altera_Forum
Honored Contributor
21 years agoDevice nodes: major, minor numbers
I have been using the Nios II IDE to rebuild and upload my romfs filesystem image to my uKit development board.
I previously did not have a problem communicating via ttyS0. Now I am having a problem. It gives me an error saying that the device doesn't exist. Upon checking /dev/ttyS0 and /dev/ttyS1, I am able to see that the minor numbers are all 0 instead of what they should be. I double checked my filenames under the target directory and it appears that they are OK. Output from "ls -l dev/*ttyS0*" shown below. <div class='quotetop'>QUOTE </div> --- Quote Start --- -rwx------ 1 user mkpasswd 0 Dec 1 14:37 @ttyS0,c,4,64*[/b] --- Quote End --- I even loopback mounted the romfs.bin on a linux system as a romfs and the device files were created properly. Output from "ls -l dev/ttyS0" shown below. <div class='quotetop'>QUOTE </div> --- Quote Start --- crw------- 1 root root 4, 64 Dec 31 1969 ttyS0[/b] --- Quote End --- The problem exists when I try to upload the filesystem to my board. Somehow the device nodes are not being created properly. Here is the ls -l /dev/ttyS0 output. I noticed that none of my /dev files have their minor number correct. They are all set to zero. <div class='quotetop'>QUOTE </div> --- Quote Start --- crw------- 1 root root 4, 0 Jan 1 1970 ttyS0[/b] --- Quote End --- Has anyone else seen this? Does anyone have a suggestion?