Problem: i2c-proc w/o sysctl support
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] */
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 andlm_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 thatregister_sysctl_tablefails. Fittingly,/proc/sysdid not exist. Syctl-support was not compiled into the kernel.Resume:
If syctl is not supported,i2c-proc.cdoes not really do anything. Still, it should either load silently and keep silent or check forCONFIG_SYSCTL=ywhen compiling. None of the i2c-modules can live w/o it.thanks,
Sebastian BrandtPS.: 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] */