Results 1 to 1 of 1

Thread: How to get a working driver for winbond

  1. #1
    Join Date
    Jan 2008
    Beans
    12

    How to get a working driver for winbond

    These steps had successful results under intrepid, both 32 and 64 bit, I didn't tried with hardy.

    1 ~ Type
    Code:
    hal-device|grep -i wec
    output should be
    Code:
    57: udi = '/org/freedesktop/Hal/devices/pnp_WEC1020'
      info.product = 'PnP Device (WEC1020)'  (string)
      info.udi = '/org/freedesktop/Hal/devices/pnp_WEC1020'  (string)
      pnp.id = 'WEC1020'  (string)
    2 ~ Download the latest version from CVS (which includes the WPC876L module)
    Code:
    cvs -d:pserver:anonymous@lirc.cvs.sourceforge.net:/cvsroot/lirc login
    cvs -z8 -d:pserver:anonymous@lirc.cvs.sourceforge.net:/cvsroot/lirc co lirc
    3 ~ cd to the sourcecode directory and update
    Code:
    cd lirc
    cvs update
    4 ~ Install dialog and build-essential
    Code:
    sudo apt-get install dialog build-essential
    5 ~ Configure:
    Code:
    bash configure
    Then select: Driver configuration > IRDA/CIR hardware > WINBOND 8769L > Save configuration and run configure

    6 ~ Make:
    Code:
    make
    7 ~ Install:
    Code:
    sudo make install
    8 ~ Copy the needed drivers in the right directory:
    Code:
    sudo mkdir /lib/modules/`uname -r`/kernel/ubuntu/lirc/lirc_wpc8769l
    sudo cp drivers/lirc_wpc8769l/lirc_wpc8769l.ko /lib/modules/`uname -r`/kernel/ubuntu/lirc/lirc_wpc8769l/
    sudo cp drivers/lirc_dev/lirc_dev.ko /lib/modules/`uname -r`/kernel/ubuntu/lirc/lirc_dev/
    9 ~ Add the following line to /etc/modules
    Code:
    lirc_wpc8769l
    10 ~ Because there isn't any lirc script in /etc/init.d/ I wrote a very simple one. So create a file in /etc/init.d/ named lirc and copy the following:
    Code:
    #!/bin/bash
    
    case "$1" in
      start)
        echo -n "Starting lirc daemon..."
        ARGS=' --permission=666 --device=/dev/lirc0 /etc/lircd.conf'
        start-stop-daemon --start --exec /usr/local/sbin/lircd -- $ARGS
        echo "."
        ;;
      stop)
        echo -n "Stopping lirc daemon..."
        start-stop-daemon --stop --exec /usr/local/sbin/lircd
        echo "."
        ;;
      *)
        echo "Usage: /etc/init.d/lircd {start|stop}"
        exit 1
    esac
    
    exit 0
    11 ~ Give the right permissions to the file:
    Code:
    sudo chmod 775 /etc/init.d/lirc
    12 ~ Update system's scripts:
    Code:
    sudo update-rc.d lirc multiuser
    13 ~ Reboot

    14 ~ Test:
    Code:
    mode2
    if everything went fine if you press some buttons of (almost) any remote some output appear.

    For the lircd.conf and the .lircrc you can find a lot of howtos in the web

    One love

    PS: Sorry for bad english :s

    Edit: thanks to sokairyk that improved this howto, see this
    Last edited by mohr tutchy; March 18th, 2009 at 07:17 PM. Reason: howto improved

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •