ubinux / yocto-ubinux

Other
6 stars 7 forks source link

Ubinuxv2020.05 #4 can't be built #5

Closed notanaka closed 4 years ago

notanaka commented 4 years ago

I tried to build Ubinuxv2020.05 #4 to confirm whether "Build user permission is required for /yocto #2" is fixed. But I faced the following problem. Sorry Japanese characters are included, it means that "No such file or directory".

notanaka@notanaka-VirtualBox:~/git/yocto-ubinux$ . setup_ubinux.sh ubinux-x86-64 ../build-ubinux-x86-64
/home/notanaka/git/yocto-ubinux/scripts/oe-setup-builddir: 45: .: Can't open /home/notanaka/git/yocto-ubinux/.templateconf
bash: conf/local.conf: そのようなファイルやディレクトリはありません
notanaka@notanaka-VirtualBox:~/git/yocto-ubinux$ 

Even though I created .tmplateconf by "touch .templateconf", another error occured,

notanaka@notanaka-VirtualBox:~/git/yocto-ubinux$ touch .templateconf
notanaka@notanaka-VirtualBox:~/git/yocto-ubinux$ . setup_ubinux.sh ubinux-x86-64 ../build-ubinux-x86-64
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to, for
example, select a different MACHINE (target hardware). See conf/local.conf
for more information as common configuration options are commented.

You had no conf/bblayers.conf file. This configuration file has therefore been
created for you with some default values. To add additional metadata layers
into your configuration please add entries to conf/bblayers.conf.

The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
    http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
    http://www.openembedded.org/

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    meta-toolchain-sdk
    adt-installer
    meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'
notanaka@notanaka-VirtualBox:~/git/build-ubinux-x86-64$ bitbake ubinux-all
ERROR: Unable to start bitbake server (None)
ERROR: Server log for this session (/home/notanaka/git/build-ubinux-x86-64/bitbake-cookerdaemon.log):
--- Starting bitbake server pid 5340 at 2020-07-30 22:57:57.567724 ---
ERROR: The following layer directories do not exist:
ERROR:    /home/notanaka/git/yocto-ubinux/meta-spdxscanner
ERROR: Please check BBLAYERS in /home/notanaka/git/build-ubinux-x86-64/conf/bblayers.conf

notanaka@notanaka-VirtualBox:~/git/build-ubinux-x86-64$ ls ../yocto-ubinux/
.git/                                 meta-gplv2/
.templateconf                         meta-linaro/
LICENSE                               meta-measured/
LICENSE.GPL-2.0-only                  meta-oe/
LICENSE.MIT                           meta-poky/
MEMORIAM                              meta-qt5/
README.OE-Core                        meta-security/
README.hardware                       meta-selftest/
README.md                             meta-selinux/
README.poky                           meta-skeleton/
README.qemu                           meta-spdxscanner.2020-07-30-22-46-32/
bitbake/                              meta-swupdate/
contrib/                              meta-ubinux/
documentation/                        meta-virtualization/
meta/                                 meta-yocto-bsp/
meta-cgl/                             oe-init-build-env
meta-cloud-services/                  scripts/
meta-freescale/                       setup_ubinux.sh
notanaka@notanaka-VirtualBox:~/git/build-ubinux-x86-64$
wangmingyu84 commented 4 years ago

Patch has been submitted to modify the downloads directory. Now it is under the build directory by default. Of course, you can also modify setup_ubinux.sh manually about the directory.

Please follow the following steps again:

  1. Find a new directory to download ubinuxv2020.05
  2. Confirm whether there is a .templateconf file in the directory of ubinuxv2020.05
  3. Modify DOWNLOADS of setup_ubinux.sh(if necessary)
  4. Execute . setup_ubinux.sh ubinux-x86-64 ../build-ubinux-x86-64

If you still have questions, please let me know.

notanaka commented 4 years ago

Thank you, the problem was solved. But I faced another problem in next step as follows.

notanaka@notanaka-VirtualBox:~/git/build-ubinux-x86-64$ bitbake ubinux-all
ERROR: Unable to start bitbake server (None)
ERROR: Server log for this session (/home/notanaka/git/build-ubinux-x86-64/bitbake-cookerdaemon.log):
--- Starting bitbake server pid 3446 at 2020-07-31 21:58:48.292062 ---
ERROR: Layer measured is not compatible with the core layer which only supports these series: dunfell gatesgarth (layer is compatible with sumo warrior thud zeus)

notanaka@notanaka-VirtualBox:~/git/build-ubinux-x86-64$ 
wangmingyu84 commented 4 years ago

The update of upstream is very slow, so you can only modify this content manually.

meta-measured/conf/layer.conf: -LAYERSERIES_COMPAT_measured = "sumo thud warrior zeus" +LAYERSERIES_COMPAT_measured = "sumo thud warrior zeus dunfell"

Depending on the version, the layer with the error may be different, but the correction method is the same.

notanaka commented 4 years ago

Thanks, the another problem was solved and proceed the build process. But I faced new problem, I will report it after reconfirmation of my environment.