From: Huan Zhou <pericycle.cc@gmail.com>
To: u-boot@lists.denx.de
Cc: "Ben Dooks" <ben.dooks@codethink.co.uk>,
"Bin Meng" <bmeng@tinylab.org>,
"Dan Carpenter" <dan.carpenter@linaro.org>,
"Frieder Schrempf" <frieder.schrempf@kontron.de>,
"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
"Jonas Schwöbel" <jonasschwoebel@yahoo.de>,
"Kever Yang" <kever.yang@rock-chips.com>,
Leo <ycliang@andestech.com>,
"Michal Simek" <michal.simek@amd.com>,
"Nishanth Menon" <nm@ti.com>,
"Padmarao Begari" <padmarao.begari@microchip.com>,
"Quentin Schulz" <quentin.schulz@cherry.de>,
Randolph <randolph@andestech.com>,
"Rick Chen" <rick@andestech.com>,
"Samuel Holland" <samuel@sholland.org>,
"Sumit Garg" <sumit.garg@linaro.org>,
"Svyatoslav Ryhel" <clamor95@gmail.com>,
"Tom Rini" <trini@konsulko.com>,
"Yu Chien Peter Lin" <peterlin@andestech.com>,
"Huan Zhou" <pericycle.cc@gmail.com>,
"Kongyang Liu" <seashell11234455@gmail.com>
Subject: [PATCH v4 2/2] doc: spacemit: bananapi_f3: document Banana Pi F3 board
Date: Fri, 29 Nov 2024 13:37:40 +0800 [thread overview]
Message-ID: <20241129-pickup-bpif3-v4-2-e99fabf66e33@gmail.com> (raw)
In-Reply-To: <20241129-pickup-bpif3-v4-0-e99fabf66e33@gmail.com>
From: Kongyang Liu <seashell11234455@gmail.com>
Add document for Banana Pi F3 board which based on SpacemiT's K1 SoC.
Signed-off-by: Kongyang Liu <seashell11234455@gmail.com>
Signed-off-by: Huan Zhou <pericycle.cc@gmail.com>
---
doc/board/index.rst | 1 +
doc/board/spacemit/bananapi-f3.rst | 86 ++++++++++++++++++++++++++++++++++++++
doc/board/spacemit/index.rst | 8 ++++
3 files changed, 95 insertions(+)
diff --git a/doc/board/index.rst b/doc/board/index.rst
index 417c128c7af6ad2267ef1bc743c7f10ae70b6de7..367da2d62316d4cab25ecc53f852ef742eba13dd 100644
--- a/doc/board/index.rst
+++ b/doc/board/index.rst
@@ -51,6 +51,7 @@ Board-specific doc
sipeed/index
socionext/index
sophgo/index
+ spacemit/index
st/index
starfive/index
ste/index
diff --git a/doc/board/spacemit/bananapi-f3.rst b/doc/board/spacemit/bananapi-f3.rst
new file mode 100644
index 0000000000000000000000000000000000000000..1e6d6ef19be7e25684966bd4a727bd21b147330a
--- /dev/null
+++ b/doc/board/spacemit/bananapi-f3.rst
@@ -0,0 +1,86 @@
+.. SPDX-License-Identifier: GPL-2.0-or-later
+
+Banana Pi F3
+============
+
+Building
+~~~~~~~~
+1. Install the spacemit riscv cross compile toolchain_, or skip it if riscv toolchain is installed.
+
+.. _toolchain: https://archive.spacemit.com/toolchain/
+
+2. Setup cross compilation environment variable:
+
+.. code-block:: console
+
+ export CROSS_COMPILE=<riscv64 toolchain prefix, e.g /opt/spacemit/bin/riscv64-unknown-linux-gnu->
+
+3. Before building U-Boot, OpenSBI should be built first. OpenSBI can be
+built for SpacemiT K1 SoC as below:
+
+.. code-block:: console
+
+ git clone https://github.com/cyyself/opensbi -b k1-opensbi
+ cd opensbi
+ make PLATFORM=generic
+
+4. Then build U-Boot as following:
+
+.. code-block:: console
+
+ cd <U-Boot-dir>
+ make bananapi-f3_defconfig
+ make OPENSBI=<OpenSBI-dir>/build/platform/generic/firmware/fw_dynamic.bin
+
+This will generate u-boot.itb
+
+Booting
+~~~~~~~
+Actually, we can replace the uboot part from bianbu linux which is the bsp_ to validate this patch,
+use `balena etcher` to burn the bianbu-minimal.img to the sd card,
+and replace the /dev/sdx4 where places the uboot_ with the `u-boot.itb` generated from this patch.
+
+.. _bsp: https://archive.spacemit.com/image/k1/version/bianbu/v2.0/
+.. _uboot: https://bianbu-linux.spacemit.com/en/device/boot#21-firmware-layout
+
+Sample boot log from Banana Pi F3 board
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.. code-block:: none
+
+ try sd...
+ bm:3
+ j...
+
+ U-Boot SPL 2022.10spacemit-dirty (Oct 21 2024 - 09:01:13 +0000)
+ [ 0.279] DDR type LPDDR4X
+ [ 0.292] lpddr4_silicon_init consume 13ms
+ [ 0.293] Change DDR data rate to 2400MT/s
+ [ 0.430] ## Checking hash(es) for config conf-1 ... OK
+ [ 0.432] ## Checking hash(es) for Image opensbi ... OK
+ [ 0.437] ## Checking hash(es) for Image uboot ... OK
+ [ 0.443] ## Checking hash(es) for Image fdt-1 ... OK
+ [ 0.488] ## Checking hash(es) for config config_1 ... OK
+ [ 0.490] ## Checking hash(es) for Image opensbi ... crc32+ OK
+
+
+ U-Boot 2024.10-rc4-00462-g5b138cfcc587-dirty (Nov 28 2024 - 14:56:49 +0800)
+
+ DRAM: 4 GiB
+ Core: 19 devices, 8 uclasses, devicetree: separate
+ Loading Environment from nowhere... OK
+ In: serial@d4017000
+ Out: serial@d4017000
+ Err: serial@d4017000
+ Net: No ethernet found.
+ => cpu list
+ 0: cpu@0 spacemit,x60
+ 1: cpu@1 spacemit,x60
+ 2: cpu@2 spacemit,x60
+ 3: cpu@3 spacemit,x60
+ 4: cpu@4 spacemit,x60
+ 5: cpu@5 spacemit,x60
+ 6: cpu@6 spacemit,x60
+ 7: cpu@7 spacemit,x60
+ => test
+ =>
+
diff --git a/doc/board/spacemit/index.rst b/doc/board/spacemit/index.rst
new file mode 100644
index 0000000000000000000000000000000000000000..3fb7d804ac8fc8dd4c7ee67ffc877f9ad323162d
--- /dev/null
+++ b/doc/board/spacemit/index.rst
@@ -0,0 +1,8 @@
+.. SPDX-License-Identifier: GPL-2.0-or-later
+
+SpacemiT
+========
+.. toctree::
+ :maxdepth: 1
+
+ bananapi-f3
--
2.39.5
next prev parent reply other threads:[~2024-11-29 5:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-29 5:37 [PATCH v4 0/2] riscv: spacemit: add support for bananapi-f3 Huan Zhou
2024-11-29 5:37 ` [PATCH v4 1/2] riscv: spacemit: bananapi_f3: initial support added Huan Zhou
2024-11-29 5:37 ` Huan Zhou [this message]
2024-12-03 17:52 ` [PATCH v4 2/2] doc: spacemit: bananapi_f3: document Banana Pi F3 board Marcel Ziswiler
2024-12-04 0:58 ` Yixun Lan
2024-12-04 8:52 ` Marcel Ziswiler
2024-12-08 6:51 ` Huan Zhou
2024-12-11 8:35 ` Marcel Ziswiler
2024-12-12 4:00 ` Huan Zhou
2024-12-12 10:34 ` Marcel Ziswiler
2024-12-03 17:52 ` [PATCH v4 0/2] riscv: spacemit: add support for bananapi-f3 Marcel Ziswiler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241129-pickup-bpif3-v4-2-e99fabf66e33@gmail.com \
--to=pericycle.cc@gmail.com \
--cc=ben.dooks@codethink.co.uk \
--cc=bmeng@tinylab.org \
--cc=clamor95@gmail.com \
--cc=dan.carpenter@linaro.org \
--cc=frieder.schrempf@kontron.de \
--cc=jonasschwoebel@yahoo.de \
--cc=kever.yang@rock-chips.com \
--cc=michal.simek@amd.com \
--cc=nm@ti.com \
--cc=padmarao.begari@microchip.com \
--cc=peterlin@andestech.com \
--cc=quentin.schulz@cherry.de \
--cc=randolph@andestech.com \
--cc=rick@andestech.com \
--cc=samuel@sholland.org \
--cc=seashell11234455@gmail.com \
--cc=sumit.garg@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
--cc=ycliang@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox