cancel
Showing results for 
Search instead for 
Did you mean: 

FirePro Development

mgordeev
Adept I

Linux: use ADL in console-mode

Jump to solution

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 Kudos
Reply
1 Solution

Accepted Solutions
mgordeev
Adept I

Re: Linux: use ADL in console-mode

Jump 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?

View solution in original post

0 Kudos
Reply
7 Replies
jtrudeau
Staff
Staff

Re: Linux: use ADL in console-mode

Jump to solution

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

mgordeev
Adept I

Re: Linux: use ADL in console-mode

Jump 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?

View solution in original post

0 Kudos
Reply
nibal
Challenger

Re: Linux: use ADL in console-mode

Jump to solution

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

mgordeev
Adept I

Re: Linux: use ADL in console-mode

Jump to solution

Thanks!

You were helped to me! I  really solved a problem!

But  "mknod" is old method... Isn't it?

0 Kudos
Reply
mgordeev
Adept I

Re: Linux: use ADL in console-mode

Jump to solution

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 Kudos
Reply
nibal
Challenger

Re: Linux: use ADL in console-mode

Jump to solution

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

mgordeev
Adept I

Re: Linux: use ADL in console-mode

Jump to solution

Thank for help!

0 Kudos
Reply