From owner-freebsd-current@FreeBSD.ORG Wed Aug 18 16:18:33 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 6D9C016A4CE; Wed, 18 Aug 2004 16:18:33 +0000 (GMT) Received: from smtp-bedford-dr.mitre.org (smtp-bedford-dr-x.mitre.org [192.160.51.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB38543D39; Wed, 18 Aug 2004 16:18:32 +0000 (GMT) (envelope-from jandrese@mitre.org) Received: from smtp-bedford-dr.mitre.org (localhost.localdomain [127.0.0.1]) i7IGIWf08802; Wed, 18 Aug 2004 12:18:32 -0400 Received: from smtp-bedford-dr.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford-dr.mitre.org (Postfix) with ESMTP id 674C24F8D8; Wed, 18 Aug 2004 12:18:32 -0400 (EDT) Received: from MAILHUB2 (mailhub2.mitre.org [129.83.221.18]) i7IGIVm08721; Wed, 18 Aug 2004 12:18:31 -0400 Received: from mm112324-2k.mitre.org (128.29.3.51) by mailhub2.mitre.org with SMTP id 4208357; Wed, 18 Aug 2004 12:18:27 -0400 Message-ID: <41238153.1080307@mitre.org> Date: Wed, 18 Aug 2004 12:18:27 -0400 From: Jason Andresen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jason Andresen References: <41235FBC.4040706@mitre.org> In-Reply-To: <41235FBC.4040706@mitre.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: Robert Watson cc: Cedric Tabary Subject: Re: mem_range_attr_set undefined 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, 18 Aug 2004 16:18:33 -0000 Jason Andresen wrote: > Robert Watson wrote: > >> On Tue, 17 Aug 2004, Jason Andresen wrote: >> >> >>>>> kldload mem >>>>> kldload io (needed by xorg) >>>>> kldload nvidia -> failed (mem_range_attr_set undefined) >>>>> >>>>> I had to compile 'device mem' into kernel >>>>> >>>>> note 1: I did not try loading mem at the boot loader stage >>>>> note 2: I did not try the new release of nvidia driver >>>>> >>>> >>>> The mem kld will need to explicitly symbols required by other modules >>>> using the EXPORT_SYMS line in its Makefile. So try adding: >>>> >>>> EXPORT_SYMS= mem_range_attr_set >>>> >>>> to the module Makefile for mem, rebuilding, reloading, and adding >>>> additional symbols until it works? >>>> >>> >>> Sure, I can try this. Where is the Makefile for the mem device? >> >> >> You can find the Makefile for the mem module in src/sys/modules/mem. >> You >> might want to look at some of the other module Makefiles in related >> directories for examples of EXPORT_SYMBOLS use. >> >> > > Ok, I removed the device mem from my kernel config and added the line: > EXPORT_SYMS+= mem_range_attr_set > to src/sys/modules/mem/Makefile > > and recompiled with 'make buildkernel' / 'make installkernel' > > Then I booted the new kernel and manually ran 'kldload mem' then > 'kldload nvidia' and I still got the message: > link_elf: symbol mem_range_attr_set undefined One more note. I upgraded to the new 6113 driver and it appears to attach just fine with mem as a device.