radeon.ko doesn't load on recent current
Franz Klammer
klammer at webonaut.com
Wed Aug 4 08:00:30 PDT 2004
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__
More information about the freebsd-current
mailing list