1 Get the Source and prebuild binary
2 ==================================
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
16 > make CROSS_COMPILE_ta_arm32=arm-none-eabi- PLATFORM=rockchip-rk322x
17 Get tee.bin in this step, copy it to U-Boot root dir:
18 > cp out/arm-plat-rockchip/core/tee-pager.bin ../u-boot/tee.bin
24 > export CROSS_COMPILE=arm-linux-gnueabihf-
26 > make evb-rk3229_defconfig
30 Get tpl/u-boot-tpl.bin, spl/u-boot-spl.bin and u-boot.itb in this step.
32 Compile the rkdeveloptool
33 =======================
34 Follow instructions in latest README
41 Get rkdeveloptool in you Host in this step.
43 Both origin binaries and Tool are ready now, choose either option 1 or
44 option 2 to deploy U-Boot.
50 > tools/mkimage -n rk322x -T rksd -d tpl/u-boot-spl.bin idbloader.img
51 > cat spl/u-boot-spl.bin >> idbloader.img
53 Get idbloader.img in this step.
55 Flash the image to eMMC
56 =======================
57 Power on(or reset with RESET KEY) with MASKROM KEY preesed, and then:
59 > rkdeveloptool db rkbin/rk32/rk322x_loader_v1.04.232.bin
60 > rkdeveloptool wl 64 u-boot/idbloader.img
61 > rkdeveloptool wl 0x4000 u-boot/u-boot.itb
64 Flash the image to SD card
65 ==========================
66 > dd if=u-boot/idbloader.img of=/dev/sdb seek=64
67 > dd if=u-boot/u-boot.itb of=/dev/sdb seek=16384
69 You should be able to get U-Boot log message with OP-TEE boot info.
71 For more detail, please reference to:
72 http://opensource.rock-chips.com/wiki_Boot_option