Minggu, 09 Maret 2008

Compail Kernel File BSD

kompile merupakan suatu cara untuk mengoptimalkan OS BSD terhadap hadware yang kita milikisehingga kenerja hadwer dan sofware dapat bekerja dengan optimal.
PROSES PENGKOMPILANYA YAITU
1. login sebagai root pada OS bsd Anda

2. kemudian masuk pada pada derektori /conf dng printah#cd /usr/src/sys/i386/conf#ls perintah ini digunaka untuk melihat isi dari deroktori conf.cvsignore GENERIC.hints NOTES SMPDEFAULTS MYKERNEL PAE XBOXGENERIC Makefile ROUTER#cp GENERIC MYKERNELperintah ini digunaka untuk mengkopi file GENERIC dan disimpan dengan nama MYKERNELMYKERNEL dapat diberi nama sesuka kita.

3. ketikkan perintah#vi MYKERNEL

# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.13 2006/10/09 18:41:36 simon Exp $
machine i386cpu I486_CPUcpu I586_CPUcpu I686_CPUident GENERIC
# To statically compile in device wiring instead of /boot/device.hints#hints “GENERIC.hints” # Default places to look for devices.
makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
options SCHED_4BSD # 4BSD scheduleroptions PREEMPTION # Enable kernel thread preemptionoptions INET # InterNETworkingoptions INET6 # IPv6 communications protocolsoptions FFS # Berkeley Fast Filesystemoptions SOFTUPDATES # Enable FFS soft updates supportoptions UFS_ACL # Support for access control listsoptions UFS_DIRHASH # Improve performance on big directoriesoptions MD_ROOT # MD is a potential root deviceoptions NFSCLIENT # Network Filesystem Clientoptions NFSSERVER # Network Filesystem Serveroptions NFS_ROOT # NFS usable as /, requires NFSCLIENToptions MSDOSFS # MSDOS Filesystemoptions CD9660 # ISO 9660 Filesystemoptions PROCFS # Process filesystem (requires PSEUDOFS)options PSEUDOFS # Pseudo-filesystem frameworkoptions GEOM_GPT # GUID Partition Tables.options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!]options COMPAT_FREEBSD4 # Compatible with FreeBSD4options COMPAT_FREEBSD5 # Compatible with FreeBSD5options SCSI_DELAY=5000 # Delay (in ms) before probing SCSIoptions KTRACE # ktrace(1) supportoptions SYSVSHM # SYSV-style shared memoryoptions SYSVMSG # SYSV-style message queuesoptions SYSVSEM # SYSV-style semaphoresoptions _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensionsoptions KBD_INSTALL_CDEV # install a CDEV entry in /devoptions ADAPTIVE_GIANT # Giant mutex is adaptive.
edit driver 2 yang gak penting dan gak guna seperti hd scsi adn yang lain lainnn oke

4. untuk melihat hadware yang kita guankan saat ini ketikkan perintah:#vi /var/run/dmesg.boot /var/run/dmesg.boot
Copyright (c) 1992-2006 The FreeBSD Project.
opyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994The Regents of the University of California. All rights reserved.FreeBSD is a registered trademark of The FreeBSD Foundation.FreeBSD 6.2-RC2 #0: Mon Dec 17 20:08:36 CET 2007root@idur.com:/usr/src/sys/i386/compile/MYKERNELTimecounter “i8254″ frequency 1193182 Hz quality 0CPU: Intel(R) Pentium(R) 4 CPU 1.50GHz (928.31-MHz 686-class CPU)Origin = “GenuineIntel” Id = 0xf12 Stepping = 2Features=0×780a17breal memory = 111149056 (106 MB)avail memory = 99172352 (94 MB)kbd1 at kbdmux0ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)cpu0 on motherboardpcib0: pcibus 0 on motherboardpci0: on pcib0isab0: at device 7.0 on pci0isa0: on isab0atapci0: port 0×1f0-0×1f7,0×3f6,0×170-0×177,0×376,0xffa0-0xffaf at device 7.1 on pci0ata0: on atapci0ata1: on atapci0pci0: at device 7.2 (no driver attached)pci0: at device 7.3 (no driver attached)pci0: at device 8.0 (no driver attached)de0: port 0xec00-0xec7f mem 0xfebff000-0xfebfffff irq 11 at device 10.0 on pci0de0: 21140A [10-100Mb/s] pass 2.0de0: Ethernet address: 00:03:ff:81:4e:f0pmtimer0 on isa0orm0: at iomem 0xc0000-0xc9fff on isa0atkbdc0: at port 0×60,0×64 on isa0atkbd0: irq 1 on atkbdc0

Tidak ada komentar: