unabe to install linux compatibility on freebsd 8.0-R

Pieter de Goeje pieter at degoeje.nl
Sun Feb 21 02:10:15 UTC 2010


On Sunday 21 February 2010 00:54:54 John wrote:
> Hello list,
>
> I'm following the instructions at
> http://www.freebsd.org/doc/handbook/linuxemu-lbc-install.html
>
> I tried to kldload the module:
>
> # kldload linux
> kldload: can't load /boot/kernel/linux.ko: Exec format error
>
> # kldstat
> Id Refs Address            Size     Name
>  1   22 0xffffffff80100000 846698   kernel
>  2    1 0xffffffff80947000 74a8     geom_concat.ko
>  3    1 0xffffffff8094f000 8308     ng_ubt.ko
>  4    3 0xffffffff80958000 154a0    netgraph.ko
>  5    2 0xffffffff8096e000 12ff8    ng_hci.ko
>  6    2 0xffffffff80981000 2d40     ng_bluetooth.ko
>  7    1 0xffffffff80a22000 a24      pflog.ko
>  8    1 0xffffffff80a23000 2bd2d    pf.ko
>  9    1 0xffffffff80a4f000 a8ca     fuse.ko
>  10    1 0xffffffff80a5a000 7d6      accf_http.ko
>  11    1 0xffffffff80a5b000 1ce      accf_data.ko
>
> If I try to install the linux port:
>
> # cd /usr/ports/emulators/linux_base-f10
> # make
> ===>  linux_base-f10-10_2 linuxulator is not (kld)loaded.
> *** Error code 1
>
> Stop in /usr/ports/emulators/linux_base-f10.
>
> Finally, if I try to install compatibility in the kernel, I get the error
> unknown option "COMPAT_LINUX"
> at the config phase.
>
> Can anyone help me please?
>
> # uname -p -r
> 8.0-RELEASE-p2 amd64
> The system was built today.

Somehow your linux.ko is broken, do you perhaps have WITHOUT_LINUX= 
in /etc/src.conf or /etc/make.conf? 
Check the last modification date of /boot/kernel/linux.ko, does it correspond 
(roughly) to the one from /boot/kernel/kernel?

About the kernel option, try COMPAT_LINUX32. It's a documentation bug.

--
Pieter de Goeje


More information about the freebsd-questions mailing list