Skip to contentSkip to conversation

Problem: i2c-proc w/o sysctl support

DISCUSSION Sebastian Brandt 2 participants 2 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Dear Developers,
when I tried to use i2c and lm_sensors, it mysteriously failed for me - of course, for me only, like usual.
Loading i2c-proc.o resulted in out-of-memory error, with the usual modprobe/insmod explanation about wrong irqs or io ports. Looking at the code an debugging, I found out that register_sysctl_table fails. Fittingly, /proc/sys did not exist. Syctl-support was not compiled into the kernel.

Resume:
If syctl is not supported, i2c-proc.c does not really do anything. Still, it should either load silently and keep silent or check for CONFIG_SYSCTL=y when compiling. None of the i2c-modules can live w/o it.

thanks,
Sebastian Brandt

PS.: I hope this is not considered spam ....

/* If everything seems to be going well, you */
/* obviously don't know what the hell's going on */
/* Sebastian Brandt - [email protected] */

#1 lore raw

you're a genius!
we have several open tickets on out-of-memory and hadn't figured it out. We'll have to update the makefile and our docs.
thanks
mds

Quoted 22 lines · Sebastian Brandt

Dear Developers,
when I tried to use i2c and lm_sensors, it mysteriously failed for me - of course, for me only, like usual.
Loading i2c-proc.o resulted in out-of-memory error, with the usual modprobe/insmod explanation about wrong irqs or io ports. Looking at the code an debugging, I found out that register_sysctl_table fails. Fittingly, /proc/sys did not exist. Syctl-support was not compiled into the kernel.

Resume:
If syctl is not supported, i2c-proc.c does not really do anything. Still, it should either load silently and keep silent or check for CONFIG_SYSCTL=y when compiling. None of the i2c-modules can live w/o it.

thanks,
Sebastian Brandt

PS.: I hope this is not considered spam ....

/* If everything seems to be going well, you */
/* obviously don't know what the hell's going on */
/* Sebastian Brandt - [email protected] */