[mythtv] HD3000: Could not get card info for card #0!

Mark Paulus mark.paulus at verizonbusiness.com
Thu May 18 16:52:39 UTC 2006



David Cain wrote:
> Mark Paulus wrote:
> Can you compile other stuff? I'd say that somehow you whacked your
> compiler, and that's pretty nasty. Perhaps a reinstall of your compiler
> is in order also.
> 
> OK, first, serious "duh" factor on my part: (kernel sources 2.6.8-16) !> (kernel sources 2.6.16-1). Saw the "2", the "6", the "16" and spaced on 
> the rest. Got the correct headers. Compiler no longer segfaults.
> 
> Correct kernel headers for the 2.6.16-1 kernel I'm ACTUALLY USING do 
> have FE_ATSC set up in the frontend.h file.
> 
> Still can't complete a compile, but going back to Mark's first message:
> 
> The other small caveat I ran into, using a 2.6.16-1
> kernel provided by backports.org on a sarge system, is that some stuff
> has changed in input.h. They have changed some types in there from
> 'unsigned long' to kernel_ulong_t, and somewhere along the line,
> BITS_PER_LONG also got moved. Or, at least, my compiles using the
> linux-headers-2.6.16-1-k7 get these 2 errors. I had to modify my
> linux-headers to get it to compile.
> 
> This looks like what's bombing me out now (recognizable terrain at last!)
> 
> I see this note on what is apparently this issue of depending upon a 
> __KERNEL__ macro in mod_deviceable.h when compiling a userspace application:
> 
> http://www.ussg.iu.edu/hypermail/linux/kernel/0604.1/1137.html
> 
> What's the quick remedy for this? include mod_deviceable.h? Patch 
> input.h ('till I've done the compile) to define it myself?
> 
> Thanks to all for your help on this. Will summarize for the list (and 
> for users list to deflect future versions of this from dev) once I get 
> wrapped up.
> 
> DC

My solution was to patch input.h

--- input.h.orig        2006-05-18 10:52:07.000000000 -0600
+++ input.h     2006-05-10 15:18:49.000000000 -0600
@@ -10,14 +10,23 @@
   */

  #ifdef __KERNEL__
+#warning __KERNEL__ is defined.
  #include <linux/time.h>
  #include <linux/list.h>
  #include <linux/device.h>
  #include <linux/mod_devicetable.h>
  #else
+#warning __KERNEL__ isnt defined.
  #include <sys/time.h>
  #include <sys/ioctl.h>
-#include <asm/types.h>
+#include <asm-i386/types.h>
+#ifndef kernel_ulong_t
+typedef unsigned long kernel_ulong_t;
+#warning kernel_ulong_t isnt defined.
+#endif
+#ifndef BITS_PER_LONG
+#define BITS_PER_LONG 32
+#endif
  #endif

  /*
> 
> 
> 
> 
> -- 
> 
> ------------------------------------------------------------
> 
>              =  E  C  N  A  L  U  B  M  A  =
> 
>              http://www.jimmiedave.com/
> 
> ------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

-- 
Mark Paulus
2424 Garden of the Gods Rd  | Phone:  v622-5578 / 719-535-5578
0419/117 - LEC Access ; D5-1010   | FAX:    719-535-1665
Colo Springs, CO  80919    | 1800PageMCI / 1406052
AIM : mgpaulus1    /  sametime : mark.paulus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mark.paulus.vcf
Type: text/x-vcard
Size: 296 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20060518/9f8aa7ec/attachment.vcf 


More information about the mythtv-dev mailing list