Go to advanced search

by mba
Sat Jun 16, 2012 7:46 am
Forum: HATs and other add-ons
Topic: LIRC GPIO driver for homebrew adapter
Replies: 236
Views: 174235

Re: LIRC GPIO driver for homebrew adapter

Applying the rest of the patch manually makes the difference :D pi@raspbmc:~$ sudo insmod lirc_dev.ko pi@raspbmc:~$ sudo insmod lirc_rpi.ko gpio_in_pin=0 gpio_out_pin=1 pi@raspbmc:~$ lsmod Module Size Used by lirc_rpi 4512 0 lirc_dev 8728 1 lirc_rpi fuse 49448 1
by mba
Sat Jun 16, 2012 7:31 am
Forum: HATs and other add-ons
Topic: LIRC GPIO driver for homebrew adapter
Replies: 236
Views: 174235

Re: LIRC GPIO driver for homebrew adapter

No it doesn't sound like it, but it is. Insmodding without parameters work, adding the gpio_in_pin/gpio_out_pin doesn't work- see below. I think the patch is not applied correctly or the patch itself is broken. For some reason large parts of the patch isn't applied. The last line in lirc_rpi.c after...
by mba
Fri Jun 15, 2012 6:58 pm
Forum: HATs and other add-ons
Topic: LIRC GPIO driver for homebrew adapter
Replies: 236
Views: 174235

Re: LIRC GPIO driver for homebrew adapter

I applied your new patch and lirc compiled nicely, but it seems you have removed the module parameters gpio_in_pin and gpio_out_pin, its not possible to specify these parameters on the command line. pi@raspbmc:~$ sudo insmod lirc_rpi.ko gpio_in_pin=0 gpio_out_pin=1 insmod: error inserting 'lirc_rpi....
by mba
Tue Jun 12, 2012 9:01 pm
Forum: HATs and other add-ons
Topic: LIRC GPIO driver for homebrew adapter
Replies: 236
Views: 174235

Re: LIRC GPIO driver for homebrew adapter

no problem, so you saw my other desperate post regarding cross-compilation ;-) Are you looking into the blaster part at the moment? Or should I take a crack at it? Im looking at lirc_serial for inspiration and it doesn't seem too scary, I think with the right chisel it could be transformed into a rp...
by mba
Tue Jun 12, 2012 7:31 pm
Forum: HATs and other add-ons
Topic: LIRC GPIO driver for homebrew adapter
Replies: 236
Views: 174235

Re: LIRC GPIO driver for homebrew adapter

@mredeker: If you are looking for blasters, I am going to try the amplified transmitter found at http://www.lirc.org/transmitters.html. I haven't looked too much into it yet so I don't know if it needs modification to be used with the raspberry pi GPIO pins though.
by mba
Tue Jun 12, 2012 7:26 pm
Forum: HATs and other add-ons
Topic: LIRC GPIO driver for homebrew adapter
Replies: 236
Views: 174235

Re: LIRC GPIO driver for homebrew adapter

I succesfully crosscompiled lirc with arons patches: 1. Followed the steps at http://elinux.org/RPi_Kernel_Compilation (cloned to /home/rpi/linux) 2. Downloaded and patched lirc according to arons recipe 3. ./configure --host=arm-linux-gnueabi --with-driver=rpi --with-kerneldir=/home/rpi/linux 4. ma...
by mba
Tue Jun 12, 2012 7:03 pm
Forum: General programming discussion
Topic: Crosscompile lirc on ubuntu
Replies: 1
Views: 2605

Re: Crosscompile lirc on ubuntu

Sorted it out now. The lirc driver I was trying to compile was misspelled. I wrote "--with-driver=lirc_rpi" instead of "--with-driver=rpi" this caused configure to fail with a message saying I needed the kernel source in order to compile lirc... that was confusing :D. I wrote the steps I took to cro...
by mba
Tue Jun 12, 2012 8:09 am
Forum: General programming discussion
Topic: Crosscompile lirc on ubuntu
Replies: 1
Views: 2605

Crosscompile lirc on ubuntu

Hello there, I was wondering if someone could help me cross-compile LIRC on ubuntu? I need to point lirc to the kernel source when building the modules. My question is what kernel source do I need? And which .config do I need to compile the kernel source with? I have installed the toolchain gcc-arm-...
by mba
Sat Jun 09, 2012 6:33 am
Forum: HATs and other add-ons
Topic: LIRC GPIO driver for homebrew adapter
Replies: 236
Views: 174235

Re: LIRC GPIO driver for homebrew adapter

I agree, this totally belongs to its own driver, I meant I would look at the serial driver for inspiration of how to support the blaster function.
by mba
Fri Jun 08, 2012 7:14 pm
Forum: HATs and other add-ons
Topic: LIRC GPIO driver for homebrew adapter
Replies: 236
Views: 174235

Re: LIRC GPIO driver for homebrew adapter

Hi Aron, this sounds great, I just downloaded the toolchain, lirc and your patch I will give it a go tonight. Im also interested in using rpi for blasting. I will take a look at how this feat is implemented in the other lirc drivers maybe its straight forward to support a gpio instead of the DTR of ...

Go to advanced search