06-29-2017 10:36 AM
"Checking sstate mirror object availability" takes a very long time during "petalinux-build". Is there any way to mitigate this?
06-30-2017 12:33 AM
Since sstate mirror check is part of petalinux-build, you can only speed up this process if you increase parallel threads in petalinux-config ---> Yocto settings ---> Select No of threads here as max 8
Also, it depends on host machine on which you are building, if its fast enough, then build will also be fast
07-01-2017 12:05 PM
There is decent CPU utilization by default so I would guess parallel build is enabled. I tried changing this manually, as suggested, and there doesn't seem to be a difference.
I am seeing ~20 minutes to "petalinux-build" right after a previous "petalinux-build". 4 cores @ 4.4GHz (HTT disabled) Ubuntu 16.04 under VMware Workstation. No change in anything, just a rebuild. It seems to spend most of the time "Checking sstate mirror".
I've gone through compiling the kernel on this VM before, and a nop rebuild doesn't take much time. I suspect the slowdown is related to the Yocto/Bitbake tooling?
07-19-2017 01:25 AM
08-01-2017 08:31 AM
This appears to be fixed in Petalinux 2017.2 - at least for a simple "Create Block Design" -> "Add Zynq" -> "Generate Bitstream" -> "petalinux-create ..." -> "petalinux-build"
09-13-2017 04:41 AM
I am using the PetaLinux 2017.2 in the virtual machine of CentOS 7.3.
I found a way to reduce the time of "Checking sstate mirror object availability".
Firstly, you should download the sstate-cache from the webset:
And set the local sstate-cache directions for arm and downloads.
Secondly, before you using the "petalinux-build". You should disconnect the ethernet link of the virtual machine.
Then you can speed up the process of the Checking sstate mirror....
10-25-2017 06:59 AM
This is helpful and it does speed things up. It was showing hours during that stage of the build until I disconnected from the network. I really don't want to have to disconnect the network everytime I want to do a build. Is there any other way beside disconnecting the network? There has to be.
12-11-2017 05:22 PM
YOCTO setting ->
Enbale sstate cache internet feeds. (Don't select this option )
Then, I need not disconnect my internet, it can feed up compile speed.