博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
记一次由于rootfs过大引起的内核编译错误
阅读量:4108 次
发布时间:2019-05-25

本文共 2591 字,大约阅读时间需要 8 分钟。

记一次由于rootfs过大引起的内核编译错误

前些日子一直在用NFS作为rootfs启动。今日想用initramfs作为rootfs制作独立运行的系统。
可是内核编译到链接阶段一直报这个错误
LD      .tmp_vmlinux1
arch/arm/kernel/head.o: In function `__enable_mmu_end':
/home/skykingf/devlop/linux-2.6.38.2/arch/arm/kernel/head-common.S:32: relocation truncated to fit: R_ARM_CALL against symbol `printascii' defined in .text section in arch/arm/kernel/built-in.o
/home/skykingf/devlop/linux-2.6.38.2/arch/arm/kernel/head-common.S:34: relocation truncated to fit: R_ARM_CALL against symbol `printhex8' defined in .text section in arch/arm/kernel/built-in.o
/home/skykingf/devlop/linux-2.6.38.2/arch/arm/kernel/head-common.S:36: relocation truncated to fit: R_ARM_CALL against symbol `printascii' defined in .text section in arch/arm/kernel/built-in.o
/home/skykingf/devlop/linux-2.6.38.2/arch/arm/kernel/head-common.S:43: relocation truncated to fit: R_ARM_CALL against symbol `printhex8' defined in .text section in arch/arm/kernel/built-in.o
/home/skykingf/devlop/linux-2.6.38.2/arch/arm/kernel/head-common.S:45: relocation truncated to fit: R_ARM_CALL against symbol `printch' defined in .text section in arch/arm/kernel/built-in.o
/home/skykingf/devlop/linux-2.6.38.2/arch/arm/kernel/head-common.S:48: relocation truncated to fit: R_ARM_CALL against symbol `printascii' defined in .text section in arch/arm/kernel/built-in.o
/home/skykingf/devlop/linux-2.6.38.2/arch/arm/kernel/head-common.S:50: relocation truncated to fit: R_ARM_CALL against symbol `printch' defined in .text section in arch/arm/kernel/built-in.o
/home/skykingf/devlop/linux-2.6.38.2/arch/arm/kernel/head-common.S:55: relocation truncated to fit: R_ARM_CALL against symbol `printascii' defined in .text section in arch/arm/kernel/built-in.o
arch/arm/kernel/head.o: In function `__error_p':
/home/skykingf/devlop/linux-2.6.38.2/arch/arm/kernel/head-common.S:254: relocation truncated to fit: R_ARM_CALL against symbol `printascii' defined in .text section in arch/arm/kernel/built-in.o
/home/skykingf/devlop/linux-2.6.38.2/arch/arm/kernel/head-common.S:256: relocation truncated to fit: R_ARM_CALL against symbol `printhex8' defined in .text section in arch/arm/kernel/built-in.o
/home/skykingf/devlop/linux-2.6.38.2/arch/arm/kernel/head-common.S:258: additional relocation overflows omitted from the output
make: *** [.tmp_vmlinux1] Error 1
实在看不出内核哪里出了问题,那个头大啊。
google了国内外中英文的site,有说是编译器版本低了,有说是编译器的bug,有说是内核配的不正确,反反复复编译多次,都找不到正确的原因。
用了之前已经编译好的2.6.33.3内核也报这个错误,看来是rootfs的问题了。
忽然想到是不是rootfs的尺寸问题,前几日在移植mtd-utils时,cp了很多库文件到/lib目录下。
于是在/lib下rm -fr *, 之后再把以前备份的最小lib库放进来,重新编译kernel,通过。
不知道偶是不是第一个把2.6.38.2移植到s3c2440平台上的 ^_^

转载地址:http://wepsi.baihongyu.com/

你可能感兴趣的文章
iOS 单例模式
查看>>
iOS 设置高清图片
查看>>
iOS 声明属性关键字讲解
查看>>
iphone开发常用代码(不断更新)
查看>>
iPhone/iPad全屏截图与区域截图的几种方法
查看>>
IOS开发网络篇之──ASIHTTPRequest详解
查看>>
IOS开发网络加载图片缓存策略之──ASIDownloadCache缓存策略
查看>>
自定义实现MPVolumeView音量控件
查看>>
代码实现退出app
查看>>
iphone检测耳机插入/拔出
查看>>
内存双通道技术以及检验是否开启双通道
查看>>
IOS 判断是否首次启动APP
查看>>
Cocos2d-x跨Android&iOS平台开发入门
查看>>
Cocos2d-x制作太空射击游戏
查看>>
cocos2d-x学习笔记01:VS开发环境搭建
查看>>
cocos2d-x学习笔记02:引擎特性
查看>>
cocos2d-x学习笔记03:绘制基本图元
查看>>
cocos2d-x学习笔记04:简单动画
查看>>
cocos2d-x学习笔记番外篇05:如何快速屏蔽触摸
查看>>
cocos2d-x学习笔记06:如何将win32移植到android
查看>>