README 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. Get the Source and prebuild binary
  2. ==================================
  3. > mkdir ~/evb_rk3229
  4. > cd ~/evb_rk3229
  5. > git clone git://git.denx.de/u-boot.git
  6. > git clone https://github.com/OP-TEE/optee_os.git
  7. > git clone https://github.com/rockchip-linux/rkbin.git
  8. > git clone https://github.com/rockchip-linux/rkdeveloptool.git
  9. Compile the OP-TEE
  10. ===============
  11. > cd optee_os
  12. > make clean
  13. > make CROSS_COMPILE_ta_arm32=arm-none-eabi- PLATFORM=rockchip-rk322x
  14. Get tee.bin in this step, copy it to U-Boot root dir:
  15. > cp out/arm-plat-rockchip/core/tee-pager.bin ../u-boot/tee.bin
  16. Compile the U-Boot
  17. ==================
  18. > cd ../u-boot
  19. > export CROSS_COMPILE=arm-linux-gnueabihf-
  20. > make evb-rk3229_defconfig
  21. > make
  22. > make u-boot.itb
  23. Get tpl/u-boot-tpl.bin, spl/u-boot-spl.bin and u-boot.itb in this step.
  24. Compile the rkdeveloptool
  25. =======================
  26. Follow instructions in latest README
  27. > cd ../rkflashtool
  28. > autoreconf -i
  29. > ./configure
  30. > make
  31. > sudo make install
  32. Get rkdeveloptool in you Host in this step.
  33. Both origin binaries and Tool are ready now, choose either option 1 or
  34. option 2 to deploy U-Boot.
  35. Package the image
  36. =================
  37. > cd ../u-boot
  38. > tools/mkimage -n rk322x -T rksd -d tpl/u-boot-spl.bin idbloader.img
  39. > cat spl/u-boot-spl.bin >> idbloader.img
  40. Get idbloader.img in this step.
  41. Flash the image to eMMC
  42. =======================
  43. Power on(or reset with RESET KEY) with MASKROM KEY preesed, and then:
  44. > cd ..
  45. > rkdeveloptool db rkbin/rk32/rk322x_loader_v1.04.232.bin
  46. > rkdeveloptool wl 64 u-boot/idbloader.img
  47. > rkdeveloptool wl 0x4000 u-boot/u-boot.itb
  48. > rkdeveloptool rd
  49. Flash the image to SD card
  50. ==========================
  51. > dd if=u-boot/idbloader.img of=/dev/sdb seek=64
  52. > dd if=u-boot/u-boot.itb of=/dev/sdb seek=16384
  53. You should be able to get U-Boot log message with OP-TEE boot info.
  54. For more detail, please reference to:
  55. http://opensource.rock-chips.com/wiki_Boot_option