为 raspberry pi3 (Yocto-Dunfell) 构建图像时出错

Getting errors in building image for raspberry pi3 (Yocto-Dunfell)

我正在尝试为 raspberry pi 3 构建图像,但出现了一些错误。我希望这里有人能帮助我解决它。我在 VirtualBox 上使用 Ubuntu 20.04 进行此构建。 运行 以下命令但输出错误。(下面附有屏幕截图)

    $ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping libsdl1.2-dev xterm
    $ git clone git://git.yoctoproject.org/poky -b dunfell
    $ cd poky
    $ git clone https://git.openembedded.org/meta-openembedded -b dunfell
    $ git clone git://git.yoctoproject.org/meta-raspberrypi -b dunfell
    $ source oe-init-build-env

    > I’m building the image for raspberry pi 3 so set the machine name to raspberrypi3 as : machine ?= "raspberrypi3" and commented other machine names in local.conf
    > To generate an SD card image file I’ve written IMAGE_FSTYPES = "tar.xz ext3 rpi-sdimg"
    > In bblayer.conf file I’ve added meta-raspberrypi layer path.

    $ bitbake core-minimal-image

  [1]: https://i.stack.imgur.com/HSwl8.png
  [2]: https://i.stack.imgur.com/iIOb6.png
  [3]: https://i.stack.imgur.com/RTlaU.png
  [4]: https://i.stack.imgur.com/o9aOU.png

听起来像是破损的包裹。首先,尝试清理并重建

bitbake -c cleanall unzip  
bitbake -c cleanall binutils
bitbake unzip  
bitbake binutils

另外,你真的需要那些包吗?如果不只是通过添加到您的 local.conf

来删除它们
IMAGE_INSTALL_remove = " unzip binutils "