From owner-freebsd-current@FreeBSD.ORG Wed Aug 4 14:47:57 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 458DD16A4CE; Wed, 4 Aug 2004 14:47:57 +0000 (GMT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3525943D2D; Wed, 4 Aug 2004 14:47:57 +0000 (GMT) (envelope-from mux@freebsd.org) Received: by elvis.mu.org (Postfix, from userid 1920) id 268115C927; Wed, 4 Aug 2004 07:47:57 -0700 (PDT) Date: Wed, 4 Aug 2004 16:47:57 +0200 From: Maxime Henrion To: Franz Klammer Message-ID: <20040804144757.GI13608@elvis.mu.org> References: <20040803184218.GA16698@laptoxa.toxa.lan> <20040804092719.E838@DaeMoN.InTraNeT.CESAR.OrG.BR> <4110F366.5030307@webonaut.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="UPT3ojh+0CqEDtpF" Content-Disposition: inline In-Reply-To: <4110F366.5030307@webonaut.com> User-Agent: Mutt/1.4.2.1i cc: anholt@FreeBSD.org cc: Rossam Souza da Silva cc: current@freebsd.org cc: Toxa Subject: Re: radeon.ko doesn't load on recent current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 14:47:57 -0000 --UPT3ojh+0CqEDtpF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Franz Klammer wrote: > Rossam Souza da Silva wrote: > > > >I have the same problem with VMWare3 kernel modules... > >no one is loaded, with error messages about symbols. > > > >Rossam. > > > >------------------------------------------------------ > >"Das Leben auf Erden ist ein gemeiner Krieg. > > Wir spielen, wir k?mpfen, wir setzen alles auf Sieg." > > > > Megaherz > >------------------------------------------------------ > > > >On Tue, 3 Aug 2004, Toxa wrote: > > > >>today kernel biuld, when trying to load radeon.ko for my ATI > >>Mobility M6: > >> > >># kldload radeon.ko: > >> > >>link_elf: symbol mem_range_attr_set undefined > >>kldload: can't load radeon.ko: No such file or directory > > same here with matrox mga.ko. after i compiled the > devices agp, mem, null and io into the kernel it loads normaly. Can you try to remove mem from your kernel config and try this patch? The DRM drivers are missing a dependency to mem(4) since mem(4) was made a kernel module. The DRM drivers need mem(4) because they use mem_range_attr_set(). With this patch, you should be able to load your DRM driver without errors, even if mem(4) isn't compiled in the kernel. You must of course have it as a module though. Cheers, Maxime --UPT3ojh+0CqEDtpF Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="drm.patch" Index: drm_drv.h =================================================================== RCS file: /space2/ncvs/src/sys/dev/drm/drm_drv.h,v retrieving revision 1.25 diff -u -p -r1.25 drm_drv.h --- drm_drv.h 16 Jun 2004 09:46:42 -0000 1.25 +++ drm_drv.h 4 Aug 2004 14:41:00 -0000 @@ -124,6 +124,7 @@ static void DRM(cleanup)(drm_device_t *d #if __REALLY_HAVE_AGP MODULE_DEPEND(DRIVER_NAME, agp, 1, 1, 1); #endif +MODULE_DEPEND(DRIVER_NAME, mem, 1, 1, 1); #endif /* __FreeBSD__ */ #ifdef __NetBSD__ --UPT3ojh+0CqEDtpF--