Skip to contentSkip to conversation

doc: rockchip: Update build instruction for rk3308

PATCH New Andy Yan 3 participants 9 messages Nov 26, 2019 – Dec 1, 2019

Subsystems (2)
lore
Share & tools
lore

Andy Yan

author
#0 lore raw

PATCH 1/4 doc: rockchip: Update build instruction for rk3308

After commit d8765e2422cd ("Enable building of u-boot.itb on Rockchip platform"), u-boot.itb will automatically generated by "make all" command, manually command "make u-boot.itb" is no longer needed.

---

 doc/README.rockchip | 1 -
 1 file changed, 1 deletion(-)
doc/README.rockchip +0 -1
index 67c14006a3..dae4ebc8e4 100644
@@ -108,7 +108,6 @@ For example:
      => export BL31=/path/to/rkbin/bin/rk33/rk3308_bl31_v2.22.elf
      => make roc-rk3308-cc_defconfig
      => make CROSS_COMPILE=aarch64-linux-gnu- all
-     => make CROSS_COMPILE=aarch64-linux-gnu- u-boot.itb
      => ./tools/mkimage -n rk3308 -T rksd -d /path/to/rkbin/bin/rk33/rk3308_ddr_589MHz_uart2_m0_v1.26.bin idbloader.img
      => cat spl/u-boot-spl.bin  >> idbloader.img
 
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/4 rockchip: rk3308: enable spl-fifo-mode for emmc

We need load some parts of ATF to sram, but rockchip dwmmc controllers can't do dma to non-ddr addresses space, so set the mmc controller into fifo mode in spl.

And show my best respect to Heiko's work for this solution.

---

 arch/arm/dts/rk3308-u-boot.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/dts/rk3308-u-boot.dtsi +2 -0
index 1a68decef3..f5a595337e 100644
@@ -12,6 +12,8 @@
 };
 
 &emmc {
+	/* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
+	u-boot,spl-fifo-mode;
 	u-boot,dm-pre-reloc;
 };
 
Signature · 1 line
2.17.1
#2 lore raw

PATCH 2/4 rockchip: rk3308: enable spl-fifo-mode for emmc

Quoted 7 lines · Andy Yan

We need load some parts of ATF to sram, but rockchip dwmmc controllers can't do dma to non-ddr addresses space, so set the mmc controller into fifo mode in spl.

And show my best respect to Heiko's work for this solution.

Thanks,
- Kever

Quoted 18 lines

---

  arch/arm/dts/rk3308-u-boot.dtsi | 2 ++
  1 file changed, 2 insertions(+)
arch/arm/dts/rk3308-u-boot.dtsi +2 -0
index 1a68decef3..f5a595337e 100644
@@ -12,6 +12,8 @@
  };
 
  &emmc {
+	/* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
+	u-boot,spl-fifo-mode;
  	u-boot,dm-pre-reloc;
  };
 
author
#3 lore raw

PATCH 3/4 rockchip: px5: enable spl-fifo-mode for emmc for px5-evb

In reply to Andy Yan

We need load some parts of ATF to sram, but rockchip dwmmc controllers can't do dma to non-ddr addresses space, so set the mmc controller into fifo mode in spl.

---

 arch/arm/dts/rk3368-px5-evb-u-boot.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/dts/rk3368-px5-evb-u-boot.dtsi +2 -0
index 002767a033..936ce55727 100644
@@ -58,6 +58,8 @@
 };
 
 &emmc {
+	/* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
+	u-boot,spl-fifo-mode;
 	u-boot,dm-pre-reloc;
 };
 
Signature · 1 line
2.17.1
#5 lore raw

PATCH 3/4 rockchip: px5: enable spl-fifo-mode for emmc for px5-evb

In reply to Andy Yan
Quoted 5 lines · Andy Yan

We need load some parts of ATF to sram, but rockchip dwmmc controllers can't do dma to non-ddr addresses space, so set the mmc controller into fifo mode in spl.

Thanks,
- Kever

Quoted 18 lines

---

  arch/arm/dts/rk3368-px5-evb-u-boot.dtsi | 2 ++
  1 file changed, 2 insertions(+)
arch/arm/dts/rk3368-px5-evb-u-boot.dtsi +2 -0
index 002767a033..936ce55727 100644
@@ -58,6 +58,8 @@
  };
 
  &emmc {
+	/* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
+	u-boot,spl-fifo-mode;
  	u-boot,dm-pre-reloc;
  };
 
author
#6 lore raw

PATCH 4/4 rockchip: evb-px5: disable NET

In reply to Andy Yan

PX5 evb has no ETH port, so disable it.

---

 configs/evb-px5_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/evb-px5_defconfig +1 -1
index f9b17be10e..2d18da6cc8 100644
@@ -45,7 +45,7 @@ CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names interrupt-parent"
 CONFIG_TPL_OF_PLATDATA=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_NET_RANDOM_ETHADDR=y
+# CONFIG_NET is not set
 CONFIG_TPL_DM=y
 CONFIG_REGMAP=y
 CONFIG_SPL_REGMAP=y
Signature · 1 line
2.17.1
#7 lore raw

PATCH 4/4 rockchip: evb-px5: disable NET

Quoted 3 lines · Andy Yan

PX5 evb has no ETH port, so disable it.

Thanks,
- Kever

Quoted 18 lines

---

  configs/evb-px5_defconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
configs/evb-px5_defconfig +1 -1
index f9b17be10e..2d18da6cc8 100644
@@ -45,7 +45,7 @@ CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names interrupt-parent"
  CONFIG_TPL_OF_PLATDATA=y
  CONFIG_ENV_IS_IN_MMC=y
  CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_NET_RANDOM_ETHADDR=y
+# CONFIG_NET is not set
  CONFIG_TPL_DM=y
  CONFIG_REGMAP=y
  CONFIG_SPL_REGMAP=y
#8 lore raw

PATCH 1/4 doc: rockchip: Update build instruction for rk3308

In reply to Andy Yan
Quoted 6 lines · Andy Yan

After commit d8765e2422cd ("Enable building of u-boot.itb on Rockchip platform"), u-boot.itb will automatically generated by "make all" command, manually command "make u-boot.itb" is no longer needed.

Thanks,
- Kever

Quoted 17 lines

---

  doc/README.rockchip | 1 -
  1 file changed, 1 deletion(-)
doc/README.rockchip +0 -1
index 67c14006a3..dae4ebc8e4 100644
@@ -108,7 +108,6 @@ For example:
       => export BL31=/path/to/rkbin/bin/rk33/rk3308_bl31_v2.22.elf
       => make roc-rk3308-cc_defconfig
       => make CROSS_COMPILE=aarch64-linux-gnu- all
-     => make CROSS_COMPILE=aarch64-linux-gnu- u-boot.itb
       => ./tools/mkimage -n rk3308 -T rksd -d /path/to/rkbin/bin/rk33/rk3308_ddr_589MHz_uart2_m0_v1.26.bin idbloader.img
       => cat spl/u-boot-spl.bin  >> idbloader.img