diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2020-06-04 20:21:41 +0530 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2020-06-07 18:57:16 +0800 |
commit | dd397609fc45472d78894256e1effd6902a7c12d (patch) | |
tree | 6981cd044f864d2464df561af4b28d9c913c37fe | |
parent | 1831191b18d7d92705f74059f0720637206563e3 (diff) | |
download | u-boot-dd397609fc45472d78894256e1effd6902a7c12d.zip u-boot-dd397609fc45472d78894256e1effd6902a7c12d.tar.gz u-boot-dd397609fc45472d78894256e1effd6902a7c12d.tar.bz2 |
doc: rockchip: Document SPI flash program steps
Document SPI flash program steps for rockchip platforms.
Suggested-by: Hugh Cole-Baker <sigmaris@gmail.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
-rw-r--r-- | doc/board/rockchip/rockchip.rst | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst index e7dee7d..8c92de0 100644 --- a/doc/board/rockchip/rockchip.rst +++ b/doc/board/rockchip/rockchip.rst @@ -163,6 +163,30 @@ Program the flash:: Note: for rockchip 32-bit platforms the U-Boot proper image is u-boot-dtb.img +SPI +^^^ + +Generating idbloader for SPI boot would require to input a multi image +image format to mkimage tool instead of concerting (like for MMC boot). + +SPL-alone SPI boot image:: + + ./tools/mkimage -n rk3399 -T rkspi -d spl/u-boot-spl.bin idbloader.img + +TPL+SPL SPI boot image:: + + ./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:: + + 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} + TODO ---- @@ -172,4 +196,4 @@ TODO - Add missing SoC's with it boards list .. Jagan Teki <jagan@amarulasolutions.com> -.. Sunday 24 May 2020 10:08:41 PM IST +.. Tuesday 02 June 2020 12:18:57 AM IST |