Build of onxxruntime-native in imx-image-full for IMX8MP was failed, and fixed it.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Build of onxxruntime-native in imx-image-full for IMX8MP was failed, and fixed it.

1,470 次查看
T-Ii
Contributor III

I tried to build imx-image-full with imx-5.15.5-1.0.0.

onxxruntime-native_1.0.0.bb fetch faild. Log file says that, 

DEBUG: Mirror fetch failure for url https://downloads.yoctoproject.org/mirror/sources/git2_github.com.google.protobuf.git.tar.gz (original url: git://github.com/google/protobuf.git;branch=master;name=protobuf)
DEBUG: Fetcher failure: Unable to find revision 2dc747c574b68a808ea4699d26942c8132fe2b09 in branch master even from upstream

I found repository "github.com/google/protobuf" doesn't have a branch "master" but "main".

I modified the file "onxxruntime-native_1.0.0.bb" as follow ( describe in diff style), 

- GIT_protobuf = "git://github.com/google/protobuf.git;branch=master;name=protobuf"
+ GIT_protobuf = "git://github.com/google/protobuf.git;branch=main;name=protobuf"

 After this modification, the build finished as a success.

标记 (1)
2 回复数

931 次查看
Rock_Lee
Contributor II

I still failed to build "imx-image-full with imx-5.10.52-2.1.0  ,

even I change "branch=master" to "branch=main".

How to modify ?

0 项奖励
回复

1,454 次查看
joanxie
NXP TechSupport
NXP TechSupport

I have built imx8mp successfully with 5.15, but as I known the older bsp version has this issue