[mythtv-users] VFD Display

Nick Morrott knowledgejunkie at gmail.com
Tue Mar 27 02:31:00 UTC 2007


On 27/03/07, Brian Foddy <bfoddy at visi.com> wrote:
> On Sunday 25 March 2007 11:47 pm, Nick Morrott wrote:
> > On 26/03/07, Mark Bell <markb at pilgrim.com> wrote:
> > > > -----Original Message-----
> > > > From: mythtv-users-bounces at mythtv.org [mailto:mythtv-users-
> > > > bounces at mythtv.org] On Behalf Of Nick Morrott
> > > >
> > > > I would hope that MythDora includes it, but it may not. You can check
> > > > using
> > > >
> > > > # rpm -qa |grep "kernel-devel"
> > > >
> > > > Nick
> > > > --
> > >
> > > Your grep returned nothing
> > >
> > > This is what I get when trying to run make against the standalone Imon
> > >
> > > [root at mythtv imon]# make -C /usr/src/linux SUBDIRS=$PWD modules
> > > make: *** /usr/src/linux: No such file or directory.  Stop.
> >
> > Definitive proof your kernel source is not installed properly. I would
> > check the MythDora documentation on how to do this, and then try to
> > recompile the imon driver.
> >
> > I compiled the imon_vfd standalone driver on the FC4 2.6.14 kernel
> > (which uses udev) without problems.
> >
> > Nick
>
> Not sure I agree, I too found this error, and using the standalone driver from
> http://venky.ws/projects/imon/#standalone
> dated March 2005, it seems to have almost no chance of building as looking
> through its code its heavily based on devfs.  Do you have a newer version
> somewhere?  The lirc_imon driver with lirc is much newer, that's why I
> suggested it.

Sorry for not posting full information - I just check my old imon_vfd
build directory, and had commented out the old devfs stuff - only I
had forgotten this useful snippet. The diff to the original is:


[root at homer imon]# diff -u imon_vfd.c.orig imon_vfd.c
--- imon_vfd.c.orig     2006-05-21 17:15:49.000000000 +0100
+++ imon_vfd.c  2006-05-21 17:16:57.000000000 +0100
@@ -119,7 +119,6 @@
 /* VFD file operations */
 static struct file_operations vfd_fops = {

-       .owner          = THIS_MODULE,
        .open           = &vfd_open,
        .write          = &vfd_write,
        .release        = &vfd_close
@@ -144,7 +143,6 @@

 /* USB Device data */
 static struct usb_driver imon_driver = {
-       .owner          = THIS_MODULE,
        .name           = MOD_NAME,
        .probe          = imon_probe,
        .disconnect     = imon_disconnect,
@@ -159,7 +157,6 @@
 static struct usb_class_driver imon_class = {
        .name           = DEVFS_NAME,
        .fops           = &vfd_fops,
-       .mode           = DEVFS_MODE,
        .minor_base     = VFD_MINOR_BASE,
 };
 #endif


This built and I'm still using it on Fedora Core 4, kernel 2.6.14. Not
tried building it on any newer kernels, however.

Nick
-- 
MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin


More information about the mythtv-users mailing list