benhaz1024 / raspbian-tee Goto Github PK
View Code? Open in Web Editor NEWRaspbian with OP-TEE support.
Raspbian with OP-TEE support.
Hello,
I practice op-tee recently, and your project is really helpful to me.
However, it seems the version of the raspbian and op-tee is about six months ago.
How can I update these components?
Can I just download the newer version, and do the same steps to build them?
Or I need to modify some files, such as Makefile or patch.
Your advices will be greatly appreciated. Thanks.
@benhaz1024
Hi,
I created a new example code, I have put the .ta under / lib / optee_armtz and the executable under / bin but when I run the program I get:
optee_example_my_ta_test: TEEC_Opensession failed with code 0xffff3024 origin 0x3
Is there a solution or am I missing something?
Thank you so much!
add
kernel=u-boot.bin
might want a cp in Makefile
Hi @benhaz1024
Wondering if there's any changes need to be made on the Makefile if my toolchains dir is inside the raspbian-tee dir. When running make, the error arm-none-linux-gnueabihf/bin/ld: cannot find -lteec collect2: error: ld returned 1 exit status
still persists.
If i run gcc -lteec --verbose
on my local bins, it still outputs the same error /usr/bin/ld: cannot find -ltee
For context, Im running on Ubuntu 20.04.3 LTS for my Rpi3B+
hello @benhaz1024,
I'm trying to follow up on your work.
But my target is not booting.
I'm new, so I don't know many things. So even if you give me a little advice, I'll appreciate it.
Below is my development environment and my details.
Did I do anything wrong?
Host OS : ubuntu 16.04
Cross Build Toolchain
- gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz
- gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf.tar.xz
Hardware : Raspberry pi3 B+
Raspbian : 2019-09-26-raspbian-buster-lite.img
MicroSD : 8GB
I checked that the Razbian boots and runs normally in this state for an intermediate inspection.
download benhaz1024/raspbian-tee
$ git clone https://github.com/benhaz1024/raspbian-tee.git
config your cross build toolchain at config.mk
$ vi config.mk
export CROSS_COMPILE := /home/work/raspbian-tee/toolchains/aarch32/bin/arm-linux-gnueabihf-
export CROSS_COMPILE_AARCH64 := /home/work/raspbian-tee/toolchains/aarch64/bin/aarch64-linux-gnu-
download all packages and build
$ ./prepare-env.sh
$ make patch
$ make
confirm out folder results
All the same output as the capture screen at https://github.com/gagachang/raspbian-tee/tree/add_xtest#build was in the out folder.
Install
https://github.com/gagachang/raspbian-tee/tree/add_xtest#install
I copied the results from out to MicroSD with raspbian installed.
$ sudo mount /dev/sdd1 /media/sdd1
$ sudo cp -rf ./out/boot/* /media/sdd1
$ sudo mount /dev/sdd2 /media/sdd2
$ sudo cp -rf ./out/rootfs/* /media/sdd2
$ sudo umount /dev/sdd1
$ sudo umount /dev/sdd2
I don't know what's wrong with me.
If possible, could you tell me more about your environment?
For example, raspbian version and cross copiler version.
I'd really appreciate it if you could help me.
If someone who have succeeded in this project know my problems, please advise me. (@gagachang, @mnwrhsn, @Ruide, @Hacklog24)
Thanks,
Although I enable I2C/SPI in the config.txt
(say dtparam=i2c_arm=on
and
dtparam=spi=on
) I can't access from NW in Raspbian -- returns the error:
Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory
I have similar problem in older version of OPTEE (that uses older u-boot without device tree support, see the issue:OP-TEE/optee_os#2957) -- however this should not the be case here since we are using updated u-boot with device-tree.
Any thoughts?
can comment out
and
run load_fdt in mmcboot
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.