Hello!
I am using ADL for monitoring temperature of my FirePro cards and I am using it in console mode(ADL_ConsoleMode_FileDescriptor_Set).
But this function is requiring a files of devices(example: /dev/ati/card0, /dev/ati/card1).
My problem: When I restart my machine, after boot - I don't see these files(/dev/ati/*). I must launch other program, what to see these files.
My question: How can I create a files of devices of my FirePro cards?
Thanks!
Solved! Go to Solution.
jtrudeau, thanks!
I am trying to run next commands:
mknod /dev/ati/card0 c `cat /proc/ati/major` 0
mknod /dev/ati/card1 c `cat /proc/ati/major` 1
But everything is vain...
How can I created files of devices?
I have white listed you, and moved this into the FirePro area. Welcome!
jtrudeau, thanks!
I am trying to run next commands:
mknod /dev/ati/card0 c `cat /proc/ati/major` 0
mknod /dev/ati/card1 c `cat /proc/ati/major` 1
But everything is vain...
How can I created files of devices?
I am new to FirePro, but veteran to Linux.
From your discussion you seem to have a simple problem of initialization sequence. You want to go to your init level for your console (1?), and have your "other program" launch before you do what you want to do. The commands you use are correct, except that you may need to do some additional things (permissions, etc). Check the output of that "other program" and yours, to figure out what more you need to do.
HTH
Thanks!
You were helped to me! I really solved a problem!
But "mknod" is old method... Isn't it?
I want writing this on C language.
But function makedev, register_chrdev and so on is kernel function, correctly?
Why fglrx driver don't create file of devices?
makedev is a libc function. View manuals.
I don't now register_chrdev, but if a kernel function, you should not use
it from your userspace app.
After dev = makedev(major, minor), you should use mknod and you will be
able to read/write to dev.
HTH
Thank for help!