Skip to contentSkip to conversation

failed again; vetctor 300

DISCUSSION Zeno R.R. Davatz 2 participants 16 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 14 lines · On Wed, 6 Aug 2003 12:37:15 +0200 Jean Delvare <[email protected]> wrote:
Quoted 1 line

Does this affect my sound?

It could, if your sound chip is using the i2c bus.

(Flash of Insight)

OMG, that's it. You just found the reason why everything dies each time you try to install lm_sensors. Let's see if I'm right.

You have been trying to install i2c-2.8.0 and lm_sensors 2.8.0.

You have a PPC system and use an audio driver that relies on the I2C bus (DAC3550A or TAS3001C).

Quoted 6 lines

You have been installing i2c from its own directory, you did *not* use the i2c kernel patch.

You use Gnome, and Gnome tries to setup the sound at startup, because it will sometime play sound on particular events (or simply setups the ESD sound daemon).

Here you are right and wrong. As Gnome is not starting anymore because I do not have the newest version of Orbit and libbonobo (Debian packages are not released yet - I am running unstable) I am now running KDE. If I do depmod -a I get:

depmod: *** Unresolved symbols in /lib/modules/2.4.21-ben2/kernel/drivers/sound/dmasound/dmasound_pmac.o

My feeling tells me you must be right.

Quoted 5 lines

Am I wrong on any point? If I'm not, I fully understand what happened. I have been wrong pretending this wasn't our fault, because it actually is (well, sort of).

(It does *not* explain why sensors-detect locks on the ISA bus scanning,

I was not the ISA Bus it was the check afterwards, I think it did not check for that in the last lm-sensors version I thouhgt it started an I... (bad memory chip in my brain - sorry).

Quoted 2 lines

but it explains the trouble you have been encountering after installing lm_sensors, or, more precisely, i2c-2.8.0).

Ok, how do I get my sound back? I could just install my latest kernel-image I think that would help.

Thanks for feedback.
Zeno

Signature · 8 lines
Mit freundlichen Gruessen / Best regards

Zeno Davatz
Strategie und Akquisition

+41 1 350 85 86

www.ywesee.com > intellectual capital connected > www.generika.cc
#1 lore raw
Quoted 3 lines · On Wed, 6 Aug 2003 13:40:27 +0200 Jean Delvare <[email protected]> wrote:

I added a news item on our main page, so that other PPC users don't experience the same problems as you did.

Ok ;-) Thanks for the mentioning. I will now go and get my sound back and try to compile 2.7.0

Zeno

#2 lore raw
In reply to Zeno R.R. Davatz
Quoted 2 lines · On Wed, 6 Aug 2003 13:31:27 +0200 Jean Delvare <[email protected]> wrote:

Yes, I am. I should really have though of all that before, since I am the one who wrote the kernel i2c patch that fixes that. Stupid me.

Well we found the problem. That is most important. Thanks again.

Quoted 3 lines

Must be Super I/O chips? This is something new in 2.8.0 actually, and not well tested. Maybe this will require some tweeking, thanks for reporting.

Yes correct.

Quoted 3 lines

Solution #1:
You stick to 2.7.0 until kernel 2.4.23 is released. This kernel version should include the i2c update and solve the problem you had.

Any idea when 2.4.23 will be released?

Quoted 4 lines

Solution #2:
You disable your sound module ("alias dmasound_pmac off" in /etc/modules.conf) and install 2.8.0. This should work, but you won't have sound anymore, of course.

Want my sound. It is back now.

Quoted 5 lines

Solution #3:
You use the i2c kernel patch for 2.8.0. This require recompiling your own kernel. I don't know it this is something you are used to do, nor if you simply want to. I guess this may prevent you from using the debian packages (unless these are sources packages tou have to compile anyway).

Not an option for me at the moment.

Thanks
Zeno

#3 lore raw
In reply to Zeno R.R. Davatz
Quoted 3 lines · On Wed, 6 Aug 2003 13:31:27 +0200 Jean Delvare <[email protected]> wrote:

Solution #1:
You stick to 2.7.0 until kernel 2.4.23 is released. This kernel version should include the i2c update and solve the problem you had.

make of lm-sensors_2.7.0 gives me:

usses/i2c-amd8111.c -o kernel/busses/i2c-amd8111.o
kernel/busses/i2c-amd8111.c:25:2: #error Your i2c is too old - i2c-2.7.0 or greater required! kernel/busses/i2c-amd8111.c: In function `amd8111_access':
kernel/busses/i2c-amd8111.c:238: error: `I2C_CLIENT_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:238: error: (Each undeclared identifier is reported only once kernel/busses/i2c-amd8111.c:238: error: for each function it appears in.) kernel/busses/i2c-amd8111.c:298: error: I2C_SMBUS_BLOCK_PROC_CALL' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:309: error: I2C_SMBUS_WORD_DATA_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:310: error: I2C_SMBUS_BLOCK_DATA_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:311: error: I2C_SMBUS_PROC_CALL_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:312: error: I2C_SMBUS_BLOCK_PROC_CALL_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c: In function amd8111_func':
kernel/busses/i2c-amd8111.c:385: error: I2C_FUNC_SMBUS_BLOCK_PROC_CALL' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:386: error: I2C_FUNC_SMBUS_HWPEC_CALC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c: In function `amd8111_probe':
kernel/busses/i2c-amd8111.c:426: error: `I2C_HW_SMBUS_AMD8111' undeclared (first use in this function)
make: *** [kernel/busses/i2c-amd8111.o] Fehler 1

Any hints?

Thanks
Zeno

#4 lore raw
In reply to Zeno R.R. Davatz
Quoted 11 lines · On Wed, 6 Aug 2003 14:34:15 +0200 Jean Delvare <[email protected]> wrote:
Quoted 8 lines

make of lm-sensors_2.7.0 gives me:

usses/i2c-amd8111.c -o kernel/busses/i2c-amd8111.o kernel/busses/i2c-amd8111.c:25:2: #error Your i2c is too old - i2c-2.7.0 or greater required!
(...)
Any hints?

Sure. http://secure.netroedge.com/~lm78/, see new item "# May 31st, 2003". Get the updated Makefile and config.c, should work OK then.

Ok, done that. Now I get this:
gcc -I. -Ikernel/include -I/usr/local/include -I/lib/modules/2.4.21-ben2/build/include -Wall -O2 -c lib/data.c -o lib/data.ao
In file included from lib/data.c:20:
/usr/include/stdlib.h:445: error: Syntaxfehler before "int32_t" /usr/include/stdlib.h:447: error: Syntaxfehler before '*' token /usr/include/stdlib.h:451: error: Syntaxfehler before '*' token /usr/include/stdlib.h:452: error: Syntaxfehler before '}' token /usr/include/stdlib.h:455: error: Syntaxfehler before "int32_t" lib/data.c: In function `sensors_parse_chip_name':
lib/data.c:117: Warnung: deprecated use of label at end of compound statement lib/data.c:151: Warnung: deprecated use of label at end of compound statement
make: *** [lib/data.ao] Fehler 1

Any hints?

Thanks for Feedback.

Zeno

#5 lore raw
In reply to Zeno R.R. Davatz

Hi Jean

I tried to install lm-sensors 2.8.0 again ( I got my computer back and running on KDE).

While running sensors-detect it hung at checking for IS0...

No I get the same error message again during start up as I got last time when we had to delete something from /usr/src/linux/....

I can't remember anymore what you told me exactly to do. Can you resent me that mail please.

My error again is:
vector 300 at pc = e238c288, lr = e238f080
msr = 9032, sp = d8667cf0 [d8667c40]
dar = 24, dsisr = 40000000
current = d8666000, pid = 879, comm = modprobe
mon>

Then everything hangs while startup.

Thanks for yor feedback.

Zeno

#7 lore raw
In reply to Zeno R.R. Davatz
Quoted 5 lines

I tried to install lm-sensors 2.8.0 again ( I got my computer back and running on KDE).

While running sensors-detect it hung at checking for IS0...

Checking the ISA bus you mean?

Quoted 5 lines

No I get the same error message again during start up as I got last time when we had to delete something from /usr/src/linux/....

I can't remember anymore what you told me exactly to do. Can you resent me that mail please.

Quoting myself:

"(...) try the following:

cd /lib/modules/$(uname -r)/kernel/drivers/i2c

(make sure this command succeeded before running the rm commands below)

rm *.o
rm -r busses
rm -r chips

With no more sensor modules installed, everything should be back to normal I guess."

Hope it'll work this time too. Looks like your system really doesn't like lm_sensors and I think you should stop trying or you'll end up breaking things seriously. I don't know what we can do to solve the problem (none of us has a PPC to make tests on). If we even can figure something out, we'll let you know.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#8 lore raw
In reply to Zeno R.R. Davatz
Quoted 10 lines

Ok thanks again, my Computer rebooted.

Quoted 3 lines · Jean Delvare

rm *.o
rm -r busses
rm -r chips

Does this affect my sound?

It could, if your sound chip is using the i2c bus.

(Flash of Insight)

OMG, that's it. You just found the reason why everything dies each time you try to install lm_sensors. Let's see if I'm right.

You have been trying to install i2c-2.8.0 and lm_sensors 2.8.0.

You have a PPC system and use an audio driver that relies on the I2C bus (DAC3550A or TAS3001C).

You have been installing i2c from its own directory, you did *not* use the i2c kernel patch.

You use Gnome, and Gnome tries to setup the sound at startup, because it will sometime play sound on particular events (or simply setups the ESD sound daemon).

Am I wrong on any point? If I'm not, I fully understand what happened. I have been wrong pretending this wasn't our fault, because it actually is (well, sort of).

(It does *not* explain why sensors-detect locks on the ISA bus scanning, but it explains the trouble you have been encountering after installing lm_sensors, or, more precisely, i2c-2.8.0).

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#9 lore raw
In reply to Zeno R.R. Davatz
Quoted 5 lines

depmod: *** Unresolved symbols in /lib/modules/2.4.21-ben2/kernel/drivers/sound/dmasound/dmasound_pmac.o

My feeling tells me you must be right.

Yes, I am. I should really have though of all that before, since I am the one who wrote the kernel i2c patch that fixes that. Stupid me.

Quoted 9 lines
Quoted 6 lines

Am I wrong on any point? If I'm not, I fully understand what happened. I have been wrong pretending this wasn't our fault, because it actually is(well, sort of).

(It does *not* explain why sensors-detect locks on the ISA bus scanning,

I was not the ISA Bus it was the check afterwards, I think it did not check for that in the last lm-sensors version I thouhgt it started an I... (bad memory chip in my brain - sorry).

Must be Super I/O chips? This is something new in 2.8.0 actually, and not well tested. Maybe this will require some tweeking, thanks for reporting.

Quoted 5 lines
Quoted 2 lines

but it explains the trouble you have been encountering after installing lm_sensors, or, more precisely, i2c-2.8.0).

Ok, how do I get my sound back? I could just install my latest kernel-image I think that would help.

Yes it should. Basically, your sound module depends on i2c-core and maybe some other i2c modules, which I told you to delete in order to prevent the system crash. In a way, it worked, your system doesn't crash anymode, but still the sound module cannot load. Restoring your kernel package should work. Note however that it is not the kernel itself, but the kernel modules, that have to be reinstalled. I don't know how this is organized in Debian.

As for installing lm_sensors on your system, here are my conclusion.

Solution #1:
You stick to 2.7.0 until kernel 2.4.23 is released. This kernel version should include the i2c update and solve the problem you had.

Solution #2:
You disable your sound module ("alias dmasound_pmac off" in /etc/modules.conf) and install 2.8.0. This should work, but you won't have sound anymore, of course.

Solution #3:
You use the i2c kernel patch for 2.8.0. This require recompiling your own kernel. I don't know it this is something you are used to do, nor if you simply want to. I guess this may prevent you from using the debian packages (unless these are sources packages tou have to compile anyway).

So I think solution #1 is the safe and easy way.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#10 lore raw
In reply to Zeno R.R. Davatz

I added a news item on our main page, so that other PPC users don't experience the same problems as you did.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#11 lore raw
In reply to Zeno R.R. Davatz
Quoted 5 lines
Quoted 4 lines

Solution #1:
You stick to 2.7.0 until kernel 2.4.23 is released. This kernel version should include the i2c update and solve the problem you had.

Any idea when 2.4.23 will be released?

Nobody knows, of course. If asked to guess, I'd say we should have 2.4.22 for september or october, and 2.4.23 maybe 4 months later? So say february 2004. Well, long time to wait, isn't it? Anyway it's almost impossible to predict. Time between releases has been seen from one day to half a year.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#12 lore raw
In reply to Zeno R.R. Davatz
Quoted 8 lines

make of lm-sensors_2.7.0 gives me:

usses/i2c-amd8111.c -o kernel/busses/i2c-amd8111.o kernel/busses/i2c-amd8111.c:25:2: #error Your i2c is too old - i2c-2.7.0 or greater required!
(...)
Any hints?

Sure. http://secure.netroedge.com/~lm78/, see new item "# May 31st, 2003". Get the updated Makefile and config.c, should work OK then.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#13 lore raw
In reply to Zeno R.R. Davatz
Quoted 17 lines

Ok, done that. Now I get this:
gcc -I. -Ikernel/include -I/usr/local/include
-I/lib/modules/2.4.21-ben2/build/include -Wall -O2 -c lib/data.c -o
lib/data.ao In file included from lib/data.c:20:
/usr/include/stdlib.h:445: error: Syntaxfehler before "int32_t" /usr/include/stdlib.h:447: error: Syntaxfehler before '*' token /usr/include/stdlib.h:451: error: Syntaxfehler before '*' token /usr/include/stdlib.h:452: error: Syntaxfehler before '}' token /usr/include/stdlib.h:455: error: Syntaxfehler before "int32_t" lib/data.c: In function `sensors_parse_chip_name':
lib/data.c:117: Warnung: deprecated use of label at end of compound statement
lib/data.c:151: Warnung: deprecated use of label at end of compound statement
make: *** [lib/data.ao] Fehler 1

Quoted 1 line

Any hints?

Not really. Didn't you encounter this problem with lm_sensors 2.8.0?

The warnings are harmless, you can get the fixed version of the file here if you want.
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/lib/data.c

Sounds like a broken system header, which won't let you compile the library nor any user-space program.

What's there in /usr/include/stdlib.h, lines 430 to 460?

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#14 lore raw
In reply to Zeno R.R. Davatz
Quoted 17 lines · On Wed, 6 Aug 2003 15:21:17 +0200 Jean Delvare <[email protected]> wrote:
Quoted 17 lines

Ok, done that. Now I get this:
gcc -I. -Ikernel/include -I/usr/local/include
-I/lib/modules/2.4.21-ben2/build/include -Wall -O2 -c lib/data.c -o
lib/data.ao In file included from lib/data.c:20:
/usr/include/stdlib.h:445: error: Syntaxfehler before "int32_t" /usr/include/stdlib.h:447: error: Syntaxfehler before '*' token /usr/include/stdlib.h:451: error: Syntaxfehler before '*' token /usr/include/stdlib.h:452: error: Syntaxfehler before '}' token /usr/include/stdlib.h:455: error: Syntaxfehler before "int32_t" lib/data.c: In function `sensors_parse_chip_name':
lib/data.c:117: Warnung: deprecated use of label at end of compound statement
lib/data.c:151: Warnung: deprecated use of label at end of compound statement
make: *** [lib/data.ao] Fehler 1

Quoted 3 lines
Quoted 1 line

Any hints?

Not really. Didn't you encounter this problem with lm_sensors 2.8.0?

Can't remember, could be.

Quoted 3 lines

The warnings are harmless, you can get the fixed version of the file here if you want.
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/lib/data.c

Done this to /usr/src/modules/lm-sensors/lib

. Still get:
-I /usr/lib/gcc-lib/powerpc-linux/3.3.1/include -Wall -O2 -c kernel/chips/vt1211.c -o kernel/chips/vt1211.o
gcc -I. -Ikernel/include -I/usr/local/include -I/lib/modules/2.4.21-ben2/build/include -Wall -O2 -c lib/data.c -o lib/data.ao
In file included from lib/data.c:20:
/usr/include/stdlib.h:445: error: Syntaxfehler before "int32_t" /usr/include/stdlib.h:447: error: Syntaxfehler before '*' token /usr/include/stdlib.h:451: error: Syntaxfehler before '*' token /usr/include/stdlib.h:452: error: Syntaxfehler before '}' token /usr/include/stdlib.h:455: error: Syntaxfehler before "int32_t"
make: *** [lib/data.ao] Fehler 1

Quoted 4 lines

Sounds like a broken system header, which won't let you compile the library nor any user-space program.

What's there in /usr/include/stdlib.h, lines 430 to 460?

extern char *initstate (unsigned int __seed, char *__statebuf,

                        size_t __statelen) __THROW;

/* Switch the random number generator to state buffer STATEBUF,
which should have been previously initialized by `initstate'. */
extern char *setstate (char *__statebuf) __THROW;

# ifdef __USE_MISC
/* Reentrant versions of the `random' family of functions.
   These functions all use the following data structure to contain
   state, rather than global state variables.  */

struct random_data
{

    int32_t *fptr;              /* Front pointer.  */
    int32_t *rptr;              /* Rear pointer.  */
    int32_t *state;             /* Array of state values.  */
    int rand_type;              /* Type of random number generator.  */
    int rand_deg;               /* Degree of random number generator.  */
    int rand_sep;               /* Distance between front and rear.  */
    int32_t *end_ptr;           /* Pointer behind state table.  */

};

extern int random_r (struct random_data *__restrict __buf,

                     int32_t *__restrict __result) __THROW;

extern int srandom_r (unsigned int __seed, struct random_data *__buf) __THROW;

extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,

                        size_t __statelen,
                        struct random_data *__restrict __buf) __THROW;

Thanks for any Feedback.

Zeno

#15 lore raw
In reply to Zeno R.R. Davatz
Quoted 3 lines
Quoted 2 lines

Not really. Didn't you encounter this problem with lm_sensors 2.8.0?

Can't remember, could be.

I was right, you had the problem and we solved it.

But since I forgot to commit the change, the new Makefile you downloaded did not fix it. My bad.

Please get the new Makefile here:
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/Makefile

Should fix the problem.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/