Skip to content

syscase/syscase-optee-agent-smcchar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smcchar

Build

x64 debug build

To debug the module it is possible to build the module without ARM64 inline assembly by setting SYSCASE_DUMMY=1:

$ SYSCASE_DUMMY=1 SYSCASE=../syscase make 

OPTEE cross compile build

To cross compile the module for ARM64 we can use the OPTEE aarch64 toolchain in optee/toolchains/aarch64:

$ SYSCASE=../syscase make KDIR=`pwd`/../../../linux ARCH=arm64 CROSS_COMPILE=`pwd`/../../../toolchains/aarch64/bin/aarch64-linux-gnu-

OPTEE

Adding the module to gen_rootfs

  • Copy smcchar.ko to optee/gen_rootfs/etc
  • Add the following line to optee/gen_rootfs/filelist.txt
file /etc/smcchar.ko etc/smcchar.ko 644 0 0

Loading the module

Start OPTEE and execute following commands to load smcchar.ko:

# mound_shared /mnt
# insmod /mnt/optee_examples/agent/smcchar/smcchar.ko

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors