From: Andrew Abbott <andrew@mirx.dev>
To: u-boot@lists.denx.de
Cc: Andrew Abbott <andrew@mirx.dev>, Simon Glass <sjg@chromium.org>,
Philipp Tomsich <philipp.tomsich@vrull.eu>,
Kever Yang <kever.yang@rock-chips.com>,
Peter Robinson <pbrobinson@gmail.com>,
Akash Gajjar <akash@openedev.com>,
Jagan Teki <jagan@amarulasolutions.com>,
Samuel Dionne-Riel <samuel@dionne-riel.com>
Subject: [RFC PATCH 7/8] doc: rockchip: Update for new binman image generation
Date: Mon, 25 Apr 2022 10:03:28 +1000 [thread overview]
Message-ID: <20220425000329.28124-8-andrew@mirx.dev> (raw)
In-Reply-To: <20220425000329.28124-1-andrew@mirx.dev>
Signed-off-by: Andrew Abbott <andrew@mirx.dev>
---
doc/board/rockchip/rockchip.rst | 34 +++++++++++----------------------
1 file changed, 11 insertions(+), 23 deletions(-)
diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst
index 4ca7b00b1f..1639ce4f72 100644
--- a/doc/board/rockchip/rockchip.rst
+++ b/doc/board/rockchip/rockchip.rst
@@ -172,14 +172,14 @@ Flashing
SD Card
^^^^^^^
-All Rockchip platforms (except rk3128 which doesn't use SPL) are now
-supporting a single boot image using binman and pad_cat.
+All Rockchip platforms, (except rk3128 which doesn't use SPL) generate a
+SD/MMC full boot image using binman.
To write an image that boots from a SD card (assumed to be /dev/sda):
.. code-block:: bash
- sudo dd if=u-boot-rockchip.bin of=/dev/sda seek=64
+ sudo dd if=u-boot-rockchip-sdmmc.bin of=/dev/sda seek=64
sync
eMMC
@@ -224,31 +224,19 @@ is u-boot-dtb.img
SPI
^^^
-The SPI boot method requires the generation of idbloader.img with help of the mkimage tool.
+Some platforms also generate a SPI flash full boot image, controlled by the
+CONFIG_ROCKCHIP_SPI_IMAGE configuration option.
-SPL-alone SPI boot image:
+This image can be copied onto an SD card and written to SPI flash. Note that
+the offset at which the image should be written to is different between SoCs.
-.. code-block:: bash
-
- ./tools/mkimage -n rk3399 -T rkspi -d spl/u-boot-spl.bin idbloader.img
-
-TPL+SPL SPI boot image:
-
-.. code-block:: bash
-
- ./tools/mkimage -n rk3399 -T rkspi -d tpl/u-boot-tpl.bin:spl/u-boot-spl.bin idbloader.img
+* RK3399: 0x0
-Copy SPI boot images into SD card and boot from SD:
-
-.. code-block:: bash
+Replace <offset> with the offset for your SoC::
sf probe
- load mmc 1:1 $kernel_addr_r idbloader.img
- sf erase 0 +$filesize
- sf write $kernel_addr_r 0 ${filesize}
- load mmc 1:1 ${kernel_addr_r} u-boot.itb
- sf erase 0x60000 +$filesize
- sf write $kernel_addr_r 0x60000 ${filesize}
+ load mmc 1:1 $kernel_addr_r u-boot-rockchip-spi.bin
+ sf update $kernel_addr_r <offset> ${filesize}
2. Package the image with Rockchip miniloader
---------------------------------------------
--
2.35.3
next prev parent reply other threads:[~2022-04-25 0:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-25 0:03 [RFC PATCH 0/8] Build Rockchip final images using binman Andrew Abbott
2022-04-25 0:03 ` [RFC PATCH 1/8] binman: mkimage: Support ':'-separated inputs Andrew Abbott
2022-04-25 0:03 ` [RFC PATCH 2/8] rockchip: Add binman definitions for final images Andrew Abbott
2022-04-27 9:22 ` Johan Jonker
2022-05-04 9:52 ` Andrew Abbott
2022-05-19 11:35 ` Alper Nebi Yasak
2022-04-25 0:03 ` [RFC PATCH 3/8] soc: rockchip: Include common U-Boot dtsi file Andrew Abbott
2022-04-25 0:03 ` [RFC PATCH 4/8] board: rockchip: Move SPI U-Boot offset to config Andrew Abbott
2022-04-25 0:03 ` [RFC PATCH 5/8] rockchip: Remove obsolete Makefile targets Andrew Abbott
2022-04-25 0:03 ` [RFC PATCH 6/8] rockchip: Enable binman for ARM64 Andrew Abbott
2022-04-25 0:03 ` Andrew Abbott [this message]
2022-04-25 0:03 ` [RFC PATCH 8/8] board: rockpro64: Enable building SPI image Andrew Abbott
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=20220425000329.28124-8-andrew@mirx.dev \
--to=andrew@mirx.dev \
--cc=akash@openedev.com \
--cc=jagan@amarulasolutions.com \
--cc=kever.yang@rock-chips.com \
--cc=pbrobinson@gmail.com \
--cc=philipp.tomsich@vrull.eu \
--cc=samuel@dionne-riel.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
/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