From: Yixun Lan <dlan@kernel.org>
To: Eric Chung <eric.chung@riscstar.com>
Cc: u-boot-spacemit@groups.io, u-boot@lists.u-boot-project.org,
Tom Rini <trini@konsulko.com>, Tim Ouyang <tim609@andestech.com>,
Leo Liang <leo.liang@sifive.com>, Yao Zi <me@ziyao.cc>,
Wei Fu <wefu@redhat.com>, Huan Zhou <pericycle.cc@gmail.com>,
Guodong Xu <guodong@riscstar.com>,
Raymond Mao <raymond.mao@riscstar.com>,
Peng Fan <peng.fan@nxp.com>,
Jaehoon Chung <jh80.chung@samsung.com>,
Anshul Dalal <anshuld@ti.com>,
Bastien Curutchet <bastien.curutchet@bootlin.com>,
Johan Jonker <jbx6244@gmail.com>,
Sumit Garg <sumit.garg@kernel.org>,
Iker Pedrosa <ikerpedrosam@gmail.com>,
Alex Elder <elder@riscstar.com>,
Andre Heider <a.heider@gmail.com>,
Trevor Gamblin <tgamblin@baylibre.com>
Subject: Re: [PATCH v12 6/7] doc: spacemit: flash on K1 SoC based boards
Date: Tue, 8 Sep 2026 12:52:26 +0000 [thread overview]
Message-ID: <20260908125226-GKC2346@kernel.org> (raw)
In-Reply-To: <20260906-m4-v12-6-89eb5a8f879d@riscstar.com>
hi Eric,
On 17:11 Sun 06 Sep , Eric Chung wrote:
> Add document on how to flash images into eMMC of K1 SoC based boards.
>
> Signed-off-by: Eric Chung <eric.chung@riscstar.com>
>
> ---
> v9:
> - Add to generate the partition table of SD card.
> v3:
> - Add document on how to flash images into SD card.
> ---
> board/spacemit/k1/MAINTAINERS | 2 +-
> doc/board/spacemit/index.rst | 1 +
> doc/board/spacemit/k1-mmc.rst | 271 ++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 273 insertions(+), 1 deletion(-)
>
> diff --git a/board/spacemit/k1/MAINTAINERS b/board/spacemit/k1/MAINTAINERS
> index 4b2bc4ecfc10..e12288a206e0 100644
> --- a/board/spacemit/k1/MAINTAINERS
> +++ b/board/spacemit/k1/MAINTAINERS
> @@ -6,7 +6,7 @@ S: Maintained
> F: arch/riscv/dts/k1-*-u-boot.dtsi
> F: board/spacemit/k1/
> F: configs/spacemit_k1_defconfig
> -F: doc/board/spacemit/bananapi-f3.rst
> +F: doc/board/spacemit/
> F: drivers/gpio/spacemit_gpio.c
> F: drivers/i2c/k1_i2c.c
> F: drivers/mmc/spacemit_sdhci.c
> diff --git a/doc/board/spacemit/index.rst b/doc/board/spacemit/index.rst
> index a5e35ee12ab6..71854e5735bd 100644
> --- a/doc/board/spacemit/index.rst
> +++ b/doc/board/spacemit/index.rst
> @@ -6,5 +6,6 @@ SpacemiT
> :maxdepth: 1
>
> bananapi-f3
> + k1-mmc
> k1-spl
>
> diff --git a/doc/board/spacemit/k1-mmc.rst b/doc/board/spacemit/k1-mmc.rst
> new file mode 100644
> index 000000000000..0be5d5fa1c39
> --- /dev/null
> +++ b/doc/board/spacemit/k1-mmc.rst
> @@ -0,0 +1,271 @@
> +.. SPDX-License-Identifier: GPL-2.0-or-later
> +
> +SpacemiT K1 eMMC and SD Card Boot Guide
> +=======================================
> +
> +This guide covers two separate methods for booting and flashing U-Boot on
> +SpacemiT K1 based boards:
> +
> +1. **eMMC Flash**: Flashing U-Boot and SPL images to eMMC via USB fastboot.
> +2. **SD Card Boot**: Creating a bootable Bianbu SD card and optionally
> + replacing U-Boot on the card.
> +
> +Tested boards: Banana Pi BPI-F3, MusePi Pro.
> +
> +
> +Chapter 1: eMMC Flash (U-Boot via USB Fastboot)
> +===============================================
> +
> +SpacemiT K1 U-Boot Flash Guide
> +==============================
> +
> +This guide explains how to flash U-Boot on SpacemiT K1 based boards. It covers
> +flashing images via USB fastboot.
> +
> +.. note::
> +
> + This procedure flashes images to eMMC over USB fastboot. The fastboot
> + function is not enabled in our SPL yet, so the download stage runs the
> + SpacemiT released SPL; our built FSBL.bin and fit.itb are the images
> + written to eMMC and used on the next normal boot.
> +
..
> +Prerequisites
> +~~~~~~~~~~~~~
.. first label here
> +
> +- A SpacemiT K1 board with USB Type-C and UART access
> +- USB-to-UART adapter (3.3V TTL)
> +- ``minicom`` or equivalent serial terminal, configured at 115200 8N1
> +- ``fastboot`` and ``flashserver`` tool on the host
> +
> +Hardware Setup
> +~~~~~~~~~~~~~~
> +
...
> +Chapter 2: SD Card Boot
> +=======================
> +
> +
> +SpacemiT K1 Bianbu SD Card Image Flashing and U-Boot Update Guide
> +==================================================================
> +
> +This guide explains how to prepare a bootable SD card with Bianbu OS for
> +SpacemiT K1 based boards and how to replace the U-Boot binary on the SD
> +card with a custom build.
> +
> +Prerequisites
> +~~~~~~~~~~~~~
second one, so this trigger a CI warning, snip from the log..
looking for now-outdated files... /builds/u-boot/custodians/u-boot-spacemit/doc/board/spacemit/k1-mmc.rst:186: WARNING: duplicate label board/spacemit/k1-mmc:prerequisites,
so how about adding an additional name of this specific procedure?
for first: Prerequisites to flash
for second: Prerequisites to boot
--
Yixun Lan (dlan)
next prev parent reply other threads:[~2026-09-08 12:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-06 9:11 [PATCH v12 0/7] spacemit mmc driver Eric Chung
2026-09-06 9:11 ` [PATCH v12 1/7] spacemit: k1: select boot device via config registers Eric Chung
2026-09-06 9:11 ` [PATCH v12 2/7] mmc: k1: add sdhci platform driver Eric Chung
2026-09-07 8:32 ` Yao Zi
2026-09-07 16:27 ` Eric Chung
2026-09-08 21:24 ` Yixun Lan
2026-09-06 9:11 ` [PATCH v12 3/7] dts: k1: enable mmc devices in SPL Eric Chung
2026-09-06 9:11 ` [PATCH v12 4/7] configs: k1: enable SD and eMMC support Eric Chung
2026-09-06 9:11 ` [PATCH v12 5/7] MAINTAINER: update Spacemit K1 entry Eric Chung
2026-09-06 9:11 ` [PATCH v12 6/7] doc: spacemit: flash on K1 SoC based boards Eric Chung
2026-09-07 8:50 ` Yao Zi
2026-09-07 16:31 ` Eric Chung
2026-09-07 17:59 ` Yao Zi
2026-09-08 12:52 ` Yixun Lan [this message]
2026-09-06 9:11 ` [PATCH v12 7/7] spacemit: k1: fix product name detection and DTB matching in SPL Eric Chung
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=20260908125226-GKC2346@kernel.org \
--to=dlan@kernel.org \
--cc=a.heider@gmail.com \
--cc=anshuld@ti.com \
--cc=bastien.curutchet@bootlin.com \
--cc=elder@riscstar.com \
--cc=eric.chung@riscstar.com \
--cc=guodong@riscstar.com \
--cc=ikerpedrosam@gmail.com \
--cc=jbx6244@gmail.com \
--cc=jh80.chung@samsung.com \
--cc=leo.liang@sifive.com \
--cc=me@ziyao.cc \
--cc=peng.fan@nxp.com \
--cc=pericycle.cc@gmail.com \
--cc=raymond.mao@riscstar.com \
--cc=sumit.garg@kernel.org \
--cc=tgamblin@baylibre.com \
--cc=tim609@andestech.com \
--cc=trini@konsulko.com \
--cc=u-boot-spacemit@groups.io \
--cc=u-boot@lists.u-boot-project.org \
--cc=wefu@redhat.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