<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://maytide.net/index.php</link> 
<description><![CDATA[gOxiA,苏繁,sufan,Microsoft MVP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[gOxiA=苏繁=SuFan Blog]]></copyright>
<item>
<link>https://maytide.net/read.php/788.htm</link>
<title><![CDATA[FreeBSD：编译内核]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[开源系统]]></category>
<pubDate>Tue, 14 Mar 2006 03:52:02 +0000</pubDate> 
<guid>https://maytide.net/read.php/788.htm</guid> 
<description>
<![CDATA[ 
	<p>      FreeBSD安装后，内核中包含很多在实际环境中用不到的项目，所以可以重新修改编译内核来达到优化的效果。下面就是我的具体操作：</p><p><div class="code"># cd /sys/i386/conf</p><p># cp GENERIC MAYTIDE （注释：MAYTIDE是我为这个新内核起的名字，你也可以根据自己的喜好命名。）</p><p># ee MAYTIDE</p><p>我重新修改过的内核文件内容如下：</p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\">#<br /># GENERIC -- Generic kernel configuration file for FreeBSD/i386<br />#<br /># For more information on this file, please read the handbook section on<br /># Kernel Configuration Files:<br />#<br />#    </font><a href=\"http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html\"><font style=\"BACKGROUND-COLOR: #e6e6e6\">http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html</font></a><br /><font style=\"BACKGROUND-COLOR: #e6e6e6\">#<br /># The handbook is also available locally in /usr/share/doc/handbook<br /># if you've installed the doc distribution, otherwise always see the<br /># FreeBSD World Wide Web server (</font><a href=\"http://www.FreeBSD.org/\"><font style=\"BACKGROUND-COLOR: #e6e6e6\">http://www.FreeBSD.org/</font></a><font style=\"BACKGROUND-COLOR: #e6e6e6\">) for the<br /># latest information.<br />#<br /># An exhaustive list of options and more detailed explanations of the<br /># device lines is also present in the ../../conf/NOTES and NOTES files.<br /># If you are in doubt as to the purpose or necessity of a line, check first<br /># in NOTES.<br />#<br /># $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.3.2.1 2005/10/28 19:22:41 jhb Exp $</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\">machine         i386<br />#cpu             I486_CPU<br />#cpu             I586_CPU<br />cpu             I686_CPU<br />ident           MAYTIDE</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># To statically compile in device wiring instead of /boot/device.hints<br />#hints          &quot;GENERIC.hints&quot;         # Default places to look for devices.</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\">makeoptions     DEBUG=-g                # Build kernel with gdb(1) debug symbols</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\">#options        SCHED_ULE               # ULE scheduler<br />options         SCHED_4BSD              # 4BSD scheduler<br />options         PREEMPTION              # Enable kernel thread preemption<br />options         INET                    # InterNETworking<br />options         INET6                   # IPv6 communications protocols<br />options         FFS                     # Berkeley Fast Filesystem<br />options         SOFTUPDATES             # Enable FFS soft updates support<br />options         UFS_ACL                 # Support for access control lists<br />options         UFS_DIRHASH             # Improve performance on big directories<br />options         MD_ROOT                 # MD is a potential root device<br />#options         NFSCLIENT               # Network Filesystem Client<br />#options         NFSSERVER               # Network Filesystem Server<br />#options         NFS_ROOT                # NFS usable as /, requires NFSCLIENT<br />#options         MSDOSFS                 # MSDOS Filesystem<br />options         CD9660                  # ISO 9660 Filesystem<br />options         PROCFS                  # Process filesystem (requires PSEUDOFS)<br />options         PSEUDOFS                # Pseudo-filesystem framework<br />options         GEOM_GPT                # GUID Partition Tables.<br />options         COMPAT_43               # Compatible with BSD 4.3 [KEEP THIS!]<br />options         COMPAT_FREEBSD4         # Compatible with FreeBSD4<br />options         COMPAT_FREEBSD5         # Compatible with FreeBSD5<br />options         SCSI_DELAY=5000         # Delay (in ms) before probing SCSI<br />options         KTRACE                  # ktrace(1) support<br />options         SYSVSHM                 # SYSV-style shared memory<br />options         SYSVMSG                 # SYSV-style message queues<br />options         SYSVSEM                 # SYSV-style semaphores<br />options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions<br />options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev<br />#options         AHC_REG_PRETTY_PRINT    # Print register bitfields in debug<br />                                        # output.  Adds ~128k to driver.<br />#options         AHD_REG_PRETTY_PRINT    # Print register bitfields in debug<br />                                        # output.  Adds ~215k to driver.<br />options         ADAPTIVE_GIANT          # Giant mutex is adaptive.</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\">device          apic                    # I/O APIC</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># Bus support.<br />#device          eisa<br />device          pci</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># Floppy drives<br />#device          fdc</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># ATA and ATAPI devices<br />device          ata<br />device          atadisk         # ATA disk drives<br />#device          ataraid         # ATA RAID drives<br />device          atapicd         # ATAPI CDROM drives<br />#device          atapifd         # ATAPI floppy drives<br />device          atapist         # ATAPI tape drives<br />options         ATA_STATIC_ID   # Static device numbering</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># SCSI Controllers<br />#device          ahb             # EISA AHA1742 family<br />#device          ahc             # AHA2940 and onboard AIC7xxx devices<br />#device          ahd             # AHA39320/29320 and onboard AIC79xx devices<br />#device          amd             # AMD 53C974 (Tekram DC-390(T))<br />#device          isp             # Qlogic family<br />#device         ispfw           # Firmware for QLogic HBAs- normally a module<br />#device          mpt             # LSI-Logic MPT-Fusion<br />#device         ncr             # NCR/Symbios Logic<br />#device          sym             # NCR/Symbios Logic (newer chipsets + those of `ncr')<br />#device          trm             # Tekram DC395U/UW/F DC315U adapters</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\">#device          adv             # Advansys SCSI adapters<br />#device          adw             # Advansys wide SCSI adapters<br />#device          aha             # Adaptec 154x SCSI adapters<br />#device          aic             # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.<br />#device          bt              # Buslogic/Mylex MultiMaster SCSI adapters</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\">#device          ncv             # NCR 53C500<br />#device          nsp             # Workbit Ninja SCSI-3<br />#device          stg             # TMC 18C30/18C50</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># SCSI peripherals<br />#device          scbus           # SCSI bus (required for SCSI)<br />#device          ch              # SCSI media changers<br />#device          da              # Direct Access (disks)<br />#device          sa              # Sequential Access (tape etc)<br />#device          cd              # CD<br />#device          pass            # Passthrough device (direct SCSI access)<br />#device          ses             # SCSI Environmental Services (and SAF-TE)</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># RAID controllers interfaced to the SCSI subsystem<br />#device          amr             # AMI MegaRAID<br />#device          arcmsr          # Areca SATA II RAID<br />#device          asr             # DPT SmartRAID V, VI and Adaptec SCSI RAID<br />#device          ciss            # Compaq Smart RAID 5*<br />#device          dpt             # DPT Smartcache III, IV - See NOTES for options<br />#device          hptmv           # Highpoint RocketRAID 182x<br />#device          iir             # Intel Integrated RAID<br />#device          ips             # IBM (Adaptec) ServeRAID<br />#device          mly             # Mylex AcceleRAID/eXtremeRAID<br />#device          twa             # 3ware 9000 series PATA/SATA RAID</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># RAID controllers<br />#device          aac             # Adaptec FSA RAID<br />#device          aacp            # SCSI passthrough for aac (requires CAM)<br />#device          ida             # Compaq Smart RAID<br />#device          mlx             # Mylex DAC960 family<br />#device          pst             # Promise Supertrak SX6000<br />#device          twe             # 3ware ATA RAID</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># atkbdc0 controls both the keyboard and the PS/2 mouse<br />device          atkbdc          # AT keyboard controller<br />device          atkbd           # AT keyboard<br />device          psm             # PS/2 mouse</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\">device          vga             # VGA video card driver</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\">device          splash          # Splash screen and screen saver support</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># syscons is the default console driver, resembling an SCO console<br />device          sc</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># Enable this for the pcvt (VT220 compatible) console driver<br />#device         vt<br />#options        XSERVER         # support for X server on a vt console<br />#options        FAT_CURSOR      # start with block cursor</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\">device          agp             # support several AGP chipsets</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># Power management support (see NOTES for more options)<br />#device         apm<br /># Add suspend/resume support for the i8254.<br />device          pmtimer</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># PCCARD (PCMCIA) support<br /># PCMCIA and cardbus bridge support<br />#device          cbb             # cardbus (yenta) bridge<br />#device          pccard          # PC Card (16-bit) bus<br />#device          cardbus         # CardBus (32-bit) bus</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># Serial (COM) ports<br />#device          sio             # 8250, 16[45]50 based serial ports</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># Parallel port<br />#device          ppc<br />#device          ppbus           # Parallel port bus (required)<br />#device          lpt             # Printer<br />#device          plip            # TCP/IP over parallel<br />#device          ppi             # Parallel port interface device<br />#device         vpo             # Requires scbus and da</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># If you've got a &quot;dumb&quot; serial or parallel PCI card that is<br /># supported by the puc(4) glue driver, uncomment the following<br /># line to enable it (connects to the sio and/or ppc drivers):<br />#device         puc</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># PCI Ethernet NICs.<br />device          de              # DEC/Intel DC21x4x (``Tulip'')<br />device          em              # Intel PRO/1000 adapter Gigabit Ethernet Card<br />device          ixgb            # Intel PRO/10GbE Ethernet Card<br />device          txp             # 3Com 3cR990 (``Typhoon'')<br />device          vx              # 3Com 3c590, 3c595 (``Vortex'')</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># PCI Ethernet NICs that use the common MII bus controller code.<br /># NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!<br />device          miibus          # MII bus support<br />device          bfe             # Broadcom BCM440x 10/100 Ethernet<br />device          bge             # Broadcom BCM570xx Gigabit Ethernet<br />device          dc              # DEC/Intel 21143 and various workalikes<br />device          fxp             # Intel EtherExpress PRO/100B (82557, 82558)<br />device          lge             # Level 1 LXT1001 gigabit Ethernet<br />device          nge             # NatSemi DP83820 gigabit Ethernet<br />device          nve             # nVidia nForce MCP on-board Ethernet Networking<br />device          pcn             # AMD Am79C97x PCI 10/100(precedence over 'lnc')<br />device          re              # RealTek 8139C+/8169/8169S/8110S<br />device          rl              # RealTek 8129/8139<br />device          sf              # Adaptec AIC-6915 (``Starfire'')<br />device          sis             # Silicon Integrated Systems SiS 900/SiS 7016<br />device          sk              # SysKonnect SK-984x &amp; SK-982x gigabit Ethernet<br />device          ste             # Sundance ST201 (D-Link DFE-550TX)<br />device          ti              # Alteon Networks Tigon I/II gigabit Ethernet<br />device          tl              # Texas Instruments ThunderLAN<br />device          tx              # SMC EtherPower II (83c170 ``EPIC'')<br />device          vge             # VIA VT612x gigabit Ethernet<br />device          vr              # VIA Rhine, Rhine II<br />device          wb              # Winbond W89C840F<br />device          xl              # 3Com 3c90x (``Boomerang'', ``Cyclone'')</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># ISA Ethernet NICs.  pccard NICs included.<br />device          cs              # Crystal Semiconductor CS89x0 NIC<br /># 'device ed' requires 'device miibus'<br />device          ed              # NE[12]000, SMC Ultra, 3c503, DS8390 cards<br />device          ex              # Intel EtherExpress Pro/10 and Pro/10+<br />device          ep              # Etherlink III based cards<br />device          fe              # Fujitsu MB8696x based cards<br />device          ie              # EtherExpress 8/16, 3C507, StarLAN 10 etc.<br />device          lnc             # NE2100, NE32-VL Lance Ethernet cards<br />device          sn              # SMC's 9000 series of Ethernet chips<br />device          xe              # Xircom pccard Ethernet</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># ISA devices that use the old ISA shims<br />#device         le</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># Wireless NIC cards<br />#device          wlan            # 802.11 support<br />#device          an              # Aironet 4500/4800 802.11 wireless NICs.<br />#device          awi             # BayStack 660 and others<br />#device          ral             # Ralink Technology RT2500 wireless NICs.<br />#device          wi              # WaveLAN/Intersil/Symbol 802.11 wireless NICs.<br />#device         wl              # Older non 802.11 Wavelan wireless NIC.</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># Pseudo devices.<br />device          loop            # Network loopback<br />device          random          # Entropy device<br />device          ether           # Ethernet support<br />device          sl              # Kernel SLIP<br />device          ppp             # Kernel PPP<br />device          tun             # Packet tunnel.<br />device          pty             # Pseudo-ttys (telnet etc)<br />device          md              # Memory &quot;disks&quot;<br />device          gif             # IPv6 and IPv4 tunneling<br />device          faith           # IPv6-to-IPv4 relaying (translation)</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># The `bpf' device enables the Berkeley Packet Filter.<br /># Be aware of the administrative consequences of enabling this!<br /># Note that 'bpf' is required for DHCP.<br />device          bpf             # Berkeley packet filter</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># USB support<br />#device          uhci            # UHCI PCI-&gt;USB interface<br />#device          ohci            # OHCI PCI-&gt;USB interface<br />#device          ehci            # EHCI PCI-&gt;USB interface (USB 2.0)<br />#device          usb             # USB Bus (required)<br />#device         udbp            # USB Double Bulk Pipe devices<br />#device          ugen            # Generic<br />#device          uhid            # &quot;Human Interface Devices&quot;<br />#device          ukbd            # Keyboard<br />#device          ulpt            # Printer<br />#device          umass           # Disks/Mass storage - Requires scbus and da<br />#device          ums             # Mouse<br />#device          ural            # Ralink Technology RT2500USB wireless NICs<br />#device          urio            # Diamond Rio 500 MP3 player<br />#device          uscanner        # Scanners<br /># USB Ethernet, requires miibus<br />#device          aue             # ADMtek USB Ethernet<br />#device          axe             # ASIX Electronics USB Ethernet<br />#device          cdce            # Generic USB over Ethernet<br />#device          cue             # CATC USB Ethernet<br />#device          kue             # Kawasaki LSI USB Ethernet<br />#device          rue             # RealTek RTL8150 USB Ethernet</font></p><p><font style=\"BACKGROUND-COLOR: #e6e6e6\"># FireWire support<br />#device          firewire        # FireWire bus code<br />#device          sbp             # SCSI over FireWire (Requires scbus and da)<br />#device          fwe             # Ethernet over FireWire (non-standard!)</div></font></p><p><font style="BACKGROUND-COLOR: #ffffff">      编辑好内核后就可以编译安装这个新内核。</font></p><p><div class="code"># /usr/sbin/config MAYTIDE</p><p># cd ../compile/MAYTIDE</p><p># make depend</p><p># make</p><p># make install</div></p><p>      编译安装完成后重新启动，就会发现系统使用的是新的内核了。</p><p>      我在虚拟机种编译感觉CPU占用率特别高，整个过程用了近1个小时。</p>
]]>
</description>
</item><item>
<link>https://maytide.net/read.php/788.htm#blogcomment3</link>
<title><![CDATA[[评论] FreeBSD：编译内核]]></title> 
<author>gOxiA &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 17 Mar 2006 04:02:07 +0000</pubDate> 
<guid>https://maytide.net/read.php/788.htm#blogcomment3</guid> 
<description>
<![CDATA[ 
	今天从网上看到更新stable源代码后的编译安装，不知道和我这个有什么不同，郁闷，xNIX头大。先记录到这里吧！<br/>在执行完cvsup后：<br/># cd &nbsp;/usr/src<br/># make buildworld<br/># make installkernel<br/># mergemaster -p<br/># make installworld<br/># mergemaster -i<br/># reboot
]]>
</description>
</item>
</channel>
</rss>