Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: jgrulich on April 19, 2015, 01:41:29 PM
-
I've tried to bring in work the lirc which was kindly added into the repo, but no working results.
At the Rasbian is still used older 0.9.0 which works fine. But in the repo is used the most newest version 0.9.2a which seems to have different data format in the config file. Comparison for the same remote and same buttons.
Older:
begin remote
name /home/pi/lircd.conf
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 8945 4421
one 594 1634
zero 594 519
ptrail 598
repeat 8949 2187
pre_data_bits 16
pre_data 0xFD
gap 106959
toggle_bit_mask 0x0
begin codes
KEY_KPMINUS 0x00FF
KEY_KPPLUS 0x40BF
end codes
end remote
The new one:
begin remote
name /home/tc/lircd.conf
driver devinput
bits 64
eps 30
aeps 100
one 0 0
zero 0 0
gap 409
toggle_bit_mask 0x0
begin codes
KEY_KPMINUS 0x1118000001000259 0x00000000BEA9C9B1
KEY_KPPLUS 0x112800000100024D 0x00000000BEA9C9B1
end codes
end remote
I've used the same steps as for the older one, recorded the remote keys, put to the /usr/local/etc/lirc directory where the config files are stored and started the lircd daemon as root, which indicates that config was loaded and everything is working, but it's not true. I've tested
sudo irw /var/run/lirc/lircd
which indicates that the socket was connected, but no data coming when button-press.
Has anybody experience with this new lirc version and how to bring it working?
-
I've made it somehow partially working with the config file generated in the 0.9.0 irrecord. But it outputs only to the /var/run/lirc/lircd. The irw shows good results.
Even when I use the -u parameter to output to the uinput, the uinput module is loaded and used, the output is no more to the /var/run/lirc/lircd, but the virtual input device is not created and no output.
-
Next step, when used
sudo lircd -u
uinput created the device /sys/devices/virtual/input2, but there is no output.
Even more, there is no any other lirc output anywhere. Any idea what's wrong with the lircd setup?
-
Unfortunately I can't help, just built the extension from the source. You may build the older version you know and when it is up and running try to update.
-
Hi Béla,
thank's for the info, but hence I'm not skilled in the building, it's hard to me to test the older version.
Regards,
Jan
-
Béla,
I've tried to compile the older version, I've the source files, installed dialog and cmake, but still there is error that there is no acceptable C compiler. Please be so kind and provide the .setup.config and which compiler you're using.
Regards,
Jan
-
Even gcc compiler seems not to work well. Please see the attached log and setup.
Please be so kind and help what I'm doing wrong.
-
Hi jgrulich
Did you install compile-essentials.tcz
-
Hi Rich,
yes, hoped that I have everything, but probably still something wrong, now I have the error /lib/cpp sanity check.
Seems that some specific kernel libraries are still missing. Or may be that for Raspi need to be used some modified source code than is the one from here: http://sourceforge.net/projects/lirc/files/LIRC/0.9.0/, or need to be used some patch.
-
Attached is the log for detailed info.
-
Hi jgrulich
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
That sounds like you might be missing the linux api headers
-
Yes, it hit me too, but was wondering for what the api may be useful for this build. But will try to install them and test.
-
I've got it compiling well, but hit the issue with the input device driver. I've found that there is missing the lirc_rpi GPIO as a input driver.
-
Hi there...
Lirc_rpi is a kernel module, which you do not compile when building lirc.
I think its inside a .tcz with rc-kernelversion or soo... Try a tce search for rc.
Rc is kernelmodules for remotecontrol .. Tadaa :o
Try to look at post 1929 to around 1933, i (jesperlykke) posted a long time ago regarding lirc.
You can also find some post here in this forum, by looking for lykkedk.
http://forums.slimdevices.com/showthread.php?97803-piCoPlayer-Squeezelite-on-Microcore-linux-An-embedded-OS-in-RAM-with-Squeezelite/page193
Good luck; Jesper.
-
Hi Jesper,
I know whats' lirc_rpi, lirc_dev and so on. It's a part of rc-kernel modules.
For older lirc version - 0.9.0 there is config table when started ./configure. But there is missing the driver for GPIO device, or "default" like for 0.9.2 version. There is completely different structure and no configuration available at the startup of compilation.
As I've stated at the beginning of this thread, the issue is that the 0.9.2 version is not working into the uinput virtual device.
I've tested to build the package exactly matching to my distro, but the same result.
Regards,
Jan
-
Compiling 9.0.0 configure requires to specify driver. Guess the correct is userspace:
--with-driver=X specify the driver to use, where X is one of:
all, none, userspace, accent, act200l,
act220l, adaptec, alsa_usb, animax, asusdh,
atilibusb, atiusb, atwf83, audio, audio_alsa
avermedia, avermedia_vdomate, avermedia98,
awlibusb, bestbuy, bestbuy2, breakoutbox,
bte, bw6130, caraca, chronos, commandir,
comX, cph06x, creative, creative_infracd,
devinput, dfclibusb, digimatrix, dsp, dvico, ea65,
exaudio, flyvideo, ftdi, gvbctv5pci,
hauppauge, hauppauge_dvb,
hercules_smarttv_stereo, i2cuser,
igorplugusb, iguanaIR, imon, imon_24g,
imon_knob, imon_lcd, imon_pad, imon_rsc,
irdeo, irdeo_remote, irlink, irman, irreal,
knc_one, kworld,
leadtek_0007, leadtek_0010, leadtek_pvr2000,
livedrive_midi, livedrive_seq, logitech,
lptX, macmini, mediafocusI,
mouseremote, mouseremote_ps2, mp3anywhere,
mplay, nslu2,packard_bell, parallel, pcmak,
pcmak_usb, pctv, pixelview_bt878,
pixelview_pak, pixelview_pro, provideo,
realmagic, remotemaster, sa1100, samsung,
sasem, sb0540, serial, silitek, sir, slinke,
srm7500libusb, tekram,
tekram_bt829, tira, tira_raw, ttusbir,
tuxbox, tvbox, udp, uirt2, uirt2_raw,
usb_uirt_raw, usbx, wpc8769l
Am I right?
-
Yes Bela' the lirc 0.9.0 will work with userspace.
Version 0.9.2 is different according to :
http://www.lirc.org/html/install.html#compiling
There are no longer ./configure script default.
Rgds; Jesper
-
Hi All,
thank you for great help. It's working now !!!
I've tested all versions from 0.9.0 to 0.9.2a and it's strange, but the 0.9.2 and 0.9.2a are not working with uinput. Probably it need some more setting, or some parameter somewhere. May be I'll investigate later. It's working to the /var output, means it may be simply used for variety applications where some application is run via irexec, but no when you simply need only the "remote keyboard" which is my case.
Once again, Thank's a lot !!!
Regards,
Jan
-
Hey... Cool.
Try pasting lsmod here.. Wanna see if /dev/uinput is present
Jesper
Sent from my iPhone using Tapatalk
-
Hi Jesper,
yes, uinput module is loaded and even more used by the lird. I've tested all of this. It's very strange, because it looks really exactly same as for older version, but only difference is that it doesn't work. Even more stops working the irexec because data doesn't flow to the /var/run/lirc/lircd file. When the uinput is disabled during lircd start, irexec is working well.
Regards,
Jan
-
Hi all,
finally I've made minimal compilation of the 0.9.0 TC-6.1 version which is simple, stable and works fine.
If you like to test, it's here: http://grulich.eu/files/lirc-0.9.0-TC_6.1.tar.gz
Hope it will be useful for others.
Regards,
Jan
-
Jan, what is your proposal, drop 0.9.2 from repo and replace with your working config?
-
Béla, may be, or keep both of them.