Page 2 of 5

PostPosted: Wed Dec 28, 2005 4:29 pm
by cartman
OK, I've now started from scratch (don't ask) and now have the following message when I tail the syslog after plugging in the USBUIRT:
Code: Select all
Dec 29 00:09:12 htpc kernel: usb 5-1: new full speed USB device using uhci_hcd and address 3
Dec 29 00:09:12 htpc kernel: ftdi_sio 5-1:1.0: FTDI USB Serial Device converter detected
Dec 29 00:09:12 htpc kernel: drivers/usb/serial/ftdi_sio.c: Detected FT232BM
Dec 29 00:09:12 htpc kernel: usb 5-1: FTDI USB Serial Device converter now attached to ttyUSB0

Key points are the difference on the first line with "uhci_hcd" rather than ohci - although I think this is just a USB type. Also the lack of specific mention of the USB-UIRT being detected!

I'm wondering if anyone can understand any of this as there are a few differences in mine and benow's above. I'm running FC4 but have been able to work out any key differences in the modules loading and the rest (ie. I'm fairly sure the usbserial and ftdi_sio modules are loaded).

Can anyone shed any light on my progress so far? Thanks in advance.

PostPosted: Fri Jan 06, 2006 3:29 pm
by cartman
OK, so it seems the uhci usb type is specific to certain motherboards. I'm hoping to purchase a new board tomorrow anyway so could anyone offer suggetions as to a motherboard they have success with the USBUIRT in linux? Preferably a P4 with SATA - and not too expensive! If I can get this area sorted we might be able to identify issues with the driver.

Cheers

PostPosted: Tue Jan 31, 2006 2:33 am
by judapeno2
Is there a patch available for lirc 8.0?

David

PostPosted: Fri Feb 03, 2006 7:59 pm
by benow
judapeno2 wrote:Is there a patch available for lirc 8.0?


Not that I've seen, but you might get lucky changing the filenames within the patch file. replace lirc-0.7.1 with lirc-0.8.0.

PostPosted: Tue Mar 28, 2006 3:29 pm
by Guest
i followed the how-to

I had to remove --tag=CC several times from each Makefile and Makefile.in that I could locate in the subdirectories.

After removing these, the make process completed successfully.

However the "make install" failed with this

root@mythtvslave:/usr/src/lirc-0.7.1# make install
Making install in drivers
Code: Select all
make[1]: Entering directory `/usr/src/lirc-0.7.1/drivers'
make[2]: Entering directory `/usr/src/lirc-0.7.1/drivers'
make[3]: Entering directory `/usr/src/lirc-0.7.1/drivers'
test "/dev/ttyUSB0" = "" || test -L /dev/lirc || (/bin/sh ../mkinstalldirs /dev && cd `dirname /dev/ttyUSB0` && ln -s `basename /dev/ttyUSB0` lirc)
ln: `lirc': File exists
make[3]: *** [mklink] Error 1
make[3]: Leaving directory `/usr/src/lirc-0.7.1/drivers'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/usr/src/lirc-0.7.1/drivers'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/src/lirc-0.7.1/drivers'
make: *** [install-recursive] Error 1

Code: Select all

Does anyone know what i should do?

PostPosted: Tue Mar 28, 2006 3:37 pm
by Guest
I did this

rm /dev/lirc

and then "make install" was successful.


I had previously installed lirc-0.8.0pre4-pvr150 with a packard bell serial receiver...

Should i have uninstalled lirc-0.8.0pre4-pvr150 first? how?

PostPosted: Tue Mar 28, 2006 3:55 pm
by Guest
now i get the following:

Code: Select all
irrecord -  application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not init hardware (lircd running ? --> close it, check permissions)


Code: Select all
root@mythtvslave:/usr/src# find / -name lircd
/dev/lircd
find: /mnt/mythtvmaster/lost+found: Permission denied
/usr/local/sbin/lircd
/usr/sbin/lircd
/usr/src/lirc-0.7.1/daemons/lircd

Code: Select all
root@mythtvslave:/usr/src# find / -name lircd
/dev/lircd
find: /mnt/mythtvmaster/lost+found: Permission denied
/usr/local/sbin/lircd
/usr/sbin/lircd
/usr/src/lirc-0.7.1/daemons/lircd
root@mythtvslave:/usr/src# ls -al /usr/local/sbin/lircd
-rwxr-xr-x  1 root staff 267920 Mar 28 10:34 /usr/local/sbin/lircd
root@mythtvslave:/usr/src# ls -al /usr/sbin/lircd
-rwxr-xr-x  1 root root 660059 Jan 23 22:41 /usr/sbin/lircd
root@mythtvslave:/usr/src# ls -al /usr/src/lirc-0.7.1/daemons/lircd
-rwxr-xr-x  1 root root 267920 Mar 28 00:25 /usr/src/lirc-0.7.1/daemons/lircd
root@mythtvslave:/usr/src# ls -al /dev/lircd
srw-rw-rw-  1 root root 0 Mar 28 10:45 /dev/lircd
root@mythtvslave:/usr/src# chmod 775 /dev/lircd
root@mythtvslave:/usr/src# ls -al /dev/lircd
srwxrwxr-x  1 root root 0 Mar 28 10:45 /dev/lircd


chmod 777 /dev/lircd
same error

then
Code: Select all
root@mythtvslave:/usr/src# lircd --version
lircd 0.8.0pre4-pvr150


how to remove old version

Code: Select all
root@mythtvslave:/usr/src/lirc-0.8.0pre4-pvr150# make uninstall
make: *** No rule to make target `uninstall'.  Stop.

PostPosted: Tue Mar 28, 2006 4:02 pm
by Guest
decided to try this:

Code: Select all
root@mythtvslave:/usr/src/lirc-0.8.0pre4-pvr150# apt-get remove lirc
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  lirc lirc-svga lirc-x
0 upgraded, 0 newly installed, 3 to remove and 624 not upgraded.
Need to get 0B of archives.
After unpacking 1663kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 63842 files and directories currently installed.)
Removing lirc-x ...
Removing lirc-svga ...
Removing lirc ...
root@mythtvslave:/usr/src/lirc-0.8.0pre4-pvr150#


followed by a make uninstall in the /usr/src/lirc-0.7.1

PostPosted: Tue Mar 28, 2006 4:13 pm
by Guest
after make uninstall... i followed the how to from scratch...

now i get errors at the end of the make step:

hw_uirt2usb_raw.o(.text+0x45): In function `queue_put':
/usr/src/lirc-0.7.1/daemons/hw_uirt2usb_raw.c:118: undefined reference to `logprintf'
hw_uirt2usb_raw.o(.text+0x99): In function `queue_get':
/usr/src/lirc-0.7.1/daemons/hw_uirt2usb_raw.c:132: undefined reference to `logprintf'
hw_uirt2usb_raw.o(.text+0x1f8): In function `uirt2usb_raw_init':
/usr/src/lirc-0.7.1/daemons/hw_uirt2usb_raw.c:204: undefined reference to `logprintf'
hw_uirt2usb_raw.o(.text+0x242):/usr/src/lirc-0.7.1/daemons/hw_uirt2usb_raw.c:217: undefined reference to `logprintf'
hw_uirt2usb_raw.o(.text+0x317):/usr/src/lirc-0.7.1/daemons/hw_uirt2usb_raw.c:263: undefined reference to `logprintf'
hw_uirt2usb_raw.o(.text+0x352):/usr/src/lirc-0.7.1/daemons/hw_uirt2usb_raw.c:245: more undefined references to `logprintf
' follow
collect2: ld returned 1 exit status
make[2]: *** [lircd] Error 1
make[2]: Leaving directory `/usr/src/lirc-0.7.1/daemons'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/lirc-0.7.1'

PostPosted: Tue Mar 28, 2006 4:18 pm
by Guest
this time
make clean
./setup.sh
usb-uirt transmit and receive
save AND Configure
make
make install
no errors

/var/log/lircd
root@mythtvslave:/usr/src/lirc-0.7.1# /usr/local/sbin/lircd
lircd 0.7.1: there seems to already be a lircd process with pid 7672
lircd 0.7.1: otherwise delete stale lockfile /var/run/lircd.pid
root@mythtvslave:/usr/src/lirc-0.7.1# kill 7672
root@mythtvslave:/usr/src/lirc-0.7.1# /usr/local/sbin/lircd
lircd 0.7.1: could not open config file '/etc/lircd.conf'
lircd 0.7.1: No such file or directory
root@mythtvslave:/usr/src/lirc-0.7.1#

Help!

PostPosted: Wed Mar 29, 2006 2:34 am
by Guest
i repeated everything again

and the make install worked.

somewhere along the way i deleted

/dev/ttyUSB0

is this important?

PostPosted: Sat Apr 01, 2006 11:38 pm
by Guest
I think it is hanging

Code: Select all
root@mythtvslave:/usr/src/lirc-0.7.1# lircd -d /dev/ttyUSB0 -n
lircd-0.7.1[7054]: lircd(usb-uirt2_raw) ready


it just stops there and says nothing else

Code: Select all
root@mythtvslave:/usr/src/lirc-0.7.1# irrecord -l test.conf

irrecord -  application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not init hardware (lircd running ? --> close it, check permissions)


Any ideas?

PostPosted: Mon Apr 03, 2006 12:52 pm
by munza
From memory, you need to make sure the lirc daemon (lircd) is not running in order to use the irrecord program.

Help! Nvelds site is offline

PostPosted: Mon Apr 17, 2006 3:16 am
by killercoder
I'm looking for this patch (long story short - kernel upgrade forcing rebuild) - but nvelds site is down. Seems his provider is going bankrupt.

Does anyone have an active link to patch?

David

irsend sending triple digits

PostPosted: Thu May 11, 2006 1:03 am
by john
I followed these directions to get it working, including the channel change..
Now recieve and send works, but not completely.

After booting, receive works great (i can navigate mythtv menus) but "iresend remotename 401" sends 444000111.

If I kill lircd and start it manually with lircd then it will send 401 as 401 changing my settop box. But now it seems to ignore my ir signal (doesn't receive or at least control myth navigation anymore) :(

Any ideas?