* i2c+lm_sensors--possible? worthwhile?
@ 2002-11-26 19:40 Kelledin
2002-11-26 19:52 ` Kelledin
2002-11-26 21:33 ` Michal Jaegermann
0 siblings, 2 replies; 8+ messages in thread
From: Kelledin @ 2002-11-26 19:40 UTC (permalink / raw)
To: axp-list
Has anyone gotten i2c-2.6.5 (related to lm_sensors-2.6.5) to work
on an alpha box? Taking this farther, has anyone got lm_sensors
working on an alpha box? Is it worthwile (i.e. do any Alpha
boxen come with system monitoring chips)?
I just tried compiling i2c-2.6.5, and it appears to have some
arch-specific assembly code that would need porting. Sadly,
that porting is currently beyond my skill level at this point.
=(
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: i2c+lm_sensors--possible? worthwhile?
2002-11-26 19:40 i2c+lm_sensors--possible? worthwhile? Kelledin
@ 2002-11-26 19:52 ` Kelledin
2002-11-26 21:45 ` Michal Jaegermann
2002-11-26 21:33 ` Michal Jaegermann
1 sibling, 1 reply; 8+ messages in thread
From: Kelledin @ 2002-11-26 19:52 UTC (permalink / raw)
To: axp-list
On Tuesday 26 November 2002 01:40 pm, Kelledin wrote:
> Has anyone gotten i2c-2.6.5 (related to lm_sensors-2.6.5) to
> work on an alpha box? Taking this farther, has anyone got
> lm_sensors working on an alpha box? Is it worthwile (i.e. do
> any Alpha boxen come with system monitoring chips)?
>
> I just tried compiling i2c-2.6.5, and it appears to have some
> arch-specific assembly code that would need porting. Sadly,
> that porting is currently beyond my skill level at this point.
> =(
Well, ok...the problem's not quite what I thought it was. I'm
getting the following error message, though:
"Error: macro requires $at register while noat in effect"
This is what's causing it to punt. Apparently, gcc is generating
slightly out-of-whack assembly language...
Anyone know how to fix this? I'm using gcc-2.95.3 to compile
this stuff...using gcc3 is a bit of a non-option.
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: i2c+lm_sensors--possible? worthwhile?
2002-11-26 19:40 i2c+lm_sensors--possible? worthwhile? Kelledin
2002-11-26 19:52 ` Kelledin
@ 2002-11-26 21:33 ` Michal Jaegermann
2002-11-27 1:44 ` Peter Petrakis
1 sibling, 1 reply; 8+ messages in thread
From: Michal Jaegermann @ 2002-11-26 21:33 UTC (permalink / raw)
To: axp-list
On Tue, Nov 26, 2002 at 01:40:35PM -0600, Kelledin wrote:
> Has anyone gotten i2c-2.6.5 (related to lm_sensors-2.6.5) to work
> on an alpha box?
Yes. It is a part of a kernel which I mentioned on that list a while
ago.
> Taking this farther, has anyone got lm_sensors
> working on an alpha box?
Yes. There are even rpms available through anonymous ftp but
compiling that stuff from sources is not complicated at all. :-)
> Is it worthwile (i.e. do any Alpha
> boxen come with system monitoring chips)?
Some. Few and far between. I think that dp264 and UP1500 cover
the whole list but I may be mistaken. UP1100?
>
> I just tried compiling i2c-2.6.5, and it appears to have some
> arch-specific assembly code that would need porting.
??? Are you compiling Alpha specific code or you are trying
to use x86 assembler?
Michal
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: i2c+lm_sensors--possible? worthwhile?
2002-11-26 19:52 ` Kelledin
@ 2002-11-26 21:45 ` Michal Jaegermann
2002-11-26 22:27 ` Kelledin
0 siblings, 1 reply; 8+ messages in thread
From: Michal Jaegermann @ 2002-11-26 21:45 UTC (permalink / raw)
To: axp-list
On Tue, Nov 26, 2002 at 01:52:08PM -0600, Kelledin wrote:
>
> Well, ok...the problem's not quite what I thought it was. I'm
> getting the following error message, though:
>
> "Error: macro requires $at register while noat in effect"
>
> This is what's causing it to punt. Apparently, gcc is generating
> slightly out-of-whack assembly language...
This actually sounds like you have broken binutils or your compiler
specs file is not up to snuff. Digging through my archives seems to
indicate that I have seen that last time at the beginning of 1998. The
following was the answer from Richard Henderson: "You'll have to arrange
for -m21164a to be passed to the assembler, perhaps via the specs file."
Check axp-list archives from that period and somewhat earlier and
you can possibly find more.
Michal
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: i2c+lm_sensors--possible? worthwhile?
2002-11-26 21:45 ` Michal Jaegermann
@ 2002-11-26 22:27 ` Kelledin
2002-11-26 22:47 ` Falk Hueffner
0 siblings, 1 reply; 8+ messages in thread
From: Kelledin @ 2002-11-26 22:27 UTC (permalink / raw)
To: axp-list
On Tuesday 26 November 2002 03:45 pm, Michal Jaegermann wrote:
> On Tue, Nov 26, 2002 at 01:52:08PM -0600, Kelledin wrote:
> > Well, ok...the problem's not quite what I thought it was.
> > I'm getting the following error message, though:
> >
> > "Error: macro requires $at register while noat in effect"
> >
> > This is what's causing it to punt. Apparently, gcc is
> > generating slightly out-of-whack assembly language...
>
> This actually sounds like you have broken binutils or your
> compiler specs file is not up to snuff. Digging through my
> archives seems to indicate that I have seen that last time at
> the beginning of 1998. The following was the answer from
> Richard Henderson: "You'll have to arrange for -m21164a to be
> passed to the assembler, perhaps via the specs file."
>
> Check axp-list archives from that period and somewhat earlier
> and you can possibly find more.
Hmmm...I just took that suggestion a bit farther and compiled i2c
with -mcpu=ev56 (i _was_ using -mcpu=ev4, in the hopes of making
a package compatible with all alpha generations). It seems to
compile just fine with -mcpu=ev56...
Still odd, though. FYI, i'm using binutils 2.13 with gcc-2.95.3,
on an LX164+21164A@600MHz. I'd compile this stuff with gcc-3.2,
but then I'd have to compile the rest of my kernel code with
gcc-3.2--and I'm a little paranoid about using gcc3 on kernel
code...
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: i2c+lm_sensors--possible? worthwhile?
2002-11-26 22:27 ` Kelledin
@ 2002-11-26 22:47 ` Falk Hueffner
2002-11-26 22:51 ` Kelledin
0 siblings, 1 reply; 8+ messages in thread
From: Falk Hueffner @ 2002-11-26 22:47 UTC (permalink / raw)
To: axp-list
Kelledin <kelledin+AXP@skarpsey.dyndns.org> writes:
> Hmmm...I just took that suggestion a bit farther and compiled i2c
> with -mcpu=ev56 (i _was_ using -mcpu=ev4, in the hopes of making
> a package compatible with all alpha generations). It seems to
> compile just fine with -mcpu=ev56...
Considering that apparently all machines to support this are 21264,
you might even use ev6 :)
> Still odd, though. FYI, i'm using binutils 2.13 with gcc-2.95.3, on
> an LX164+21164A@600MHz. I'd compile this stuff with gcc-3.2, but
> then I'd have to compile the rest of my kernel code with
> gcc-3.2--and I'm a little paranoid about using gcc3 on kernel
> code...
Huh? Why? gcc 2.95 and 3 are compatible. The C calling conventions
haven't changed since the Alpha was created. It's only C++ where this
is a problem.
--
Falk
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: i2c+lm_sensors--possible? worthwhile?
2002-11-26 22:47 ` Falk Hueffner
@ 2002-11-26 22:51 ` Kelledin
0 siblings, 0 replies; 8+ messages in thread
From: Kelledin @ 2002-11-26 22:51 UTC (permalink / raw)
To: axp-list
On Tuesday 26 November 2002 04:47 pm, Falk Hueffner wrote:
> Huh? Why? gcc 2.95 and 3 are compatible. The C calling
> conventions haven't changed since the Alpha was created. It's
> only C++ where this is a problem.
Well, even if not an absolute requirement, it's a strong
recommendation. I've been bitten in the past by this
problem--trying to load gcc3-compiled alsa modules into a
gcc2-compiled kernel caused rapid oopses on me several months
back. Apparently something is indeed different, even at the
basic C level.
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: i2c+lm_sensors--possible? worthwhile?
2002-11-26 21:33 ` Michal Jaegermann
@ 2002-11-27 1:44 ` Peter Petrakis
0 siblings, 0 replies; 8+ messages in thread
From: Peter Petrakis @ 2002-11-27 1:44 UTC (permalink / raw)
To: axp-list
> > Is it worthwile (i.e. do any Alpha
> > boxen come with system monitoring chips)?
>
> Some. Few and far between. I think that dp264 and UP1500 cover
> the whole list but I may be mistaken. UP1100?
You don't have to reinvent the wheel here.
http://alo.alphadriven.org/firmware/api/CS20/hwmon-1.0.3.tar.gz
Supports the I2C on UP1000,UP2000/+,& CS20. I think the 1100 may be supported,
not sure. These I2C drivers use a different API than the one in the kernel.
So if you're feeling industrious ;) consider merging their support into kernel
proper. Also included is a tool that polls the I2C modules and performs shutdown
if the predetermind overtemp level is reached.
Peter
--
www.linuxalpha.org www.alphadriven.org
Peter Petrakis Warrior/Engineer voodoo@alphadriven.org
"<BLAM!!> Who the hell are you!? Name's Ash <click clock> Housewares..."
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-11-27 1:44 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-26 19:40 i2c+lm_sensors--possible? worthwhile? Kelledin
2002-11-26 19:52 ` Kelledin
2002-11-26 21:45 ` Michal Jaegermann
2002-11-26 22:27 ` Kelledin
2002-11-26 22:47 ` Falk Hueffner
2002-11-26 22:51 ` Kelledin
2002-11-26 21:33 ` Michal Jaegermann
2002-11-27 1:44 ` Peter Petrakis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox