diff mbox series

[U-Boot,v3,17/18] doc: README.mediatek: Add a simple README for MediaTek

Message ID d600acea2785a6110b66ea8db9b6c154b80c82ea.1541171496.git.ryder.lee@mediatek.com
State Superseded
Delegated to: Tom Rini
Headers show
Series Add U-Boot support for MediaTek SoCs - MT7623n & MT7629 | expand

Commit Message

Ryder Lee Nov. 2, 2018, 3:15 p.m. UTC
Add a few notes on how to try out the MediaTek support so far.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
---
 doc/README.mediatek | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
 create mode 100644 doc/README.mediatek

Comments

Simon Glass Nov. 3, 2018, 6:08 a.m. UTC | #1
Hi Ryder,

On 2 November 2018 at 09:15, Ryder Lee <ryder.lee@mediatek.com> wrote:
> Add a few notes on how to try out the MediaTek support so far.
>
> Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
> ---
>  doc/README.mediatek | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 54 insertions(+)
>  create mode 100644 doc/README.mediatek

So how do I try this out on a board? Is there an eval board that you
could add instructions for? E.g. how to prepare an SD card, or how to
write to NAND flash?

Regards,
Simon
diff mbox series

Patch

diff --git a/doc/README.mediatek b/doc/README.mediatek
new file mode 100644
index 0000000..7690342
--- /dev/null
+++ b/doc/README.mediatek
@@ -0,0 +1,54 @@ 
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2018 MediaTek Inc.
+# Ryder Lee <ryder.lee@kernel.org>
+
+
+This document describes how to compile the U-Boot and how to change U-Boot
+configuration about the MediaTek SoCs.
+
+
+Build Procedure
+===============
+	-Set the cross compiler:
+
+		# export CROSS_COMPILE=/path/to/toolchain/arm-linux-gnueabi-
+
+	-Clean-up old residuals:
+
+		# make mrproper
+
+	-Configure the U-Boot:
+
+		# make <defconfig_file>
+		# make
+
+		- For the MT7623n bananapi R2 board use "mt7623n_bpir2_defconfig"
+		- For the MT7629 reference board use "mt7629_rfb_defconfig"
+
+
+Boot sequence
+=============
+	-Boorom -> MTK preloader -> U-Boot
+
+		- MT7623n
+
+	This version of U-Boot doesn't implement SPL. So, MTK preloader binary
+	is needed to boot up:
+
+	https://github.com/BPI-SINOVOIP/BPI-R2-bsp/tree/master/mt-pack/mtk/bpi-r2/bin
+
+
+	-Boorom -> SPL -> U-Boot
+
+		- MT7629
+
+
+Configuration update
+====================
+	To update the U-Boot configuration, please refer to doc/README.kconfig
+
+
+Documentation
+=============
+	http://wiki.banana-pi.org/Banana_Pi_BPI-R2