README 1.8 KB

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