Compile file kernel BSD
kompile merupakan suatu cara untuk mengoptimalkan OS BSD terhadap hadware yang kita miliki
sehingga 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 SMP
DEFAULTS MYKERNEL PAE XBOX
GENERIC Makefile ROUTER
#cp GENERIC MYKERNEL
perintah ini digunaka untuk mengkopi file GENERIC dan disimpan dengan nama MYKERNEL
MYKERNEL 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 i386
cpu I486_CPU
cpu I586_CPU
cpu I686_CPU
ident 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 scheduler
options PREEMPTION # Enable kernel thread preemption
options INET # InterNETworking
options INET6 # IPv6 communications protocols
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options MD_ROOT # MD is a potential root device
options NFSCLIENT # Network Filesystem Client
options NFSSERVER # Network Filesystem Server
options NFS_ROOT # NFS usable as /, requires NFSCLIENT
options MSDOSFS # MSDOS Filesystem
options CD9660 # ISO 9660 Filesystem
options PROCFS # Process filesystem (requires PSEUDOFS)
options PSEUDOFS # Pseudo-filesystem framework
options GEOM_GPT # GUID Partition Tables.
options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options 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, 1994
The 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 2007
root@idur.com:/usr/src/sys/i386/compile/MYKERNEL
Timecounter “i8254″ frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 1.50GHz (928.31-MHz 686-class CPU)
Origin = “GenuineIntel” Id = 0xf12 Stepping = 2
Features=0×780a17b<FPU,VME,PSE,TSC,MSR,PAE,CX8,PGE,CMOV,MMX,FXSR,SSE,SSE2>
real memory = 111149056 (106 MB)
avail memory = 99172352 (94 MB)
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
cpu0 on motherboard
pcib0: <Intel 82443BX host to PCI bridge (AGP disabled)> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0×1f0-0×1f7,0×3f6,0×170-0×177,0×376,0xffa0-0xffaf at device 7.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <old, non-VGA display device> at device 7.2 (no driver attached)
pci0: <bridge> at device 7.3 (no driver attached)
pci0: <display, VGA> at device 8.0 (no driver attached)
de0: <Digital 21140A Fast Ethernet> port 0xec00-0xec7f mem 0xfebff000-0xfebfffff irq 11 at device 10.0 on pci0
de0: 21140A [10-100Mb/s] pass 2.0
de0: Ethernet address: 00:03:ff:81:4e:f0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xc9fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0×60,0×64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
Belum ada komentar.
Tinggalkan komentar
-
Arsip
- April 2008 (1)
- Maret 2008 (4)
- Februari 2008 (9)
- Januari 2008 (1)
- Desember 2007 (5)
-
Kategori
-
RSS
RSS Entri
Komentar RSS