aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Karlman <jonas@kwiboo.se>2023-07-28 11:38:40 +0000
committerKever Yang <kever.yang@rock-chips.com>2023-07-31 17:34:43 +0800
commit6ed39520a70e76dd9b3f374d62a60de986f051c0 (patch)
tree43715120c754a034f4b9b59262b227750d6b5724
parentee75f168680669180b1e2eb14de71b8c6e3f7973 (diff)
downloadu-boot-6ed39520a70e76dd9b3f374d62a60de986f051c0.zip
u-boot-6ed39520a70e76dd9b3f374d62a60de986f051c0.tar.gz
u-boot-6ed39520a70e76dd9b3f374d62a60de986f051c0.tar.bz2
doc: rockchip: Update SPI flashing instruction
Update documentation on how to write a bootable u-boot-rockchip-spi.bin image into SPI flash. This removes the reference to a hardcoded and now obsolete 0x60000 payload offset. Also remove an obsolete reference to pad_cat. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Quentin Schulz <foss+u-boot@0leil.net> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
-rw-r--r--doc/board/rockchip/rockchip.rst26
1 files changed, 5 insertions, 21 deletions
diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst
index 10fc051..e23237e 100644
--- a/doc/board/rockchip/rockchip.rst
+++ b/doc/board/rockchip/rockchip.rst
@@ -218,7 +218,7 @@ SD Card
^^^^^^^
All Rockchip platforms (except rk3128 which doesn't use SPL) are now
-supporting a single boot image using binman and pad_cat.
+supporting a single boot image using binman.
To write an image that boots from a SD card (assumed to be /dev/sda):
@@ -269,31 +269,15 @@ is u-boot-dtb.img
SPI
^^^
-The SPI boot method requires the generation of idbloader.img with help of the mkimage tool.
+Write u-boot-rockchip-spi.bin to offset 0 of SPI flash.
-SPL-alone SPI boot image:
-
-.. 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
-
-Copy SPI boot images into SD card and boot from SD:
+Copy u-boot-rockchip-spi.bin into SD card and boot from SD:
.. code-block:: bash
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 $fileaddr 0 $filesize
2. Package the image with Rockchip miniloader
---------------------------------------------