[code:1]
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
컴파일 옵션을
gcc -D__KERNEL__ -DMODULE -c -O2 test.c
이렇게 했습니다.
이렇게 해서 생긴 obj파일을 "insmod test.o" 를 했더니
"kernel--module version mismatch"라고 하면서 밑에 뭐라고 나오더군여.
이게 뭐때문에 그런건지~~~ㅡ.ㅡ
문서를 찾아봐도 왜 그런건지 찾을수가 없더라구요.