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 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-- Copy
smcchar.kotooptee/gen_rootfs/etc - Add the following line to
optee/gen_rootfs/filelist.txt
file /etc/smcchar.ko etc/smcchar.ko 644 0 0
Start OPTEE and execute following commands to load smcchar.ko:
# mound_shared /mnt
# insmod /mnt/optee_examples/agent/smcchar/smcchar.ko