Closed ychen404 closed 4 years ago
Hi @ychen404 ,
Seems there is a problem when packing initramfs. Can you please try to remove the data folder from optee/out-br/target/root/
, and only keep darknetp/
in the optee_examples/
folder?
Another issue could be the OPTEE version is not compatible. Please try to downgrade it to 3.4.0
following https://github.com/OP-TEE/optee_docs/blob/master/building/gits/build.rst
Hi @mofanv
I removed the data folder from opt/out-br/target/root/
and only kept darknetp
in the optee_examples
folder.
Now the OS can boot without getting initramfs issue.
But when i tried to run darknetp in the Normal World, I got the following error message.
Prepare session with the TA
darknetp: TEEC_Opensession failed with code 0xffff000c origin 0x3
I will try to downgrade op-tee to 3.4.0. Do I need to replace the build folder using your link, https://github.com/OP-TEE/optee_docs/blob/master/building/gits/build.rst
Or, it is fine to use the build folder from git as follows? ./repo init -u https://github.com/OP-TEE/manifest.git -m default.xml -b 3.4.0
Thanks!
I'd suggest removing the OPTEE project and do all things from the beginning to avoid any possible issues. Could you try to clone the OPTEE again, and then use the following command to initialize the branch (same in the link I sent above)?
repo init -u https://github.com/OP-TEE/manifest.git -m rpi3.xml -b 3.4.0
Please let me know whether version 3.4.0
fix errors or not. Thanks.
Hi Fan,
I am using QEMU v7. Can I use the branch 3.4.0 for default.xml instead?
On Thu, Apr 30, 2020 at 2:34 AM Mo, Fan Vincent notifications@github.com wrote:
I'd suggest removing the OPTEE project and do all things from the beginning to avoid any possible issues. Could you try to clone the OPTEE again, and then use the following command to initialize the branch (same in the link I sent above)?
repo init -u https://github.com/OP-TEE/manifest.git -m rpi3.xml -b 3.4.0
Please let me know whether version 3.4.0 fix errors or not. Thanks.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mofanv/darknetz/issues/12#issuecomment-621723948, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJO3TW4FFI2MIPDH7H4GDTRPFA23ANCNFSM4MM4LGKA .
Yes. go ahead. QEMU v7 should work with default.xml
Hi! I encountered the same problem as @ychen404, that I also got the darknetp: TEEC_Opensession failed with code 0xffff000c origin 0x3
error message after removing data folder from opt/out-br/target/root/
. I am using QEMU v7 with branch 3.4.0. Please let me know about any idea of how it can be fixed. Thanks in advance!
@LiTszOn Hi, is there any error when you run the hello_world
example?
@mofanv Many thanks for your swift reply! No, there is no error when I run hello_world
, which outputs
Invoking TA to increment 42 TA incremented value to 43
There is also no error when I run random
,hotp
etc.
@mofanv Still not working with 3.4.0. I have no error running hello world.
# darknetp
Prepare session with the TA
darknetp: TEEC_Opensession failed with code 0xffff0008 origin 0x3
@mofanv It is working now after reducing the required memory size to 2 MB. Thanks.
@ychen404 Thanks for your feedback. May I know if you constrain the required memory size to 2 MB by specifying -m 2M
in the Makefile under optee/build
?
No, the memory size is defined in a header file, which locates at:
ta/include/user_ta_header_defines.h
You only need to change
#define TA_DATA_SIZE
To 2 MB.
@ychen404 Thank you for your prompt reply!! It works now, thanks a lot!!
@mofanv I am having trouble running optee 3.4.0 on Raspberry Pi 3b+. I used the following command to init the repo, as you recommended.
repo init -u https://github.com/OP-TEE/manifest.git -m rpi3.xml -b 3.4.0
But I am getting the following invalid path error.
ManifestInvalidPathError: <linkfile> invalid "src": ../toolchains/aarch64/bin/aarch64-linux-gnu-gdb: bad component
Can you point me some directions. Thanks.
It is highly probable that this is an OPTEE problem, I'd suggest you ask the OPTEE team because they know this better.
Hi,
I am having problem integrating darknetz with op-tee. I am able to run op-tee and pass all the test item of xtest without integrating darknetz. But once I copy the darknetz folder and the tzdatasets folder to op-tee using the following two commands provided on this repo.
Then I run into kernel panic and the following is the error message from the normal world terminal.
Following is the error message from Secure World
I have no idea how integrating darknetz can lead to booting issue. Any help is appreciated!