NSLU2-Linux
view · edit · print · history

SlugOS.InstallPertelianLCD History

Hide minor edits - Show changes to markup

January 07, 2008, at 10:49 PM by bsmeets -- adding Unslung to the first line
Changed line 1 from:

Tested on the following SlugOS-variants: OpenSlug 3.10.\\

to:

Tested on the following SlugOS-variants: Unslung 6.8beta, OpenSlug 3.10.\\

November 30, 2007, at 04:36 PM by bsmeets --
Changed lines 45-47 from:
  1. install module kernel-module-usbserial by ussueing the command ipkg install kernel-module-usbserial
  2. install libusb by ussueing the command ipkg install libusb
  3. install ftdi-sio module by ussueing the command ipkg install kernel-module-ftdi-sio
to:
  1. install module kernel-module-usbserial by issueing the command ipkg install kernel-module-usbserial
  2. install libusb by issueing the command ipkg install libusb
  3. install ftdi-sio module by issueing the command ipkg install kernel-module-ftdi-sio
November 19, 2007, at 02:52 PM by bsmeets --
Changed lines 51-53 from:
  1. use a perl script to print characters to the screen, like the example script provided on http://pertelian.com/forums/viewtopic.php?t=17.
to:
  1. use a perl script to print characters to the screen, like the example script provided on http://pertelian.com/forums/viewtopic.php?t=19.
November 19, 2007, at 02:49 PM by bsmeets --
Added lines 42-44:

It is also possible to connect the Pertelian X2040 display using USB to Unslung 6.8. A perl script can be used to print characters to the screen.

Follow these instructions.

Changed lines 51-53 from:
  1. use a perl script to print charachters to the screen, like the example script provided on http://pertelian.com/forums/viewtopic.php?t=17.
to:
  1. use a perl script to print characters to the screen, like the example script provided on http://pertelian.com/forums/viewtopic.php?t=17.
November 19, 2007, at 02:44 PM by bsmeets --
Changed lines 48-49 from:
  1. use a perl script like on http://pertelian.com/forums/viewtopic.php?t=17.
to:
  1. use a perl script to print charachters to the screen, like the example script provided on http://pertelian.com/forums/viewtopic.php?t=17.
November 19, 2007, at 02:42 PM by bsmeets -- addition for Pertelian using unslung 6.8
Changed lines 12-13 from:

Installation

to:

Installation on OpenSlug 3.10

Changed lines 40-42 from:
to:

Installation on Unslung 6.8-beta

  1. install module kernel-module-usbserial by ussueing the command ipkg install kernel-module-usbserial
  2. install libusb by ussueing the command ipkg install libusb
  3. install ftdi-sio module by ussueing the command ipkg install kernel-module-ftdi-sio
  4. depmod -a
  5. insmod usbserial
  6. insmod ftdi_sio
  7. use a perl script like on http://pertelian.com/forums/viewtopic.php?t=17.
July 30, 2006, at 10:46 PM by lxs4ever -- typo correction: pacakge to package
Changed line 24 from:
  1. edit /etc/LCDd.conf. Note that as the pacakge can also be used for a lot of other displays, I could not modify it to have the Pertelian defaults.\\
to:
  1. edit /etc/LCDd.conf. Note that as the package can also be used for a lot of other displays, I could not modify it to have the Pertelian defaults.\\
June 26, 2006, at 10:41 AM by eFfeM --
Changed lines 1-3 from:

Tested on the following slugos-variants: Openslug 3.10.
If you've tested this on another slugos variant, please add it to this list

to:

Tested on the following SlugOS-variants: OpenSlug 3.10.
If you've tested this on another SlugOS variant, please add it to this list.

June 15, 2006, at 07:50 PM by eFfeM --
Changed lines 1-3 from:

The HowTo on this page was tested on Openslug 3.10.
If you succeed with this guide on another SlugOS variant, please add it to the line above.

to:

Tested on the following slugos-variants: Openslug 3.10.
If you've tested this on another slugos variant, please add it to this list

June 15, 2006, at 09:45 AM by eFfeM --
Changed line 8 from:

This page describes how to add a PertelianX2040 LCD display to your slug.\\

to:

This page describes how to add a Pertelian X2040 LCD display to your slug.\\

June 14, 2006, at 08:59 PM by eFfeM -- creation
Changed lines 1-3 from:

This is still draft & work in progress!

The HowTo on this page was tested on Openslug 3.10.

to:

The HowTo on this page was tested on Openslug 3.10.\\

Changed lines 20-24 from:

Installation and configuration of LCDproc?

  1. install lcdproc and LCDd? by issueing the command ipkg install lcdproc.
  2. edit /etc/LCDd?.conf. Note that as the pacakge can also be used for a lot of other displays, I could not modify it to have the Pertelian defaults.
    At line 35 insert a # before the line Driver=CFontzPacket? (so it becomes #Driver=CFontzPacket?).\\
to:

Installation and configuration of LCDproc

  1. install libusb by issueing the command ipkg install libusb
  2. install lcdproc and LCDd by issueing the command ipkg install lcdproc.
  3. edit /etc/LCDd.conf. Note that as the pacakge can also be used for a lot of other displays, I could not modify it to have the Pertelian defaults.
    At line 35 insert a # before the line Driver=CFontzPacket (so it becomes #Driver=CFontzPacket).\\
Changed line 27 from:

Change line 79 from DriverPath?=server/drivers/ to DriverPath?=/usr/lib/lcdproc/. Do not forget the trailing backslash!\\

to:

Change line 79 from DriverPath=server/drivers/ to DriverPath=/usr/lib/lcdproc/. Do not forget the trailing backslash!=]\\

Changed lines 31-32 from:

DelayMult?=25
Change line 351 from ConnectionType?=4bit to ConnectionType?=lcdserializer\\

to:

DelayMult=25
Change line 351 from ConnectionType=4bit to ConnectionType=lcdserializer\\

Changed line 34 from:
  1. start LCDd? by issueing the command (as root): /etc/init.d/lcdd start
to:
  1. start LCDd by issueing the command (as root): /etc/init.d/lcdd start
Changed lines 41-47 from:

Enjoy!

to:
June 14, 2006, at 08:45 PM by eFfeM -- temporary save
Changed lines 24-25 from:
  1. install the newly created modules lcdd_0.5.0-r0_armeb.ipk and lcdproc_0.5.0-r0_armeb.ipk
  2. 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.
to:
  1. install lcdproc and LCDd? by issueing the command ipkg install lcdproc.
  2. edit /etc/LCDd?.conf. Note that as the pacakge can also be used for a lot of other displays, I could not modify it to have the Pertelian defaults.
    At line 35 insert a # before the line Driver=CFontzPacket? (so it becomes #Driver=CFontzPacket?).
    At line 36 remove the leaing # before the line #Driver=hd44780 (making it Driver=hd44780).
    Change line 79 from DriverPath?=server/drivers/ to DriverPath?=/usr/lib/lcdproc/. Do not forget the trailing backslash!
    At line 348 insert a # before the line Port=0x378 (making it #Port=0x378.
    After line 348 insert the following two lines:
    Device=/dev/ttyUSB0 (assuming your display is on ttyUSB0, which is normally the case if you have no other usb serial ports)
    DelayMult?=25
    Change line 351 from ConnectionType?=4bit to ConnectionType?=lcdserializer
    That concludes the editing.
Changed lines 41-51 from:

Changing LCDd?.conf

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:
    Device=/dev/ttyUSB0
    DelayMult?=25
  • change the connection type from 4bit to lcdserializer (around line 351)
to:
June 14, 2006, at 08:14 PM by eFfeM -- temporary save
Changed lines 14-16 from:

Steps

  1. build and install the kernel from the head
to:

Installation

  1. install modules ftdi-sio and usbserial by issueing the command ipkg install kernel-module-ftdi-sio
Deleted lines 17-18:
  1. 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)
  2. 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)
Changed lines 19-20 from:

Add a line containing only ftdi_sio to that file. After saving the file run update-modules

  1. on your dvelopment system build lcdproc (using bitbake).
to:

Add a line containing only ftdi_sio to that file. After saving the file run update-modules. This will assure that the module always gets loaded.
Without this the modules will get loaded when you connect your device, but not if you boot with the device connected.

Installation and configuration of LCDproc?

Changed lines 32-33 from:

changing LCDd?.conf

to:

Changing LCDd?.conf

June 14, 2006, at 07:33 PM by eFfeM -- intermediate save
Added lines 1-48:

This is still draft & work in progress!

The HowTo on this page was tested on Openslug 3.10. If you succeed with this guide on another SlugOS variant, please add it to the line above.

How to install a Pertelian X2040 LCD display

Introduction

This page describes how to add a PertelianX2040 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). I am not affiliated with Pertelian other than being a happy customer.

Steps

  1. build and install the kernel from the head
  2. connect your display to the slug
  3. 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)
  4. 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)
  5. 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 update-modules
  6. on your dvelopment system build lcdproc (using bitbake).
  7. install the newly created modules lcdd_0.5.0-r0_armeb.ipk and lcdproc_0.5.0-r0_armeb.ipk
  8. 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.
  9. start LCDd? by issueing the command (as root): /etc/init.d/lcdd start
  10. edit /etc/lcdproc.conf to your liking. The screens that you can display are listed using by running lcdproc --help.
  11. start lcdproc by issueing the command: /etc/init.d/lcdproc start

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).

changing LCDd?.conf

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:
    Device=/dev/ttyUSB0
    DelayMult?=25
  • change the connection type from 4bit to lcdserializer (around line 351)

Enjoy!

view · edit · print · history · Last edited by bsmeets.
Based on work by bsmeets, lxs4ever, and eFfeM.
Originally by eFfeM.
Page last modified on January 07, 2008, at 10:49 PM