Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: Major number for dri missing?



   On Sun, 26 Jul 2009, Andreas Gustafsson wrote:
   
   > Matthias Scheler wrote:
   > > when I run "./MAKEDEV all" in "/dev" under NetBSD-current I get
   > > this error message:
   > >
   > > ./MAKEDEV: dri0: unknown device
   >
   > The problem still exists in today's -current (CVS source date
   > 2009.07.26.03.22.01).
   
   It seems that no dri device major number is defined, the following patch
   should fix that as it appears to be MI .. mrg?

yeah, there's a problem but i was getting confused with it.
   
   Index: majors
   ===================================================================
   RCS file: /cvsroot/src/sys/conf/majors,v
   retrieving revision 1.46
   diff -u -r1.46 majors
   --- majors   21 May 2009 19:27:38 -0000      1.46
   +++ majors   26 Jul 2009 16:37:29 -0000
   @@ -40,3 +40,4 @@
    device-major        isv             char 192                isv
    device-major        video           char 193                video
    device-major        dm              char 194 block 169      dm
   +device-major        dri             char 195                dri

no, this patch is wrong.  drm major is not 195.  it is 180.  eg:

sys/conf/majors:device-major drm             char 180                drmbase

the problem is that ew call it "drm" and use "dri", and this confuses
the MAKEDEV* code.  but patching MAKEDEV.tmpl to know about this still
gives me errors and i haven't gotten around to solving it.

the patch below is what i have so far, but doesn't work, if anyone
really wants to figure it out for me...


.mrg.


Index: MAKEDEV.tmpl
===================================================================
RCS file: /cvsroot/src/etc/MAKEDEV.tmpl,v
retrieving revision 1.127
diff -p -r1.127 MAKEDEV.tmpl
*** MAKEDEV.tmpl        5 Jul 2009 21:35:16 -0000       1.127
--- MAKEDEV.tmpl        26 Jul 2009 20:59:55 -0000
***************
*** 233,238 ****
--- 233,239 ----
  #     dmoverio hardware-assisted data movers
  #     dpt*    DPT/Adaptec EATA RAID management interface
  #     dpti*   DPT/Adaptec I2O RAID management interface
+ #     drm*    Direct Rendering Manager interface
  #     fb*     PMAX generic framebuffer pseudo-device
  #     fd      file descriptors
  #     grf*    graphics frame buffer device
*************** all)
*** 741,747 ****
        makedev putter
        makedev drvctl
        makedev video
!       makedev dri0
        makedev altmem
        makedev zfs
        makedev local # do this last
--- 742,748 ----
        makedev putter
        makedev drvctl
        makedev video
!       makedev drm0
        makedev altmem
        makedev zfs
        makedev local # do this last
*************** atabus*)
*** 1902,1908 ****
        mkdev atabus$unit c %atabus_chr% $unit 644
        ;;
  
! dri*)
        makedir dri 755
        mkdev dri/card$unit c %dri_chr% $unit 660
        ;;
--- 1903,1909 ----
        mkdev atabus$unit c %atabus_chr% $unit 644
        ;;
  
! drm*)
        makedir dri 755
        mkdev dri/card$unit c %dri_chr% $unit 660
        ;;


Home | Main Index | Thread Index | Old Index