README 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Introduction
  2. ============
  3. RK3399 key features we might use in U-Boot:
  4. * CPU: ARMv8 64bit Big-Little architecture,
  5. * Big: dual-core Cortex-A72
  6. * Little: quad-core Cortex-A53
  7. * IRAM: 200KB
  8. * DRAM: 4GB-128MB dual-channel
  9. * eMMC: support eMMC 5.0/5.1, suport HS400, HS200, DDR50
  10. * SD/MMC: support SD 3.0, MMC 4.51
  11. * USB: USB3.0 typc-C port *2 with dwc3 controller
  12. * USB2.0 EHCI host port *2
  13. * Display: RGB/HDMI/DP/MIPI/EDP
  14. evb key features:
  15. * regulator: pwm regulator for CPU B/L
  16. * PMIC: rk808
  17. * debug console: UART2
  18. In order to support Arm Trust Firmware(ATF), we need to use the
  19. miniloader from rockchip which:
  20. * do DRAM init
  21. * load and verify ATF image
  22. * load and verify U-Boot image
  23. Here is the step-by-step to boot to U-Boot on rk3399.
  24. Get the Source and prebuild binary
  25. ==================================
  26. > mkdir ~/evb_rk3399
  27. > cd ~/evb_rk3399
  28. > git clone https://github.com/ARM-software/arm-trusted-firmware.git
  29. > git clone https://github.com/rockchip-linux/rkbin
  30. > git clone https://github.com/rockchip-linux/rkflashtool
  31. Compile the ATF
  32. ===============
  33. > cd arm-trusted-firmware
  34. > make realclean
  35. > make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 bl31
  36. Compile the U-Boot
  37. ==================
  38. > cd ../u-boot
  39. > make CROSS_COMPILE=aarch64-linux-gnu- evb-rk3399_defconfig all
  40. Compile the rkflashtool
  41. =======================
  42. > cd ../rkflashtool
  43. > make
  44. Package the image for miniloader
  45. ================================
  46. > cd ..
  47. > cp arm-trusted-firmware/build/rk3399/release/bl31.bin rkbin/rk33
  48. > ./rkbin/tools/trust_merger rkbin/tools/RK3399TRUST.ini
  49. > ./rkbin/tools/loaderimage --pack --uboot u-boot/u-boot-dtb.bin uboot.img
  50. > mkdir image
  51. > mv trust.img ./image/
  52. > mv uboot.img ./image/rk3399evb-uboot.bin
  53. Flash the image
  54. ===============
  55. Power on(or reset with RESET KEY) with MASKROM KEY preesed, and then:
  56. > ./rkflashtool/rkflashloader rk3399evb
  57. You should be able to get U-Boot log message in console/UART2 now.