We carried out the following things.
$ git clone -b dunfell git://git.yoctoproject.org/poky.git
$ cd poky
$ source oe-init-build-env build001
$ bitbake core-image-minimal
#It's running, but CTRL+Forced termination with C
$ bitbake core-image-minimal #Run again at a later date
$ runqemu tmp/deploy/images/qemux86-64/
The result of the execution is as follows. When I try to log in, I get "getty: tty1: can't execute'/ bin / login'".
Probably the cause is that "bitbake core-image-minimal" was forcibly terminated in the middle.
$ git clone -b dunfell git://git.yoctoproject.org/poky.git
$ cd poky
$ source oe-init-build-env build001
$ bitbake core-image-minimal
#It's running, but CTRL+Forced termination with C
$ bitbake core-image-minimal #Run again at a later date
$ runqemu tmp/deploy/images/qemux86-64/
At first, I thought about doing the following. However, this will take as long as the first time. I hate it.
$ source oe-init-build-env build002 #Create a new build002
$ bitbake core-image-minimal
$ runqemu tmp/deploy/images/qemux86-64/
The set of code downloaded when the first bitbake command was executed is I thought that it could be used as it is (I guess it wouldn't be strange here), so I decided to divert it.
Set the path to the DL_DIR variable in conf / local.conf as follows
conf/local.conf
#
# Where to place downloads
#
# During a first build the system will download many different source code tarballs
# from various upstream projects. This can take a while, particularly if your network
# connection is slow. These are all stored in DL_DIR. When wiping and rebuilding you
# can preserve this directory to speed up this part of subsequent builds. This directory
# is safe to share between multiple builds on the same machine too.
#
# The default is a downloads directory under TOPDIR which is the build directory.
#
DL_DIR ?= "/home/username/yocto/poky/build001/downloads"
Reference: https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-DL_DIR
So, the procedure that was carried out at the time of re-execution is as follows.
$ source oe-init-build-env build002 #Create a new build002
$ vim conf/local.conf # DL_Set the path to DIR
$ bitbake core-image-minimal
$ runqemu tmp/deploy/images/qemux86-64/
The result of the execution is as follows. I was able to log in successfully.
Recommended Posts