include/linux/autoconf.h or include/config/auto.conf are missing.
来源:互联网 发布:我是大美人淘宝官方店 编辑:程序博客网 时间:2024/05/16 07:45
做了一个简单的设备驱动程序:
ARM_hello.c
#include <linux/module.h>static int hello_init(void){ printk("Hello, I am coming !\n"); return 0;}static void hello_exit(void){ printk("Goodbye, I Love Linux ! I Love ARM ! \n");}module_init(hello_init);module_exit(hello_exit);
Makefile:
#--------------------------for ARM----------------------------------CROSS_COMPILE := /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-CC :=$(CROSS_COMPILE)gccKERNEL_DIR := /opt/FriendlyARM/mini2440/linux-2.6.32.2#------------------------------------------------------------------obj-m :=ARM_hello.oPWD := $(shell pwd)all:make -C $(KERNEL_DIR) M=$(PWD) modulesclean:rm -fr *.o *.ko *.mod.o *.mod.c .*.cmd *.order *.*s *~ .tmp*
执行
$ sudo make
出现如下错误:
ERROR: Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it.
网上都说是要编译内核什么,make menuconfig 什么的,当时不敢随便编译内核,怕把这个系统搞死了。
后来,突然想起来手册我没有完全看完,于是去翻手册,原来真的要编译内核,这个内核是ARM的内核,因为需要在PC上制造出一个和ARM也一样的内核编译环境,也就是交叉编译环境,所以,按照手册,编译了一下ARM的那个内核。
具体操作在我的另一篇博文中:交叉编译环境之编译内核阶段各种错误
- include/linux/autoconf.h or include/config/auto.conf are missing.
- Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are missing
- 编译内核模块出现 include/linux/autoconf.h or include/config/auto.conf are missing.解决方法
- Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are m
- Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are m
- include/generated/autoconf.h
- auto.conf, auto.conf.cmd, autoconf.h
- auto.conf, auto.conf.cmd, autoconf.h
- No rule to make target `include/config/auto.conf'
- 如何让include/config/auto.conf超越终极目标的
- No rule to make target `include/config/auto.conf', needed by `include/ config/kernel.release'. stop
- 《Linux内核Makefile分析》之 auto.conf, auto.conf.cmd, autoconf.h(转载)
- 编译内核出现:没有规则可以创建kernel.release需要的目标include/config/auto.conf
- #include <stddef.h> or #include <cstddef>
- include/linux/init.h
- include/linux/mmzone.h
- include/linux/gfp.h
- include/linux/kernel.h
- 判断这5个数值是否连续相邻
- 在Visual Studio 2010[VC++]中使用ffmpeg类库
- 在 WINDOWS SERVER 2008 X86 SP2 上安装C++BUILDER 6 SP4
- 绝对定位于浮动的区别于运用
- java学习:java生成随机数
- include/linux/autoconf.h or include/config/auto.conf are missing.
- Android实现程序前后台切换效果
- 数通基础知识之一Access、Hybrid和Trunk三种模式的理解
- iptables 分析
- Holedox Moving----POJ_1324----BFS+状态压缩
- {{JS}}document.write()方法详解
- Android关于三种进度条的使用
- python杂记
- 表单中文本框和密码框对齐