最好找到問題點了,主要的問題是因為opencv的作者roll back了,所以需要去修改bb檔案的commit,下方有相關的BB檔的opencv_4.2.0.imx.bb路徑,進去裡面把commit改成最新的就好了
我想要編譯一個yocto的系統鏡像 但是在fetch openCV repo的時候會發生錯誤
我有找到類似的問題
下面解決問題的討論有提到可能的原因是fetch的版本太老了
所以可以藉由更新yocto tree list就可以正常
但是我不知道怎麼更新yocto tree 因為它編譯的Img和我不同
所以應該不能使用他的更新方式去更新相關路徑
不知道有沒有方法可以更改fetch的路經呢?
或是可以下載到其他同樣版本的方法呢?
編譯的起因是因為我想要改變GPIO腳位的定義
我想要使用i.MX8上面提供的ECSPI2
但是根據的我理解 應該是要去更改編譯出來的DTS(設備樹)
設定pinctrl 更改CPU的相關腳位才對
然後再更新到裝置上面
如果理解有錯誤 請不吝指教
zxcv@ubuntu:~/04-Source/mys-8mmx-yocto/mys-8mmx-yocto/build-xwayland$ bitbake myir-image-full --runall=fetch
NOTE: Your conf/bblayers.conf has been automatically updated.
WARNING: Host distribution "ubuntu-20.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |############################################| Time: 0:00:01
Loaded 4115 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.44.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-20.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "mys-8mmx"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "5.4-zeus"
TUNE_FEATURES = "aarch64 cortexa53 crc crypto"
TARGET_FPU = ""
meta
meta-poky = "HEAD:a8f6e31bebc5a551fab1fec8d67489af80878f71"
meta-oe
meta-multimedia
meta-python = "HEAD:bb65c27a772723dfe2c15b5e1b27bcc1a1ed884c"
meta-freescale = "HEAD:94f4f086c6014cbcfd10bda3540d19558c8bf0b0"
meta-freescale-3rdparty = "HEAD:aea3771baa77e74762358ceb673d407e36637e5f"
meta-freescale-distro = "HEAD:ca27d12e4964d1336e662bcc60184bbff526c857"
meta-bsp
meta-sdk
meta-ml = "i.MX8M-5.4-zeus:ef7d05edcd1f95737550758f890bb2dad18d42f7"
meta-browser = "HEAD:5f365ef0f842ba4651efe88787cf9c63bc8b6cb3"
meta-rust = "HEAD:d8d77be1292064a02adcb5e72e293604b704f69b"
meta-gnome
meta-networking
meta-filesystems = "HEAD:bb65c27a772723dfe2c15b5e1b27bcc1a1ed884c"
meta-qt5 = "HEAD:a582fd4c810529e9af0c81700407b1955d1391d2"
WARNING: Your host glibc verson (2.31) is newer than that in uninative (2.30). Disabling uninative so that sstate is not corrupted.
Initialising tasks: 100% |#######################################| Time: 0:00:03
Sstate summary: Wanted 0 Found 0 Missed 0 Current 0 (0% match, 0% complete)
NOTE: No setscene tasks
NOTE: Executing Tasks
WARNING: opencv-4.2.0.imx-r0 do_fetch: Failed to fetch URL git://source.codeaurora.org/external/imx/opencv-imx.git;protocol=https;branch=4.2.0_imx;name=opencv, attempting MIRRORS if available
ERROR: opencv-4.2.0.imx-r0 do_fetch: Fetcher failure: Unable to find revision c4fbe8651af1d7e22e707dba7a93d001eaca4a15 in branch 4.2.0_imx even from upstream
ERROR: opencv-4.2.0.imx-r0 do_fetch: Fetcher failure for URL: 'git://source.codeaurora.org/external/imx/opencv-imx.git;protocol=https;branch=4.2.0_imx;name=opencv'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/zxcv/04-Source/mys-8mmx-yocto/mys-8mmx-yocto/build-xwayland/tmp/work/aarch64-mx8mm-poky-linux/opencv/4.2.0.imx-r0/temp/log.do_fetch.2817
ERROR: Task (/home/zxcv/04-Source/mys-8mmx-yocto/mys-8mmx-yocto/sources/meta-myir/meta-bsp/recipes-support/opencv/opencv_4.2.0.imx.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 691 tasks of which 690 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/zxcv/04-Source/mys-8mmx-yocto/mys-8mmx-yocto/sources/meta-myir/meta-bsp/recipes-support/opencv/opencv_4.2.0.imx.bb:do_fetch
Summary: There were 3 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
第一次發文
如果有排版或是相關資訊缺漏 請見諒 我會盡快補上
$devtool check-upgrade-status opencv
$devtool upgrade opencv
$devtool build opencv
$devtool build-image "YOUR_IMG"
$devtool finish opencv "YOUR_LAYER"
After merging to tree, devtool will generate new bb/bbappend for new opencv version.
Opencv will remove from workspace, but you should remove source code manually.