From owner-freebsd-ports@FreeBSD.ORG Mon Apr 12 10:28:49 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75BA116A4CE for ; Mon, 12 Apr 2004 10:28:49 -0700 (PDT) Received: from Shenton.org (23.ebbed1.client.atlantech.net [209.190.235.35]) by mx1.FreeBSD.org (Postfix) with SMTP id 3FF7443D45 for ; Mon, 12 Apr 2004 10:28:48 -0700 (PDT) (envelope-from chris@Shenton.Org) Received: (qmail 3254 invoked by uid 1001); 12 Apr 2004 17:28:47 -0000 To: freebsd-hardware@FreeBSD.org, current@freebsd.org, ports@freebsd.org From: Chris Shenton Date: Mon, 12 Apr 2004 13:28:47 -0400 Message-ID: <86ad1hcdgw.fsf@PECTOPAH.shenton.org> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: XFree86-4-Server-snap fails on VIA CLE266 running 5-CURRENT X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2004 17:28:49 -0000 Sorry for the cross-posting, problem seems to cross these three lists; remove inappropriate ones on reply if desired. I've got a VIA EPIA box which has the CastleRock CLE266 video chipset. Matt Dillion provided instructions on how to get the port XFree86-4-Server-snap to run, so I've been able to run its 4.3.99.12 build for a while. Last night I updated the port, which got XFree86 4.3.99.15. It works on my other non-VIA machines, but on the VIA CLE266 box it bombs upon startup, using the same XFree86Config file I had been using earlier. /var/log/XFree86.0.log repeats several times before death: Symbol drmOpen from module /usr/X11R6/lib/modules/drivers/via_drv.o is unresolvable Symbol drmClose from module /usr/X11R6/lib/modules/drivers/via_drv.o is unresolvable After some googling I added lines to my XFree86Config: Load "vbe" Load "int10" Load "drm" This made the "drmOpen/drmClose unresolvable" messages go away, but it died anyway, with no indication why. I suspected that DRI/DRM isn't working for me, since VIA isn't one of the common chipsets that seem to be supported, like here: /usr/src/sys/modules/drm: -rw-r--r-- 1 root wheel 141 Sep 9 2003 Makefile -rw-r--r-- 1 root wheel 110 Nov 6 2002 Makefile.inc drwxr-xr-x 2 root wheel 512 Jan 14 06:04 mga drwxr-xr-x 2 root wheel 512 Jan 14 06:04 r128 drwxr-xr-x 2 root wheel 512 Jan 14 06:04 radeon drwxr-xr-x 2 root wheel 512 Jan 14 06:04 sis drwxr-xr-x 2 root wheel 512 Jan 14 06:04 tdfx I then recomiled the XFree86-4-Server-snap after hacking the Makefile to get it to *not* use: RUN_DEPENDS+= ${X11BASE}/lib/modules/dri/r200_dri.so:${PORTSDIR}/graphics/dri BuildXF86DRI= YES PLIST_SUB+= DRI="" But again, it died on the VIA on startup, with no message indicating what failed in the log file. Am I correct in thinking that the problem is with FreeBSD's DRI/DRM support of the VIA CLE266 chips? If so, is there a way to tell XFree86Config to NOT use these features, to disable these options? If it's something else, any suggestions for a work-around? If 4.3.99.15 simply won't on my HW, can someone provide the incantation to cvsup the port from back when it used XFree86-4.3.99.12 ? Any other suggestions? Thanks.