Hide minor edits - Show changes to markup
June 14, 2006, at 09:04 PM
Added lines 1-2:
May 20, 2006, at 11:55 AM
Added lines 1-45:
How to add a Pertelian X2040 LCD display
Note: This is tested on the openslug head of may 20, 2006.
This page describes how to add a Pertelian X2040 LCD display to your slug.
This is a 4 line, 20 character, green backlit LCD display with a USB connector.
Why this specific device: simple: it is the only LCD display that I could find that does not require fiddling with hardware, and more-over it comes in a nice cabinet. (and yes, I would have preferred something graphical and/or with OLED technology, but I could not find any pre-assembled hardware and I am not really good at soldering).
- build and install the kernel from the head
- connect your display to the slug
- install kernel-module-usbserial_2.6.16-r6.2_ixp4xxbe.ipk and kernel-module-ftdi-sio_2.6.16-r6.2_ixp4xxbe.ipk on your slug (these are in tmp/deploy/ipk on your development system)
- do an insmod for usbserial.ko and ftdi_sio.ko; then do a
modprobe ftdi_sio followed by a
depmod -a. You should now have a /dev/ttyUSB0 (assuming you do not have other USB serial devices)
- if you want to automatically load the module upon bootup create /etc/modutils/modules if it does not exist.
Add a line containing only
ftdi_sio to that file. After saving the file run
- on your dvelopment system build lcdproc (using bitbake).
- install the newly created modules lcdd_0.5.0-r0_armeb.ipk and lcdproc_0.5.0-r0_armeb.ipk
- edit /etc/LCDd?.conf to your liking. Note that as the pacakge can also be used for a lot of other displays, I could not modify it to my needs.
- start LCDd? by issueing the command (as root):
- edit /etc/lcdproc.conf to your liking. The screens that you can display are listed using by running lcdproc --help.
- start lcdproc by issueing the command:
That's it. You should now have a running display. Note that the backlight is not working. There is a patch for that on
http://pertelian.com/forums/viewtopic.php?p=332, but I did not add it yet (with backlight in an always on situation I feel the display is too prominently present).
In order to get your display working you need the review and change LCDd?.conf to your needs.
I ahd to make the following changes:
- enable the hd44780 driver (around line 35) (just put a # before the line Driver=CFontzPacket? and remove the # before the lineDriver=CFontzPacket?)
- correct the DriverPath? (around line 79) (in the conf file it is server/drivers/ but it needs to become /usr/lib/lcdproc/ (do not forget the trailing backslash)
- change the device settings (around line 348). Comment the line Port=0x378 by preceding it with a # and add two lines saying:
- change the connection type from 4bit to lcdserializer (around line 351)