I.MX6 linux kernel编译错误处理
/********************************************************************************* I.MX6 linux kernel编译错误处理* 声明:* 本文仅仅是对I.MX6的linux内核编译出错,记录其对应的处理方法。** 2015-10-15 晴 深圳 南山平山村 曾剑锋*******************************************************************************/参考文章:1. Android JB4.2.2_1.0.0 issue: MFG Firmware build does not compilehttps://community.freescale.com/thread/3074772. honycomb-x86: build failed on ubuntu for traget-product 'vm'https://code.google.com/p/android-x86/issues/detail?id=4873. AR1021In Productionhttp://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en557224 一、编译错误:LD init/built-in.oLD .tmp_vmlinux1drivers/built-in.o: In function `mxc_hdmi_remove':clkdev.c:(.text+0x125e0): undefined reference to `switch_dev_unregister' clkdev.c:(.text+0x125ec): undefined reference to `switch_dev_unregister' drivers/built-in.o: In function `hotplug_worker':clkdev.c:(.text+0x1445c): undefined reference to `switch_set_state' clkdev.c:(.text+0x1446c): undefined reference to `switch_set_state' clkdev.c:(.text+0x1466c): undefined reference to `switch_set_state' clkdev.c:(.text+0x1467c): undefined reference to `switch_set_state' drivers/built-in.o: In function `mxc_hdmi_probe':clkdev.c:(.devinit.text+0x3c8): undefined reference to `switch_dev_register' clkdev.c:(.devinit.text+0x3d4): undefined reference to `switch_dev_register' sound/built-in.o: In function `usb_audio_disconnect':last.c:(.text+0x16b20): undefined reference to `switch_set_state' last.c:(.text+0x16b28): undefined reference to `switch_dev_unregister' sound/built-in.o: In function `usb_audio_probe':last.c:(.text+0x16f84): undefined reference to `switch_dev_register' last.c:(.text+0x17008): undefined reference to `switch_set_state' last.c:(.text+0x170e4): undefined reference to `switch_dev_register' sound/built-in.o: In function `hp_jack_status_check':last.c:(.text+0x368b0): undefined reference to `switch_set_state' last.c:(.text+0x36944): undefined reference to `switch_set_state' sound/built-in.o: In function `imx_wm8962_remove':last.c:(.devexit.text+0x2b8): undefined reference to `switch_dev_unregister' sound/built-in.o: In function `imx_wm8962_probe':last.c:(.devinit.text+0x6e4): undefined reference to `switch_dev_register' last.c:(.devinit.text+0x718): undefined reference to `switch_set_state' make: *** [.tmp_vmlinux1] Error 1解决方法:主要是make menuconfig打开swith这个选项,详情参考文章1。二、编译错误:LD kernel/built-in.oCC drivers/gpu/drm/drm_auth.oIn file included from include/drm/drmP.h:76:0,from drivers/gpu/drm/drm_auth.c:36:include/drm/drm.h:48:23: fatal error: sys/types.h: No such file or directorycompilation terminated.make[3]: *** [drivers/gpu/drm/drm_auth.o] Error 1make[2]: *** [drivers/gpu/drm] Error 2make[1]: *** [drivers/gpu] Error 2make: *** [drivers] Error 2解决方法:由于采用了Android自带的编译器,本来就不能用Android的编译器,导致出现了这个问题,所以换成Linux Qt的编译器就行了。三、编译错误:CC [M] drivers/usb/gadget/audio.oCC [M] drivers/usb/gadget/ether.odrivers/usb/gadget/ether.c: In function 'rndis_do_config':drivers/usb/gadget/ether.c:249:2: error: too few arguments to function 'rndis_bind_config'drivers/usb/gadget/f_rndis.c:788:1: note: declared heredrivers/usb/gadget/ether.c:250:1: warning: control reaches end of non-void function [-Wreturn-type]make[3]: *** [drivers/usb/gadget/ether.o] Error 1make[2]: *** [drivers/usb/gadget] Error 2make[1]: *** [drivers/usb] Error 2make: *** [drivers] Error 2解决方法:make menuconfig 去掉这部分驱动也许就行了。目前本人通过选择一个能够编译通过的文件系统Device Drivers ---> [*] USB support ---> <*> USB Gadget Support ---><*> USB Gadget Drivers (Gadget Filesystem (EXPERIMENTAL)) --->(X) Gadget Filesystem (EXPERIMENTAL) 四、编译错误:Qt@aplex:~/kernel/linuxQt_kernel$ make uImageCHK include/linux/version.hCHK include/generated/utsrelease.hmake[1]: `include/generated/mach-types.h' is up to date.CALL scripts/checksyscalls.shCHK include/generated/compile.hCC drivers/input/touchscreen/ar1020-spi.odrivers/input/touchscreen/ar1020-spi.c: In function 'ar1020_spi_probe':drivers/input/touchscreen/ar1020-spi.c:801:2: error: implicit declaration of function 'set_irq_type' [-Werror=implicit-function-declaration]drivers/input/touchscreen/ar1020-spi.c:802:13: warning: ignoring return value of 'request_irq', declared with attribute warn_unused_result [-Wunused-result]cc1: some warnings being treated as errorsmake[3]: *** [drivers/input/touchscreen/ar1020-spi.o] Error 1make[2]: *** [drivers/input/touchscreen] Error 2make[1]: *** [drivers/input] Error 2make: *** [drivers] Error 2解决方法://set_irq_type(i, IRQ_TYPE_EDGE_RISING); // 将中断引发类型放在request_irq()中if (0 >= (ret=request_irq(i, test_irq_handler_func, IRQ_TYPE_EDGE_RISING,"AR1020 IRQ", priv))){......}
I.MX6 linux kernel编译错误处理相关推荐
- 编译linux内核的错误,linux内核编译错误
原标题:linux内核编译错误 内核版本:2.6.14 交叉编译器: -linux-gcc 4.3.3 错误: arch/arm/mm/alignment.c: In function 'proc_a ...
- I.MX6 Linux kernel LVDS backlight enable
/**************************************************************************** I.MX6 Linux kernel LVD ...
- linux内核使用make编译出错,linux 内核编译错误 make menuconfig
linux 内核编译错误 make menuconfig [root@fedora /usr/src/kernels/2.6.21-1.3194.fc7-i686]#make menuconfig H ...
- Linux kernel编译时编译选项多选一如何固化在config文件
每次在进行裁剪的Linux kernel编译时,都会碰到有提示,让你在某些编译选项多选一,如: Initialize kernel stack variables at function entry ...
- 在linux上编译错误,Daemontools 在 Linux上编译错误解决
在Linux上编译daemontools出现错误 执行install出现 /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .t ...
- Linux kernel编译、安装及指定默认内核版本启动
内容转自: https://blog.csdn.net/weixin_41666796/article/details/96434229 https://blog.mtkfan.com/post-43 ...
- Linux kernel 编译问题记录【转】
本文转载自:http://sunyongfeng.com/201701/programmer/linux/kernel_compile_fail.html 编译内核出现以下错误 Can't use ' ...
- linux 内核编译错误 error: conflicting types for ‘syscall_trace_enter’
编译内核出现如下错误: arch/x86/kernel/ptrace.c:1472:17: error: conflicting types for 'syscall_trace_enter' In ...
- Android内核开发 Goldfish Linux Kernel编译及安卓虚拟机测试
本文出处: http://blog.csdn.net/leytton/article/details/52736549 1.配置交叉编译环境 作者用的是android-ndk的/交叉编译工具 方法一: ...
- Linux·内核编译错误
1.编译内核出现:cc1: error: code model kernel does not support PIC mode 解决办法: (1)删除该模块目录下的.cache.mk文件就好了,重新 ...
最新文章
- 阿里云、浙江大学成立“智云实验室” 打造中国高校数字化样本
- Mybatis打印调试sql的两种方式
- UBUNTU安装 Rabbitvsc可视化版本控制客户端软件
- 学习笔记68—PhotoShop常见快捷键
- 微信公众平台 分享到朋友圈 js代码
- 大于号小于号_一年级数学上册20以内填大于号小于号专项练习1000题!【有电子版】...
- 联想拯救者Y90关键参数曝光:22GB运存+640GB超大存储
- 亿元大奖后抑郁被网友质疑卖惨 信小呆:不想再被打扰
- Linux 命令(133)—— groupdel 命令
- php全局变量global和$GLOBALS
- Vim激荡30年发展史
- 【网易云信】直播推流SDK特性、系统架构、使用说明
- 用python做外贸
- 操作——【1.8 关于音高、时值、位置 】(二)
- UDP是全双工通信的吗
- [python]计算miou的方式
- wps怎么把字缩到最小_WPS文字如何调节字体大小突破字号72的限制实现大小随意调...
- MySQL——数据库基本操作(教程)
- OmniPlan-Mac上使用的项目管理软件
- python网页登录钉钉_【Python】关于钉钉接口使用Python,Post 500报错