Modules are software that can have dependencies.
I would think you have to compile and then load the i2c_i801 module.
Otherwise when you attempt to load eee it may fail with unknown symbol in module error
You should see if the eee.ko compiles before you bother with i2c_i801
This thread has directions for compiling/installing an in tree kernel module without recompiling the kernel.
Skip step 5) installing firmware:
http://vanilla.slitaz.org/index.php?p=/discussion/comment/5404#Comment_5404

Trying to compile a kernel module
(25 posts) (5 voices)-
Posted 13 years ago #
-
If i remember, Pankso had a flavor for eeepc (i guess he still have one) that includes the eee.ko module. Can't confirm it right know, because the iso used to be hosted at people.slitaz.org/~pankso, that's currently offline.
Maybe you can try the slitaz-eeepc package on the cooking repos. It brings a script called "tazee" which helps to setup some asus netbooks.
Posted 13 years ago # -
I proceeded the hard way by recompiling the kernel with i2c_i801 selected in make menuconfig... now I'm having issues compiling eee.c:
root@servidor:/home/mendel/eeepc-linux/module# make
make -C /lib/modules/2.6.30.6-slitaz/build M=/home/mendel/eeepc-linux/module modules
make[1]: Entering directory `/usr/src/linux-2.6.30.6-slitaz'
CC [M] /home/mendel/eeepc-linux/module/eee.o
/home/mendel/eeepc-linux/module/eee.c: In function âeee_proc_initâ:
/home/mendel/eeepc-linux/module/eee.c:399: error: âproc_rootâ undeclared (first use in this function)
/home/mendel/eeepc-linux/module/eee.c:399: error: (Each undeclared identifier is reported only once
/home/mendel/eeepc-linux/module/eee.c:399: error: for each function it appears in.)
/home/mendel/eeepc-linux/module/eee.c:404: error: âstruct proc_dir_entryâ has no member named âownerâ
/home/mendel/eeepc-linux/module/eee.c:421: error: âstruct proc_dir_entryâ has no member named âownerâ
/home/mendel/eeepc-linux/module/eee.c: In function âeee_proc_cleanupâ:
/home/mendel/eeepc-linux/module/eee.c:442: error: âproc_rootâ undeclared (first use in this function)
make[2]: *** [/home/mendel/eeepc-linux/module/eee.o] Error 1
make[1]: *** [_module_/home/mendel/eeepc-linux/module] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30.6-slitaz'
make: *** [all] Error 2I think it might be some kind of incompatibility between kernel 2.6.30 and the version used by the author of eee.ko. I'm not a C expert but I'll try to figure out what is wrong with the code
Thanks
Posted 13 years ago # -
I dont want make advertisment for puppy, because running only as root is very stupid, but to try things out, you may have a look, if you dont succeed in SliTaz
http://www.murga-linux.com/puppy/viewtopic.php?search_id=2030086327&t=59556
Posted 13 years ago # -
Nice tip, kultex! What a pity that the site is offline. I'll try to find Puppeee's source in another place to check how it implemented the FSB control. Thanks
Posted 13 years ago # -
Posted 13 years ago #
-
I finally managed to compile eee.c in 2.6.30.6-slitaz. The avaliable version in https://code.google.com/p/eeepc-linux/ is not compatible with the kernel used by slitaz. Fortunately, there's a version tested with kernel versions up to 2.6.32:
https://code.google.com/p/eeepc-linux/issues/detail?id=23
Just one more question before closing the topic: I see in many pages the instructions to add the modules' names to /etc/modules but this file doesn't exist in my slitaz installation. How do I do to set slitaz to automatically load these modules at boot?
Thanks!
Posted 13 years ago # -
#nano /etc/rcS.conf
LOAD_MODULES=Posted 13 years ago # -
Thank you all, now everything is fine! The question is solved!
Posted 13 years ago # -
Hi Mendel,
I am trying to install this kernel module like a crazy, can you upload the compiled version somewhere?
maybe you can publish a little tutorial somewhere?
it would be really usefule.
thank you
Posted 12 years ago #
Reply
You must log in to post.