阅读背景:

Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are missing

来源:互联网 
//刚下载的linux源代码,一个简单的hello驱动都没有编译通过
//下面是驱动源代码

#include <linux/init.h>
#include <linux/module.h> 

static int hello_init(void)
{
	printk(KERN_ALERT "Hello, Tekkaman Ninja !\n");
	return 0;
}

static void hello_exit(void)
{
	printk(KERN_ALERT "Goodbye, Tekkaman Ninja !\n Love Linux !Love ARM ! Love KeKe !\n");
}

module_init(hello_init);
module_exit(hello_exit);



MODULE_LICENSE("Dual BSD/GPL");
//刚下载的linux源代码,一个简单的hello驱动都没有编译通过
//下面是驱动源代码




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: