您尚未登录。

楼主 # 2021-10-04 18:34:44

zhujiang
会员
注册时间: 2021-08-30
已发帖子: 6
积分: 4.5

v3s 适配ethernet时 编译出现: binman: Device tree 'u-boot.dtb' does not ...

按照 http://zero.lichee.pro/%E9%A9%B1%E5%8A%A8/Ethernet.html 教程进行zero适配Ethernet,修改dts和dtsi文件后进行u-boot编译,但是在编译过程中出现编译错误:

 
  ....
  ....
  LD      spl/drivers/serial/built-in.o
  LD      spl/drivers/built-in.o
  LD      spl/u-boot-spl
  OBJCOPY spl/u-boot-spl-nodtb.bin
  COPY    spl/u-boot-spl.bin
  MKSUNXI spl/sunxi-spl.bin
  BINMAN  u-boot-sunxi-with-spl.bin
binman: Device tree 'u-boot.dtb' does not have a 'binman' node
Makefile:1079: recipe for target 'u-boot-sunxi-with-spl.bin' failed
make: *** [u-boot-sunxi-with-spl.bin] Error 1
root@xxxx/u-boot-3s-current#
 

sun8i-v3s-licheepi-zero.dtb 文件已生成
就是在编译.bin文件时报错
请问各位高手是什么问题 ,折腾了好久实在是解决不了

修改后的文件:
sun8i-v3s.dtsi
sun8i-v3s-licheepi-zero.dts
下载

最近编辑记录 zhujiang (2021-10-04 18:40:14)

离线

#1 2021-10-04 19:06:01

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: v3s 适配ethernet时 编译出现: binman: Device tree 'u-boot.dtb' does not ...

binman 是指 tools/binman/binman.py 这个脚本,需要安装 python 解释器。

试一试这样:

sudo apt-get install python3





离线

楼主 #2 2021-10-04 19:16:00

zhujiang
会员
注册时间: 2021-08-30
已发帖子: 6
积分: 4.5

Re: v3s 适配ethernet时 编译出现: binman: Device tree 'u-boot.dtb' does not ...

非常感谢!
刚刚试了您提供的方法
还是相同的结果,查看了一下python 已经安装 ,不知是不是本版太低了

  COPY    spl/u-boot-spl.bin
  MKSUNXI spl/sunxi-spl.bin
  BINMAN  u-boot-sunxi-with-spl.bin
binman: Device tree 'u-boot.dtb' does not have a 'binman' node
Makefile:1079: recipe for target 'u-boot-sunxi-with-spl.bin' failed
make: *** [u-boot-sunxi-with-spl.bin] Error 1
root@xxxx/u-boot-3s-current# python
Python 2.7.12 (default, Mar  1 2021, 11:38:31)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

离线

#3 2021-10-04 19:19:22

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: v3s 适配ethernet时 编译出现: binman: Device tree 'u-boot.dtb' does not ...

感觉又不太像,也不排除是python2的问题,试一试装 python3





离线

楼主 #4 2021-10-04 19:48:11

zhujiang
会员
注册时间: 2021-08-30
已发帖子: 6
积分: 4.5

Re: v3s 适配ethernet时 编译出现: binman: Device tree 'u-boot.dtb' does not ...

试了一下用python3
出现以下错误

  MKSUNXI spl/sunxi-spl.bin
  BINMAN  u-boot-sunxi-with-spl.bin
  File "./tools/binman/binman", line 49
    print result
               ^
SyntaxError: Missing parentheses in call to 'print'
Makefile:1079: recipe for target 'u-boot-sunxi-with-spl.bin' failed
make: *** [u-boot-sunxi-with-spl.bin] Error 1
root@xxxx/u-boot-3s-current#

据说是用python3 和2 的语法兼容性问题
看来还是只能用python2
难道是我的dts文件写错了? 但是又生产了dtb 文件,不知道啥原因了
难道就我一个人遇到这样的问题,网上也没有找到 类似 binman: Device tree 'u-boot.dtb' does not 这样报错的问题
头发都快扣掉完了,来人啦 救命啦..

最近编辑记录 zhujiang (2021-10-04 19:48:43)

离线

#5 2021-10-04 19:50:38

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: v3s 适配ethernet时 编译出现: binman: Device tree 'u-boot.dtb' does not ...

你的主机Linux版本?





离线

楼主 #6 2021-10-04 20:00:31

zhujiang
会员
注册时间: 2021-08-30
已发帖子: 6
积分: 4.5

Re: v3s 适配ethernet时 编译出现: binman: Device tree 'u-boot.dtb' does not ...

Linux version 4.15.0-142-generic   
ubuntu 16.04LTS

离线

#7 2021-10-04 20:03:30

memory
会员
注册时间: 2021-08-11
已发帖子: 234
积分: 208

Re: v3s 适配ethernet时 编译出现: binman: Device tree 'u-boot.dtb' does not ...

ubuntu 16.04 按理来说没有问题

离线

楼主 #8 2021-10-04 20:06:44

zhujiang
会员
注册时间: 2021-08-30
已发帖子: 6
积分: 4.5

Re: v3s 适配ethernet时 编译出现: binman: Device tree 'u-boot.dtb' does not ...

是啊 ,我看有好多朋友都是这个版本 ,反正疑难杂症都让我碰上了,
技术又菜,人有霉:)

离线

楼主 #9 2021-10-04 20:14:45

zhujiang
会员
注册时间: 2021-08-30
已发帖子: 6
积分: 4.5

Re: v3s 适配ethernet时 编译出现: binman: Device tree 'u-boot.dtb' does not ...

我试了一下  不修改 sun8i-v3s.dtsi  和 sun8i-v3s-licheepi-zero.dts 这两个文件就能正常编译
但是按照教材修改以后就要报错,有没有哪位好心的朋友提供一下修改好的,保证能够编译的这两个
文件,让我好研究一下到底是那个地方搞错了,谢谢!
加个以太网都搞了几天了...

离线

#10 2021-10-04 20:20:22

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: v3s 适配ethernet时 编译出现: binman: Device tree 'u-boot.dtb' does not ...

你diff一下原来的版本,看修改了哪里?





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn