2009年1月10日 星期六
kernel 重置
Kernel 重製:
流程:
- 設定 kernel 選項
- 編譯 kernel
- 編譯 modules, 安裝 modules
- 安裝 kernel
- 設定 boot loader
- 重新開機
步驟:
- cd 您解壓後的目錄下的 linux 目錄中
- make mrproper
- make xconfig (menuconfig 或 config), 它會存成 .config
- make dep
- make bzImage
- make modules
- make modules_install
- cp arch/boot/i386/bzImage /boot
- 編輯 /etc/lilo.conf 或 /boot/grub/grub.conf
- 執行 lilo -v -v; 若是使用 grub, 則不必.
- reboot
2009年1月8日 星期四
kthread
find current kernel threads in the system:
ps -ef
the process with [ ] is kernel thread
is kernel thread preemptive?
1. if CONFIG_PREEMPT is defined, kernel thread is preemptive
2. if CONFIG_PREEMPT is not defined, kernel thread is not preemptive. It will freeze the system if it doesn’t go to sleep.
kthread_create
ps -ef
the process with [ ] is kernel thread
is kernel thread preemptive?
1. if CONFIG_PREEMPT is defined, kernel thread is preemptive
2. if CONFIG_PREEMPT is not defined, kernel thread is not preemptive. It will freeze the system if it doesn’t go to sleep.
kthread_create
訂閱:
文章 (Atom)