I try to Build a Reference Image with Yocto LinuxImageV2.8
after running “repo sync” got this error
Fetching projects: 94% (16/17) bitbake.gitfatal: unable to access ‘https://git.yoctoproject.org/git/meta-qt4/’: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
error: Cannot fetch meta-qt4 from https://git.yoctoproject.org/git/meta-qt4
Fetching projects: 100% (17/17), done.
fatal: failed to unpack tree object HEAD
error: Cannot checkout meta-qt4: GitError: Cannot initialize work tree for meta-qt4
Traceback (most recent call last):
File “/root/oe-core/.repo/repo/main.py”, line 541, in
_Main(sys.argv[1:])
File “/root/oe-core/.repo/repo/main.py”, line 516, in _Main
result = run()
File “/root/oe-core/.repo/repo/main.py”, line 509, in
run = lambda: repo._Run(name, gopts, argv) or 0
File “/root/oe-core/.repo/repo/main.py”, line 212, in _Run
result = cmd.Execute(copts, cargs)
File “/root/oe-core/.repo/repo/subcmds/sync.py”, line 994, in Execute
self._Checkout(all_projects, opt)
File “/root/oe-core/.repo/repo/subcmds/sync.py”, line 553, in _Checkout
self._CheckoutWorker(**kwargs)
File “/root/oe-core/.repo/repo/subcmds/sync.py”, line 435, in _CheckoutWorker
return self._CheckoutOne(opt, project, *args, **kwargs)
File “/root/oe-core/.repo/repo/subcmds/sync.py”, line 469, in _CheckoutOne
project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
File “/root/oe-core/.repo/repo/project.py”, line 1532, in Sync_LocalHalf
self._InitWorkTree(force_sync=force_sync, submodules=submodules)
File “/root/oe-core/.repo/repo/project.py”, line 2784, in _InitWorkTree
raise GitError('Cannot initialize work tree for ’ + self.name)
error.GitError: Cannot initialize work tree for meta-qt4
after this error I try it again but got this error
root@srv169390:~/oe-core# repo sync
Fetching projects: 94% (16/17) meta-jetson-tk1.gitfatal: unable to access ‘https://git.yoctoproject.org/git/meta-qt4/’: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
fatal: unable to access ‘https://git.yoctoproject.org/git/meta-qt4/’: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
error: Cannot fetch meta-qt4 from https://git.yoctoproject.org/git/meta-qt4
Fetching projects: 100% (17/17), done.
Hi @kavevso !
Could you please check that you have the required packages to build an image using Yocto? (reference: Build a Reference Image with Yocto Project/OpenEmbedded | Toradex Developer Center)
Also, which manifest file did you use to download the layers and recipes?
I quickly tried to directly clone the meta-qt4 and it was successful.
Best regards,
This is what I did. If it helps I could add my log on these commands.
On my server (Germany) Ubuntu 18.0.4
apt-get update
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
sudo apt-get install libsdl1.2-dev xterm
sudo apt-get install make xsltproc docbook-utils fop dblatex xmlto
sudo apt-get install python-git
mkdir ~/bin
export PATH=~/bin:$PATH
sudo apt install curl
curl https://storage.googleapis.com/git-repo-downloads/repo-1 > ~/bin/repo
chmod a+x ~/bin/repo
mkdir ${HOME}/oe-core
cd ${HOME}/oe-core
repo init -u Index of /toradex-bsp-platform.git -b LinuxImageV2.8
repo sync
Hi @kavevso !
Can you check if you have ca-certificates
installed?
Also, have you tried again? Maybe you faced an unfortunate network/internet connection hiccup?
Maybe this can help you: Server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none - Stack Overflow
Best regards,
Hi @henrique.tx
I try again with “sudo apt-get update && sudo apt-get upgrade”
and it look like pass this step after that
. export
and edit oe-core/build/conf/local.conf
then run
bitbake -k angstrom-qt5-x11-image
but got this error , may I have your comment on this
root@srv169635:~/oe-core/build# bitbake -k angstrom-qt5-x11-image
ERROR: OE-core’s config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Do not use Bitbake as root.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Tnx
Hi @kavevso ,
To avoid this behaviour in the future, we recommend installing all the necessary tools and dependencies as a non-root user.
Best Regards
Kevin
for certification error update & upgrade solve the problem
sudo apt-get update
sudo apt-get -y upgrade
I make a new user with Root privilege and do all steps again and it is fine
Hi @kavevso !
As your error stated, it is better to not use root user for Bitbake.
Also, after your issue is solved, please mark the suitable message as the solution.
Best regards,