xref: /OK3568_Linux_fs/u-boot/board/rockchip/sheep_rk3368/README (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunHere is the step-by-step to boot to U-Boot on rk3368.
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunGet miniloader and trust.img form rockchip vendor u-boot source code
4*4882a593Smuzhiyun==============================================================================
5*4882a593Smuzhiyun  > git clone  https://github.com/rockchip-linux/u-boot.git rockchip-uboot
6*4882a593Smuzhiyun  > cd rockchip-uboot
7*4882a593Smuzhiyun  > make rk3368_defconfig /*chose px5_defconfig if you run a px5 platform here*/
8*4882a593Smuzhiyun  > ./mkv8.sh
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunCompile the upstream U-Boot
11*4882a593Smuzhiyun===========================
12*4882a593Smuzhiyun  > cd u-boot
13*4882a593Smuzhiyun  > make CROSS_COMPILE=aarch64-linux-gnu- sheep-rk3368_defconfig  all
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunPackage u-boot for miniloader
16*4882a593Smuzhiyun================================
17*4882a593Smuzhiyun  > ../rockchip-uboot/tools/loaderimage --pack --uboot u-boot.bin u-boot.img
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunFlash the image by rkdeveloptool
20*4882a593Smuzhiyun================================
21*4882a593Smuzhiyunrkdeveloptool can get from https://github.com/rockchip-linux/rkdeveloptool.git
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunPower on(or reset with RESET KEY) with MASKROM KEY preesed, and then:
24*4882a593Smuzhiyun  > rkdeveloptool db ./rockchip-uboot/rk3368_loader_v2.00.256.bin
25*4882a593Smuzhiyun  > rkdeveloptool wl 0x6000 ./rockchip-uboot/trust.img
26*4882a593Smuzhiyun  > rkdeveloptool wl 0x4000 ./u-boot/u-boot.img
27*4882a593Smuzhiyun  > rkdeveloptool RD
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunYou should be able to get U-Boot log message from boot console:
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunU-Boot 2017.05-rc3-01094-g9ddd1e8-dirty (May 15 2017 - 15:57:23 +0800)
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunModel: Rockchip sheep board
34*4882a593SmuzhiyunDRAM:  2 GiB
35*4882a593SmuzhiyunMMC:   dwmmc@ff0f0000: 0
36*4882a593SmuzhiyunUsing default environment
37*4882a593Smuzhiyun
38*4882a593SmuzhiyunIn:    serial@ff690000
39*4882a593SmuzhiyunOut:   serial@ff690000
40*4882a593SmuzhiyunErr:   serial@ff690000
41*4882a593SmuzhiyunNet:   Net Initialization Skipped
42*4882a593SmuzhiyunNo ethernet found.
43*4882a593SmuzhiyunHit any key to stop autoboot:  0
44*4882a593Smuzhiyun=>
45