-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when testing optee os with arm trusted firmware (I utilized optee os tee.bin as bl32 image) on juno platform, I got an error #149
Comments
Hi, OP-TEE is too large to fit in tsram, please build ARM-TF with: Regards, |
Thanks for you replay. I recompiled ARM-TF with: PLAT_TSP_LOCATION=dram. My serial console printed log: is that on a OK condition? Do I have to use an extra serial cable to print optee os's log? |
OP-TEE outputs on UART3 so you need an extra serial cable. Since it stopped at "Initializing BL3-2" I'm suspecting that something went wrong when OP-TEE was initializing, hopefully you'll see something on UART3. Which arguments did you use to build OP-TEE? |
hi, I build OP-TEE like this: #/bin/bash Is that OK? 2014-12-08 17:25 GMT+08:00 Jens Wiklander notifications@github.com:
|
Looks OK. Perhaps some recent change in ARM-TF is breaking OP-TEE? I've tested OK with 0f4b06347b4c2a5d018e085f7102fd3cc10ffa88. Regards, |
hi, I also tested with 0f4b06347b4c2a5d018e085f7102fd3cc10ffa88, but it 2014-12-08 18:04 GMT+08:00 Jens Wiklander notifications@github.com:
|
hi, the juno board I got has only two uart channels on the rear. At present, I utilize UART0 to print ARM-TF log. The other uart channel is UART1 as juno board's "Getting Started" says. There is no UART3. |
Hi diamond001, There are four UARTs on Juno. Two are internal and two are external. Exactly how they are configured depends on which ARM-TF commit you are using. For more information please see the following ARM-software/tf-issues#220. In OP-TEE you can see how this is used here. Depending on your use case, you probably have to change this accordingly in ARM-TF and/or OP-TEE. |
Hi diamond001, Are you still stuck at "Initializing BL3-2"? cd arm-trusted-firmware |
Many thanks to you all. I tried to change the version() of optee os to sovle this problem. cd optee_os then I rebuild optee os and ARM-TF, the problem has been sovled. The git log of this version: commit 90e7497
BTW, in optee_os, I tried to switch between many versions, I found that the I tried to compare version a7ec939 Could you please help me? 2014-12-10 17:15 GMT+08:00 vchong notifications@github.com:
|
I'll have a look at it next time I have access to Juno hardware, probably during next week. |
I can reproduce the problem. I'm able to boot Juno OK on master (d6d47ed) though, using ARM-TF commit 0f4b06347b4c2a5d018e085f7102fd3cc10ffa88. |
Many thanks. 2014-12-16 17:50 GMT+08:00 Jens Wiklander notifications@github.com:
|
I had the same issue and now work with the 'old' version. |
The problem is that ARM-TF doesn't have generic support to load partitioned binaries. The current patch is a temporary solution that also gives a good example of what we need to load OP-TEE. I've discussed this with one of the ARM-TF engineers and some generic support for loading partitioned binaries will be added. Once that's in place we'll prepare new OP-TEE patches which we'll try to get merged into ARM-TF. |
Related to ARM-software/tf-issues#301, still to be resolved |
when I tested optee os with arm trusted firmware (I utilized optee os tee.bin as bl32 image) on juno platform, I got an error:
INFO: Using FIP
INFO: Loading file 'bl32.bin' at address 0x4023000
WARNING: Failed to reserve memory: 0x4023000 - 0x407e540
INFO: Trying to load image at address 0x4023000, size = 0x5b540
INFO: Current memory layout:
INFO: total region = [0x4023000, 0x4040000]
INFO: free region = [0x4023000, 0x4040000]
WARNING: Failed to load BL3-2 (-12)
I found that tee.bin is 172K, but the tzram free space for bl32 is 64K (./plat/juno/include/platform_def.h), it's smaller than the requested size.
I tried to modify the size of tzram for bl32, but the atf stop at the beginning of bl2:
VERBOSE: Reserved 12288 bytes (discarded 0 bytes below)
INFO: BL1: 0x4001000 - 0x4004000 [size = 12288] -- hugo -002
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v1.0(debug):bbb59e7
NOTICE: BL1: Built : 16:28:51, Dec 5 2014
INFO: BL1: RAM 0x4001000 - 0x4004000
VERBOSE: FIP header looks OK.
INFO: Using FIP
INFO: Loading file 'bl2.bin' at address 0x4053000
VERBOSE: Reserved 53248 bytes (discarded 32760 bytes above)
INFO: File 'bl2.bin' loaded: 0x4053000 - 0x4058008
VERBOSE: Reserved 12288 bytes (discarded 0 bytes below)
NOTICE: BL1: Booting BL2
INFO: BL1: BL2 address = 0x4053000
INFO: BL1: BL2 spsr = 0x3c5
VERBOSE: BL1: BL2 memory layout address = 0x4004000
Could you please tell me how to solve this problem?
The text was updated successfully, but these errors were encountered: