Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: NinjaCowboy on January 21, 2019, 02:54:31 PM
-
I'm trying to be able to use a wiimote as input in kodi and retroarch (both compiled from source). When I run 'sudo modprobe hid-wiimote', I get an error.
modprobe: can't load module hid-wiimote (kernel/drivers/hid/hid-wiimote.ko.gz): unknown symbol in module, or unknown parameter
dmesg shows this.
[ 2472.605574] hid_wiimote: Unknown symbol input_ff_create_memless (err 0)
After further research, it seems to require a ff_memless kernel module that doesn't exist.
modprobe: module ff_memless not found in modules.dep
-
Hi NinjaCowboy
You want piCore_modules found here:
http://tinycorelinux.net/9.x/armv6/releases/RPi/src/kernel/
or here:
http://tinycorelinux.net/10.x/armv6/releases/RPi/src/kernel/
depending on which version you are running.
-
Hi NinjaCowboy
By the way, hid-wiimote.ko is also included in piCore_modules.
-
I am trying to use the core hid-wiimote.ko.gz from 9.0.3v7.gz, which is broken. I'll try compiling piCore_modules and try to see if it works.
Unrelated, but why are the modules in 9.0.3v7.gz compressed (have .ko.gz extension), but the ones in 9.0.3.gz not compressed?
-
Hi NinjaCowboy
Unrelated, but why are the modules in 9.0.3v7.gz compressed (have .ko.gz extension), but the ones in 9.0.3.gz not compressed?
Why? Maybe an oversight. The kernel is capable of loading modules regardless of compression or lack of.
-
Since the initrd ends up in RAM, we compress all the modules in the initrd to save space. I have my kernel build scripts automated so I don't forget, which is likely what happened.
-
ff-memless is located kernel/drivers/input/ff-memless.ko it is in the armv6 archives (And the armv7 archive for that matter)
I'm sure you posted which board you are using in another thread, but make sure you are downloading the correct archive for your board.
armv6 or armv7
-
I'm using a Raspberry Pi 3 Model B. Which archive is that module located in? It's not in the 9.0.3v7.gz or 9.0.3v6.gz. For example, 'gzip -dc /mnt/mmcblk0p1/9.0.3v7.gz | cpio -t | grep memless' didn't find it. Also, I have no idea how to compile those modules. There doesn't seem to be any kind of makefile or build script. I have compiled kernels before, but it's not fun.
-
Hi NinjaCowboy
The module can be found here:
http://tinycorelinux.net/9.x/armv6/releases/RPi/src/kernel/4.9.22-piCore_modules.tar.xz
or here:
http://tinycorelinux.net/9.x/armv7/releases/RPi/src/kernel/4.9.22-piCore-v7_modules.tar.xz
I don't know if you need v6 or v7. Maybe the uname command can provide the answer.
-
Pi3 uses armv7
And no, most modules are not in the initrd, you have to add them manually. That is how we have a 40mb distribution, vs a 4gb distro.
-
The modules.dep file is missing from that 4.9.22-piCore-v7_modules.tar.xz archive.
-
And why would you expect it to be there? modules.dep is generated by depmod.
If you are manually copying a driver to your system, you have to run `sudo depmod -a` to update the files on your system
If you build a extension, wiimote-4.9.22-piCore-v7.tcz tce-load will automatically update the system for you at the time the extension is loaded.