How to assemble FIT images with linux and OPTEE?
Quoted 4 lines · Alex G. via lists.yoctoproject.org
Hi,
I'm trying to write a recipe for a secure boot flow. It would look something like this:
Quoted 12 lines
images {
optee@1 { "path/to/tee.bin" }
linux@2 { "path/to/zImage" }
fdt@board { ... }
}
configurations {
secure {
kernel = "optee@1";
loadables = "linux@2";
fdt = "fdt@board";
}
}
Hi,
A quick follow-up. Was wondering if anyone has had to bundle OPTEE and linux before.
Alex
Quoted 14 lines
I've tried to "inherit kernel-fitimage", but soon learned of a couple of limitations:
* images: No way to add an optee binary
* configurations: No way to add a "loadables"Secondly, since this approach would use files from several packages, I think it would be better to have the recipe separate from the kernel build. Bot how would I use files from another recipe? All I could figure out was to first put them in ${DEPLOY_DIR_IMAGE}.
What would be the "correct" way to write such a recipe?
Alex
Quoted 18 lines · Alex G.
Quoted 4 lines · Alex G. via lists.yoctoproject.org
Hi,
I'm trying to write a recipe for a secure boot flow. It would look something like this:
Quoted 12 lines
images {
optee@1 { "path/to/tee.bin" }
linux@2 { "path/to/zImage" }
fdt@board { ... }
}
configurations {
secure {
kernel = "optee@1";
loadables = "linux@2";
fdt = "fdt@board";
}
}
Quoted 5 lines
Hi,
A quick follow-up. Was wondering if anyone has had to bundle OPTEE and linux before.
Alex
Hi Alex,
Not personally but a quick look in the layer index reveals meta-optee:
https://layers.openembedded.org/layerindex/branch/master/layer/meta-optee/
I hope that helps.
If you know of that layer, what's missing?
../Randy
Quoted 19 lines
Quoted 15 lines
I've tried to "inherit kernel-fitimage", but soon learned of a couple of limitations:
* images: No way to add an optee binary
* configurations: No way to add a "loadables"Secondly, since this approach would use files from several packages, I think it would be better to have the recipe separate from the kernel build. Bot how would I use files from another recipe? All I could figure out was to first put them in ${DEPLOY_DIR_IMAGE}.
What would be the "correct" way to write such a recipe?
Alex
Signature · 2 lines
# Randy MacLeod # Wind River Linux