Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: seandepagnier on August 29, 2017, 01:46:57 PM

Title: lirc
Post 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?
Title: Re: lirc
Post by: Juanito on August 29, 2017, 03:28:13 PM
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
Title: Re: lirc
Post by: seandepagnier on August 30, 2017, 09:03:48 PM
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.
Title: Re: lirc
Post by: polikuo on August 30, 2017, 09:50:02 PM
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"
Code: [Select]
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!
Title: Re: lirc
Post by: seandepagnier on August 31, 2017, 11:13:25 AM
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.
Title: Re: lirc
Post by: Rich on August 31, 2017, 11:24:18 AM
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.
Title: Re: lirc
Post by: seandepagnier on August 31, 2017, 01:37:31 PM
I did look there.   I cannot find the build scripts.

For example, where is the build script for "wireless-4.4.20-piCore+.tcz" ?
Title: Re: lirc
Post by: Juanito on August 31, 2017, 01:55:55 PM
If you're looking to package two modules, just do it manually
Title: Re: lirc
Post by: seandepagnier on August 31, 2017, 07:54:19 PM
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??
Title: Re: lirc
Post by: patrikg on September 01, 2017, 02:54:25 AM
Lets see...this maybe first start.

http://forum.tinycorelinux.net/index.php/topic,18858.msg129216.html#msg129216
Title: Re: lirc
Post by: Juanito on September 01, 2017, 03:40:35 AM
see:

http://www.tinycorelinux.net/4.x/x86/release/src/kernel/sorter/sorter.sh
Title: Re: lirc
Post by: curaga on September 01, 2017, 04:33:16 AM
The latest version of sorter.sh is in our github.
Title: Re: lirc
Post by: Juanito on September 07, 2017, 08:23:18 AM
@seandepagnier - did you submit any lirc extensions to the repo?
Title: Re: lirc
Post by: seandepagnier on September 15, 2017, 08:42:17 PM
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.
Title: Re: lirc
Post by: jgrulich on September 17, 2017, 09:51:34 AM
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.