All of lore.kernel.org
 help / color / mirror / Atom feed
From: Suniel Mahesh <sunil@amarulasolutions.com>
To: kever.yang@rock-chips.com, philipp.tomsich@theobroma-systems.com,
	sjg@chromium.org
Cc: u-boot@lists.denx.de, linux-rockchip@lists.infradead.org,
	linux-amarula@amarulasolutions.com, jagan@amarulasolutions.com,
	sunil@amarulasolutions.com
Subject: [PATCH v2 7/7] doc: rockchip: Document Rockchip miniloader flashing
Date: Mon, 14 Sep 2020 21:06:34 +0530	[thread overview]
Message-ID: <20200914153634.18121-8-sunil@amarulasolutions.com> (raw)
In-Reply-To: <20200914153634.18121-1-sunil@amarulasolutions.com>

From: Jagan Teki <jagan@amarulasolutions.com>

This would be useful and recommended boot flow for new boards
which has doesn't have the DDR support yet in mainline.

Sometimes it is very useful for debugging mainline DDR support.

Documen it for px30 boot flow.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v2:
- no changes

 doc/board/rockchip/rockchip.rst | 40 ++++++++++++++++++++++++++++++++-
 1 file changed, 39 insertions(+), 1 deletion(-)

diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst
index 8c92de0c92..ea061ad171 100644
--- a/doc/board/rockchip/rockchip.rst
+++ b/doc/board/rockchip/rockchip.rst
@@ -123,6 +123,9 @@ To build rk3399 boards::
 Flashing
 --------
 
+1. Package the image with U-Boot TPL/SPL
+-----------------------------------------
+
 SD Card
 ^^^^^^^
 
@@ -187,6 +190,39 @@ Copy SPI boot images into SD card and boot from SD::
         sf erase 0x60000 +$filesize
         sf write $kernel_addr_r 0x60000 ${filesize}
 
+2. Package the image with Rockchip miniloader
+---------------------------------------------
+
+Image package with Rockchip miniloader requires robin [1].
+
+Create idbloader.img
+
+.. code-block:: none
+
+  cd u-boot
+  ./tools/mkimage -n px30 -T rksd -d rkbin/bin/rk33/px30_ddr_333MHz_v1.15.bin idbloader.img
+  cat rkbin/bin/rk33/px30_miniloader_v1.22.bin >> idbloader.img
+  sudo dd if=idbloader.img of=/dev/sda seek=64
+
+Create trust.img
+
+.. code-block:: none
+
+  cd rkbin
+  ./tools/trust_merger RKTRUST/PX30TRUST.ini
+  sudo dd if=trust.img of=/dev/sda seek=24576
+
+Create uboot.img
+
+.. code-block:: none
+
+  rbink/tools/loaderimage --pack --uboot u-boot-dtb.bin uboot.img 0x200000
+  sudo dd if=uboot.img of=/dev/sda seek=16384
+
+Note:
+1. 0x200000 is load address and it's an optional in some platforms.
+2. rkbin binaries are kept on updating, so would recommend to use the latest versions.
+
 TODO
 ----
 
@@ -195,5 +231,7 @@ TODO
 - Document SPI flash boot
 - Add missing SoC's with it boards list
 
+[1] https://github.com/rockchip-linux/rkbin
+
 .. Jagan Teki <jagan@amarulasolutions.com>
-.. Tuesday 02 June 2020 12:18:57 AM IST
+.. Thursday 23 July 2020 04:50:22 PM IST
-- 
2.17.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

WARNING: multiple messages have this Message-ID (diff)
From: Suniel Mahesh <sunil@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 7/7] doc: rockchip: Document Rockchip miniloader flashing
Date: Mon, 14 Sep 2020 21:06:34 +0530	[thread overview]
Message-ID: <20200914153634.18121-8-sunil@amarulasolutions.com> (raw)
In-Reply-To: <20200914153634.18121-1-sunil@amarulasolutions.com>

From: Jagan Teki <jagan@amarulasolutions.com>

This would be useful and recommended boot flow for new boards
which has doesn't have the DDR support yet in mainline.

Sometimes it is very useful for debugging mainline DDR support.

Documen it for px30 boot flow.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v2:
- no changes

 doc/board/rockchip/rockchip.rst | 40 ++++++++++++++++++++++++++++++++-
 1 file changed, 39 insertions(+), 1 deletion(-)

diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst
index 8c92de0c92..ea061ad171 100644
--- a/doc/board/rockchip/rockchip.rst
+++ b/doc/board/rockchip/rockchip.rst
@@ -123,6 +123,9 @@ To build rk3399 boards::
 Flashing
 --------
 
+1. Package the image with U-Boot TPL/SPL
+-----------------------------------------
+
 SD Card
 ^^^^^^^
 
@@ -187,6 +190,39 @@ Copy SPI boot images into SD card and boot from SD::
         sf erase 0x60000 +$filesize
         sf write $kernel_addr_r 0x60000 ${filesize}
 
+2. Package the image with Rockchip miniloader
+---------------------------------------------
+
+Image package with Rockchip miniloader requires robin [1].
+
+Create idbloader.img
+
+.. code-block:: none
+
+  cd u-boot
+  ./tools/mkimage -n px30 -T rksd -d rkbin/bin/rk33/px30_ddr_333MHz_v1.15.bin idbloader.img
+  cat rkbin/bin/rk33/px30_miniloader_v1.22.bin >> idbloader.img
+  sudo dd if=idbloader.img of=/dev/sda seek=64
+
+Create trust.img
+
+.. code-block:: none
+
+  cd rkbin
+  ./tools/trust_merger RKTRUST/PX30TRUST.ini
+  sudo dd if=trust.img of=/dev/sda seek=24576
+
+Create uboot.img
+
+.. code-block:: none
+
+  rbink/tools/loaderimage --pack --uboot u-boot-dtb.bin uboot.img 0x200000
+  sudo dd if=uboot.img of=/dev/sda seek=16384
+
+Note:
+1. 0x200000 is load address and it's an optional in some platforms.
+2. rkbin binaries are kept on updating, so would recommend to use the latest versions.
+
 TODO
 ----
 
@@ -195,5 +231,7 @@ TODO
 - Document SPI flash boot
 - Add missing SoC's with it boards list
 
+[1] https://github.com/rockchip-linux/rkbin
+
 .. Jagan Teki <jagan@amarulasolutions.com>
-.. Tuesday 02 June 2020 12:18:57 AM IST
+.. Thursday 23 July 2020 04:50:22 PM IST
-- 
2.17.1

  parent reply	other threads:[~2020-09-14 15:37 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-14 15:36 [PATCH v2 0/7] rockchip: Add Engicam PX30.Core support Suniel Mahesh
2020-09-14 15:36 ` Suniel Mahesh
2020-09-14 15:36 ` [PATCH v2 1/7] arm64: dts: rockchip: px30: Add Engicam EDIMM2.2 Starter Kit Suniel Mahesh
2020-09-14 15:36   ` Suniel Mahesh
2020-09-14 15:36 ` [PATCH v2 2/7] arm64: dts: rockchip: Add Engicam PX30.Core SOM Suniel Mahesh
2020-09-14 15:36   ` Suniel Mahesh
2020-09-14 15:36 ` [PATCH v2 3/7] rockchip: px30: Add EVB_PX30 Kconfig help Suniel Mahesh
2020-09-14 15:36   ` Suniel Mahesh
2020-09-14 15:36 ` [PATCH v2 4/7] rockchip: Add Engicam PX30.Core EDIMM2.2 Starter Kit Suniel Mahesh
2020-09-14 15:36   ` Suniel Mahesh
2020-09-14 15:36 ` [PATCH v2 5/7] arm64: dts: rockchip: px30: Add Engicam C.TOUCH 2.0 Suniel Mahesh
2020-09-14 15:36   ` Suniel Mahesh
2020-09-14 15:36 ` [PATCH v2 6/7] rockchip: Add Engicam PX30.Core " Suniel Mahesh
2020-09-14 15:36   ` Suniel Mahesh
2020-09-14 15:36 ` Suniel Mahesh [this message]
2020-09-14 15:36   ` [PATCH v2 7/7] doc: rockchip: Document Rockchip miniloader flashing Suniel Mahesh
2020-09-28  2:39 ` [PATCH v2 0/7] rockchip: Add Engicam PX30.Core support Kever Yang
2020-09-28  2:39   ` Kever Yang

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=20200914153634.18121-8-sunil@amarulasolutions.com \
    --to=sunil@amarulasolutions.com \
    --cc=jagan@amarulasolutions.com \
    --cc=kever.yang@rock-chips.com \
    --cc=linux-amarula@amarulasolutions.com \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=philipp.tomsich@theobroma-systems.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.