[U-Boot] [PATCH 1/1] rockchip: provide installation instruction for Firefly-RK3399.
Heinrich Schuchardt
xypron.glpk at gmx.de
Thu Sep 28 03:35:06 UTC 2017
Unfortunately installing U-Boot on an SD card for the Firefly-RK3399
is not trivial.
I could not get U-Boot running with SPL. So I ended up using the
Rockchip miniloader.
Adding a README hopefully will give other users an easier start.
Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
board/rockchip/firefly_rk3399/README | 55 ++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
create mode 100644 board/rockchip/firefly_rk3399/README
diff --git a/board/rockchip/firefly_rk3399/README b/board/rockchip/firefly_rk3399/README
new file mode 100644
index 0000000000..e9fb41f02d
--- /dev/null
+++ b/board/rockchip/firefly_rk3399/README
@@ -0,0 +1,55 @@
+Installation of U-Boot on the Firefly-RK3399
+============================================
+
+Here is a step-by-step instruction for installing U-Boot for the
+Firefly-RK3399 on an SD card using the precompiled miniloader provided
+by Rockchip. An alternative is to use the second stage loader SPL built by
+U-Boot.
+
+Get precompiled binaries
+========================
+
+ git clone https://github.com/rockchip-linux/rkbin.git
+
+Flash precompiled binaries to the SD card
+=========================================
+
+ mkimage -n rk3399 -T rksd -d rkbin/rk33/rk3399_ddr_800MHz_v1.08.bin \
+ idbloader.img
+ cat rkbin/rk33/rk3399_miniloader_v1.06.bin >> idbloader.img
+ sudo dd if=idbloader.img of=/dev/sdX seek=64 conv=notrunc
+ cat > trust.ini << EOF
+ [VERSION]
+ MAJOR=1
+ MINOR=0
+ [BL30_OPTION]
+ SEC=0
+ [BL31_OPTION]
+ SEC=1
+ PATH=rkbin/rk33/rk3399_bl31_v1.00.elf
+ ADDR=0x10000
+ [BL32_OPTION]
+ SEC=0
+ [BL33_OPTION]
+ SEC=0
+ [OUTPUT]
+ PATH=trust.img
+ EOF
+ rkbin/tools/trust_merger trust.ini
+ sudo dd if=trust.img of=/dev/sdX seek=24576 conv=notrunc
+
+Running trust_merger requires an x86_64 system.
+
+Compile U-Boot
+==============
+
+ make mrproper
+ make firefly-rk3399_defconfig
+ make
+ mkimage -n rk3399 -O u-boot -a 0x20000 -T rkimage -d u-boot-dtb.bin \
+ uboot.img
+
+Flash U-Boot to the SD-card
+===========================
+
+ sudo dd if=u-boot/uboot.img of=/dev/sdX seek=16384 conv=notrunc
--
2.14.1
More information about the U-Boot
mailing list