Subscribe to RSS Subscribe to Comments

勞改犯的印表機

FreeBSD kernel note

在同步src目录完成之后就是要编译新的内核了.步骤如下

    编辑新的内核配置文件

    #cd /usr/src/sys/i386/conf
    #cp GENERIC GAWAIN
    #vi GAWAIN

    除去一些与自己机器无关的以及将来也不会出现的东东.
    比如RAID,无线网卡等等(桌面系统).注意依赖关系,我在关闭无线网卡的时候就漏了一个option ural #Ralik Technology RT2500USB wireless NICS, 以至于在make buildkernel的时候出错了.
    make buildkernel
    #cd /usr/src
    #make buildkernel KERNCONF=GAWAIN

    make installkernel
    #make installkernel KERNCONF=GAWAIN

    有时候我们需要buildworld才能使一些系统工具继续使用
    #cd /usr/src
    #make buildworld
    #make installworld

    我在make installworld时出现了一点错误:意思是安装时少了一个”audit”组。在UPDATING中写着的是

    20060204: “The ‘audit’ group was added to suppout the new auditing functionality in the system. Be sure to follow the directions for updating, including the requirement to run mergemaster -p.”

    修:

    #pw groupadd audit
    #make installworld

    reboot
    这下就可以重新启动看一下了。
    #reboot

    启动之后可以这样看一下现在运行的kernel信息

    #uname -a

FreeBSD的kernel我就是这样搞定了。

感谢:ZoomQuiet

No comments yet. Be the first.

Leave a reply

You must be logged in to post a comment.

Based on FluidityUpload by AK47 | ITech . Theme Redesigned by Kaushal Sheth Sponsored by Send Flowers