device npx0 at nexus? port IO_NPX irq 13
# Serial (COM) ports
device sio0 at isa? port IO_COM1 flags 0x10 irq 4
# 我用的是8139和Dlink DFE-530TX网卡,大家可根据自己的网卡型号保留或删除
# 使用公共的MII总线控制器代码的PCI以太网适配器
# 注意:一定要保留"device miibus"以确保可用
# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the "device miibus" line in order to use these NICs!
device miibus # MII bus support
device fxp # Intel EtherExpress PRO/100B (82557, 82558)
device rl # RealTek 8129/8139
device vr # VIA Rhine, Rhine II
device xl # 3Com 3c90x (``Boomerang"", ``Cyclone"")
# Pseudo devices - the number indicates how many units to allocate.
pseudo-device loop # Network loopback
pseudo-device ether # Ethernet support
pseudo-device sl 1 # Kernel SLIP
pseudo-device ppp 1 # Kernel PPP
pseudo-device tun # Packet tunnel.
pseudo-device pty # Pseudo-ttys (telnet etc)
pseudo-device md # Memory "disks"
pseudo-device gif # IPv6 and IPv4 tunneling
pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation)
# The `bpf" pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device bpf #Berkeley packet filter
(完)
我用的是8139网卡和Dlink DFE-530TX网卡,如果你用其他型号的网卡,需要察看当前目录的GENERIC 内核文件,找到描述自己的网卡型号的段并将其添加到新的内核文件里 。其他的不改直接拷贝过来就可以用了 。
接下来编译安装新内核:
# /usr/sbin/config kernel_wwwx #kernel_wwwx为你的内核文件名
# cd ../../compile/kernel_wwwx
# make depend
# make
# make install
重新启动(reboot)
如果系统升级过源代码树,按下面方法编译内核:
# cd /usr/src
# make kernel KERNCONF=kernel_wwwx #kernel_wwwx为你的内核文件名
重新启动
推荐阅读
- 喜获丰收的诗句 喜获丰收的古诗
- 湿地种什么果树好
- 如何找回删除的视频短信
- FreeBSD下的内存文件系统
- 海贼王罗宾简笔画
- 今日头条客服在哪里找
- 前摄像头黑屏是怎么回事
- 雅乐之舞怎么栽
- 有什么赞美篆刻的句子
- 右胸神经痛症状是什么