cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

mgordeev
Adept I

Linux: use ADL in console-mode

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!

0 Likes
1 Solution
mgordeev
Adept I

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?

View solution in original post

0 Likes
7 Replies
jtrudeau
Staff

I have white listed you, and moved this into the FirePro area. Welcome!

mgordeev
Adept I

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?

0 Likes

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?

0 Likes
mgordeev
Adept I

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?

0 Likes

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!

0 Likes