- 博客(2)
- 收藏
- 关注
原创 第一个内核模块Hello Kernel
<br />1.编译内核模块<br />hello.c<br />#include<linux/init.h><br />#include<linux/module.h><br />#include<linux/kernel.h><br />static int hello_init(void)<br />{<br /> printk(KERN_ALERT "Ink is coming~/n");<br /> return 0;<br />}<br />static void hello_exit(void
2011-04-17 21:23:00
380
原创 编译安装内核成功
<br />最近几天编译内核2.6.38.3,在make menuconfig之后直接make,大约半个小时后make完成,拷贝bzImage到/boot,修改menu.lst,从新内核启动,失败。<br />提示: could not find filesystem '/dev/root'<br /> <br />经过查找资料,最后新内核的redhat 5.3启动成功。<br />(1)修改.configure文件中的注释掉的CONFIG_SYSFS_DEPRECATED_V2为: CONFIG_SYSF
2011-04-17 16:37:00
446
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅