loongson内核自带源码的编译
来源:互联网 发布:知新教育 编辑:程序博客网 时间:2024/05/16 10:29
loongson 2f机器自带源码为linux-source-2.6.18,中间默认为交叉编译,修改方法为:
(1)将arch/mips/Makefile中mipsel-linux- 选项取消
(2)将根目录下Makefile中CROSS_COMPILE注释掉,这样就会使用loongson本地的工具链编译
make过程的错误一:
pci.c:(.init.text+0x744): undefined reference to `pci_probe_only'
pci.c:(.init.text+0x754): undefined reference to `pci_probe_only'
pci.c:(.init.text+0x770): undefined reference to `register_pci_controller'
pci.c:(.init.text+0x770): relocation truncated to fit: R_MIPS_26 against `register_pci_controller'
修改:运行 make menuconfig,添加对pci的支持
错误二:arch/mips/math-emu/built-in.o: In function `ieee754dp_format':
(.text+0x2f00): undefined reference to `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_format':
(.text+0x2f00): relocation truncated to fit: R_MIPS_26 against `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_mul':
(.text+0x4968): undefined reference to `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_mul':
(.text+0x4968): relocation truncated to fit: R_MIPS_26 against `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_mul':
(.text+0x4eb4): undefined reference to `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_mul':
(.text+0x4eb4): relocation truncated to fit: R_MIPS_26 against `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_sub':
(.text+0x5320): undefined reference to `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_sub':
(.text+0x5320): relocation truncated to fit: R_MIPS_26 against `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_sub':
(.text+0x5664): undefined reference to `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_sub':
(.text+0x5664): relocation truncated to fit: R_MIPS_26 against `__ucmpdi2'
arch/mips/math-emu/built-in.o:(.text+0x5ca8): more undefined references to `__ucmpdi2' follow
arch/mips/math-emu/built-in.o: In function `ieee754dp_add':
(.text+0x5ca8): relocation truncated to fit: R_MIPS_26 against `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_add':
(.text+0x5f08): relocation truncated to fit: R_MIPS_26 against `__ucmpdi2'
make: *** [.tmp_vmlinux1] Error 1
修改:解决方法:
在最新的linux内核(我是从2.6.30)上找到arch/mips/lib/ucmpdi2.c 把它copy到自己编译的版本的一致路径下,而后修改arch/mips/lib/Makefile,修改方法是 在Makefile中添加一项 ucmpdi2.o,
- loongson内核自带源码的编译
- loongson内核编译
- 内核自带norflash的编译与实验
- 内核自带norflash的编译与实验
- Android源码环境下编译自带JNI的APP
- 编译loongson内核1b-linux-3.0-20130104问题总结
- ubuntu 编译vlc源码中自带的Qtplayer编译问题
- FS2410自带光盘Linux内核编译问题
- drupal7 内核 自带的模板文件
- 将系统自带的Launcher2源码导入eclipse中编译运行
- 编译smdkv210开发板自带的android2.3源码generic版
- 将系统自带的Launcher2源码导入eclipse中编译运行
- 将系统自带的Launcher2源码导入eclipse中编译运行
- linux源码编译php5.5以上自带php-fpm的configure参数和依赖包
- Cmake编译OpenCV3.1源码+运行自带的dnn分类识别
- 如何编译运行Android体系自带桌面Launcher2源码
- 如何编译运行系统自带桌面Launcher2源码
- 6.0.1 系统自带应用:时钟,源码编译问题
- 自定义Visual Assist X Snippets 宏
- C#中用DataGridView绑定ArcGIS图层的属性表
- mysql 事务处理
- 如何编程创建/布置基于面的设置,比如风口
- jQuery用法举例(操作table,div,button等)
- loongson内核自带源码的编译
- 警惕TimerTask#run可能抛出的异常
- 实用SQL语句大全(上)
- 借用MEF对WCF实现扩展
- css样式属性代码缩写
- Javabean的总结
- eclipse快捷键大全
- C++异常处理
- Solaris 常用命令