In article by Daniel O'Connor:
> On 03-Jan-01 Warren Toomey wrote:
> > # kldload /usr/local/modules/rtc.ko
> > kldload: can't load /usr/local/modules/rtc.ko: Exec format error
> >
> > Is this a 4.2-thing, or have I just done something wrong? I've
> > searched the FreeBSD mail lists for clues, with no luck.
Ok, I've found the answer. The rtc and vmware2 ports both turn this
flag on in the appropriate Makefiles:
KMODDEPS= linux
This creates a binary file called `linux' which is linked in (?) to the
the module at compile time, e.g:
ld -Bshareable -o vmmon_up.ko setdef0.o vmmon_up.kld setdef1.o linux
By commenting out this flag, the file `linux' isn't used, and the module
can then be loaded by kldload. Also, vmware appears to work fine.
Hope this helps someone else!
Cheers,
Warren
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message