![]() |
I have added a USB soundcard and some speakers to my Slug, this is described elsewhere in this wiki. Now I also wanted to add a LCD, and preferably use a homemade USB-attached LCD (as decribed here: http://forums.bit-tech.net/showthread.php?t=115461(approve sites)). I started out with installing the kernel module for the display: ipkg install kernel-module-cdc-acm depmod -a modprobe cdc-acm The display is at /dev/ttyACM0: dmesg ... drivers/usb/class/cdc-acm.c: This device cannot do calls on its own. It is no modem. cdc_acm 1-2.3:1.0: ttyACM0: USB ACM device[br] usbcore: registered new driver cdc_acm drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters To make use of the display Lcdproc is installed... ipkg install lcdproc ...and configured:
Device=/dev/ttyACM0
Size=20x2
Type=lcd To get info from the mediaplayer MPD to LCDProc? the script mpclcd (<a href="http://lcdproc.spacedout.nl/download.php?file=mpdlcd.pl(approve sites)">(Link)</a> is used. This is not to fun to install, and it does not even get installed :( ipkg install perl ipkg install perl-module-io-socket ipkg install perl-module-io ipkg install perl-module-exporter-heavy ipkg install perl-module-fcntl ipkg install perl-module-extutils-makemaker ipkg install perl-module-vars ipkg install perl-module-cwd ipkg install perl-module-config-heavy ipkg install perl-module-extutils-mm ipkg install perl-module-extutils-mm-unix ipkg install perl-module-extutils-my ipkg install perl-module-extutils-manifest ipkg install perl-module-carp-heavy ipkg install perl-dev ipkg install perl-module-file-spec-unix ipkg install perl-module-extutils-command ipkg install perl-module-file-glob ipkg install perl-module-extutils-install ipkg install perl-module-extutils-packlist ipkg install perl-module-autosplit ipkg install perl-module-pod-man ipkg install perl-module-getopt-long ipkg install perl-module-extutils-command-mm ipkg install make ipkg install perl-module-lib ipkg install perl-module-data-dumper ipkg install perl-module-bytes ipkg install perl-module-io-file ipkg install perl-module-text-parsewords ipkg install perl-module-locale ipkg install perl-module-posix ipkg install perl-module-universal ipkg install perl-module-utf8 ipkg install perl-module-utf8-heavy ipkg install perl-module-unicore-pva ipkg install perl-module-unicore-exact ipkg install perl-module-text-abbrev ipkg install perl-module-test-harness ipkg install perl-module-extutils-mkbootstrap //ipkg install perl-module-scalar-util ipkg install perl-module-cpan ipkg install perl-module-opcode ipkg install perl-module-re ipkg install perl-module-cpan-firsttime perl-module-term-readline perl -MCPAN -e shell force install Scalar::Util ipkg install perl-module-list-util ipkg install perl-module-test-more ipkg install perl-pod Module::Build: wget http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Module-Build-0.2808.tar.gz tar zxvf Module-Build-0.2808.tar.gz cd Module-Build-0.2808/ perl Build.PL ./Build ./Build test ./Build install cd .. MPD.pm - http://search.cpan.org/~jquelin/Audio-MPD/ wget http://search.cpan.org/CPAN/authors/id/J/JQ/JQUELIN/Audio-MPD-0.19.1.tar.gz tar zxvf Audio-MPD-0.19.1.tar.gz cd Audio* perl Makefile.PL
make
make test
make install
If mpd is running, you can force the full non-regression test suite to be ran by using: MPD_TEST_OVERRIDE=1 make test LCDStuff? http://lcd-stuff.berlios.de/(approve sites) ipkg install slugos-native ipkg install libc6-dev ipkg install pkgconfig ipkg install libglib-2.0-0 wget http://ipkg.nslu2-linux.org/feeds/optware/nslu2/cross/stable/glib_2.9.6-1_armeb.ipk ipkg install glib_2.9.6-1_armeb.ipk PACKAGE_CFLAGS="/opt/lib/pkgconfig/glib-2.0.pc" root@Slug:/usr/src/lcd-stuff-0.1.4# export PACKAGE_CFLAGS root@Slug:/usr/src/lcd-stuff-0.1.4# echo $PACKAGE_CFLAGS /opt/lib/pkgconfig/glib-2.0.pc Page last modified on December 28, 2007, at 03:36 PM
|