From owner-freebsd-current@FreeBSD.ORG Wed Aug 4 15:00:30 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 CE7E816A4CE; Wed, 4 Aug 2004 15:00:30 +0000 (GMT) Received: from sv02.webonaut.com (kirk.webonaut.com [212.41.243.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5281743D41; Wed, 4 Aug 2004 15:00:30 +0000 (GMT) (envelope-from klammer@webonaut.com) Received: from localhost (localhost [127.0.0.1]) by sv02.webonaut.com (Postfix) with ESMTP id 222E37642C; Wed, 4 Aug 2004 17:00:28 +0200 (CEST) Received: from sv02.webonaut.com ([127.0.0.1]) by localhost (sv02.webonaut.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 98591-05; Wed, 4 Aug 2004 17:00:22 +0200 (CEST) Received: from [192.168.0.9] (sisko.webonaut.com [212.41.243.28]) by sv02.webonaut.com (Postfix) with ESMTP id D139E76428; Wed, 4 Aug 2004 17:00:21 +0200 (CEST) Message-ID: <4110FA0A.3040702@webonaut.com> Date: Wed, 04 Aug 2004 17:00:26 +0200 From: Franz Klammer User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040719) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Maxime Henrion References: <20040803184218.GA16698@laptoxa.toxa.lan> <20040804092719.E838@DaeMoN.InTraNeT.CESAR.OrG.BR> <4110F366.5030307@webonaut.com> <20040804144757.GI13608@elvis.mu.org> In-Reply-To: <20040804144757.GI13608@elvis.mu.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at webonaut.com 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 15:00:30 -0000 Maxime Henrion wrote: >>>># 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. > sure! but not in the next one or two hours. maybe someone else who has the same problem is faster then me. franz. > Cheers, > Maxime > > > ------------------------------------------------------------------------ > > 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__