Firefly开源社区

123
发表新贴
打印 上一主题 下一主题

【新手求救】kernel4.4 firefly-rk3288版本编译通不过,friefly-rk3288.dtb error

122

积分

0

威望

0

贡献

技术小白

积分
122

【新手求救】kernel4.4 firefly-rk3288版本编译通不过,friefly-rk3288.dtb error

发表于 2017-3-7 08:40:40      浏览:30905 | 回复:29        打印      只看该作者   [复制链接] 楼主
从github下载了kernel4.4后编译发生问题
https://github.com/T-Firefly/kernel_4.4/tree/firefly-rk3288

哪位大侠出来指导下

make -f ./scripts/Makefile.build obj=arch/arm/boot/dts MACHINE= arch/arm/boot/dts/firefly-rk3288.dtb
make[1]: *** No rule to make target 'arch/arm/boot/dts/firefly-rk3288.dtb'.  Stop.

详细日志如下
make -f ./scripts/Makefile.build obj=scripts/basic
set -e;  echo '  HOSTCC  scripts/basic/bin2c'; gcc -Wp,-MD,scripts/basic/.bin2c.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89     -o scripts/basic/bin2c scripts/basic/bin2c.c  ; scripts/basic/fixdep scripts/basic/.bin2c.d scripts/basic/bin2c 'gcc -Wp,-MD,scripts/basic/.bin2c.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89     -o scripts/basic/bin2c scripts/basic/bin2c.c  ' > scripts/basic/.bin2c.tmp; rm -f scripts/basic/.bin2c.d; mv -f scripts/basic/.bin2c.tmp scripts/basic/.bin2c.cmd
:
rm -f .tmp_quiet_recordmcount
make -f ./scripts/Makefile.asm-generic \
            src=asm obj=arch/arm/include/generated/asm
:
make -f ./scripts/Makefile.asm-generic \
            src=uapi/asm obj=arch/arm/include/generated/uapi/asm
:
make -f ./scripts/Makefile.build obj=scripts
make -f ./scripts/Makefile.build obj=scripts/dtc
set -e;  echo '  HOSTLD  scripts/dtc/dtc'; gcc  -o scripts/dtc/dtc scripts/dtc/dtc.o scripts/dtc/flattree.o scripts/dtc/fstree.o scripts/dtc/data.o scripts/dtc/livetree.o scripts/dtc/treesource.o scripts/dtc/srcpos.o scripts/dtc/checks.o scripts/dtc/util.o scripts/dtc/dtc-lexer.lex.o scripts/dtc/dtc-parser.tab.o  ; printf '%s\n' 'cmd_scripts/dtc/dtc := gcc  -o scripts/dtc/dtc scripts/dtc/dtc.o scripts/dtc/flattree.o scripts/dtc/fstree.o scripts/dtc/data.o scripts/dtc/livetree.o scripts/dtc/treesource.o scripts/dtc/srcpos.o scripts/dtc/checks.o scripts/dtc/util.o scripts/dtc/dtc-lexer.lex.o scripts/dtc/dtc-parser.tab.o  ' > scripts/dtc/.dtc.cmd
:
make -f ./scripts/Makefile.build obj=scripts/mod
set -e;  echo '  MKELF   scripts/mod/elfconfig.h'; scripts/mod/mk_elfconfig < scripts/mod/empty.o > scripts/mod/elfconfig.h; printf '%s\n' 'cmd_scripts/mod/elfconfig.h := scripts/mod/mk_elfconfig < scripts/mod/empty.o > scripts/mod/elfconfig.h' > scripts/mod/.elfconfig.h.cmd
set -e;  echo '  HOSTCC  scripts/mod/modpost.o'; gcc -Wp,-MD,scripts/mod/.modpost.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89     -c -o scripts/mod/modpost.o scripts/mod/modpost.c; scripts/basic/fixdep scripts/mod/.modpost.o.d scripts/mod/modpost.o 'gcc -Wp,-MD,scripts/mod/.modpost.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89     -c -o scripts/mod/modpost.o scripts/mod/modpost.c' > scripts/mod/.modpost.o.tmp; rm -f scripts/mod/.modpost.o.d; mv -f scripts/mod/.modpost.o.tmp scripts/mod/.modpost.o.cmd
set -e;  echo '  GEN     scripts/mod/devicetable-offsets.h';     (set -e; echo "#ifndef __DEVICETABLE_OFFSETS_H__"; echo "#define __DEVICETABLE_OFFSETS_H__"; echo "/*"; echo " * DO NOT MODIFY."; echo " *"; echo " * This file was generated by Kbuild"; echo " *"; echo " */"; echo ""; sed -ne     "/^->/{s:->#\(.*\):/* \1 */:; s:^->\([^ ]*\) [\$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; s:^->\([^ ]*\) [\$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" scripts/mod/devicetable-offsets.s; echo ""; echo "#endif" ) > scripts/mod/devicetable-offsets.h; printf '%s\n' 'cmd_scripts/mod/devicetable-offsets.h :=     (set -e; echo "\#ifndef __DEVICETABLE_OFFSETS_H__"; echo "\#define __DEVICETABLE_OFFSETS_H__"; echo "/*"; echo " * DO NOT MODIFY."; echo " *"; echo " * This file was generated by Kbuild"; echo " *"; echo " */"; echo ""; sed -ne     "/^->/{s:->\#\(.*\):/* \1 */:; s:^->\([^ ]*\) [\$$\#]*\([-0-9]*\) \(.*\):\#define \1 \2 /* \3 */:; s:^->\([^ ]*\) [\$$\#]*\([^ ]*\) \(.*\):\#define \1 \2 /* \3 */:; s:->::; p;}" scripts/mod/devicetable-offsets.s; echo ""; echo "\#endif" ) > scripts/mod/devicetable-offsets.h' > scripts/mod/.devicetable-offsets.h.cmd
set -e;  echo '  HOSTCC  scripts/mod/file2alias.o'; gcc -Wp,-MD,scripts/mod/.file2alias.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89     -c -o scripts/mod/file2alias.o scripts/mod/file2alias.c; scripts/basic/fixdep scripts/mod/.file2alias.o.d scripts/mod/file2alias.o 'gcc -Wp,-MD,scripts/mod/.file2alias.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89     -c -o scripts/mod/file2alias.o scripts/mod/file2alias.c' > scripts/mod/.file2alias.o.tmp; rm -f scripts/mod/.file2alias.o.d; mv -f scripts/mod/.file2alias.o.tmp scripts/mod/.file2alias.o.cmd
set -e;  echo '  HOSTCC  scripts/mod/sumversion.o'; gcc -Wp,-MD,scripts/mod/.sumversion.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89     -c -o scripts/mod/sumversion.o scripts/mod/sumversion.c; scripts/basic/fixdep scripts/mod/.sumversion.o.d scripts/mod/sumversion.o 'gcc -Wp,-MD,scripts/mod/.sumversion.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89     -c -o scripts/mod/sumversion.o scripts/mod/sumversion.c' > scripts/mod/.sumversion.o.tmp; rm -f scripts/mod/.sumversion.o.d; mv -f scripts/mod/.sumversion.o.tmp scripts/mod/.sumversion.o.cmd
set -e;  echo '  HOSTLD  scripts/mod/modpost'; gcc  -o scripts/mod/modpost scripts/mod/modpost.o scripts/mod/file2alias.o scripts/mod/sumversion.o  ; printf '%s\n' 'cmd_scripts/mod/modpost := gcc  -o scripts/mod/modpost scripts/mod/modpost.o scripts/mod/file2alias.o scripts/mod/sumversion.o  ' > scripts/mod/.modpost.cmd
:
:
make -f ./scripts/Makefile.build obj=arch/arm/boot/dts MACHINE= arch/arm/boot/dts/firefly-rk3288.dtb
make[1]: *** No rule to make target 'arch/arm/boot/dts/firefly-rk3288.dtb'.  Stop.
arch/arm/Makefile:335: recipe for target 'firefly-rk3288.dtb' failed
make: *** [firefly-rk3288.dtb] Error 2


回复

使用道具 举报

122

积分

0

威望

0

贡献

技术小白

积分
122
发表于 2017-3-7 09:22:34        只看该作者  沙发
make rk3288-firefly.dtb倒是成功的
~/UbuntuDev/firefly-4.4$ make rk3288-firefly.dtb
  DTC     arch/arm/boot/dts/rk3288-firefly.dtb
回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2017-3-7 16:02:19        只看该作者  板凳
kernel4.4编译的不一样,可以尝试如下:
make rk3288-firefly_linux_defconfig
make rk3288-firefly.img -j4
回复

使用道具 举报

122

积分

0

威望

0

贡献

技术小白

积分
122
发表于 2017-3-7 19:59:48        只看该作者  地板
编译成功了,命令和3.14的有点不一样,make -j8 rk3288-firefly.img。
make -j4 rk3288-firefly.img也可以成功,但是接下来的mkrnlimg会遇到问题:input open NG,暂时没解决。
开发板现在变砖了,还在想办法呢
回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2017-3-8 09:39:01        只看该作者  5#
回复

使用道具 举报

54

积分

0

威望

0

贡献

游客

积分
54
发表于 2017-3-8 10:27:58        只看该作者  6#
maplblue 发表于 2017-3-7 19:59
编译成功了,命令和3.14的有点不一样,make -j8 rk3288-firefly.img。
make -j4 rk3288-firefly.img也可以 ...

正下载4.4kernel,编译步骤是怎样的呢
回复

使用道具 举报

208

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
208
发表于 2017-3-8 10:32:22        只看该作者  7#
maplblue 发表于 2017-3-7 19:59
编译成功了,命令和3.14的有点不一样,make -j8 rk3288-firefly.img。
make -j4 rk3288-firefly.img也可以 ...

应该是你加了 -a参数吧!我记得应该是不要加参数才能成功。
回复

使用道具 举报

54

积分

0

威望

0

贡献

游客

积分
54
发表于 2017-3-8 10:46:45        只看该作者  8#
chaokun 发表于 2017-3-8 10:27
正下载4.4kernel,编译步骤是怎样的呢

用的哪个config文件呢
回复

使用道具 举报

54

积分

0

威望

0

贡献

游客

积分
54
发表于 2017-3-8 10:47:26        只看该作者  9#
maplblue 发表于 2017-3-7 19:59
编译成功了,命令和3.14的有点不一样,make -j8 rk3288-firefly.img。
make -j4 rk3288-firefly.img也可以 ...

make用的哪个config文件呢
回复

使用道具 举报

208

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
208
发表于 2017-3-8 12:30:13        只看该作者  10#
jpchen 发表于 2017-3-8 09:39
可以参考wiki
http://wiki.t-firefly.com/index.php/Firefly-RK3288/MaskRom

达人,你确定4.4版本的有rk3288的编译配置。
我找了没有此类配置。应该如何解决。
回复

使用道具 举报

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

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表