RAQCOP = IPCop + Cobalt Raq, Cobalt Raq Firewall Applicance Software, Velociraptor Software Upgrade.
      Home      How To Install      Rom Flash      Download Area      Support Forum     
Mixed results with LCDproc
raqcop.com
May 19, 2012, 01:01:26 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Mixed results with LCDproc  (Read 2960 times)
Davesworld
Administrator
Sr. Member
*****
Posts: 296


I'm the same Dave who patches and compiles raqcop.


View Profile WWW
« on: January 08, 2008, 02:32:49 AM »

I've been running a kernel absent of the cobalt lcd driver on a devel version of raqcop and running LCDproc instead. For those who don't know, the Hitachi HD44780 and compatible lcd and keypad chip is the most common one out there and the one in the Cobalts is an HD44780 compatible Samsung KS0066U chip connected via parallel  with what is referred to as winamp wiring and the port address is 0x378 and the display is a common 16x2 with each block having 5x8 dots. I compiled lcdproc with the hd44780 driver and also with the enable menus options. I have had mostly good luck with it but sometimes after a while the screen starts spitting out nonsensical characters instead of numbers and letters. Usually restarting takes care of this. I tried different character maps but the default one holds up as good as any and is the most complete. We can tweak any timing issues and fine tune it at this point. A good example is that right now I have been running lcdproc for four hours with no hiccups. The menus still need to be mapped and actually created but to get the reboot and halt functionality, we will probably need lcdexec to also run as a client. LCDproc consists of two parts, the daemon itself or server as it really is and the lcdproc client as the most common. There are many clients for lcdproc and the build gives us lcdproc and lcdexec plus a few others. When things got garbled, I was restarting the daemon and the lcdproc client and making adjustments to the daemon configs. The solution may be on the client end, lcdproc itself, perhaps reloading occasionally or having it clear the screen.

Why am I looking outside of the Cobalt lcd driver and the horrific number of perl scripts needed to even have a prayer of getting some menu action? I think I just explained why. It is dependency hell with perl and related programs. LCDproc has the daemon binary and config file, lcdproc client binary and config file, one driver in userspace, NOT the kernel, and any startup scripts you may want. Each additional client has usually only two files, the binary and the config. By default, they all go in /usr/local which is not very crowded on ipcop. I tried LCD4Linux as well and even got it to start but it did weird things on the display. I even tried a null driver and tried to use the program to bind to /dev/lcd and the cobalt lcd driver but it stayed in twiddle land. The twiddle is the sweeping bar on the 2nd row while booting up. If this is absent and you just have the Cobalt and logo, it means that you are not using a kernel driver. Of course when it is present, it is an embedded driver that can only be skipped by giving the kernel command arguments which can be done in the rom menu of a nullmodem terminal. I can build with or without the embedded lcd driver with ease and you can easily exchange the vmlinux.bz2 and accompanying system.map in the /boot directory by sftp and reboot, no need to even change /lib/modules/2.4.x.

It looks like LCDproc is the most feasible and I pulled the cvs version and the latest hd44780 driver is indeed getting better. It is fun to watch the CPU histogram on the lcd while I am compiling on my devel machine.

The idea of LCDProc on a Cobalt is not new at all.

 http://lists.omnipotent.net/pipermail/lcdproc/2003-February/007340.html
Logged

Main Daily Firewall: Cobalt Raq 4i modded to use a low voltage K6-III 1.8v 256k cache 500mhz clocked at 550mhz, VFD display. Raqcop 1.4.21
 
Others: One additional 4i for development left stock and two Symantec Velociraptor 500's with the 550mhz low voltage processor mod. Raq550, Two Raq XTR units

tnelson
Newbie
*
Posts: 3


View Profile
« Reply #1 on: March 06, 2008, 10:22:36 AM »

I've been fighting with the cobalt proprietary lcd utilities for a while now. It is nice to see that you are having good progress using lcdproc. I stumbled upon this project trying to find other ways of controlling the Raq LCD units. I'm a long time user of Raqs and have been looking to repurpose some of my spare units for something else. I just may give Raqcop a shot! I'm an avid user of monowall/pfsense but unfortunately, getting FreeBSD to run on the raq seems to be impossible. I look forward to seeing this project progress!

--Tim
Logged
Davesworld
Administrator
Sr. Member
*****
Posts: 296


I'm the same Dave who patches and compiles raqcop.


View Profile WWW
« Reply #2 on: March 19, 2008, 02:45:49 PM »

I've been fighting with the cobalt proprietary lcd utilities for a while now. It is nice to see that you are having good progress using lcdproc. I stumbled upon this project trying to find other ways of controlling the Raq LCD units. I'm a long time user of Raqs and have been looking to repurpose some of my spare units for something else. I just may give Raqcop a shot! I'm an avid user of monowall/pfsense but unfortunately, getting FreeBSD to run on the raq seems to be impossible. I look forward to seeing this project progress!

--Tim


LCDproc works for at least a while before it garbages out but lately I have gone to using a self contained perl driver/program that drives the display directly and does not seem to care whether the in kernel cobalt lcd driver is there or not whereas LCDproc trying to drive the display when the kernel driver is also present, locks the display up. the 1.4.20cvs posted in the downloads uses just the perl file and not the Cobalt panel utilities, it needs more work to be 16x2 friendly as well as add any button functions but it works day in and day out without ever corrupting the display. The Cobalt Alpine panel utilities when compiled against an ipcop build environment do work to some extent but every perl script in there would need to be rewritten and the utilities really are written as server centric, not like you would find on a firewall. The way I figure it is IPCop is very perl oriented so it would fit that some members of the IPCop community wrote perl scripts to write to it as well as use buttons. The other benefit is that it can be easily edited. Nothing written in stone yet.

As far as anything FreeBSD, the current latest and likely last rom we'll see for a while will boot NetBSD but not FreeBSD but which filesystem at that? I hadn't heard much about NetBSD anymore and do not know the current state of that project.
Logged

Main Daily Firewall: Cobalt Raq 4i modded to use a low voltage K6-III 1.8v 256k cache 500mhz clocked at 550mhz, VFD display. Raqcop 1.4.21
 
Others: One additional 4i for development left stock and two Symantec Velociraptor 500's with the 550mhz low voltage processor mod. Raq550, Two Raq XTR units

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!