xref: /openbmc/u-boot/board/rockchip/sheep_rk3368/README (revision 156d64fa55e9914b144c5e83f2a9e13d1223a4d3)
1*e2901ab8SAndy YanHere is the step-by-step to boot to U-Boot on rk3368.
2*e2901ab8SAndy Yan
3*e2901ab8SAndy YanGet miniloader and trust.img form rockchip vendor u-boot source code
4*e2901ab8SAndy Yan==============================================================================
5*e2901ab8SAndy Yan  > git clone  https://github.com/rockchip-linux/u-boot.git rockchip-uboot
6*e2901ab8SAndy Yan  > cd rockchip-uboot
7*e2901ab8SAndy Yan  > make rk3368_defconfig /*chose px5_defconfig if you run a px5 platform here*/
8*e2901ab8SAndy Yan  > ./mkv8.sh
9*e2901ab8SAndy Yan
10*e2901ab8SAndy YanCompile the upstream U-Boot
11*e2901ab8SAndy Yan===========================
12*e2901ab8SAndy Yan  > cd u-boot
13*e2901ab8SAndy Yan  > make CROSS_COMPILE=aarch64-linux-gnu- sheep-rk3368_defconfig  all
14*e2901ab8SAndy Yan
15*e2901ab8SAndy YanPackage u-boot for miniloader
16*e2901ab8SAndy Yan================================
17*e2901ab8SAndy Yan  > ../rockchip-uboot/tools/loaderimage --pack --uboot u-boot.bin u-boot.img
18*e2901ab8SAndy Yan
19*e2901ab8SAndy YanFlash the image by rkdeveloptool
20*e2901ab8SAndy Yan================================
21*e2901ab8SAndy Yanrkdeveloptool can get from https://github.com/rockchip-linux/rkdeveloptool.git
22*e2901ab8SAndy Yan
23*e2901ab8SAndy YanPower on(or reset with RESET KEY) with MASKROM KEY preesed, and then:
24*e2901ab8SAndy Yan  > rkdeveloptool db ./rockchip-uboot/rk3368_loader_v2.00.256.bin
25*e2901ab8SAndy Yan  > rkdeveloptool wl 0x6000 ./rockchip-uboot/trust.img
26*e2901ab8SAndy Yan  > rkdeveloptool wl 0x4000 ./u-boot/u-boot.img
27*e2901ab8SAndy Yan  > rkdeveloptool RD
28*e2901ab8SAndy Yan
29*e2901ab8SAndy YanYou should be able to get U-Boot log message from boot console:
30*e2901ab8SAndy Yan
31*e2901ab8SAndy YanU-Boot 2017.05-rc3-01094-g9ddd1e8-dirty (May 15 2017 - 15:57:23 +0800)
32*e2901ab8SAndy Yan
33*e2901ab8SAndy YanModel: Rockchip sheep board
34*e2901ab8SAndy YanDRAM:  2 GiB
35*e2901ab8SAndy YanMMC:   dwmmc@ff0f0000: 0
36*e2901ab8SAndy YanUsing default environment
37*e2901ab8SAndy Yan
38*e2901ab8SAndy YanIn:    serial@ff690000
39*e2901ab8SAndy YanOut:   serial@ff690000
40*e2901ab8SAndy YanErr:   serial@ff690000
41*e2901ab8SAndy YanNet:   Net Initialization Skipped
42*e2901ab8SAndy YanNo ethernet found.
43*e2901ab8SAndy YanHit any key to stop autoboot:  0
44*e2901ab8SAndy Yan=>
45