home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / bsd / 8930 < prev    next >
Encoding:
Text File  |  1992-11-16  |  4.0 KB  |  108 lines

  1. Path: sparky!uunet!mcsun!Germany.EU.net!unidui!du9ds3!veit
  2. From: veit@du9ds3.fb9dv.uni-duisburg.de (Holger Veit)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: CODRV EXPERIENCES [was Re: XFree86 problems (keyboard hangs overnight)]
  5. Date: 16 Nov 92 11:45:54 GMT
  6. Organization: Uni-Duisburg FB9 Datenverarbeitung
  7. Lines: 94
  8. Distribution: comp
  9. Message-ID: <veit.721914354@du9ds3>
  10. References: <BxM1qt.2xC@unx.sas.com> <STARK.92Nov12154408@sbstark.cs.sunysb.edu>     <veit.721670337@du9ds3> <JKH.92Nov16095746@esel.lotus.com>
  11. Reply-To: veit@du9ds3.uni-duisburg.de
  12. NNTP-Posting-Host: du9ds3.fb9dv.uni-duisburg.de
  13.  
  14. In <JKH.92Nov16095746@esel.lotus.com> jkh@esel.lotus.com (Jordan K Hubbard) writes:
  15.  
  16.  
  17. >    I am becoming quite tired now to to say that all of this is covered by "codrv". 
  18. >    Get the keycap-0.1.1.tar.Z stuff from ftp.uni-duisburg.de (134.91.100.14).
  19. >    Read README*, FAQ.ddmmyy, and BUGLIST.ddmmyy there.
  20.  
  21. >Actually, in an attempt to be somewhat fair (after jumping all over
  22. >Herr Dr. Veit for suggesting that hacking the pccons driver was a
  23. >complete waste of time), I installed the keycap stuff over the
  24. >weekend.  This is what I encountered:
  25.  
  26. >The instructions assume you don't have anything at major 0x0F - this
  27. >is obviously not going to be the case for everyone, so bias the
  28. >instructions accordingly.
  29.  
  30. This is the general problem with all kinds of drivers, not only with codrv.
  31.  
  32. >codrv, as distributed, does not seem to compile on its own.  You need
  33. >to grab pcmmap() from pccons.c in order to get the kernel to link.  I
  34. >haven't checked to see if it's ever called, but I doubt it is.
  35.  
  36. Sorry. This is why I recommended to "always get the latest BUGLIST-file". The
  37. earlier version of keycap had a documentation bug concerning the modifications
  38. to cons.c. See the excerpt of BUGLIST.111192 on this enclosed below. In the
  39. current package this bug is corrected (You do not need to get the whole package
  40. again). You might also have taken a look at the diffs/cons.c file which was
  41. included for references.
  42.  
  43. >Everything seems to work as far as the console driver is concerned,
  44. >but I was unable to get the Xfree86 1.1 driver to work at all.  I
  45. >applied all the 1.1 patches (successfully) and recompiled the server
  46. >to codrv support enabled, but got 'unable to map /dev/vga' upon
  47. >running it (with the server suid root, of course).  I didn't
  48. >have time to debug it, so I've switched back to the old pccons
  49. >driver (with my hacks) for now.
  50.  
  51. This is exactly what happens with comap missing in the cons.c file. You don't
  52. need to fix anything special for this in the xserver (there are however some
  53. other effects you should lookup in the BUGLIST).
  54.  
  55. >Perhaps when the X11 support is more functional I'll go back to it.
  56. >Has anyone gotten this to work?
  57.  
  58. My opinion on "anyone gotten this to work" does not count here, surely my
  59. version works, but I have a number of positive responses that it works.
  60.  
  61. My apology for the "hacker's documentation", but the whole 386bsd is not yet
  62. intended for the casual user.
  63.  
  64. Holger
  65.  
  66.  
  67. --------------------------
  68.  
  69. Excerpt from BUGLIST.111192 on the "comap" effect:
  70.  
  71. ------------
  72. BUG 5:    My kernel is built with the fixes, and is a codrv kernel, but your
  73.     X386 fails with a message "Cannot memorymap videomemory".
  74.  
  75. FIX 5:    This is a bug in documentation. The conf.includes template lacks
  76.     the "comap" entry. It should read as following (corrected in the
  77.     actual tar.Z file):
  78.  
  79. #include "co.h"
  80. #if NCO > 0
  81. int    coopen(),coclose(),coread(),coioctl(),coselect(),comap();
  82. #define pcmmap comap
  83. #else
  84. #define coopen    enxio
  85. #define coclose    enxio
  86. #define coread    enxio
  87. #define coioctl    enxio
  88. #define coselect enxio
  89. #define comap   enxio
  90. #endif
  91.  
  92. .....
  93.  
  94. struct cdevsw    cdevsw[] =
  95. {
  96.     .....
  97.     { coopen,    coclose,    coread,        enodev,        /*F*/
  98.       coioctl,    nullop,        nullop,        NULL,
  99.       coselect,    comap,        NULL },
  100. .....
  101.  
  102. --END-----------
  103. -- 
  104. |  |   / Dr. Holger Veit         | INTERNET: veit@du9ds3.fb9dv.uni-duisburg.de
  105. |__|  /  University of Duisburg  | "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  106. |  | /   Dept. of Electr. Eng.   |   Sorry, the above really good fortune has
  107. |  |/    Inst. f. Dataprocessing |      been CENSORED because of obscenity"
  108.