Skip to contentSkip to conversation

boards: Disable NET on platforms without NETDEVICES

PATCH In review Tom Rini 4 participants 7 messages Nov 17, 2023 – Nov 27, 2023

Subsystems (2)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 boards: Disable NET on platforms without NETDEVICES

None of these platforms enabled a networking devices, and disabled CMD_NET. Given that we used to gate network support on CMD_NET rather than NET, we disable CONFIG_NET on these platforms now.

---
Cc: Simon Glass <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Matthias Winker <[email protected]>
Cc: Philip Oberfichtner <[email protected]>
Cc: Minkyu Kang <[email protected]>
Cc: Jaehoon Chung <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Sergey Temerkhanov <[email protected]>

---
 configs/efi-x86_app32_defconfig     | 3 +--
 configs/efi-x86_app64_defconfig     | 3 +--
 configs/imx6q_bosch_acc_defconfig   | 3 +--
 configs/origen_defconfig            | 2 +-
 configs/s5pc210_universal_defconfig | 2 +-
 configs/stm32mp25_defconfig         | 2 +-
 configs/thunderx_88xx_defconfig     | 2 +-
 configs/trats2_defconfig            | 2 +-
 configs/trats_defconfig             | 2 +-
 9 files changed, 9 insertions(+), 12 deletions(-)
configs/efi-x86_app32_defconfig +1 -2
index 682ba5b89576..e2e6f42c9a9d 100644
@@ -21,7 +21,6 @@ CONFIG_SYS_PBSIZE=532
 CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_PART=y
 # CONFIG_CMD_SCSI is not set
-# CONFIG_CMD_NET is not set
 CONFIG_CMD_TIME=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_EXT4=y
@@ -36,7 +35,7 @@ CONFIG_ENV_OVERWRITE=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_USE_BOOTFILE=y
 CONFIG_BOOTFILE="bzImage"
-CONFIG_USE_ROOTPATH=y
+# CONFIG_NET is not set
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 # CONFIG_REGEX is not set
configs/efi-x86_app64_defconfig +1 -2
index d6b6c3d82995..14b5cd0fa0ee 100644
@@ -22,7 +22,6 @@ CONFIG_SYS_PBSIZE=532
 CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_PART=y
 # CONFIG_CMD_SCSI is not set
-# CONFIG_CMD_NET is not set
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIME=y
 CONFIG_CMD_EXT2=y
@@ -38,7 +37,7 @@ CONFIG_ENV_OVERWRITE=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_USE_BOOTFILE=y
 CONFIG_BOOTFILE="bzImage"
-CONFIG_USE_ROOTPATH=y
+# CONFIG_NET is not set
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 CONFIG_CONSOLE_SCROLL_LINES=5
configs/imx6q_bosch_acc_defconfig +1 -2
index 05bab034e0f9..6abb7954ba2d 100644
@@ -63,7 +63,6 @@ CONFIG_CMD_PART=y
 # CONFIG_CMD_ITEST is not set
 # CONFIG_CMD_SOURCE is not set
 # CONFIG_CMD_SETEXPR is not set
-# CONFIG_CMD_NET is not set
 # CONFIG_CMD_BLOCK_CACHE is not set
 # CONFIG_CMD_SLEEP is not set
 # CONFIG_CMD_MP is not set
@@ -82,7 +81,7 @@ CONFIG_SYS_MMC_ENV_PART=1
 CONFIG_ENV_WRITEABLE_LIST=y
 CONFIG_ENV_ACCESS_IGNORE_FORCE=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_TFTP_BLOCKSIZE=512
+# CONFIG_NET is not set
 CONFIG_SPL_DM=y
 CONFIG_BOOTCOUNT_LIMIT=y
 CONFIG_DM_BOOTCOUNT=y
configs/origen_defconfig +1 -1
index 3a71d6e582a7..5e55b712df9e 100644
@@ -35,13 +35,13 @@ CONFIG_CMD_DFU=y
 CONFIG_CMD_GPT=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB_MASS_STORAGE=y
-# CONFIG_CMD_NET is not set
 CONFIG_CMD_CACHE=y
 # CONFIG_CMD_SLEEP is not set
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_OF_CONTROL=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+# CONFIG_NET is not set
 CONFIG_DFU_MMC=y
 CONFIG_SYS_DFU_DATA_BUF_SIZE=0x2000000
 CONFIG_MMC_DW=y
configs/s5pc210_universal_defconfig +1 -1
index f585c510635a..ac236c82a1fc 100644
@@ -33,7 +33,6 @@ CONFIG_CMD_GPT=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB_MASS_STORAGE=y
-# CONFIG_CMD_NET is not set
 CONFIG_CMD_CACHE=y
 # CONFIG_CMD_SLEEP is not set
 CONFIG_CMD_EXT4_WRITE=y
@@ -42,6 +41,7 @@ CONFIG_OF_CONTROL=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
+# CONFIG_NET is not set
 CONFIG_DFU_MMC=y
 CONFIG_SYS_DFU_DATA_BUF_SIZE=0x2000000
 CONFIG_SYS_I2C_S3C24X0=y
configs/stm32mp25_defconfig +1 -1
index 8423943f091c..75f27c98b441 100644
@@ -23,7 +23,6 @@ CONFIG_CMD_MEMTEST=y
 CONFIG_CMD_CLK=y
 CONFIG_CMD_GPIO=y
 # CONFIG_CMD_LOADB is not set
-# CONFIG_CMD_NET is not set
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIME=y
 CONFIG_CMD_RNG=y
@@ -31,6 +30,7 @@ CONFIG_CMD_TIMER=y
 CONFIG_CMD_REGULATOR=y
 CONFIG_CMD_LOG=y
 CONFIG_OF_LIVE=y
+# CONFIG_NET is not set
 CONFIG_GPIO_HOG=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_STM32F7=y
configs/thunderx_88xx_defconfig +1 -1
index 5c24b38bb1fa..0c71b298ada5 100644
@@ -32,8 +32,8 @@ CONFIG_SYS_BOOTM_LEN=0x800000
 # CONFIG_CMD_EDITENV is not set
 # CONFIG_CMD_SAVEENV is not set
 # CONFIG_CMD_ENV_EXISTS is not set
-# CONFIG_CMD_NET is not set
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+# CONFIG_NET is not set
 # CONFIG_MMC is not set
 CONFIG_DM_SERIAL=y
 CONFIG_DEBUG_UART_SKIP_INIT=y
configs/trats2_defconfig +1 -1
index 6c4909f12be0..045c74f95efb 100644
@@ -36,7 +36,6 @@ CONFIG_CMD_GPT=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB_MASS_STORAGE=y
-# CONFIG_CMD_NET is not set
 CONFIG_CMD_CACHE=y
 # CONFIG_CMD_SLEEP is not set
 CONFIG_CMD_EXT4_WRITE=y
@@ -44,6 +43,7 @@ CONFIG_OF_CONTROL=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
+# CONFIG_NET is not set
 CONFIG_DFU_MMC=y
 CONFIG_SYS_DFU_DATA_BUF_SIZE=0x2000000
 CONFIG_DM_I2C_GPIO=y
configs/trats_defconfig +1 -1
index 78484c071945..b1adaef17a01 100644
@@ -35,7 +35,6 @@ CONFIG_CMD_GPT=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB_MASS_STORAGE=y
-# CONFIG_CMD_NET is not set
 CONFIG_CMD_CACHE=y
 # CONFIG_CMD_SLEEP is not set
 CONFIG_CMD_EXT4_WRITE=y
@@ -43,6 +42,7 @@ CONFIG_OF_CONTROL=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
+# CONFIG_NET is not set
 CONFIG_DFU_MMC=y
 CONFIG_SYS_DFU_DATA_BUF_SIZE=0x2000000
 CONFIG_DM_I2C_GPIO=y
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Tom Rini

None of these platforms enabled a networking devices, and disabled CMD_NET. Given that we used to gate network support on CMD_NET rather than NET, we disable CONFIG_NET on these platforms now.

---
Cc: Simon Glass <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Matthias Winker <[email protected]>
Cc: Philip Oberfichtner <[email protected]>
Cc: Minkyu Kang <[email protected]>
Cc: Jaehoon Chung <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Sergey Temerkhanov <[email protected]>

Quoted 11 lines
---
 configs/efi-x86_app32_defconfig     | 3 +--
 configs/efi-x86_app64_defconfig     | 3 +--
 configs/imx6q_bosch_acc_defconfig   | 3 +--
 configs/origen_defconfig            | 2 +-
 configs/s5pc210_universal_defconfig | 2 +-
 configs/stm32mp25_defconfig         | 2 +-
 configs/thunderx_88xx_defconfig     | 2 +-
 configs/trats2_defconfig            | 2 +-
 configs/trats_defconfig             | 2 +-
 9 files changed, 9 insertions(+), 12 deletions(-)
author
#4 lore raw
Quoted 7 lines · Winker Matthias (HC-CW/ENG-PJM)

Hello Tom,

Just to be sure. In the past we had NET enabled such that the fused MAC is taken over, although we don’t use NET CMD. With your changes, does I.mx6 evaluate the MAC fuses and forward it to Linux?

Our board: Bosch ACC.

I honestly don't know as I don't see how it's doing that today in current master (which does not have this change) so you might need to start by confirming behavior in the current tree and working from there, thanks.

Signature · 1 line
Tom
#5 lore raw
Quoted 9 lines · Tom Rini
Quoted 6 lines · Winker Matthias (HC-CW/ENG-PJM)

Hello Tom,

Just to be sure. In the past we had NET enabled such that the fused MAC is taken over, although we don’t use NET CMD. With your changes, does I.mx6 evaluate the MAC fuses and forward it to Linux?

Quoted 6 lines
Quoted 1 line

Our board: Bosch ACC.

I honestly don't know as I don't see how it's doing that today in current master (which does not have this change) so you might need to start by confirming behavior in the current tree and working from there, thanks.

It's usually reading from eFUSES and populates details via DT using alias bits, whether or not that uses/depends on code in net I'm not sure.

author
#6 lore raw
Quoted 12 lines · Peter Robinson
Quoted 11 lines · Tom Rini
Quoted 7 lines · Winker Matthias (HC-CW/ENG-PJM)

Hello Tom,

Just to be sure. In the past we had NET enabled such that the fused MAC is taken over, although we don’t use NET CMD. With your changes, does I.mx6 evaluate the MAC fuses and forward it to Linux?

Our board: Bosch ACC.

Quoted 8 lines
Quoted 4 lines

I honestly don't know as I don't see how it's doing that today in current master (which does not have this change) so you might need to start by confirming behavior in the current tree and working from there, thanks.

It's usually reading from eFUSES and populates details via DT using alias bits, whether or not that uses/depends on code in net I'm not sure.

Right. The regular (to me at least) hook is fdt_fixup_ethernet() which a few boards call, but not board/bosch/acc/ code. There's a couple of other calls in places, and then also a few places that modify "local-mac-address" or "mac-address" directly.

Signature · 1 line
Tom