Date: Wed, 18 Aug 2004 12:18:27 -0400 From: Jason Andresen <jandrese@mitre.org> To: Jason Andresen <jandrese@mitre.org> Cc: Cedric Tabary <tabary@efrei.fr> Subject: Re: mem_range_attr_set undefined Message-ID: <41238153.1080307@mitre.org> In-Reply-To: <41235FBC.4040706@mitre.org> References: <Pine.NEB.3.96L.1040817105744.15966A-100000@fledge.watson.org> <41235FBC.4040706@mitre.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41238153.1080307>