Skip to contentSkip to conversation

i2c kernel patch issue with bttv-if module

DISCUSSION Matthew M. Shannon 2 participants 10 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

lm_sensors team-

I have no idea who the right person is for this sort of email, however I trust someone will forward it on to the right person.

I applied your new i2c patch (i2c-2.8.0) to a virgin 2.4.21 kernel with zero issues. However during the build process I die at the same point in the middle of the bttv modules. The bummer is I still love my bttv card and can't stand to part with it.

Perhaps there's something missing from the patch.

Here's the error:

gcc -D__KERNEL__ -D__SMP__ -I/home/mshannon/kernel/linux-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /home/mshannon/kernel/linux-2.4.21/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=bttv_if -DEXPORT_SYMTAB -c bttv-if.c
bttv-if.c:255: unknown field inc_use' specified in initializer bttv-if.c:255: warning: initialization from incompatible pointer type bttv-if.c:256: unknown field dec_use' specified in initializer bttv-if.c:256: warning: missing braces around initializer bttv-if.c:256: warning: (near initialization for `bttv_i2c_adap_template.name')
bttv-if.c:256: warning: initialization makes integer from pointer without a cast
bttv-if.c:256: initializer element is not computable at load time bttv-if.c:256: (near initialization for bttv_i2c_adap_template.name[0]') bttv-if.c:257: initializer element is not constant bttv-if.c:257: (near initialization for bttv_i2c_adap_template.name') make[3]: *** [bttv-if.o] Error 1
make[3]: Leaving directory `/home/mshannon/kernel/linux-2.4.21/drivers/media/video'

Any thoughts? I'll try any suggestions you may have.

Thanks!

Matt Shannon

#1 lore raw
Quoted 3 lines

I have no idea who the right person is for this sort of email, however I trust someone will forward it on to the right person.

I am the one (yeah, I love saying that) and I'm already there so no need to forward.

Quoted 6 lines

I applied your new i2c patch (i2c-2.8.0) to a virgin 2.4.21 kernel with zero issues. However during the build process I die at the same point in the middle of the bttv modules. The bummer is I still love my bttv card and can't stand to part with it.

Perhaps there's something missing from the patch.

Which patch or set of patches did you applied exactly? (complete URI wanted)

I am running a bttv card myself, with a patched 2.4.21 kernel, and it works rather well. However, the source tree is the one I made the changes on and extracted the patches from, so if I forgot to extract one, it could explain the problem you had.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Matthew M. Shannon
Quoted 7 lines

I think it was user error on my part.

I got confused by the links on the page... I downloaded the i2c and not the complete patch.

that one took a few minutes to figure out, sorry for any inconvience.

I updated my page to make it clearer. Tell me if it is clear enough for you :)

Quoted 3 lines

I've been having a heck of a time with my new iWill mobo (dual xeon) and trying to get the lm sensors to work right, I think support for the winbond support is updated in 2.8...

Almost everything is updated, so it may work for you.

Quoted 2 lines

However, if I do notice some temp calc math errors, what's the best way to handle that?

First read the chip-specific doc file, then read the chip-specific section in sensors.conf. Sometimes there are things you can change there. If it still doesn't work, try your own formulas in the config file (guess work, usually long). If you can't get it to work, contact us and we'll try to help.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#3 lore raw
In reply to Matthew M. Shannon
Quoted 4 lines
Quoted 2 lines

Almost everything is updated, so it may work for you.

It does...sort of, temps are still off, but not by much (vs. BIOS)

Someone on this list (I can't remember who) once explained that the temperature as shown in the BIOS screen is usually higher than the one of an idling Linux system, because the loop that waits for a user event in the BIOS screen is poorly designed and leads to a high CPU load. Well, that may depend on the BIOS designer, but that may be your case.

You could think that comparing the values with another OS such as Windows would lead to better results, but that's not necessarily true. I remember my good old Pentium II 400 system had an idle temperature of 38 deg C under Windows 98 and 32 deg C under Linux (as reported by the BIOS right after reboot, so it isn't a matter of which software was used). It really depends on how each OS wastes its time, so to say.

Anyway, you most probably don't need a 1 degree accuracy. (BTW, most people don't know that but most temperature sensors have an accuracy of 3 to 4 deg C, although they generally have a resolution of 1 deg C.) What matters is not the "absolute" value. What matters is to know the "normal value" to be able to detect overheating.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#4 lore raw
In reply to Matthew M. Shannon
Quoted 19 lines · Jean Delvare
Quoted 4 lines

I have no idea who the right person is for this sort of email, however I trust someone will forward it on to the right person.

I am the one (yeah, I love saying that) and I'm already there so no need to forward.

Quoted 8 lines

I applied your new i2c patch (i2c-2.8.0) to a virgin 2.4.21 kernel with zero issues. However during the build process I die at the same point in the middle of the bttv modules. The bummer is I still love my bttv card and can't stand to part with it.

Perhaps there's something missing from the patch.

Quoted 10 lines

Which patch or set of patches did you applied exactly? (complete URI wanted)

I am running a bttv card myself, with a patched 2.4.21 kernel, and it works rather well. However, the source tree is the one I made the changes on and extracted the patches from, so if I forgot to extract one, it could explain the problem you had.

Jean-

I think it was user error on my part.

I got confused by the links on the page... I downloaded the i2c and not the complete patch.

that one took a few minutes to figure out, sorry for any inconvience.

I've been having a heck of a time with my new iWill mobo (dual xeon) and trying to get the lm sensors to work right, I think support for the winbond support is updated in 2.8...

However, if I do notice some temp calc math errors, what's the best way to handle that?

Thanks!

m

-M

#5 lore raw
In reply to Matthew M. Shannon
Quoted 5 lines · Jean Delvare
Quoted 5 lines

I think it was user error on my part.

I got confused by the links on the page... I downloaded the i2c and not the complete patch.

Quoted 8 lines
Quoted 3 lines

that one took a few minutes to figure out, sorry for any inconvience.

I updated my page to make it clearer. Tell me if it is clear enough for you :)

Much better, Thanks! That most likely saved you a lot of emails.

Quoted 11 lines
Quoted 7 lines

I've been having a heck of a time with my new iWill mobo (dual xeon) and trying to get the lm sensors to work right, I think support for the winbond support is updated in 2.8...

Almost everything is updated, so it may work for you.

It does...sort of, temps are still off, but not by much (vs. BIOS)

Quoted 7 lines
Quoted 6 lines

However, if I do notice some temp calc math errors, what's the best way to handle that?

Quoted 7 lines

First read the chip-specific doc file, then read the chip-specific section in sensors.conf. Sometimes there are things you can change there. If it still doesn't work, try your own formulas in the config file (guess work, usually long). If you can't get it to work, contact us and we'll try to help.

Will do, thanks again!

M

Quoted 2 lines
#6 lore raw
In reply to Matthew M. Shannon
Quoted 20 lines · Jean Delvare
Quoted 6 lines
Quoted 3 lines

Almost everything is updated, so it may work for you.

It does...sort of, temps are still off, but not by much (vs. BIOS)

Someone on this list (I can't remember who) once explained that the temperature as shown in the BIOS screen is usually higher than the one of an idling Linux system, because the loop that waits for a user event in the BIOS screen is poorly designed and leads to a high CPU load. Well, that may depend on the BIOS designer, but that may be your case.

You could think that comparing the values with another OS such as Windows would lead to better results, but that's not necessarily true. I remember my good old Pentium II 400 system had an idle temperature of 38 deg C under Windows 98 and 32 deg C under Linux (as reported by the BIOS right after reboot, so it isn't a matter of which software was used). It really depends on how each OS wastes its time, so to say.

Quoted 8 lines

Anyway, you most probably don't need a 1 degree accuracy. (BTW, most people don't know that but most temperature sensors have an accuracy of 3 to 4 deg C, although they generally have a resolution of 1 deg C.) What matters is not the "absolute" value. What matters is to know the "normal value" to be able to detect overheating.

True.

Say, I really appreciate you taking the time to respond, this is one of the main reasons I love the opensource community.

That..and damn slick software. ;)

The main reason why I'm trying to be very accurate with my temps is I am experimenting with a new water cooled system. I've got to machine up a nice flow meter and interface it with the fan output.

That way an ALARM means no (low) flow...which means, well, your toast.

Thanks again!

M

#7 lore raw
In reply to Matthew M. Shannon
Quoted 19 lines · Jean Delvare
Quoted 4 lines

I have no idea who the right person is for this sort of email, however I trust someone will forward it on to the right person.

I am the one (yeah, I love saying that) and I'm already there so no need to forward.

Quoted 8 lines

I applied your new i2c patch (i2c-2.8.0) to a virgin 2.4.21 kernel with zero issues. However during the build process I die at the same point in the middle of the bttv modules. The bummer is I still love my bttv card and can't stand to part with it.

Perhaps there's something missing from the patch.

Quoted 10 lines

Which patch or set of patches did you applied exactly? (complete URI wanted)

I am running a bttv card myself, with a patched 2.4.21 kernel, and it works rather well. However, the source tree is the one I made the changes on and extracted the patches from, so if I forgot to extract one, it could explain the problem you had.

Jean-

I'm still loving your patch, I'm watching TV and my temps at the same time. Ahh the joy.

Any chance you guys have ported the patch to the 2.4.22 kernel?

It's got some extra support for my AGP and NVIDIA card.

Thanks!

Matt

#8 lore raw
In reply to Matthew M. Shannon
Quoted 7 lines

I'm still loving your patch, I'm watching TV and my temps at the same time. Ahh the joy.

Any chance you guys have ported the patch to the 2.4.22 kernel?

It's got some extra support for my AGP and NVIDIA card.

Will do. All I need is some spare time, and unfortunately I don't have much these days.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#9 lore raw
In reply to Matthew M. Shannon
Quoted 14 lines · Jean Delvare
Quoted 8 lines

I'm still loving your patch, I'm watching TV and my temps at the same time. Ahh the joy.

Any chance you guys have ported the patch to the 2.4.22 kernel?

It's got some extra support for my AGP and NVIDIA card.

Will do. All I need is some spare time, and unfortunately I don't have much these days.

That's cool man, I understand completely, perhaps I'll get some time this weekend and consider doing it...

If I do I'll pass it on.

Thanks again!

Matt