Hi,
While porting Op-tee.elf on ARM A5 board, it is giving a data abort.
I further tried to debug the code, and I could see that in generic_boot.c inside "init_runtime" function when malloc_add_pool(__heap1_start, __heap1_end - __heap1_start) is called, __mutex_lock is getting called and when cpu_spin_lock(&m->spin_lock) is called at the below point it gives a data abort exception after "cmp r1, #SPINLOCK_UNLOCK".
_spinlock_loop: ldrex r1, [r0] cmp r1, #SPINLOCK_UNLOCK wfene
Can you let me know if I need to make any modifications to make it work.
Regards, Ajith
________________________________ From: Jens Wiklander jens.wiklander@linaro.org Sent: Tuesday, November 29, 2016 6:25:53 PM To: Ajith Kumar Kumsi Cc: tee-dev@lists.linaro.org Subject: Re: [Tee-dev] OpTee porting on ARMv7
On Tue, Nov 29, 2016 at 1:31 PM, Ajith Kumar Kumsi <ajithkumar.kumsi@inedasystems.commailto:ajithkumar.kumsi@inedasystems.com> wrote:
Hi,
Thank you for the reply.
As suggested, I have gone through the http://www.slideshare.net/linaroorg/lcu14-302-how-to-port-optee-to-another-p... and https://github.com/OP-TEE/optee_os#3-platforms-supported
I have downloaded optee_os.
I have gone through the other platforms given under "optee_os/core/arch/arm" and created a new platform and modified changes in platform_config.h, conf.mkhttp://conf.mk, main.c, uart.c, uart.h files accordingly related to the new platform (arm7v-a (cortex a5)).
I tried to export the platform to the new-platform name and tried to build using "make".
I can see that tee.bin got generate in optee_os/out/arm-plat-new/core.
I tried to flash tee.elf in to SRAM and I tried to debug using eclipse, I can see that it is getting halted at optee_os/core/arch/arm/kernel/generic_entry_a32.S at line 58.
FUNC _start , :
58 b . /* Data abort */
Please suggest me on how to proceed further in this regard.
Since you've obviously got a data abort I'd suggest checking LR and DFAR for more clues to the abort.
Regards, Jens
______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.