Compile kernel Vmware
root@edu:/usr/src# tar -jxvf /home/linux-2.6.15.tar.bz2
root@edu:/usr/src# ln -s linux-2.6.15/ linux
root@edu:/usr/src# cd linux
root@edu:/usr/src/linux# pico -w Makefile
*Edit kalimat berikut
EXTRAVERSION = .4
HOSTCFLAGS = -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer
HOSTCXXFLAGS = -O2
*menjadi
EXTRAVERSION = -=tanggal-kompile=-
HOSTCFLAGS = -Wall -Wstrict-prototypes -O3 -fomit-frame-pointer
HOSTCXXFLAGS = -O3
root@edu:/usr/src/linux# make clean
root@edu:/usr/src/linux# make menuconfig
sesuaikan dg hardware anda
root@edu:/usr/src/linux# make bzImage && make modules && make modules_install
root@xinot-edu:/usr/src/linux# cp System.map /boot/
root@xinot-edu:/usr/src/linux# cp arch/i386/boot/bzImage /boot/
root@xinot-edu:/usr/src/linux# pico -w /etc/lilo.conf
edit lilo Anda sesuaikan dg nama kernel baru Anda
Berikut adalah contoh conf lilo.conf nya
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Linux bootable partition config begins
#kernel lama orig
#image =
/boot/vmlinuz
# root = /dev/hda3
# label = Linux
#
read-only
#kernel baru anda
image = /boot/bzImage
root =
/dev/hda3
label = coreSyu
read-only
# Linux bootable partition config ends
root@xinot-edu:/usr/src/linux# lilo
------------------------------------
Problem saat compile
/bin/sh: cmp: command not found
Inconsistent kallsyms data
Try setting CONFIG_KALLSYMS_EXTRA_PASS
make: *** [vmlinux]
Error 1
Solusi
ambil paket diffutils-2.8.1-i386-1.tgz dari CD slack 10.2 dir slackware/ap/
root@xinot-edu:/usr/src/linux# installpkg diffutils-2.8.1-i386-1.tgz
No comments:
Post a Comment