eSDK 'setscene whitelist'
Hello all,
I am writing to ask if you could possibly help me to resolve error during building eSDK.
During building eSDK I faced an error: failed with exit code 'setscene whitelist'.
Preconditions:
- Yocto dunfell
- used SoC vendor's layer xarina-sdk
- distro: xarina-s-evb-distro based on poky version: 3.1.11
- machine: xarina-s-evb cortexa9hf-neon
- The issue is reproduced on:
distro: xarina-s-evb-distro
machine: xarina-s-evb
target: xarina-s-evb-image-debug
- The issue is not reproduced on:
distro: poky
machine:qemux86-64
target: core-image-minimal
During processing 'bitbake xarina-s-evb-image-debug -c populate_sdk_ext' the new build-system is generated to the directory 'xarina-build-dunfell/tmp/work/xarina_s_evb-poky-linux-gnueabi/xarina-s-evb-image-debug/1.0-r0/sdk-ext/image/tmp-renamed-sdk'.
After that in 'tmp-renamed-sdk' is executed 'BB_SETSCENE_ENFORCE=1 bitbake -n xarina-s-evb-image-debug'. But it fails with 'setscene whitelist' error. Bitbake attempts to execute a task 'linux-xarina:do_fetch'. But this task is not under the whitelist established for 'tmp-renamed-sdk'. Bitbake attempts to execute 'linux-xarina:do_fetch' because it depends on another task 'xarina-s-evb-image-debug:do_image_complete' that is not covered. But it is supposed to be covered by the time of creation 'tmp-renamed-sdk'.
I have the following stamp files for the task 'xarina-s-evb-image-debug:do_image_complete':
In the original build system stamp files:
do_image_complete.4016b0b3eca996a1bf85306886e895555affb655a5c66cd7042760749b372a04.xarina_s_evb do_image_complete_setscene.sigbasedata.4ad046af069b754c70e9c791b62e737777b41f04dc4354eb65255d39118844a1 do_image_complete.sigbasedata.3262e62d12c0460539aa7d4696957b662f39ee172e1351e8a60d845df8e3fdd4 do_image_complete.sigbasedata.954712fcd44e248587d7287939ba449453f56581e21d7eb80e766b9fd67113b2 do_image_complete.sigbasedata.bab4a6d4ae8ff5b8ee789fb5b4c3a386b751d8fa04b85a32c76648190471d6b8 do_image_complete.sigbasedata.e77b9b9468bb8e687a77739091458e8384ddbc5708396470d8fdf1fccf6cbaea do_image_complete.sigdata.1bdf5d197c3795c552a2f01b0b7e5cf12c406c5002301a7cab12bd2ca39558b5 do_image_complete.sigdata.4016b0b3eca996a1bf85306886e895555affb655a5c66cd7042760749b372a04
And in the 'tmp-renamed-sdk' build system stamp files:
do_image_complete_setscene.sigbasedata.46473df9fc35eb915d83681fbcdf7018888646d2e8aeca00f826a3340fbe8564 do_image_complete.sigbasedata.954712fcd44e248587d7287939ba449453f56581e21d7eb80e766b9fd67113b2
Why is 'xarina-s-evb-image-debug:do_image_complete' is not covered? How to find out why it is not covered? What could help me to find out this?
This issue make me crazy. I have spent a lot of time for this.
During investigation the issue I have got some questions. It would be appreciated if you could help me to find answers to the following questions:
1) A task have a taskhash. Why do we need a basehash and a unihash for a task ? What is the point of these hashes?
2) Stamp files. In the stamp files directory there are four types of files:
- do_xxx.hash
- do_xxx.sigbasedata.hash
- do_xxx.sigdata.hash
- do_xxx.siginfo.hash
I guess the first one indicates that the task is complete.
I heard of utilities “bitbake-dumpsig” and “bitbake-diffsig” that could help me to find out the reason of the difference between tasks sources, that leads to different stamp files. But the utilities do not work if the task does not have a *.sigdata.* stamp file. In my case mostly *.sigdata.* files are absent for the tasks. Why some tasks do have *.sigdata.* stamp files but other don’t? In the build directory tmp-renamed-sdk I did not find any *.sigdata.* stamp files at all.
3) I have read a lot of documentations about setscene. But it does not make much sense for me.
3.1) How, when and depending on what is generated the source code for a task “xxx_setscene”? Is there any source code of “xxx_setscene” task? Or is "_setscene" just a text string (mark/suffix) meaning that there is no need to execute a task “xxx” and instead of execution it is needed to unpack the task “xxx” artifacts from the sstate-cache?
3.2) Some tasks can have '_setscene' versions and others can not. How does bitbake determines that a task can have a '_setscene' version or the task cannot have it in general? Can I create a 'xxx_setscene' task directly?
3.3) What do mean hashes in the names of stamp files for the tasks 'xxx_setscene'? What is the difference between them and those I mentioned in the point 1 and 2?
4) Is there any documentation for bitbake-core that could in details describe internal structure, logic and algorithms for: task-shedulers, resipe-dependencies, resipe-caches, stamp files, sstate-cache etc. ?
Unfortunately documentations “Yocto Mega Manual”and “Bitbalke User Manual” describes these topics superficially. Perhaps is there any additional documentation for internal logic and algorithms of Bitbake?
It would be much appreciated if you could help me to find a solution to solve eSDK issue and help me to find the answers about Bitbake internal structure.
Thank you in advance,
Michail