CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 8713|回复: 2

求助:编译Linux3.4内核失败

[复制链接]
发表于 2015-1-21 21:32:11 | 显示全部楼层 |阅读模式
本帖最后由 zq9610 于 2015-1-21 21:40 编辑

编译环境:Ubuntu12.04 LTS 64bit(运行于PD虚拟机上)
目标板:CB2
编译过程:
/lichee/linux-3.4$ make clean
/lichee/linux-3.4$ sudo cp arch/arm/configs/sun7ismp_android_defconfig .config
/lichee/linux-3.4$ cd ..
/lichee$ ./build.sh -p sun7i_android




我就没有成功编译出Android一次。。好忧桑

到底哪儿出问题了呢 大家帮忙看看

有两个错误的地方:
  1.   OBJCOPY arch/arm/boot/zImage
  2.   Kernel: arch/arm/boot/zImage is ready
  3.   UIMAGE  arch/arm/boot/uImage
  4. /usr/bin/mkimage: Can't map arch/arm/boot/uImage: Invalid argument
  5. make[1]: *** [arch/arm/boot/uImage] 错误 1
  6. make: *** [uImage] 错误 2
  7. make: *** 正在等待未完成的任务....
  8. WARNING: modpost: Found 2 section mismatch(es).
  9. To see full details build your kernel with:
  10. 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
复制代码
  1.   LD [M]  drivers/net/wireless/rtl8189es/8189es.ko
  2. arm-linux-gnueabi-ld: warning: drivers/net/wireless/bcm4330/bcm4330.mod.o uses 4-byte wchar_t yet the output is to use 2-byte wchar_t; use of wchar_t values across objects may fail
  3.   LD [M]  drivers/net/wireless/rtl8192cu/8192cu.ko
  4.   LD [M]  drivers/net/wireless/rtl8723as/8723as.ko
  5.   LD [M]  drivers/scsi/scsi_wait_scan.ko
  6.   LD [M]  drivers/video/sun7i/disp/disp.ko
  7.   LD [M]  drivers/video/sun7i/lcd/lcd.ko
  8. ERROR: build kernel Failed
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

发表于 2015-1-21 21:46:28 | 显示全部楼层
本帖最后由 jiangdou 于 2015-1-21 21:54 编辑

/lichee/linux-3.4$ make mrproper
/lichee/linux-3.4$ cp arch/arm/configs/cubieboard_xxx .config
/lichee$./build.sh -p sun7i_android
再试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-1-21 23:08:54 | 显示全部楼层
jiangdou 发表于 2015-1-21 21:46
/lichee/linux-3.4$ make mrproper
/lichee/linux-3.4$  cp arch/arm/configs/cubieboard_xxx .config
/lic ...

忘了说了,我用的4.4的源码,你可以在这里下载:
http://yunpan.cn/cKgKC6uZmLUTk  提取码 4dd3

把422的配置拷贝过来还是不行,依旧出错,
  1. arch/arm/mach-sun7i/core.c: In function ‘sun7i_reserve’:
  2. arch/arm/mach-sun7i/core.c:164:34: error: ‘ION_CARVEOUT_MEM_BASE’ undeclared (first use in this function)
  3. arch/arm/mach-sun7i/core.c:164:34: note: each undeclared identifier is reported only once for each function it appears in
  4. make[1]: *** [arch/arm/mach-sun7i/core.o] 错误 1
  5. make: *** [arch/arm/mach-sun7i] 错误 2
  6. make: *** 正在等待未完成的任务....
  7.   CC      arch/arm/kernel/armksyms.o
  8.   CC      arch/arm/mm/vmregion.o
  9.   CC      arch/arm/mm/rodata.o
  10.   CC      arch/arm/kernel/module.o
  11. arch/arm/mm/rodata.c: In function ‘set_page_attributes’:
  12. arch/arm/mm/rodata.c:91:4: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘pmd_t’ [-Wformat]
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-11-23 01:00 , Processed in 0.021136 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部