Skip to contentSkip to conversation

Update Chameleon v3 configuration

PATCH Superseded Paweł Anikiel 3 participants 20 messages Oct 14, 2022 – Nov 25, 2022 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

v2 cover Update Chameleon v3 configuration

These changes add the third chameleon variation and make it easier to deploy images to different boards.

v2 changes:
- rename chameleonv3.dts to .dtsi
- add missing CONFIG_SPL_MAX_SIZE symbol

Paweł Anikiel (6):
socfpga: chameleonv3: Enable ext4 in SPL
socfpga: chameleonv3: Move environment to a text file
arm: dts: chameleonv3: Override chameleonv3 bitstream names
arm: dts: chameleonv3: Rename chameleonv3.dts to .dtsi
arm: dts: chameleonv3: Add 270-2 variant
chameleonv3: Convert CONFIG_SPL_MAX_SIZE to Kconfig

 arch/arm/dts/Makefile                               |  1 +
 ...eleonv3.dts => socfpga_arria10_chameleonv3.dtsi} |  0
 .../socfpga_arria10_chameleonv3_270_2-u-boot.dtsi   | 12 ++++++++++++
 arch/arm/dts/socfpga_arria10_chameleonv3_270_2.dts  |  5 +++++
 .../socfpga_arria10_chameleonv3_270_3-u-boot.dtsi   |  4 ++++
 arch/arm/dts/socfpga_arria10_chameleonv3_270_3.dts  |  2 +-
 .../socfpga_arria10_chameleonv3_480_2-u-boot.dtsi   |  4 ++++
 arch/arm/dts/socfpga_arria10_chameleonv3_480_2.dts  |  2 +-
 board/google/chameleonv3/environment.txt            | 13 +++++++++++++
 configs/socfpga_chameleonv3_defconfig               |  2 ++
 include/configs/socfpga_chameleonv3.h               |  9 ++++-----
 11 files changed, 47 insertions(+), 7 deletions(-)
 rename arch/arm/dts/{socfpga_arria10_chameleonv3.dts => socfpga_arria10_chameleonv3.dtsi} (100%)
 create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_270_2-u-boot.dtsi
 create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_270_2.dts
 create mode 100644 board/google/chameleonv3/environment.txt
Signature · 1 line
2.38.0.413.g74048e4d9e-goog
#1 lore raw

PATCH v2 1/6 socfpga: chameleonv3: Enable ext4 in SPL

Allow SPL to boot from an ext4 filesystem.

---
 configs/socfpga_chameleonv3_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/socfpga_chameleonv3_defconfig +1 -0
index 478efc59ea..e628ee8ad5 100644
@@ -7,6 +7,7 @@ CONFIG_DEFAULT_DEVICE_TREE="socfpga_arria10_chameleonv3_480_2"
 CONFIG_SPL_TEXT_BASE=0xFFE00000
 CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_TARGET_SOCFPGA_CHAMELEONV3=y
+CONFIG_SPL_FS_EXT4=y
 CONFIG_SPL_FS_FAT=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT=y
Signature · 1 line
2.38.0.413.g74048e4d9e-goog
Reviewed-by Tested-by on v2 1/6
#3 lore raw

Re: [PATCH v2 1/6] socfpga: chameleonv3: Enable ext4 in SPL

In reply to Paweł Anikiel
Quoted 21 lines · Paweł Anikiel

Allow SPL to boot from an ext4 filesystem.

---
 configs/socfpga_chameleonv3_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/socfpga_chameleonv3_defconfig +1 -1
index 478efc59ea..e628ee8ad5 100644
@@ -7,6 +7,7 @@ CONFIG_DEFAULT_DEVICE_TREE="socfpga_arria10_chameleonv3_480_2"
 CONFIG_SPL_TEXT_BASE=0xFFE00000
 CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_TARGET_SOCFPGA_CHAMELEONV3=y
+CONFIG_SPL_FS_EXT4=y
 CONFIG_SPL_FS_FAT=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT=y
--
Quoted 2 lines

2.38.0.413.g74048e4d9e-goog

#4 lore raw

PATCH v2 2/6 socfpga: chameleonv3: Move environment to a text file

In reply to Paweł Anikiel

Move the environment to an easily editable text file in the boot partition

---
 board/google/chameleonv3/environment.txt | 13 +++++++++++++
 include/configs/socfpga_chameleonv3.h    |  9 ++++-----
 2 files changed, 17 insertions(+), 5 deletions(-)
 create mode 100644 board/google/chameleonv3/environment.txt
board/google/chameleonv3/environment.txt new file +13 -0
new file mode 100644
index 0000000000..52aedbb90a
@@ -0,0 +1,13 @@
+# MMC boot command
+bootcmd_mmc=load mmc 0:1 ${loadaddr} kernel.itb; bootm
+
+# Network boot command and vars
+bootcmd_net=dhcp; tftpboot ${loadaddr} kernel.itb; bootm
+autoload=no
+serverip=192.168.0.1
+
+# U-Boot will run this after loading this file
+bootcmd_txt=run bootcmd_mmc
+
+# Kernel cmdline
+bootargs=cma=256M console=ttyS1,115200 root=/dev/mmcblk0p3 rootflags=subvol=root rw rootwait
include/configs/socfpga_chameleonv3.h +4 -5
index 75d2081fac..4c43d89a20 100644
@@ -21,11 +21,10 @@
 #define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600, 115200}
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
-	"autoload=no\0" \
-	"bootargs=cma=256M console=ttyS1,115200 root=/dev/mmcblk0p3 rw rootwait\0" \
-	"distro_bootcmd=bridge enable; run bootcmd_mmc\0" \
-	"bootcmd_mmc=load mmc 0:1 ${loadaddr} kernel.itb; bootm\0" \
-	"bootcmd_net=dhcp; tftpboot ${loadaddr} kernel.itb; bootm\0"
+	"distro_bootcmd=bridge enable; " \
+		"load mmc 0:1 ${loadaddr} u-boot.txt; " \
+		"env import -t ${loadaddr}; " \
+		"run bootcmd_txt\0"
 
 /*
  * L4 OSC1 Timer 0
Signature · 1 line
2.38.0.413.g74048e4d9e-goog
Reviewed-by on v2 2/6
#5 lore raw

Re: [PATCH v2 2/6] socfpga: chameleonv3: Move environment to a text file

Quoted 10 lines · Paweł Anikiel

Move the environment to an easily editable text file in the boot partition

---
 board/google/chameleonv3/environment.txt | 13 +++++++++++++
 include/configs/socfpga_chameleonv3.h    |  9 ++++-----
 2 files changed, 17 insertions(+), 5 deletions(-)
 create mode 100644 board/google/chameleonv3/environment.txt
Reviewed-by Tested-by on v2 2/6
#6 lore raw

Re: [PATCH v2 2/6] socfpga: chameleonv3: Move environment to a text file

In reply to Paweł Anikiel
Quoted 51 lines · Paweł Anikiel

Move the environment to an easily editable text file in the boot partition

---
 board/google/chameleonv3/environment.txt | 13 +++++++++++++
 include/configs/socfpga_chameleonv3.h    |  9 ++++-----
 2 files changed, 17 insertions(+), 5 deletions(-)
 create mode 100644 board/google/chameleonv3/environment.txt
board/google/chameleonv3/environment.txt new file +13 -0
new file mode 100644
index 0000000000..52aedbb90a
@@ -0,0 +1,13 @@
+# MMC boot command
+bootcmd_mmc=load mmc 0:1 ${loadaddr} kernel.itb; bootm
+
+# Network boot command and vars
+bootcmd_net=dhcp; tftpboot ${loadaddr} kernel.itb; bootm
+autoload=no
+serverip=192.168.0.1
+
+# U-Boot will run this after loading this file
+bootcmd_txt=run bootcmd_mmc
+
+# Kernel cmdline
+bootargs=cma=256M console=ttyS1,115200 root=/dev/mmcblk0p3 rootflags=subvol=root rw rootwait
include/configs/socfpga_chameleonv3.h +4 -6
index 75d2081fac..4c43d89a20 100644
@@ -21,11 +21,10 @@
 #define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600, 115200}
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
-       "autoload=no\0" \
-       "bootargs=cma=256M console=ttyS1,115200 root=/dev/mmcblk0p3 rw rootwait\0" \
-       "distro_bootcmd=bridge enable; run bootcmd_mmc\0" \
-       "bootcmd_mmc=load mmc 0:1 ${loadaddr} kernel.itb; bootm\0" \
-       "bootcmd_net=dhcp; tftpboot ${loadaddr} kernel.itb; bootm\0"
+       "distro_bootcmd=bridge enable; " \
+               "load mmc 0:1 ${loadaddr} u-boot.txt; " \
+               "env import -t ${loadaddr}; " \
+               "run bootcmd_txt\0"
 
 /*
  * L4 OSC1 Timer 0
--
Quoted 2 lines

2.38.0.413.g74048e4d9e-goog

#7 lore raw

PATCH v2 3/6 arm: dts: chameleonv3: Override chameleonv3 bitstream names

In reply to Paweł Anikiel

Set the bitstream name per Chameleon variant. This allows the same boot filesystem with all bitstream variants to be used on different boards.

---
 arch/arm/dts/socfpga_arria10_chameleonv3_270_3-u-boot.dtsi | 4 ++++
 arch/arm/dts/socfpga_arria10_chameleonv3_480_2-u-boot.dtsi | 4 ++++
 2 files changed, 8 insertions(+)
arch/arm/dts/socfpga_arria10_chameleonv3_270_3-u-boot.dtsi +4 -0
index e789d49657..a7aa17b220 100644
@@ -6,3 +6,7 @@
 #include "socfpga_arria10-handoff.dtsi"
 #include "socfpga_arria10_handoff_u-boot.dtsi"
 #include "socfpga_arria10_mercury_aa1-u-boot.dtsi"
+
+&fpga_mgr {
+	altr,bitstream = "fpga-270-3.itb";
+};
arch/arm/dts/socfpga_arria10_chameleonv3_480_2-u-boot.dtsi +4 -0
index 7bbcc471c5..82a94894ea 100644
@@ -6,3 +6,7 @@
 #include "socfpga_arria10-handoff.dtsi"
 #include "socfpga_arria10_handoff_u-boot.dtsi"
 #include "socfpga_arria10_mercury_aa1-u-boot.dtsi"
+
+&fpga_mgr {
+	altr,bitstream = "fpga-480-2.itb";
+};
Signature · 1 line
2.38.0.413.g74048e4d9e-goog
Reviewed-by on v2 3/6
#8 lore raw

Re: [PATCH v2 3/6] arm: dts: chameleonv3: Override chameleonv3 bitstream names

Quoted 10 lines · Paweł Anikiel

Set the bitstream name per Chameleon variant. This allows the same boot filesystem with all bitstream variants to be used on different boards.

---
 arch/arm/dts/socfpga_arria10_chameleonv3_270_3-u-boot.dtsi | 4 ++++
 arch/arm/dts/socfpga_arria10_chameleonv3_480_2-u-boot.dtsi | 4 ++++
 2 files changed, 8 insertions(+)
Reviewed-by Tested-by on v2 3/6
#9 lore raw

Re: [PATCH v2 3/6] arm: dts: chameleonv3: Override chameleonv3 bitstream names

In reply to Paweł Anikiel
Quoted 36 lines · Paweł Anikiel

Set the bitstream name per Chameleon variant. This allows the same boot filesystem with all bitstream variants to be used on different boards.

---
 arch/arm/dts/socfpga_arria10_chameleonv3_270_3-u-boot.dtsi | 4 ++++
 arch/arm/dts/socfpga_arria10_chameleonv3_480_2-u-boot.dtsi | 4 ++++
 2 files changed, 8 insertions(+)
arch/arm/dts/socfpga_arria10_chameleonv3_270_3-u-boot.dtsi +4 -0
index e789d49657..a7aa17b220 100644
@@ -6,3 +6,7 @@
 #include "socfpga_arria10-handoff.dtsi"
 #include "socfpga_arria10_handoff_u-boot.dtsi"
 #include "socfpga_arria10_mercury_aa1-u-boot.dtsi"
+
+&fpga_mgr {
+       altr,bitstream = "fpga-270-3.itb";
+};
arch/arm/dts/socfpga_arria10_chameleonv3_480_2-u-boot.dtsi +4 -1
index 7bbcc471c5..82a94894ea 100644
@@ -6,3 +6,7 @@
 #include "socfpga_arria10-handoff.dtsi"
 #include "socfpga_arria10_handoff_u-boot.dtsi"
 #include "socfpga_arria10_mercury_aa1-u-boot.dtsi"
+
+&fpga_mgr {
+       altr,bitstream = "fpga-480-2.itb";
+};
--
Quoted 2 lines

2.38.0.413.g74048e4d9e-goog

#10 lore raw

PATCH v2 4/6 arm: dts: chameleonv3: Rename chameleonv3.dts to .dtsi

In reply to Paweł Anikiel

This file is included by the different chameleonv3 variants. Change the name to .dtsi.

---
 ...arria10_chameleonv3.dts => socfpga_arria10_chameleonv3.dtsi} | 0
 arch/arm/dts/socfpga_arria10_chameleonv3_270_3.dts              | 2 +-
 arch/arm/dts/socfpga_arria10_chameleonv3_480_2.dts              | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename arch/arm/dts/{socfpga_arria10_chameleonv3.dts => socfpga_arria10_chameleonv3.dtsi} (100%)
arch/arm/dts/socfpga_arria10_chameleonv3.dtsi renamed from arch/arm/dts/socfpga_arria10_chameleonv3.dts +0 -0
similarity index 100%
rename from arch/arm/dts/socfpga_arria10_chameleonv3.dts
rename to arch/arm/dts/socfpga_arria10_chameleonv3.dtsi
arch/arm/dts/socfpga_arria10_chameleonv3_270_3.dts +1 -1
index 5f40af6eb9..bef0280212 100644
@@ -2,4 +2,4 @@
 /*
  * Copyright 2022 Google LLC
  */
-#include "socfpga_arria10_chameleonv3.dts"
+#include "socfpga_arria10_chameleonv3.dtsi"
arch/arm/dts/socfpga_arria10_chameleonv3_480_2.dts +1 -1
index 5f40af6eb9..bef0280212 100644
@@ -2,4 +2,4 @@
 /*
  * Copyright 2022 Google LLC
  */
-#include "socfpga_arria10_chameleonv3.dts"
+#include "socfpga_arria10_chameleonv3.dtsi"
Signature · 1 line
2.38.0.413.g74048e4d9e-goog
Reviewed-by on v2 4/6
#11 lore raw

Re: [PATCH v2 4/6] arm: dts: chameleonv3: Rename chameleonv3.dts to .dtsi

Quoted 4 lines · Paweł Anikiel

This file is included by the different chameleonv3 variants. Change the name to .dtsi.

Quoted 8 lines
---
 ...arria10_chameleonv3.dts => socfpga_arria10_chameleonv3.dtsi} | 0
 arch/arm/dts/socfpga_arria10_chameleonv3_270_3.dts              | 2 +-
 arch/arm/dts/socfpga_arria10_chameleonv3_480_2.dts              | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename arch/arm/dts/{socfpga_arria10_chameleonv3.dts => socfpga_arria10_chameleonv3.dtsi} (100%)
Reviewed-by Tested-by on v2 4/6
#12 lore raw

Re: [PATCH v2 4/6] arm: dts: chameleonv3: Rename chameleonv3.dts to .dtsi

In reply to Paweł Anikiel
Quoted 37 lines · Paweł Anikiel

This file is included by the different chameleonv3 variants. Change the name to .dtsi.

---
 ...arria10_chameleonv3.dts => socfpga_arria10_chameleonv3.dtsi} | 0
 arch/arm/dts/socfpga_arria10_chameleonv3_270_3.dts              | 2 +-
 arch/arm/dts/socfpga_arria10_chameleonv3_480_2.dts              | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename arch/arm/dts/{socfpga_arria10_chameleonv3.dts => socfpga_arria10_chameleonv3.dtsi} (100%)
arch/arm/dts/socfpga_arria10_chameleonv3.dtsi renamed from arch/arm/dts/socfpga_arria10_chameleonv3.dts +0 -0
similarity index 100%
rename from arch/arm/dts/socfpga_arria10_chameleonv3.dts
rename to arch/arm/dts/socfpga_arria10_chameleonv3.dtsi
arch/arm/dts/socfpga_arria10_chameleonv3_270_3.dts +1 -1
index 5f40af6eb9..bef0280212 100644
@@ -2,4 +2,4 @@
 /*
  * Copyright 2022 Google LLC
  */
-#include "socfpga_arria10_chameleonv3.dts"
+#include "socfpga_arria10_chameleonv3.dtsi"
arch/arm/dts/socfpga_arria10_chameleonv3_480_2.dts +1 -2
index 5f40af6eb9..bef0280212 100644
@@ -2,4 +2,4 @@
 /*
  * Copyright 2022 Google LLC
  */
-#include "socfpga_arria10_chameleonv3.dts"
+#include "socfpga_arria10_chameleonv3.dtsi"
--
Quoted 2 lines

2.38.0.413.g74048e4d9e-goog

#13 lore raw

PATCH v2 5/6 arm: dts: chameleonv3: Add 270-2 variant

In reply to Paweł Anikiel

Add devicetree for chameleonv3 with the 270-2I2-D11E variant of the Mercury+ AA1 module

---
 arch/arm/dts/Makefile                                |  1 +
 .../socfpga_arria10_chameleonv3_270_2-u-boot.dtsi    | 12 ++++++++++++
 arch/arm/dts/socfpga_arria10_chameleonv3_270_2.dts   |  5 +++++
 3 files changed, 18 insertions(+)
 create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_270_2-u-boot.dtsi
 create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_270_2.dts
arch/arm/dts/Makefile +1 -0
index 9b00b64509..fc6f6be567 100644
@@ -429,6 +429,7 @@ dtb-$(CONFIG_ARCH_SOCFPGA) +=				\
 	socfpga_agilex_socdk.dtb			\
 	socfpga_arria5_secu1.dtb			\
 	socfpga_arria5_socdk.dtb			\
+	socfpga_arria10_chameleonv3_270_2.dtb		\
 	socfpga_arria10_chameleonv3_270_3.dtb		\
 	socfpga_arria10_chameleonv3_480_2.dtb		\
 	socfpga_arria10_socdk_sdmmc.dtb			\
arch/arm/dts/socfpga_arria10_chameleonv3_270_2-u-boot.dtsi new file +12 -0
new file mode 100644
index 0000000000..05b4485cf3
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright 2022 Google LLC
+ */
+#include "socfpga_arria10_chameleonv3_480_2_handoff.h"
+#include "socfpga_arria10-handoff.dtsi"
+#include "socfpga_arria10_handoff_u-boot.dtsi"
+#include "socfpga_arria10_mercury_aa1-u-boot.dtsi"
+
+&fpga_mgr {
+	altr,bitstream = "fpga-270-2.itb";
+};
arch/arm/dts/socfpga_arria10_chameleonv3_270_2.dts new file +5 -0
new file mode 100644
index 0000000000..bef0280212
@@ -0,0 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright 2022 Google LLC
+ */
+#include "socfpga_arria10_chameleonv3.dtsi"
Signature · 1 line
2.38.0.413.g74048e4d9e-goog
Reviewed-by on v2 5/6
#14 lore raw

Re: [PATCH v2 5/6] arm: dts: chameleonv3: Add 270-2 variant

Quoted 4 lines · Paweł Anikiel

Add devicetree for chameleonv3 with the 270-2I2-D11E variant of the Mercury+ AA1 module

Quoted 9 lines
---
 arch/arm/dts/Makefile                                |  1 +
 .../socfpga_arria10_chameleonv3_270_2-u-boot.dtsi    | 12 ++++++++++++
 arch/arm/dts/socfpga_arria10_chameleonv3_270_2.dts   |  5 +++++
 3 files changed, 18 insertions(+)
 create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_270_2-u-boot.dtsi
 create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_270_2.dts
Reviewed-by Tested-by on v2 5/6
#15 lore raw

Re: [PATCH v2 5/6] arm: dts: chameleonv3: Add 270-2 variant

In reply to Paweł Anikiel
Quoted 55 lines · Paweł Anikiel

Add devicetree for chameleonv3 with the 270-2I2-D11E variant of the Mercury+ AA1 module

---
 arch/arm/dts/Makefile                                |  1 +
 .../socfpga_arria10_chameleonv3_270_2-u-boot.dtsi    | 12 ++++++++++++
 arch/arm/dts/socfpga_arria10_chameleonv3_270_2.dts   |  5 +++++
 3 files changed, 18 insertions(+)
 create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_270_2-u-boot.dtsi
 create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_270_2.dts
arch/arm/dts/Makefile +1 -0
index 9b00b64509..fc6f6be567 100644
@@ -429,6 +429,7 @@ dtb-$(CONFIG_ARCH_SOCFPGA) +=                               \
        socfpga_agilex_socdk.dtb                        \
        socfpga_arria5_secu1.dtb                        \
        socfpga_arria5_socdk.dtb                        \
+       socfpga_arria10_chameleonv3_270_2.dtb           \
        socfpga_arria10_chameleonv3_270_3.dtb           \
        socfpga_arria10_chameleonv3_480_2.dtb           \
        socfpga_arria10_socdk_sdmmc.dtb                 \
arch/arm/dts/socfpga_arria10_chameleonv3_270_2-u-boot.dtsi new file +12 -0
new file mode 100644
index 0000000000..05b4485cf3
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright 2022 Google LLC
+ */
+#include "socfpga_arria10_chameleonv3_480_2_handoff.h"
+#include "socfpga_arria10-handoff.dtsi"
+#include "socfpga_arria10_handoff_u-boot.dtsi"
+#include "socfpga_arria10_mercury_aa1-u-boot.dtsi"
+
+&fpga_mgr {
+       altr,bitstream = "fpga-270-2.itb";
+};
arch/arm/dts/socfpga_arria10_chameleonv3_270_2.dts new file +5 -1
new file mode 100644
index 0000000000..bef0280212
@@ -0,0 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright 2022 Google LLC
+ */
+#include "socfpga_arria10_chameleonv3.dtsi"
--
Quoted 2 lines

2.38.0.413.g74048e4d9e-goog

#16 lore raw

PATCH v2 6/6 chameleonv3: Convert CONFIG_SPL_MAX_SIZE to Kconfig

In reply to Paweł Anikiel

This file was missed during the conversion process. Add the symbol to defconfig.

---
 configs/socfpga_chameleonv3_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/socfpga_chameleonv3_defconfig +1 -0
index e628ee8ad5..6980fafd3c 100644
@@ -5,6 +5,7 @@ CONFIG_ENV_SIZE=0x10000
 CONFIG_ENV_OFFSET=0x4400
 CONFIG_DEFAULT_DEVICE_TREE="socfpga_arria10_chameleonv3_480_2"
 CONFIG_SPL_TEXT_BASE=0xFFE00000
+CONFIG_SPL_MAX_SIZE=0x40000
 CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_TARGET_SOCFPGA_CHAMELEONV3=y
 CONFIG_SPL_FS_EXT4=y
Signature · 1 line
2.38.0.413.g74048e4d9e-goog
Reviewed-by on v2 6/6
#18 lore raw

Re: [PATCH v2 6/6] chameleonv3: Convert CONFIG_SPL_MAX_SIZE to Kconfig

In reply to Paweł Anikiel
Quoted 22 lines · Paweł Anikiel

This file was missed during the conversion process. Add the symbol to defconfig.

---
 configs/socfpga_chameleonv3_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/socfpga_chameleonv3_defconfig +1 -1
index e628ee8ad5..6980fafd3c 100644
@@ -5,6 +5,7 @@ CONFIG_ENV_SIZE=0x10000
 CONFIG_ENV_OFFSET=0x4400
 CONFIG_DEFAULT_DEVICE_TREE="socfpga_arria10_chameleonv3_480_2"
 CONFIG_SPL_TEXT_BASE=0xFFE00000
+CONFIG_SPL_MAX_SIZE=0x40000
 CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_TARGET_SOCFPGA_CHAMELEONV3=y
 CONFIG_SPL_FS_EXT4=y
--
Quoted 2 lines

2.38.0.413.g74048e4d9e-goog

#19 lore raw
In reply to Paweł Anikiel
Quoted 33 lines · Paweł Anikiel

These changes add the third chameleon variation and make it easier to deploy images to different boards.

v2 changes:
- rename chameleonv3.dts to .dtsi
- add missing CONFIG_SPL_MAX_SIZE symbol

Paweł Anikiel (6):
socfpga: chameleonv3: Enable ext4 in SPL
socfpga: chameleonv3: Move environment to a text file
arm: dts: chameleonv3: Override chameleonv3 bitstream names
arm: dts: chameleonv3: Rename chameleonv3.dts to .dtsi
arm: dts: chameleonv3: Add 270-2 variant
chameleonv3: Convert CONFIG_SPL_MAX_SIZE to Kconfig

 arch/arm/dts/Makefile                               |  1 +
 ...eleonv3.dts => socfpga_arria10_chameleonv3.dtsi} |  0
 .../socfpga_arria10_chameleonv3_270_2-u-boot.dtsi   | 12 ++++++++++++
 arch/arm/dts/socfpga_arria10_chameleonv3_270_2.dts  |  5 +++++
 .../socfpga_arria10_chameleonv3_270_3-u-boot.dtsi   |  4 ++++
 arch/arm/dts/socfpga_arria10_chameleonv3_270_3.dts  |  2 +-
 .../socfpga_arria10_chameleonv3_480_2-u-boot.dtsi   |  4 ++++
 arch/arm/dts/socfpga_arria10_chameleonv3_480_2.dts  |  2 +-
 board/google/chameleonv3/environment.txt            | 13 +++++++++++++
 configs/socfpga_chameleonv3_defconfig               |  2 ++
 include/configs/socfpga_chameleonv3.h               |  9 ++++-----
 11 files changed, 47 insertions(+), 7 deletions(-)
 rename arch/arm/dts/{socfpga_arria10_chameleonv3.dts => socfpga_arria10_chameleonv3.dtsi} (100%)
 create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_270_2-u-boot.dtsi
 create mode 100644 arch/arm/dts/socfpga_arria10_chameleonv3_270_2.dts
 create mode 100644 board/google/chameleonv3/environment.txt
Quoted 3 lines

--
2.38.0.413.g74048e4d9e-goog

Hi Tien,

Could you please take a look? Do you have any remarks about the patchset?

Regards,
Paweł