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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,468 Views
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.

Tags (1)
2 Replies

929 Views
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 Kudos
Reply

1,452 Views
joanxie
NXP TechSupport
NXP TechSupport

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