九鼎创展论坛中文版English
登录 | 立即注册 设为首页收藏本站 切换到宽版
查看: 3485|回复: 1
打印 上一主题 下一主题

编译kernel出错

[复制链接]
跳转到指定楼层
楼主
发表于 2015-7-28 11:57:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
  Image arch/arm/boot/uImage is ready
'/home/x4418/Documents/x4418/linux/kernel/kernel-3.4.39/arch/arm/boot/uImage' -> '/home/x4418/Documents/x4418/out/release/uImage'
^_^ kernel path: /home/x4418/Documents/x4418/out/release/uImage
boot.img -> /home/x4418/Documents/x4418/out/release
'/home/x4418/Documents/x4418/out/release/uImage' -> '/home/x4418/Documents/x4418/out/target/product/drone2//boot'
./mk: 79: ./mk: mkuserimg.sh: not found
cp: cannot stat '/home/x4418/Documents/x4418/out/target/product/drone2//boot.img': No such file or directory

更改了mk  更找到 mkuserimg.sh,但是出现下面的错误:
Image arch/arm/boot/uImage is ready
'/home/x4418/Documents/x4418/linux/kernel/kernel-3.4.39/arch/arm/boot/uImage' -> '/home/x4418/Documents/x4418/out/release/uImage'
^_^ kernel path: /home/x4418/Documents/x4418/out/release/uImage
boot.img -> /home/x4418/Documents/x4418/out/release
'/home/x4418/Documents/x4418/out/release/uImage' -> '/home/x4418/Documents/x4418/out/target/product/drone2/boot'
+ echo 'in mkuserimg.sh PATH=/home/x4418/Documents/x4418/out/host/linux-x86/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games'
in mkuserimg.sh PATH=/home/x4418/Documents/x4418/out/host/linux-x86/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
+ ENABLE_SPARSE_IMAGE=
+ '[' -s = -s ']'
+ ENABLE_SPARSE_IMAGE=-s
+ shift
+ '[' 5 -ne 5 -a 5 -ne 6 ']'
+ SRC_DIR=/home/x4418/Documents/x4418/out/target/product/drone2/boot
+ '[' '!' -d /home/x4418/Documents/x4418/out/target/product/drone2/boot ']'
+ echo 'Can not find directory /home/x4418/Documents/x4418/out/target/product/drone2/boot!'
Can not find directory /home/x4418/Documents/x4418/out/target/product/drone2/boot!
+ exit 2
cp: cannot stat '/home/x4418/Documents/x4418/out/target/product/drone2/boot.img': No such file or directory


郁闷 我可是完全按照手册上面来操作的!
回复

使用道具 举报

推荐
发表于 2015-7-28 16:37:38 | 只看该作者
我之前也遇到过这种错误,后来发现,mk文件里编译kernel的函数,到这步boot.img -> /home/x4418/Documents/x4418/out/release,其实已经成功编译uImage, 后面的其实是得到boot.img的操作,你把build_kernel()中echo "^_^ kernel path: ${BS_DIR_RELEASE}/uImage"后面的内容注释掉就可以了
回复 支持 1 反对 0

使用道具 举报

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

本版积分规则

QQ|手机版|小黑屋|深圳市九鼎创展科技官方论坛 ( 粤ICP备11028681号-2  

GMT+8, 2024-11-22 20:18 , Processed in 0.017670 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表