AOA Forums AOA Forums AOA Forums Folding For Team 45 AOA Files Home Front Page Become an AOA Subscriber! UserCP Calendar Memberlist FAQ Search Forum Home


Go Back   AOA Forums > Hardware > EPoX MotherBoards

EPoX MotherBoards EPoX Intel and AMD Motherboards.


Reply
 
LinkBack Thread Tools Rate Thread
  #1 (permalink)  
Old 9th October, 2003, 02:22 PM
Member
 
Join Date: October 2003
Posts: 5

8rda+ w/ linux

Hi all my first post in this forum !

Hi using my board in windows w/ mbm5 and leds of 80 ports says the temperature ....

In linux have any similar ?

thanks ...
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 9th October, 2003, 06:35 PM
Chief Systems Administrator
 
Join Date: September 2001
Location: Europe
Posts: 13,075

lm_sensors should be able to read the info. Don't know if it can update port 80 - there's no reason why it can't other than someone writing some code for it.
__________________
Any views, thoughts and opinions are entirely my own. They don't necessarily represent those of my employer (BlackBerry).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10th October, 2003, 01:10 PM
EPoX Tech's Avatar
EPoX Tech
 
Join Date: October 2001
Location: Seems not to matter
Posts: 4,720

::winks::

Sure anyone from the Opensource community would be able to do that easily!
__________________
If you need EPoX BIOS eeproms in the UK, goto http://www.epox.org.....................
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 13th October, 2003, 11:46 AM
Member
 
Join Date: May 2003
Location: Germany
Posts: 107

Quote:
Originally Posted by otzi
Hi all my first post in this forum !

Hi using my board in windows w/ mbm5 and leds of 80 ports says the temperature ....

In linux have any similar ?

thanks ...
Hi,

for the Port 80 display you need a kernel patch, because this port is used to generate
a delay. (Maybe you recognize that the LEDs are flickering). Look at <kernelsource>/include/asm/io.h and search for

#define __SLOW_DOWN_IO __asm__ __volatile__("outb %al,$0x80")

change 0x80 to 0x81 (it works for me) and recompile the kernel. If you get so
far, ask me for a program that is able to write the temp to the LEDs

Hasw
__________________
Epox 8RDA+ Vdd 1.6V
JIUHB 1433@1000, 1.075V
http://www.hasw.net/8rda/LowVoltage_1Ghz.png
2x256 333 Infineon @ 200FSB 4 3 2 2.5, 2.6V
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 13th October, 2003, 04:34 PM
Member
 
Join Date: October 2003
Posts: 5

Quote:
Originally Posted by Hasw
Hi,

for the Port 80 display you need a kernel patch, because this port is used to generate
a delay. (Maybe you recognize that the LEDs are flickering). Look at <kernelsource>/include/asm/io.h and search for

#define __SLOW_DOWN_IO __asm__ __volatile__("outb %al,$0x80")

change 0x80 to 0x81 (it works for me) and recompile the kernel. If you get so
far, ask me for a program that is able to write the temp to the LEDs

Hasw
Uau ... its work ... now says "00" ....
thanks Hasw ....

U know any program to write any values in leds ?
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 14th October, 2003, 06:33 PM
Member
 
Join Date: May 2003
Location: Germany
Posts: 107

Quote:
Originally Posted by otzi
U know any program to write any values in leds ?
Here is a very simple program, compile it with "gcc port80.c -o port80"
-------------
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/io.h>

#define PORT 0x80

int main(int argc, char *argv[]) {

if(argc < 2) {
printf("Usage: %s [value]\n", argv[0]);
exit(1);
}

if(iopl(3) == -1) {
fprintf(stderr, "I/O permission error. (root?)\n");
}

printf("Writing 0x%x to port 0x%x\n", atoi(argv[1]), PORT);

outb(atoi(argv[1]), PORT);

return(0);
}
---------------------------

Hasw
__________________
Epox 8RDA+ Vdd 1.6V
JIUHB 1433@1000, 1.075V
http://www.hasw.net/8rda/LowVoltage_1Ghz.png
2x256 333 Infineon @ 200FSB 4 3 2 2.5, 2.6V
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 14th October, 2003, 07:32 PM
Member
 
Join Date: October 2003
Posts: 5

Quote:
Originally Posted by Hasw
Here is a very simple program, compile it with "gcc port80.c -o port80"
-------------
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/io.h>

#define PORT 0x80

int main(int argc, char *argv[]) {

if(argc < 2) {
printf("Usage: %s [value]\n", argv[0]);
exit(1);
}

if(iopl(3) == -1) {
fprintf(stderr, "I/O permission error. (root?)\n");
}

printf("Writing 0x%x to port 0x%x\n", atoi(argv[1]), PORT);

outb(atoi(argv[1]), PORT);

return(0);
}
---------------------------

Hasw


Thanks agains Hasw ...

To work I need remove 0x before %x ...

But ...

./port80 12
Writing c to port 80

./port80 23
Writing 17 to port 80



thanks again
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 14th October, 2003, 09:08 PM
Member
 
Join Date: May 2003
Location: Germany
Posts: 107

Quote:
Originally Posted by otzi
Thanks agains Hasw ...

To work I need remove 0x before %x ...

But ...

./port80 12
Writing c to port 80

./port80 23
Writing 17 to port 80

thanks again
That 0x before %x shows you that the value is in Hex...
Ex:

12d = 0x0c hexl
23d = 0x17 hex
__________________
Epox 8RDA+ Vdd 1.6V
JIUHB 1433@1000, 1.075V
http://www.hasw.net/8rda/LowVoltage_1Ghz.png
2x256 333 Infineon @ 200FSB 4 3 2 2.5, 2.6V
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 15th October, 2003, 04:43 PM
Member
 
Join Date: October 2003
Posts: 5

To write values in decimal i put %d but no work ....
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 15th October, 2003, 08:51 PM
Member
 
Join Date: October 2003
Posts: 5

Now working and show cpu temp .....

this source code :

---------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/io.h>

#define PORT 0x80

int main(FILE *fp, int temp) {

if(iopl(3) == -1) {
fprintf(stderr, "I/O permission error. (root?)\n");
}


if ((fp = fopen("/proc/sys/dev/sensors/w83627hf-isa-0290/temp2", "r")) != NULL)
{
fscanf(fp, "60.0 50.0 %x", &temp);
fclose(fp);
}
else
return -1;

outb(temp,PORT);

return(0);
}
---------------------------------------------
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Mod Rondog Case Modifications 88 5th September, 2005 07:50 PM
PS3 Add-On HDD to run on Linux Rondog General Hardware Discussion 22 13th June, 2005 07:08 PM
8RDA+ and Linux ErroneousBee EPoX MotherBoards 4 11th August, 2003 05:47 PM
8rda+ linux issue? mal0 EPoX MotherBoards 6 30th April, 2003 01:28 PM
8rda+ & SuSe Linux 8.1 Time to Paws EPoX MotherBoards 0 8th January, 2003 04:01 PM


All times are GMT +1. The time now is 04:12 AM.


Copyright ©2001 - 2010, AOA Forums
Don't Click Here Don't Click Here Either

Search Engine Friendly URLs by vBSEO 3.3.0