WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: lirc  (Read 3235 times)

Offline seandepagnier

  • Newbie
  • *
  • Posts: 14
lirc
« 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?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
« Last Edit: August 30, 2017, 02:50:24 AM by Juanito »

Offline seandepagnier

  • Newbie
  • *
  • Posts: 14
Re: lirc
« Reply #2 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.

Offline polikuo

  • Hero Member
  • *****
  • Posts: 718
Re: lirc
« Reply #3 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!
« Last Edit: August 30, 2017, 09:52:52 PM by polikuo »

Offline seandepagnier

  • Newbie
  • *
  • Posts: 14
Re: lirc
« Reply #4 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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11590
Re: lirc
« Reply #5 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.

Offline seandepagnier

  • Newbie
  • *
  • Posts: 14
Re: lirc
« Reply #6 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" ?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: lirc
« Reply #7 on: August 31, 2017, 01:55:55 PM »
If you're looking to package two modules, just do it manually

Offline seandepagnier

  • Newbie
  • *
  • Posts: 14
Re: lirc
« Reply #8 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??

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 709
Re: lirc
« Reply #9 on: September 01, 2017, 02:54:25 AM »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: lirc
« Reply #10 on: September 01, 2017, 03:40:35 AM »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: lirc
« Reply #11 on: September 01, 2017, 04:33:16 AM »
The latest version of sorter.sh is in our github.
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: lirc
« Reply #12 on: September 07, 2017, 08:23:18 AM »
@seandepagnier - did you submit any lirc extensions to the repo?

Offline seandepagnier

  • Newbie
  • *
  • Posts: 14
Re: lirc
« Reply #13 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.

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: lirc
« Reply #14 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.