Welcome, Guest. Please login or register.
Did you miss your activation email?
+  pfSense Forum
|-+  pfSense English Support» Hardware» Firebox LCD Driver for LCDProc
Username:
Password:
 
 

Pages: [1] 2 3 4   Go Down
  Print  
Author Topic: Firebox LCD Driver for LCDProc  (Read 13369 times)
0 Members and 1 Guest are viewing this topic.
ridnhard19
Jr. Member
**
Offline Offline

Posts: 48


View Profile
« on: February 16, 2008, 10:25:25 pm »

Well someone a while ago mentioned getting pfSense running on a firebox - I was able to do the same but could not live without the LCD working.

So I wrote a driver for LCDProc and got it working on pfSense 1.2-RC4!

Check out the pixs. Realizing this is pretty specialized hardware not sure if there is any interest for the driver for anyone else's uses.
Logged
sullrich
Administrator
Hero Member
*****
Offline Offline

Posts: I am a geek!!



View Profile WWW
« Reply #1 on: February 16, 2008, 10:41:46 pm »

That is pretty cool!  We can surely make this a package.

Logged

Follow me on Twitter! http://twitter.com/sullrich

pfSense Commercial Support

Paying customers receive support priority and detailed answers through the official commercial support channels, forum users receive as much help as time permits.
gmckinney
Full Member
***
Offline Offline

Posts: 90


View Profile
« Reply #2 on: February 17, 2008, 09:46:06 am »

Hmmm - There was some mention a little while back about creating a driver for the mini-box.com ( http://www.mini-box.com/picoLCD-20x2-OEM?sc=8&category=490 ) display used in their M-200 and M-300 cases.  Would this driver be applicable???  If not - how hard would it be to adapt???

gm...
Logged
ridnhard19
Jr. Member
**
Offline Offline

Posts: 48


View Profile
« Reply #3 on: February 17, 2008, 01:10:03 pm »

That looks like a pretty cool LCD. the software which i wrote the driver was for lcdproc because i had scene that name used else where on this site.

It appears to already have support in lcdproc based on the website/link provided

Quote
LCDProc with keypad support: Available in latest CVS from lcdproc homepage or here. An archive of the sources is available here. LCDProc with picoLCD patch is also available in latest Gentoo ebuilds repositories.
  I can grab a copy and try to compile for you guys but I don't have a display to test with.

Logged
Valhalla1
Full Member
***
Offline Offline

Posts: 80


View Profile
« Reply #4 on: February 24, 2008, 12:57:39 pm »

this is awesome and thanks for writing this, I want to get a firebox soon as a pfsense box.
« Last Edit: February 24, 2008, 01:20:25 pm by Valhalla1 » Logged
jmcentire
Jr. Member
**
Offline Offline

Posts: 46


View Profile
« Reply #5 on: March 04, 2008, 05:26:40 pm »

Got any instructions on how to make it work?  I played around with it when I first got the firebox running but didn't really get anywhere.
Logged
ridnhard19
Jr. Member
**
Offline Offline

Posts: 48


View Profile
« Reply #6 on: March 06, 2008, 07:42:14 am »

Sure do. I have a tar archive at home with the components that you need to get it up and running. Its really small.  When I get home, I'll look at it and post the archive here with a few directions.
Logged
ridnhard19
Jr. Member
**
Offline Offline

Posts: 48


View Profile
« Reply #7 on: March 06, 2008, 11:14:54 pm »

Here are the directions w/ files! This only has support for the FireBox LCD compiled. I have also noticed the interface stats does not work w/ freeBSD. I've got a full install on my pc and it still doesn't pickup the traffic. I have not dug too much into it.  At any rate here it is:

(Copy and paste from shell so you can see exactly how I set it up to install)

I should really wrap a cool GUI around this so it can all be configured from the web console. I do know PHP too, just need to find some time.

I'm using the EMBEDDED VERSION! the install script supports that only - if you are using a full install i'd try and comment out the 2 mount commands as you don't need to re-mount the file system as read-write then back to read-only.

Note: the /var/tmp filesystem resides in memory so you can 'play' here without wearing out your CF card.

This is from some PC to put the archive on the pfsense box.
Code:
MacWild:final jayson$ ls
lcdd.tar.gz
MacWild:final jayson$ gunzip lcdd.tar.gz
MacWild:final jayson$ scp lcdd.tar root@***.***.***.***:/var/tmp
Password:
lcdd.tar                                      100%  124KB 124.0KB/s   00:00   
MacWild:final jayson$

Now ssh into the box; make sure ya got it enabled first of course  Wink

Code:
pfsense:/#  cd /var/tmp
pfsense:/var/tmp#  ls -l
total 126
-rw-r--r--  1 root  wheel  126976 Mar  6 22:30 lcdd.tar
drwxr-xr-x  2 root  wheel     512 Mar  6 22:28 vi.recover
pfsense:/var/tmp#  tar -xvf lcdd.tar
x lcdd
x lcdd/drivers
x lcdd/lcdd
x lcdd/LCDd.conf
x lcdd/lcdd.sh
x lcdd/lcdproc
x lcdd/drivers/curses.so
x lcdd/drivers/sdeclcd.so
x install-embed.lcdd.sh
pfsense:/var/tmp#  chmod 700 install-embed.lcdd.sh
pfsense:/var/tmp#  ./install-embed.lcdd.sh
pfsense:/var/tmp#  mount
/dev/ufs/pfSense on / (ufs, local, read-only)
devfs on /dev (devfs, local)
/dev/md0 on /tmp (ufs, local)
/dev/md1 on /var (ufs, local)
/dev/ufs/pfSenseCfg on /cf (ufs, local, read-only)
devfs on /var/dhcpd/dev (devfs, local)
pfsense:/var/tmp#


Now you can reboot or just 'cd' over to the run-scripts directory and start it up so you can keep that stellar 'up-time' figure

Code:
pfsense:/var/tmp#  cd /usr/local/etc/rc.d
pfsense:/usr/local/etc/rc.d#  ls
lcdd.sh lighttpd
pfsense:/usr/local/etc/rc.d#  ls -la
total 5
drwxr-xr-x  2 root  wheel   512 Mar  6 22:31 .
drwxr-xr-x  4 root  wheel   512 Feb 24 17:37 ..
-r-xr-xr-x  1 root  wheel   174 Mar  6 22:31 lcdd.sh
-r-xr-xr-x  1 root  wheel  1184 Sep 11 13:00 lighttpd
pfsense:/usr/local/etc/rc.d#  ls
lcdd.sh lighttpd
pfsense:/usr/local/etc/rc.d#  ./lcdd.sh
pfsense:/usr/local/etc/rc.d# 

The driver currently does not have support for vertical filled histograms - its only a 2x20 LCD so I wrote the horizontal fill functions - I need to finish that but I really didn't need it so I pushed it to the back burner for now.

http://files.pfsense.org/misc/lcdd.tar.gz

(Can this file be put on one of the pfSense servers?) -- Thanks!  I've updated my url

« Last Edit: March 11, 2008, 11:26:05 pm by ridnhard19 » Logged
Valhalla1
Full Member
***
Offline Offline

Posts: 80


View Profile
« Reply #8 on: March 07, 2008, 03:48:49 am »

thanks ridnhard19 for posting this, I'll try it out soon
« Last Edit: March 07, 2008, 03:50:56 am by Valhalla1 » Logged
cmb
Administrator
Hero Member
*****
Offline Offline

Posts: I am a geek!!


View Profile
« Reply #9 on: March 09, 2008, 11:13:54 pm »

ridnhard19: I copied this file to http://files.pfsense.org/misc/lcdd.tar.gz

If you ever want to make any updates, just email me (cmb@pfsense.org) the file as an attachment and I'll update it. 

I may see about including this in our lcdproc package at some point if time permits.
Logged

pfSense Commercial Support

Paying customers receive support priority and as in depth of assistance as desired through the official commercial support channels at portal.pfsense.org. Forum users receive as much help as time permits.
jmcentire
Jr. Member
**
Offline Offline

Posts: 46


View Profile
« Reply #10 on: March 13, 2008, 05:39:47 pm »

I added the driver to my LCDproc package install, I added the following to:
/usr/local/pkg/lcdproc.inc
Under the /* lcdproc default driver definitions */:

Code:
case "sdeclcd":
$config_text .= "[{$lcdproc_config['driver']}]\n";
$config_text .= "BackLight=yes\n";
break;
And added the following to: /usr/local/pkg/lcdproc.xml
In the drive options section.
Code:
                                <option>
<value>sdeclcd</value>
<name>sdeclcd</name>
</option>
Then copied the attached "sdeclcd.so"(remove the ".txt") to "/usr/local/lib/lcdproc/"

So now the LCD works, it says LCDproc Server and on the second line says Cli: 0  Scr: 0

But I couldn't get the LCDproc service to start, so I had to do that manually from the terminal:

"lcdproc -s 127.0.0.1 -p 13666 C M U"

Now the LCD works awesome!

ridnhard19: Thanks for the driver!  Hopefully we can get this in the LCDproc package and make it work.
« Last Edit: March 13, 2008, 06:12:53 pm by jmcentire » Logged
jmcentire
Jr. Member
**
Offline Offline

Posts: 46


View Profile
« Reply #11 on: March 13, 2008, 06:22:59 pm »

Well, I just followed my own instructions on my other firebox and it worked without me having to start lcdproc from the terminal. And the options on the screens page work as well.  Not sure what happened to the first one though  Huh
Logged
ridnhard19
Jr. Member
**
Offline Offline

Posts: 48


View Profile
« Reply #12 on: March 13, 2008, 11:49:45 pm »

Cool; I'm glad its working!!  A package for this would rock too where you can click options and it up via web interface.... Maybe after i finish up this big project at work I'll have a life again and can tinker.
Logged
Valhalla1
Full Member
***
Offline Offline

Posts: 80


View Profile
« Reply #13 on: April 13, 2008, 07:01:12 pm »

thanks ridnhard19,
got this working well on my pfsense watchguard's lcd, switching between cpu and memory stats

and let us know if you ever get it to display network related stuff
Logged
binco
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #14 on: May 11, 2008, 06:25:26 am »

I tried this on my firebox 2 and the lights are blinking, but they doesn't make any sense. Can you please give me the sourcecode or adapt this driver for the firebox 2?

Thanks...
Logged
Pages: [1] 2 3 4   Go Up
  Print  
 
Jump to:  

 

Page created in 0.165 seconds with 22 queries.