| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| Kconfig | H A D | 05-Jun-2025 | 204 | 16 | 10 | |
| MAINTAINERS | H A D | 05-Jun-2025 | 185 | 7 | 6 | |
| Makefile | H A D | 05-Jun-2025 | 118 | 8 | 1 | |
| README | H A D | 05-Jun-2025 | 2.1 KiB | 72 | 56 | |
| gva_rk3229.c | H A D | 05-Jun-2025 | 2.9 KiB | 125 | 89 |
README
1Get the Source and prebuild binary 2================================== 3 4 > mkdir ~/gva_rk3229 5 > cd ~/gva_rk3229 6 > git clone git://git.denx.de/u-boot.git 7 > git clone https://github.com/OP-TEE/optee_os.git 8 > git clone https://github.com/rockchip-linux/rkbin.git 9 > git clone https://github.com/rockchip-linux/rkdeveloptool.git 10 11Compile the OP-TEE 12(For Android Things Project, use the image bellow. 13<android root>/vendor/bsp/rockchip/security/optee/os/trust_with_ta.img) 14=============== 15 16 > cd optee_os 17 > make clean 18 > make CROSS_COMPILE_ta_arm32=arm-none-eabi- PLATFORM=rockchip-rk322x 19 Get tee.bin in this step, copy it to U-Boot root dir: 20 > cp out/arm-plat-rockchip/core/tee-pager.bin ../u-boot/tee.bin 21 22Compile the U-Boot 23(For Android Things Project, use Android build system.) 24================== 25 26 > cd ../u-boot 27 > export CROSS_COMPILE=arm-linux-gnueabihf- 28 > export ARCH=arm 29 > make gva-rk3229_defconfig 30 > make u-boot-dtb.bin 31 32 Get u-boot-dtb.bin in this step. 33 34Compile the rkdeveloptool 35======================= 36 Follow instructions in latest README 37 > cd ../rkdeveloptool 38 > sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf 39 > autoreconf -i 40 > ./configure 41 > make 42 43 Get rkdeveloptool in you Host in this step. 44 45Both origin binaries and Tool are ready now, choose either option 1 or 46option 2 to deploy U-Boot. 47 48Package the image 49(For Android Things Project, use Android build system.) 50================= 51 52 > cd ../u-boot 53 > rkbin/tools/loaderimage --pack --uboot u-boot-dtb.bin uboot.img 0x61000000 54 55 Get uboot.img in this step. 56 57Flash the image to eMMC 58(For Android Things Project that supports AB update, 59please follow google's documents.) 60======================= 61Power on(or reset with RESET KEY) with MASKROM KEY preesed, and then: 62 > cd .. 63 > rkdeveloptool db rkbin/rk32/rk322x_loader_v1.04.232.bin 64 > rkdeveloptool wl 0x4000 uboot.img 65 > rkdeveloptool wl 0x6000 trust.img 66 > rkdeveloptool rd 67 68You should be able to get U-Boot log message with OP-TEE boot info. 69 70For more detail, please reference to: 71http://opensource.rock-chips.com/wiki_Boot_option 72