Zybo Z7 向け BSP を使うときの問題
By takagiwa on Tuesday, August 23 2022, 22:13 - Xilinx - Permalink
まずはうち固有で git のポートがファイアウォールで塞がれて time out になる場合。参考 。
- project-spec/meta-user/recipes-apps/digilent-apps/gpioutil/gpioutil.bb
- project-spec/meta-user/recipes-apps/digilent-apps/libpwm/libpwm.bb
- project-spec/meta-user/recipes-apps/digilent-apps/libuio/libuio.bb
- project-spec/meta-user/recipes-apps/digilent-apps/kmsdemo/kmsdemo.bb
- project-spec/meta-user/recipes-apps/digilent-apps/libgpio/libgpio.bb
- project-spec/meta-user/recipes-apps/digilent-apps/pwmdemo/pwmdemo.bb
- project-spec/meta-user/recipes-apps/digilent-apps/libvrc/libvrc.bb
これらのファイルを編集。
SRC_URI = "git://github.com/digilent/pwmdemo.git \
これをこんな風に。
SRC_URI = "git://github.com/digilent/pwmdemo.git;protocol=https \
次は U-BOOT 関係でエラーがでる。参考 。
WARNING: u-boot-xlnx-v2017.01-xilinx-v2017.4+gitAUTOINC+42deb242f9-r0 do_fetch: Failed to fetch URL git://github.com/digilent/u-boot-digilent.git;protocol=https;branch=master, attempting MIRRORS if available ERROR: u-boot-xlnx-v2017.01-xilinx-v2017.4+gitAUTOINC+42deb242f9-r0 do_fetch: Fetcher failure: Unable to find revision 42deb242f961ce317366566666cbbddfb198bc9f in branch master even from upstream ERROR: u-boot-xlnx-v2017.01-xilinx-v2017.4+gitAUTOINC+42deb242f9-r0 do_fetch: Fetcher failure for URL: 'git://github.com/digilent/u-boot-digilent.git;protocol=https;branch=master'. Unable to fetch URL from any source. ERROR: u-boot-xlnx-v2017.01-xilinx-v2017.4+gitAUTOINC+42deb242f9-r0 do_fetch: Function failed: base_do_fetch ERROR: Logfile of failure stored in: /home/vagrant/SimplePS2/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/u-boot-xlnx/v2017.01-xilinx-v2017.4+gitAUTOINC+42deb242f9-r0/temp/log.do_fetch.27803 ERROR: Task (/home/vagrant/petalinux/2017.4/components/yocto/source/arm/layers/meta-xilinx/recipes-bsp/u-boot/u-boot-xlnx_2017.01.bb:do_fetch) failed with exit code '1'
ディレクトリを間違えてエラーになったりする。
あとはさっきのコメントにあった sstate-cache の対応もやっておくといい。