4 RK3399 key features we might use in U-Boot:
5 * CPU: ARMv8 64bit Big-Little architecture,
6 * Big: dual-core Cortex-A72
7 * Little: quad-core Cortex-A53
9 * DRAM: 4GB-128MB dual-channel
10 * eMMC: support eMMC 5.0/5.1, suport HS400, HS200, DDR50
11 * SD/MMC: support SD 3.0, MMC 4.51
12 * USB: USB3.0 typc-C port *2 with dwc3 controller
13 * USB2.0 EHCI host port *2
14 * Display: RGB/HDMI/DP/MIPI/EDP
17 * regulator: pwm regulator for CPU B/L
19 * debug console: UART2
21 In order to support Arm Trust Firmware(ATF), we need to use the
22 miniloader from rockchip which:
24 * load and verify ATF image
25 * load and verify U-Boot image
27 Here is the step-by-step to boot to U-Boot on rk3399.
29 Get the Source and prebuild binary
30 ==================================
34 > git clone https://github.com/ARM-software/arm-trusted-firmware.git
35 > git clone https://github.com/rockchip-linux/rkbin
36 > git clone https://github.com/rockchip-linux/rkflashtool
41 > cd arm-trusted-firmware
43 > make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 bl31
49 > make CROSS_COMPILE=aarch64-linux-gnu- evb-rk3399_defconfig all
51 Compile the rkflashtool
52 =======================
57 Package the image for miniloader
58 ================================
60 > cp arm-trusted-firmware/build/rk3399/release/bl31.bin rkbin/rk33
61 > ./rkbin/tools/trust_merger rkbin/tools/RK3399TRUST.ini
62 > ./rkbin/tools/loaderimage --pack --uboot u-boot/u-boot-dtb.bin uboot.img
64 > mv trust.img ./image/
65 > mv uboot.img ./image/rk3399evb-uboot.bin
69 Power on(or reset with RESET KEY) with MASKROM KEY preesed, and then:
71 > ./rkflashtool/rkflashloader rk3399evb
73 You should be able to get U-Boot log message in console/UART2 now.