Git Product home page Git Product logo

lsdk's Issues

fail to build optee example without TA environment variable

Hello Team,

I followed for Developing OP-TEE TA's. After setting the required environment variables, I built the Optee example. But I failed to with the followed error:

entering directory '....../optee_examples/hello_world/ta'
gcc: error: unrecognized command line option '-mstrict-align'

So I added an environment variable for TA_CROSS_COMPILE just like the HOST_CROSS_COMPILE

export TA_CROSS_COMPILE=aarch64-linux-gnu-

Then the build was successful. However, I'm not sure.
Could you please tell me that is this the right way to build an application for Grapeboard?

Thank you in advance.
Vincent

How to correctly increase secure memory size in Grapeboard

Hello Team,
Thanks for the great work.

I'm trying to increase secure memory in the TA, but failed. It seems the maximum TZRAM could reach 64 MB. I checked the conf.mk in optee_os/core/arch/arm/plat-ls/, which said:

$(call force,CFG_DRAM0_BASE,0x80000000)
$(call force,CFG_TEE_OS_DRAM0_SIZE,0x4000000)
ifeq ($(PLATFORM_FLAVOR),ls1012grapeboard)
CFG_HW_UNQ_KEY_REQUEST ?= y
include core/arch/arm/cpu/cortex-armv8-0.mk
$(call force,CFG_TEE_CORE_NB_CORE,1)
$(call force,CFG_DRAM0_SIZE,0x40000000)
$(call force,CFG_CORE_CLUSTER_SHIFT,2)
*CFG_SHMEM_SIZE ?= 0x00200000*
CFG_CYRES ?= y
CFG_CYRES_CERT_CHAIN_ADDR ?= 0x81FFD000
CFG_CYRES_KEY_ADDR ?= 0x81FFC000
CFG_TA_RPC ?= y
endif
CFG_TZDRAM_START ?= ((CFG_DRAM0_BASE + CFG_DRAM0_SIZE) - CFG_TEE_OS_DRAM0_SIZE)
CFG_TZDRAM_SIZE ?= ( CFG_TEE_OS_DRAM0_SIZE - CFG_SHMEM_SIZE)

So the CFG_TZDRAM_SIZE should be around 60 MB at least. However, when I give my TA up to 5 MB for DATA_SIZE in user_ta_header_defines.h, the TA break with 0xffff0008 error. In contrast, 4 MB will not lead to the fail.
Do you have any advice about this problem? Any comment is appreciated.

Thanks,
Vincent

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.