Skip to contentSkip to conversation

arm: dts: rockchip: rk3399: nanopi-r4s: Provide smbios sysinfo

PATCH Superseded Christian Kohlschütter 3 participants 9 messages Sep 29, 2022 – Feb 22, 2023 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: dts: rockchip: rk3399: nanopi-r4s: Provide smbios sysinfo

Provide human-readable manufacturer and product names for the FriendlyELEC NanoPi R4S.

Enable CONFIG_SYSINFO and CONFIG_SYSINFO_SMBIOS by default.

---
 arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi | 22 ++++++++++++++++++++++
 configs/nanopi-r4s-rk3399_defconfig        |  2 ++
 2 files changed, 24 insertions(+)
arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi +22 -0
index cd1642527b..69800cc368 100644
@@ -14,3 +14,25 @@
 
 #include "rk3399-nanopi4-u-boot.dtsi"
 #include "rk3399-sdram-lpddr4-100.dtsi"
+
+/ {
+	smbios {
+		compatible = "u-boot,sysinfo-smbios";
+
+		smbios {
+			system {
+				manufacturer = "FriendlyELEC";
+				product = "NanoPi R4S";
+			};
+
+			baseboard {
+				manufacturer = "FriendlyELEC";
+				product = "NanoPi R4S";
+			};
+
+			chassis {
+				manufacturer = "FriendlyELEC";
+			};
+		};
+	};
+};
configs/nanopi-r4s-rk3399_defconfig +2 -0
index dd2579d2e0..502f007e6e 100644
@@ -75,3 +75,5 @@ CONFIG_MISC=y
 CONFIG_MISC_INIT_R=y
 CONFIG_ROCKCHIP_EFUSE=y
 CONFIG_ROCKCHIP_OTP=y
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
Signature · 1 line
2.36.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Christian Kohlschütter

Provide human-readable manufacturer and product names for the FriendlyELEC NanoPi R4S.

Enable CONFIG_SYSINFO and CONFIG_SYSINFO_SMBIOS by default.

---
 arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi | 22 ++++++++++++++++++++++
 configs/nanopi-r4s-rk3399_defconfig        |  2 ++
 2 files changed, 24 insertions(+)
Quoted 36 lines
arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi +22 -0
index cd1642527b..69800cc368 100644
@@ -14,3 +14,25 @@
 
 #include "rk3399-nanopi4-u-boot.dtsi"
 #include "rk3399-sdram-lpddr4-100.dtsi"
+
+/ {
+       smbios {
+               compatible = "u-boot,sysinfo-smbios";
+
+               smbios {
+                       system {
+                               manufacturer = "FriendlyELEC";
+                               product = "NanoPi R4S";
+                       };
+
+                       baseboard {
+                               manufacturer = "FriendlyELEC";
+                               product = "NanoPi R4S";
+                       };
+
+                       chassis {
+                               manufacturer = "FriendlyELEC";
+                       };
+               };
+       };
+};
configs/nanopi-r4s-rk3399_defconfig +0 -0
index dd2579d2e0..502f007e6e 100644

configs/nanopi-r4s-rk3399_defconfig CONFIG_MISC=y · line 79

Quoted 5 lines
configs/nanopi-r4s-rk3399_defconfig +2 -0
@@ -75,3 +75,5 @@ CONFIG_MISC=y
 CONFIG_MISC_INIT_R=y
 CONFIG_ROCKCHIP_EFUSE=y
 CONFIG_ROCKCHIP_OTP=y
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y

Is the ordering right, here?

Regards,
Simon

Quoted 3 lines

--
2.36.2

#2 lore raw
Quoted 62 lines · Simon Glass
Quoted 11 lines · Christian Kohlschütter

Provide human-readable manufacturer and product names for the FriendlyELEC NanoPi R4S.

Enable CONFIG_SYSINFO and CONFIG_SYSINFO_SMBIOS by default.

---
arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi | 22 ++++++++++++++++++++++
configs/nanopi-r4s-rk3399_defconfig | 2 ++

2 files changed, 24 insertions(+)
Quoted 39 lines
arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi +22 -0
index cd1642527b..69800cc368 100644
@@ -14,3 +14,25 @@
 
 #include "rk3399-nanopi4-u-boot.dtsi"
 #include "rk3399-sdram-lpddr4-100.dtsi"
+
+/ {
+       smbios {
+               compatible = "u-boot,sysinfo-smbios";
+
+               smbios {
+                       system {
+                               manufacturer = "FriendlyELEC";
+                               product = "NanoPi R4S";
+                       };
+
+                       baseboard {
+                               manufacturer = "FriendlyELEC";
+                               product = "NanoPi R4S";
+                       };
+
+                       chassis {
+                               manufacturer = "FriendlyELEC";
+                       };
+               };
+       };
+};
configs/nanopi-r4s-rk3399_defconfig +0 -0
index dd2579d2e0..502f007e6e 100644
@@ -75,3 +75,5 @@ CONFIG_MISC=y

CONFIG_MISC_INIT_R=y
CONFIG_ROCKCHIP_EFUSE=y
CONFIG_ROCKCHIP_OTP=y

configs/nanopi-r4s-rk3399_defconfig CONFIG_MISC=y · line 79

Quoted 2 lines
configs/nanopi-r4s-rk3399_defconfig +2 -0
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y

Is the ordering right, here?

Quoted 2 lines

Regards,
Simon

Is there a tool to sort these values in a certain order? Should these not be in alphabetical order?

Thanks,
Christian

#3 lore raw

Hi Christian,

Quoted 63 lines · Christian Kohlschütter
Quoted 63 lines · Simon Glass
Quoted 11 lines · Christian Kohlschütter

Provide human-readable manufacturer and product names for the FriendlyELEC NanoPi R4S.

Enable CONFIG_SYSINFO and CONFIG_SYSINFO_SMBIOS by default.

---
arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi | 22 ++++++++++++++++++++++
configs/nanopi-r4s-rk3399_defconfig | 2 ++

2 files changed, 24 insertions(+)
Quoted 39 lines
arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi +22 -0
index cd1642527b..69800cc368 100644
@@ -14,3 +14,25 @@
 
 #include "rk3399-nanopi4-u-boot.dtsi"
 #include "rk3399-sdram-lpddr4-100.dtsi"
+
+/ {
+       smbios {
+               compatible = "u-boot,sysinfo-smbios";
+
+               smbios {
+                       system {
+                               manufacturer = "FriendlyELEC";
+                               product = "NanoPi R4S";
+                       };
+
+                       baseboard {
+                               manufacturer = "FriendlyELEC";
+                               product = "NanoPi R4S";
+                       };
+
+                       chassis {
+                               manufacturer = "FriendlyELEC";
+                       };
+               };
+       };
+};
configs/nanopi-r4s-rk3399_defconfig +0 -0
index dd2579d2e0..502f007e6e 100644
@@ -75,3 +75,5 @@ CONFIG_MISC=y

CONFIG_MISC_INIT_R=y
CONFIG_ROCKCHIP_EFUSE=y
CONFIG_ROCKCHIP_OTP=y

configs/nanopi-r4s-rk3399_defconfig CONFIG_MISC=y · line 79

Quoted 2 lines
configs/nanopi-r4s-rk3399_defconfig +2 -0
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y

Is the ordering right, here?

Quoted 4 lines
Quoted 2 lines

Regards,
Simon

Is there a tool to sort these values in a certain order?

$ echo nanopi-r4s-rk3399_defconfig >asc
$ ./tools/moveconfig.py -s -d asc

(it could use a new flag to just specific the board, if you want to send a patch)

Should these not be in alphabetical order?

No it is in order of the Kconfig tree (use 'make menuconfig' or 'make xconfig' to see it).

Regards,
Simon

#4 lore raw

On 30. Sep 2022, at 01:55, Simon Glass <[email protected]> wrote:
...

Quoted 8 lines
Quoted 1 line

Is there a tool to sort these values in a certain order?

$ echo nanopi-r4s-rk3399_defconfig >asc
$ ./tools/moveconfig.py -s -d asc

(it could use a new flag to just specific the board, if you want to send a patch)

Quoted 7 lines

Should these not be in alphabetical order?

No it is in order of the Kconfig tree (use 'make menuconfig' or 'make xconfig' to see it).

Regards,
Simon

I tried the above commands to no avail. moveconfig hangs.

I assume you meant "cat" instead of "echo"? But even then it doesn't sort the values. Fixing that I just got a bunch of "no defconfig matched" warnings.

What is the motivation of sorting these values in Kconfig order? Is it just for the sake of keeping comments in the right place? Would sorting in alphabetical order cause other issues?

Should there perhaps be a make target to take care of automatically cleaning up defconfig files?

Reviewed-by on v1 1/1
#5 lore raw
In reply to Christian Kohlschütter
Quoted 6 lines · Christian Kohlschütter

Provide human-readable manufacturer and product names for the FriendlyELEC NanoPi R4S.

Enable CONFIG_SYSINFO and CONFIG_SYSINFO_SMBIOS by default.

Thanks,
- Kever

Quoted 45 lines
---
  arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi | 22 ++++++++++++++++++++++
  configs/nanopi-r4s-rk3399_defconfig        |  2 ++
  2 files changed, 24 insertions(+)
arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi +22 -0
index cd1642527b..69800cc368 100644
@@ -14,3 +14,25 @@
 
  #include "rk3399-nanopi4-u-boot.dtsi"
  #include "rk3399-sdram-lpddr4-100.dtsi"
+
+/ {
+	smbios {
+		compatible = "u-boot,sysinfo-smbios";
+
+		smbios {
+			system {
+				manufacturer = "FriendlyELEC";
+				product = "NanoPi R4S";
+			};
+
+			baseboard {
+				manufacturer = "FriendlyELEC";
+				product = "NanoPi R4S";
+			};
+
+			chassis {
+				manufacturer = "FriendlyELEC";
+			};
+		};
+	};
+};
configs/nanopi-r4s-rk3399_defconfig +2 -0
index dd2579d2e0..502f007e6e 100644
@@ -75,3 +75,5 @@ CONFIG_MISC=y
  CONFIG_MISC_INIT_R=y
  CONFIG_ROCKCHIP_EFUSE=y
  CONFIG_ROCKCHIP_OTP=y
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
#6 lore raw

Hi Christian,

I got below error when try to apply:

Applying: arm: dts: rockchip: rk3399: nanopi-r4s: Provide smbios sysinfo
error: sha1 information is lacking or useless (configs/nanopi-r4s-rk3399_defconfig).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch' to see the failed patch
Patch failed at 0001 arm: dts: rockchip: rk3399: nanopi-r4s: Provide smbios sysinfo

Could you resend this patch?

Thanks,

- Kever

Quoted 56 lines · Kever Yang
Quoted 6 lines · Christian Kohlschütter

Provide human-readable manufacturer and product names for the FriendlyELEC NanoPi R4S.

Enable CONFIG_SYSINFO and CONFIG_SYSINFO_SMBIOS by default.

Thanks,
- Kever

Quoted 44 lines

---
  arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi | 22 ++++++++++++++++++++++ configs/nanopi-r4s-rk3399_defconfig        |  2 ++

  2 files changed, 24 insertions(+)
arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi +22 -0
index cd1642527b..69800cc368 100644
@@ -14,3 +14,25 @@
     #include "rk3399-nanopi4-u-boot.dtsi"
   #include "rk3399-sdram-lpddr4-100.dtsi"
+
+/ {
+    smbios {
+        compatible = "u-boot,sysinfo-smbios";
+
+        smbios {
+            system {
+                manufacturer = "FriendlyELEC";
+                product = "NanoPi R4S";
+            };
+
+            baseboard {
+                manufacturer = "FriendlyELEC";
+                product = "NanoPi R4S";
+            };
+
+            chassis {
+                manufacturer = "FriendlyELEC";
+            };
+        };
+    };
+};
configs/nanopi-r4s-rk3399_defconfig +0 -0
index dd2579d2e0..502f007e6e 100644
@@ -75,3 +75,5 @@ CONFIG_MISC=y

  CONFIG_MISC_INIT_R=y
  CONFIG_ROCKCHIP_EFUSE=y
  CONFIG_ROCKCHIP_OTP=y

configs/nanopi-r4s-rk3399_defconfig +2 -0
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
#7 lore raw

PATCH v2 1/1 arm: dts: rockchip: rk3399: nanopi-r4s: Provide smbios sysinfo

Provide human-readable manufacturer and product names for the FriendlyELEC NanoPi R4S.

Enable CONFIG_SYSINFO and CONFIG_SYSINFO_SMBIOS by default.

---
 arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi | 22 ++++++++++++++++++++++
 configs/nanopi-r4s-rk3399_defconfig        |  6 ++++++
 2 files changed, 28 insertions(+)
arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi +22 -0
index cd1642527b..69800cc368 100644
@@ -14,3 +14,25 @@
 
 #include "rk3399-nanopi4-u-boot.dtsi"
 #include "rk3399-sdram-lpddr4-100.dtsi"
+
+/ {
+	smbios {
+		compatible = "u-boot,sysinfo-smbios";
+
+		smbios {
+			system {
+				manufacturer = "FriendlyELEC";
+				product = "NanoPi R4S";
+			};
+
+			baseboard {
+				manufacturer = "FriendlyELEC";
+				product = "NanoPi R4S";
+			};
+
+			chassis {
+				manufacturer = "FriendlyELEC";
+			};
+		};
+	};
+};
configs/nanopi-r4s-rk3399_defconfig +6 -0
index d8854abbb1..502f007e6e 100644
@@ -71,3 +71,9 @@ CONFIG_VIDEO_ROCKCHIP=y
 CONFIG_DISPLAY_ROCKCHIP_HDMI=y
 CONFIG_SPL_TINY_MEMSET=y
 CONFIG_ERRNO_STR=y
+CONFIG_MISC=y
+CONFIG_MISC_INIT_R=y
+CONFIG_ROCKCHIP_EFUSE=y
+CONFIG_ROCKCHIP_OTP=y
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
Signature · 1 line
2.36.2
Reviewed-by on v2 1/1
#8 lore raw
Quoted 6 lines · Christian Kohlschütter

Provide human-readable manufacturer and product names for the FriendlyELEC NanoPi R4S.

Enable CONFIG_SYSINFO and CONFIG_SYSINFO_SMBIOS by default.

Thanks,
- Kever

Quoted 49 lines
---
  arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi | 22 ++++++++++++++++++++++
  configs/nanopi-r4s-rk3399_defconfig        |  6 ++++++
  2 files changed, 28 insertions(+)
arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi +22 -0
index cd1642527b..69800cc368 100644
@@ -14,3 +14,25 @@
 
  #include "rk3399-nanopi4-u-boot.dtsi"
  #include "rk3399-sdram-lpddr4-100.dtsi"
+
+/ {
+	smbios {
+		compatible = "u-boot,sysinfo-smbios";
+
+		smbios {
+			system {
+				manufacturer = "FriendlyELEC";
+				product = "NanoPi R4S";
+			};
+
+			baseboard {
+				manufacturer = "FriendlyELEC";
+				product = "NanoPi R4S";
+			};
+
+			chassis {
+				manufacturer = "FriendlyELEC";
+			};
+		};
+	};
+};
configs/nanopi-r4s-rk3399_defconfig +6 -0
index d8854abbb1..502f007e6e 100644
@@ -71,3 +71,9 @@ CONFIG_VIDEO_ROCKCHIP=y
  CONFIG_DISPLAY_ROCKCHIP_HDMI=y
  CONFIG_SPL_TINY_MEMSET=y
  CONFIG_ERRNO_STR=y
+CONFIG_MISC=y
+CONFIG_MISC_INIT_R=y
+CONFIG_ROCKCHIP_EFUSE=y
+CONFIG_ROCKCHIP_OTP=y
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y