cvs commit: src/sys/dev/acpica acpi.c acpi_resource.c acpivar.h

Mark Murray mark at grondar.org
Fri Aug 27 00:05:11 PDT 2004


"David O'Brien" writes:
> > > You know I would also, and many others on freebsd-amd64.
> > > The point is "asking". :-)
> > 
> > Cool. I've made some changes to the random, mem and io modules to
> > try to prevent the double-loaded module panic. Could you please see
> > if this works for amd64?
> 
>     quynh#  kldload /boot/kernel/random.ko 
>     kldload: can't load /boot/kernel/random.ko: Exec format error
>     quynh#  kldload /boot/kernel/mem.ko 
>     kldload: can't load /boot/kernel/mem.ko: Exec format error
>     quynh#  kldload /boot/kernel/io.ko 
>     kldload: can't load /boot/kernel/io.ko: Exec format error
>     quynh#  kldload /boot/kernel/if_xl.ko 
>     quynh#
> 
> the error message is a little weird (and deceiving) when one of these
> .ko's doesn't load; but this is orders of orders of magnitude better than
> panicing. 8-)

Yeah. Just to confirm, all three of the above modules were built into
the kernel, right?

The solution was to add a module version to the modules. Why not having
a version is not an error beats me. (I wonder if it is possible to make
this the case?)

> thanks for fixing this!

No problem. But the real fix IMO is to not allow the broken modules to
be made in the first place. It was pure, blind luck that enabled me to
stumble onto this solution. :-)

M
--
Mark Murray
iumop ap!sdn w,I idlaH


More information about the cvs-src mailing list