Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: seandepagnier on August 29, 2017, 01:46:57 PM
-
I managed to compile lircd from git, but I need the kernel modules lirc_dev and lirc_rpi.
I cannot figure out how to build these.. any hints? Which package provides the kernel headers?
-
Did you look in:
http://www.tinycorelinux.net/9.x/armv6/releases/RPi/src/kernel/4.9.22-piCore_modules.tar.xz
or
http://www.tinycorelinux.net/9.x/armv7/releases/RPi/src/kernel/4.9.22-piCore-v7_modules.tar.xz
-
It works!
I created packages lirc.tcz, and python-lirc.tcz, but not quite sure how to package the kernel modules so the correct version (arm6 or arm7) gets loaded using the same package name.
-
not quite sure how to package the kernel modules so the correct version (arm6 or arm7) gets loaded using the same package name.
Just list it as "foo-KERNEL.tcz" in the dep file, tce-load will replace the string "KERNEL" to the output of "uname -r".
And name the extension as "foo-$(uname -r).tcz"
tc@box:~$ uname -r
4.8.17-tinycore64
tc@box:~$ tce-load -i alsa-modules-KERNEL
alsa-modules-4.8.17-tinycore64 is already installed!
-
I see how the deps work, thanks.
I'm looking for the build scripts for alsa modules, or ipv6 or any package that has kernel modules to base my script to package the lirc modules. I can't seem to find them on the server.
-
Hi seandepagnier
Try looking around here:
http://tinycorelinux.net/8.x/armv6/tcz/src/
You can change the 8.x to look at other versions of Pi.
-
I did look there. I cannot find the build scripts.
For example, where is the build script for "wireless-4.4.20-piCore+.tcz" ?
-
If you're looking to package two modules, just do it manually
-
I can package the 3 kernel modules needed manually, sure.
It would be nice to have scripts to make it automatic so when I upgrade each version of tinycore everything can be automatic. I like to have a master script that automatically runs all my build scripts.... I also like to take a look at the scripts to make sure I don't miss something. I would also like to be able to contribute the script back to tinycore if they would be accepted.
So all the modules are manually packaged for each kernel??
-
Lets see...this maybe first start.
http://forum.tinycorelinux.net/index.php/topic,18858.msg129216.html#msg129216
-
see:
http://www.tinycorelinux.net/4.x/x86/release/src/kernel/sorter/sorter.sh
-
The latest version of sorter.sh is in our github.
-
@seandepagnier - did you submit any lirc extensions to the repo?
-
Not yet.
There is a bug in the latest version of lirc which causes it to stall with 100% cpu on raspberry pi. I'm using the older lirc version with success, but I'm going to try to work with the developers to fix lirc then I can submit a build script, please be patient!
Thank you.
-
There is already working Lirc available for a quite long time here:
https://github.com/ralph-irving/tcz-lirc
It's proven Rev. 0.9.0. I've tested newer versions, but they're not as simple and stable and with a lot of issues.