FreeBSD 9.1内核kernel文件和模块文件

FreeBSD内核kernel文件和模块文件

当指定模块编译的时候,make.conf文件如下:
MODULES_OVERRIDE=xfs
那么,安装的内核就是:
ztz0223@BTazuo:/boot/kernel % ll
total 66996
-r-xr-xr-x  1 root  wheel  16031061 Feb 19 14:36 kernel*
-r-xr-xr-x  1 root  wheel  48269559 Feb 19 14:36 kernel.symbols*
-rw-r--r--  1 root  wheel     18604 Feb 19 14:42 linker.hints
-r-xr-xr-x  1 root  wheel    537273 Feb 19 14:42 xfs.ko*
-r-xr-xr-x  1 root  wheel   3534697 Feb 19 14:42 xfs.ko.symbols*
除了kernel相关的文件,然后就是xfs的ko文件了,xfs是模块,是可以加载的。

那么不指定MODULES_OVERRIDE的时候,就会在编译kernel之后,完全编译和安装所有模块如下:
ztz0223@BTazuo:/boot/kernel.old % ll | less
total 199700
-r-xr-xr-x  1 root  wheel     14119 Feb 19 13:46 3dfx.ko*
-r-xr-xr-x  1 root  wheel     49606 Feb 19 13:46 3dfx.ko.symbols*
-r-xr-xr-x  1 root  wheel      5244 Feb 19 13:46 3dfx_linux.ko*
-r-xr-xr-x  1 root  wheel     27561 Feb 19 13:46 3dfx_linux.ko.symbols*
-r-xr-xr-x  1 root  wheel     69441 Feb 19 13:46 aac.ko*
-r-xr-xr-x  1 root  wheel    185318 Feb 19 13:46 aac.ko.symbols*
-r-xr-xr-x  1 root  wheel      4525 Feb 19 13:46 aac_linux.ko*
-r-xr-xr-x  1 root  wheel     26737 Feb 19 13:46 aac_linux.ko.symbols*
-r-xr-xr-x  1 root  wheel      3138 Feb 19 13:46 accf_data.ko*
-r-xr-xr-x  1 root  wheel     10862 Feb 19 13:46 accf_data.ko.symbols*
-r-xr-xr-x  1 root  wheel      3172 Feb 19 13:46 accf_dns.ko*
-r-xr-xr-x  1 root  wheel     12987 Feb 19 13:46 accf_dns.ko.symbols*
-r-xr-xr-x  1 root  wheel      5895 Feb 19 13:46 accf_http.ko*
-r-xr-xr-x  1 root  wheel     17891 Feb 19 13:46 accf_http.ko.symbols*
-r-xr-xr-x  1 root  wheel     24599 Feb 19 13:46 acpi_asus.ko*
-r-xr-xr-x  1 root  wheel     32263 Feb 19 13:46 acpi_asus.ko.symbols*
-r-xr-xr-x  1 root  wheel     13139 Feb 19 13:46 acpi_dock.ko*
-r-xr-xr-x  1 root  wheel     31683 Feb 19 13:46 acpi_dock.ko.symbols*
-r-xr-xr-x  1 root  wheel     13576 Feb 19 13:46 acpi_fujitsu.ko*
-r-xr-xr-x  1 root  wheel     27755 Feb 19 13:46 acpi_fujitsu.ko.symbols*
-r-xr-xr-x  1 root  wheel     19509 Feb 19 13:46 acpi_hp.ko*
-r-xr-xr-x  1 root  wheel     49459 Feb 19 13:46 acpi_hp.ko.symbols*
-r-xr-xr-x  1 root  wheel     20734 Feb 19 13:46 acpi_ibm.ko*
-r-xr-xr-x  1 root  wheel     35845 Feb 19 13:46 acpi_ibm.ko.symbols*
-r-xr-xr-x  1 root  wheel     11389 Feb 19 13:46 acpi_panasonic.ko*
-r-xr-xr-x  1 root  wheel     29594 Feb 19 13:46 acpi_panasonic.ko.symbols*
-r-xr-xr-x  1 root  wheel      7119 Feb 19 13:46 acpi_sony.ko*
-r-xr-xr-x  1 root  wheel     18779 Feb 19 13:46 acpi_sony.ko.symbols*
-r-xr-xr-x  1 root  wheel     13012 Feb 19 13:46 acpi_toshiba.ko*
-r-xr-xr-x  1 root  wheel     31687 Feb 19 13:46 acpi_toshiba.ko.symbols*
-r-xr-xr-x  1 root  wheel     21260 Feb 19 13:46 acpi_video.ko*
-r-xr-xr-x  1 root  wheel     39073 Feb 19 13:46 acpi_video.ko.symbols*
-r-xr-xr-x  1 root  wheel     19029 Feb 19 13:46 acpi_wmi.ko*
-r-xr-xr-x  1 root  wheel     49300 Feb 19 13:46 acpi_wmi.ko.symbols*
-r-xr-xr-x  1 root  wheel     15119 Feb 19 13:46 aesni.ko*
-r-xr-xr-x  1 root  wheel     43644 Feb 19 13:46 aesni.ko.symbols*
-r-xr-xr-x  1 root  wheel    121338 Feb 19 13:46 agp.ko*
-r-xr-xr-x  1 root  wheel    310879 Feb 19 13:46 agp.ko.symbols*
-r-xr-xr-x  1 root  wheel     28935 Feb 19 13:46 aha.ko*
-r-xr-xr-x  1 root  wheel     69987 Feb 19 13:46 aha.ko.symbols*
-r-xr-xr-x  1 root  wheel     20601 Feb 19 13:46 ahb.ko*
-r-xr-xr-x  1 root  wheel     59799 Feb 19 13:46 ahb.ko.symbols*
-r-xr-xr-x  1 root  wheel    152934 Feb 19 13:46 ahc.ko*
-r-xr-xr-x  1 root  wheel    399660 Feb 19 13:46 ahc.ko.symbols*
-r-xr-xr-x  1 root  wheel      8150 Feb 19 13:46 ahc_eisa.ko*
-r-xr-xr-x  1 root  wheel     48425 Feb 19 13:46 ahc_eisa.ko.symbols*
-r-xr-xr-x  1 root  wheel      8866 Feb 19 13:46 ahc_isa.ko*
-r-xr-xr-x  1 root  wheel     48788 Feb 19 13:46 ahc_isa.ko.symbols*
-r-xr-xr-x  1 root  wheel     40120 Feb 19 13:46 ahc_pci.ko*
-r-xr-xr-x  1 root  wheel    137840 Feb 19 13:46 ahc_pci.ko.symbols*
-r-xr-xr-x  1 root  wheel     55951 Feb 19 13:46 ahci.ko*
-r-xr-xr-x  1 root  wheel    112670 Feb 19 13:46 ahci.ko.symbols*
-r-xr-xr-x  1 root  wheel    254157 Feb 19 13:46 ahd.ko*
-r-xr-xr-x  1 root  wheel    698037 Feb 19 13:46 ahd.ko.symbols*
-r-xr-xr-x  1 root  wheel      9249 Feb 19 13:46 aibs.ko*
我这里仅仅列出了部分,至于有多少模块可以看/usr/src/sys/modules文件夹的Makefile:
ztz0223@BTazuo:/usr/src/sys/modules % less Makefile
# $FreeBSD: release/9.1.0/sys/modules/Makefile 237795 2012-06-29 15:57:25Z obrien $

.include <bsd.own.mk>

# Modules that include binary-only blobs of microcode should be selectable by
# MK_SOURCELESS_UCODE option (see below).

SUBDIR= \
        ${_3dfx} \
        ${_3dfx_linux} \
        ${_aac} \
        accf_data \
        accf_dns \
        accf_http \
        ${_acpi} \
        ae \
        ${_aesni} \
        age \
        ${_agp} \
        aha \
        ${_ahb} \
        ahci \
        ${_aic} \
        aic7xxx \
        aio \
        alc \
        ale \
        alq \
        ${_amd} \
        ${_amdsbwd} \
        ${_amdtemp} \
        amr \
        ${_an} \
        ${_aout} \
        ${_apm} \
        ${_arcmsr} \
        ${_arcnet} \
        ${_asmc} \
        ${_asr} \
        ata \
        ath \
        ath_pci \
        ${_auxio} \
        ${_bce} \
        bfe \
        bge \
        ${_bxe} \
        ${_bios} \
        ${_bktr} \
        ${_bm} \
        bridgestp \
        bwi \
        bwn \
        cam \
        ${_canbepm} \
        ${_canbus} \
这里也是仅仅列出了部分的需要完整编译的文件夹。

你可能感兴趣的:(FreeBSD 9.1内核kernel文件和模块文件)