* [U-Boot] [PATCH v2 1/2] rockchip: board: lion_rk3368: update README flash instructions
@ 2017-09-11 19:04 Klaus Goger
2017-09-11 19:05 ` [U-Boot] [PATCH v2 2/2] rockchip: board: puma_rk3399: " Klaus Goger
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Klaus Goger @ 2017-09-11 19:04 UTC (permalink / raw)
To: u-boot
Add a section to the README on how to flash the on-board eMMC
with the rkdeveloptool.
Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
---
Changes in v2: None
board/theobroma-systems/lion_rk3368/README | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/board/theobroma-systems/lion_rk3368/README b/board/theobroma-systems/lion_rk3368/README
index 47304fcba6..83e4332984 100644
--- a/board/theobroma-systems/lion_rk3368/README
+++ b/board/theobroma-systems/lion_rk3368/README
@@ -26,12 +26,32 @@ Build the full U-Boot and a FIT image including the ATF
> make CROSS_COMPILE=aarch64-unknown-elf- ARCH=arm u-boot.itb
-Write to a SD-card
-==================
+Flash the image
+===============
+
+Copy the SPL to offset 32k and the FIT image containing the payloads
+(U-Boot proper, ATF, devicetree) to offset 256k card.
+
+SD-Card
+-------
> dd if=spl-3368.img of=/dev/sdb seek=64
> dd if=u-boot.itb of=/dev/sdb seek=512
+eMMC
+----
+
+rkdeveloptool allows to flash the on-board eMMC via the USB OTG interface with
+help of the Rockchip loader binary.
+
+ > git clone https://github.com/rockchip-linux/rkdeveloptool
+ > cd rkdeveloptool
+ > autoreconf -i && && ./configure && make
+ > git clone https://github.com/rockchip-linux/rkbin.git
+ > ./rkdeveloptool db rkbin/rk33/rk3368_loader_v2.00.256.bin
+ > ./rkdeveloptool wl 64 ../spl.img
+ > ./rkdeveloptool wl 512 ../u-boot.itb
+
If everything went according to plan, you should see the following
output on UART0:
--
2.11.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [U-Boot] [PATCH v2 2/2] rockchip: board: puma_rk3399: update README flash instructions
2017-09-11 19:04 [U-Boot] [PATCH v2 1/2] rockchip: board: lion_rk3368: update README flash instructions Klaus Goger
@ 2017-09-11 19:05 ` Klaus Goger
2017-09-11 20:23 ` [U-Boot] [U-Boot, v2, " Philipp Tomsich
` (2 more replies)
2017-09-11 20:23 ` [U-Boot] [U-Boot, v2, 1/2] rockchip: board: lion_rk3368: " Philipp Tomsich
` (2 subsequent siblings)
3 siblings, 3 replies; 8+ messages in thread
From: Klaus Goger @ 2017-09-11 19:05 UTC (permalink / raw)
To: u-boot
Puma supports other boot sources then SD-Card. Update README to include
the required steps.
* how to package a SPI-NOR SPL
* how to flash eMMC with rkdeveloptool
Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
---
Changes in v2:
- add missing ./configure step while building rkdeveloptool
board/theobroma-systems/puma_rk3399/README | 51 +++++++++++++++++++++++++-----
1 file changed, 43 insertions(+), 8 deletions(-)
diff --git a/board/theobroma-systems/puma_rk3399/README b/board/theobroma-systems/puma_rk3399/README
index 214281a329..f67dfb451f 100644
--- a/board/theobroma-systems/puma_rk3399/README
+++ b/board/theobroma-systems/puma_rk3399/README
@@ -55,18 +55,53 @@ Compile the U-Boot
Package the image
=================
- > tools/mkimage -n rk3399 -T rksd -d spl/u-boot-spl.bin spl.img
- > make CROSS_COMPILE=aarch64-linux-gnu- u-boot.itb
+Creating a SPL image for SD-Card/eMMC
+ > tools/mkimage -n rk3399 -T rksd -d spl/u-boot-spl.bin spl_mmc.img
+Creating a SPL image for SPI-NOR
+ > tools/mkimage -n rk3399 -T rkspi -d spl/u-boot-spl.bin spl_nor.img
+Create the FIT image containing U-Boot proper, ATF, M0 Firmware, devicetree
+ > make CROSS_COMPILE=aarch64-linux-gnu- u-boot.itb
Flash the image
===============
-Copy the SPL to offset 32k and the FIT image containing the payloads
-(U-Boot proper, ATF, M0 Firmware, devicetree) to offset 256k on a SD
-card.
+Copy the SPL to offset 32k for SD/eMMC, offset 0 for NOR-Flash and the FIT
+image to offset 256k card.
- > dd if=spl.img of=/dev/sdb seek=64
+SD-Card
+-------
+
+ > dd if=spl_mmc.img of=/dev/sdb seek=64
> dd if=u-boot.itb of=/dev/sdb seek=512
-After powering up the board (with the inserted SD card), you should see
-a U-Boot console on UART0 (115200n8).
+eMMC
+----
+
+rkdeveloptool allows to flash the on-board eMMC via the USB OTG interface with
+help of the Rockchip loader binary.
+
+ > git clone https://github.com/rockchip-linux/rkdeveloptool
+ > cd rkdeveloptool
+ > autoreconf -i && ./configure && make
+ > git clone https://github.com/rockchip-linux/rkbin.git
+ > ./rkdeveloptool db rkbin/rk33/rk3399_loader_v1.08.106.bin
+ > ./rkdeveloptool wl 64 ../spl_mmc.img
+ > ./rkdeveloptool wl 512 ../u-boot.itb
+
+NOR-Flash
+---------
+
+Writing the SPI NOR Flash requires a running U-Boot. For the sake of simplicity
+we assume you have a SD-Card with a partition containing the required files
+ready.
+
+ > load mmc 1:1 ${kernel_addr_r} spl_nor.img
+ > sf probe
+ > sf erase 0 +$filesize
+ > sf write $kernel_addr_r 0 ${filesize}
+ > load mmc 1:1 ${kernel_addr_r} u-boot.itb
+ > sf erase 0x40000 +$filesize
+ > sf write $kernel_addr_r 0x40000 ${filesize}
+
+
+Reboot the system and you should see a U-Boot console on UART0 (115200n8).
--
2.11.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [U-Boot] [U-Boot, v2, 1/2] rockchip: board: lion_rk3368: update README flash instructions
2017-09-11 19:04 [U-Boot] [PATCH v2 1/2] rockchip: board: lion_rk3368: update README flash instructions Klaus Goger
2017-09-11 19:05 ` [U-Boot] [PATCH v2 2/2] rockchip: board: puma_rk3399: " Klaus Goger
@ 2017-09-11 20:23 ` Philipp Tomsich
2017-09-11 20:23 ` Philipp Tomsich
2017-09-12 10:54 ` Philipp Tomsich
3 siblings, 0 replies; 8+ messages in thread
From: Philipp Tomsich @ 2017-09-11 20:23 UTC (permalink / raw)
To: u-boot
> Add a section to the README on how to flash the on-board eMMC
> with the rkdeveloptool.
>
> Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
> Changes in v2: None
>
> board/theobroma-systems/lion_rk3368/README | 24 ++++++++++++++++++++++--
> 1 file changed, 22 insertions(+), 2 deletions(-)
>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [U-Boot, v2, 2/2] rockchip: board: puma_rk3399: update README flash instructions
2017-09-11 19:05 ` [U-Boot] [PATCH v2 2/2] rockchip: board: puma_rk3399: " Klaus Goger
@ 2017-09-11 20:23 ` Philipp Tomsich
2017-09-11 20:23 ` Philipp Tomsich
2017-09-12 10:54 ` Philipp Tomsich
2 siblings, 0 replies; 8+ messages in thread
From: Philipp Tomsich @ 2017-09-11 20:23 UTC (permalink / raw)
To: u-boot
> Puma supports other boot sources then SD-Card. Update README to include
> the required steps.
>
> * how to package a SPI-NOR SPL
> * how to flash eMMC with rkdeveloptool
>
> Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
> Changes in v2:
> - add missing ./configure step while building rkdeveloptool
>
> board/theobroma-systems/puma_rk3399/README | 51 +++++++++++++++++++++++++-----
> 1 file changed, 43 insertions(+), 8 deletions(-)
>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [U-Boot, v2, 1/2] rockchip: board: lion_rk3368: update README flash instructions
2017-09-11 19:04 [U-Boot] [PATCH v2 1/2] rockchip: board: lion_rk3368: update README flash instructions Klaus Goger
2017-09-11 19:05 ` [U-Boot] [PATCH v2 2/2] rockchip: board: puma_rk3399: " Klaus Goger
2017-09-11 20:23 ` [U-Boot] [U-Boot, v2, 1/2] rockchip: board: lion_rk3368: " Philipp Tomsich
@ 2017-09-11 20:23 ` Philipp Tomsich
2017-09-12 10:54 ` Philipp Tomsich
3 siblings, 0 replies; 8+ messages in thread
From: Philipp Tomsich @ 2017-09-11 20:23 UTC (permalink / raw)
To: u-boot
> Add a section to the README on how to flash the on-board eMMC
> with the rkdeveloptool.
>
> Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
> Changes in v2: None
>
> board/theobroma-systems/lion_rk3368/README | 24 ++++++++++++++++++++++--
> 1 file changed, 22 insertions(+), 2 deletions(-)
>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [U-Boot, v2, 2/2] rockchip: board: puma_rk3399: update README flash instructions
2017-09-11 19:05 ` [U-Boot] [PATCH v2 2/2] rockchip: board: puma_rk3399: " Klaus Goger
2017-09-11 20:23 ` [U-Boot] [U-Boot, v2, " Philipp Tomsich
@ 2017-09-11 20:23 ` Philipp Tomsich
2017-09-12 10:54 ` Philipp Tomsich
2 siblings, 0 replies; 8+ messages in thread
From: Philipp Tomsich @ 2017-09-11 20:23 UTC (permalink / raw)
To: u-boot
> Puma supports other boot sources then SD-Card. Update README to include
> the required steps.
>
> * how to package a SPI-NOR SPL
> * how to flash eMMC with rkdeveloptool
>
> Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
> Changes in v2:
> - add missing ./configure step while building rkdeveloptool
>
> board/theobroma-systems/puma_rk3399/README | 51 +++++++++++++++++++++++++-----
> 1 file changed, 43 insertions(+), 8 deletions(-)
>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [U-Boot, v2, 1/2] rockchip: board: lion_rk3368: update README flash instructions
2017-09-11 19:04 [U-Boot] [PATCH v2 1/2] rockchip: board: lion_rk3368: update README flash instructions Klaus Goger
` (2 preceding siblings ...)
2017-09-11 20:23 ` Philipp Tomsich
@ 2017-09-12 10:54 ` Philipp Tomsich
3 siblings, 0 replies; 8+ messages in thread
From: Philipp Tomsich @ 2017-09-12 10:54 UTC (permalink / raw)
To: u-boot
> Add a section to the README on how to flash the on-board eMMC
> with the rkdeveloptool.
>
> Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
> Changes in v2: None
>
> board/theobroma-systems/lion_rk3368/README | 24 ++++++++++++++++++++++--
> 1 file changed, 22 insertions(+), 2 deletions(-)
>
Applied to u-boot-rockchip, thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] [U-Boot, v2, 2/2] rockchip: board: puma_rk3399: update README flash instructions
2017-09-11 19:05 ` [U-Boot] [PATCH v2 2/2] rockchip: board: puma_rk3399: " Klaus Goger
2017-09-11 20:23 ` [U-Boot] [U-Boot, v2, " Philipp Tomsich
2017-09-11 20:23 ` Philipp Tomsich
@ 2017-09-12 10:54 ` Philipp Tomsich
2 siblings, 0 replies; 8+ messages in thread
From: Philipp Tomsich @ 2017-09-12 10:54 UTC (permalink / raw)
To: u-boot
> Puma supports other boot sources then SD-Card. Update README to include
> the required steps.
>
> * how to package a SPI-NOR SPL
> * how to flash eMMC with rkdeveloptool
>
> Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
> Changes in v2:
> - add missing ./configure step while building rkdeveloptool
>
> board/theobroma-systems/puma_rk3399/README | 51 +++++++++++++++++++++++++-----
> 1 file changed, 43 insertions(+), 8 deletions(-)
>
Applied to u-boot-rockchip, thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-09-12 10:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-11 19:04 [U-Boot] [PATCH v2 1/2] rockchip: board: lion_rk3368: update README flash instructions Klaus Goger
2017-09-11 19:05 ` [U-Boot] [PATCH v2 2/2] rockchip: board: puma_rk3399: " Klaus Goger
2017-09-11 20:23 ` [U-Boot] [U-Boot, v2, " Philipp Tomsich
2017-09-11 20:23 ` Philipp Tomsich
2017-09-12 10:54 ` Philipp Tomsich
2017-09-11 20:23 ` [U-Boot] [U-Boot, v2, 1/2] rockchip: board: lion_rk3368: " Philipp Tomsich
2017-09-11 20:23 ` Philipp Tomsich
2017-09-12 10:54 ` Philipp Tomsich
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.