Minggu, 05 Juli 2009

Compile Kernel OpenBSD

From the later forget, note aja. His is old .....
Here I am using OpenBSD 4.1.
Dmassage Add a package to ease pendeteksian new hardware to the kernel. Can be taken from the installation CD.
# mount / dev/cd0a / mnt
# pkg_add-v / mnt/packages/dmassage-0.6.tgz

So now we start compilenya
# cd / usr/src/sys/arch/i386/conf
# s dmassage-generic> KERNELKU
# vi KERNELKU
KERNELKU for a few adjustments, such as processor type, lan card etc..
# config KERNELKU
# cd .. / compile / KERNELKU /
# make clean & & make depend & & make
# make install

You make userland (so far I have not know this function from userland, seniorku according to menyetabilkan binarinya), can be seen in http://openbsd.org/
# rm-rf / usr / obj / *
# cd / usr / src
# make obj
# cd / usr / src / etc & & env DESTDIR = / make distrib-dirs
# cd / usr / src
# make build

While nunggu be left to sleep first.
I wake up, I used to backup original kernel
# cp / bsd / bsd.asli
# cd / usr/src/sys/arch/i386/compile/KERNELKU /
# cp bsd / KERNELKU
# reboot

Dah finished booting now fit to live load and then enter KERNELKU
How ngecek use a command
# uname-a
OpenBSD proxy 4.1 KERNELKU # 0 i386

Tidak ada komentar:

Posting Komentar