Skip to contentSkip to conversation

package/mdio-tools: new package

PATCH Superseded Robert Marko 2 participants 4 messages Oct 2, 2022 – Oct 27, 2022

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/mdio-tools: new package

mdio-tools are kernel module and accompanying tools for low-level debugging of devices attached on MDIO bus like PHY-s, switches etc.

Userspace tools provide C22 or C45 reads and writes, benchmarking and even dedicated Marvell Link Street tools via the included kernel module.

---
Changes in v2:
* Correct license
* Add host-pkgconf to DEPENDENCIES
* Add minimal required kernel config options

---
 package/Config.in                  |  1 +
 package/mdio-tools/Config.in       |  9 +++++++++
 package/mdio-tools/mdio-tools.hash |  3 +++
 package/mdio-tools/mdio-tools.mk   | 20 ++++++++++++++++++++
 4 files changed, 33 insertions(+)
 create mode 100644 package/mdio-tools/Config.in
 create mode 100644 package/mdio-tools/mdio-tools.hash
 create mode 100644 package/mdio-tools/mdio-tools.mk
package/Config.in +1 -0
index e3a34d6e97..ed41e8bdd4 100644
@@ -536,6 +536,7 @@ endmenu
 	source "package/mbpfan/Config.in"
 	source "package/mdadm/Config.in"
 	source "package/mdevd/Config.in"
+	source "package/mdio-tools/Config.in"
 	source "package/memtest86/Config.in"
 	source "package/memtester/Config.in"
 	source "package/memtool/Config.in"
package/mdio-tools/Config.in new file +9 -0
new file mode 100644
index 0000000000..feb1e825ac
@@ -0,0 +1,9 @@
+comment "mdio-tools needs a Linux kernel to be built"
+	depends on !BR2_LINUX_KERNEL
+
+config BR2_PACKAGE_MDIO_TOOLS
+	bool "mdio-tools"
+	depends on BR2_LINUX_KERNEL
+	select BR2_PACKAGE_LIBMNL
+	help
+	  Low-level debug tools for MDIO devices
package/mdio-tools/mdio-tools.hash new file +3 -0
new file mode 100644
index 0000000000..0111165f27
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  c5e17431c62392f6c1da1ba4fb0a6f5918521509a377af74485851f93ff2a106  mdio-tools-1.2.0.tar.gz
+sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
package/mdio-tools/mdio-tools.mk new file +20 -0
new file mode 100644
index 0000000000..308a23824b
@@ -0,0 +1,20 @@
+################################################################################
+#
+# mdio-tools
+#
+################################################################################
+
+MDIO_TOOLS_VERSION = 1.2.0
+MDIO_TOOLS_SITE = https://github.com/wkz/mdio-tools/releases/download/$(MDIO_TOOLS_VERSION)
+MDIO_TOOLS_LICENSE = GPL-2.0
+MDIO_TOOLS_LICENSE_FILES = COPYING
+MDIO_TOOLS_DEPENDENCIES = host-pkgconf libmnl
+
+MDIO_TOOLS_MODULE_SUBDIRS = kernel
+define MDIO_TOOLS_LINUX_CONFIG_FIXUPS
+	$(call KCONFIG_ENABLE_OPT,CONFIG_NET)
+	$(call KCONFIG_ENABLE_OPT,CONFIG_MDIO_DEVICE)
+endef
+
+$(eval $(kernel-module))
+$(eval $(autotools-package))
Signature · 6 lines
2.37.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 8 lines · Robert Marko

mdio-tools are kernel module and accompanying tools for low-level debugging of devices attached on MDIO bus like PHY-s, switches etc.

Userspace tools provide C22 or C45 reads and writes, benchmarking and even dedicated Marvell Link Street tools via the included kernel module.

Quoted 6 lines

---
Changes in v2:
* Correct license
* Add host-pkgconf to DEPENDENCIES
* Add minimal required kernel config options

Anything I can do to help get this reviewed?

Regards,
Robert

Quoted 73 lines
---
 package/Config.in                  |  1 +
 package/mdio-tools/Config.in       |  9 +++++++++
 package/mdio-tools/mdio-tools.hash |  3 +++
 package/mdio-tools/mdio-tools.mk   | 20 ++++++++++++++++++++
 4 files changed, 33 insertions(+)
 create mode 100644 package/mdio-tools/Config.in
 create mode 100644 package/mdio-tools/mdio-tools.hash
 create mode 100644 package/mdio-tools/mdio-tools.mk
package/Config.in +1 -0
index e3a34d6e97..ed41e8bdd4 100644
@@ -536,6 +536,7 @@ endmenu
        source "package/mbpfan/Config.in"
        source "package/mdadm/Config.in"
        source "package/mdevd/Config.in"
+       source "package/mdio-tools/Config.in"
        source "package/memtest86/Config.in"
        source "package/memtester/Config.in"
        source "package/memtool/Config.in"
package/mdio-tools/Config.in new file +9 -0
new file mode 100644
index 0000000000..feb1e825ac
@@ -0,0 +1,9 @@
+comment "mdio-tools needs a Linux kernel to be built"
+       depends on !BR2_LINUX_KERNEL
+
+config BR2_PACKAGE_MDIO_TOOLS
+       bool "mdio-tools"
+       depends on BR2_LINUX_KERNEL
+       select BR2_PACKAGE_LIBMNL
+       help
+         Low-level debug tools for MDIO devices
package/mdio-tools/mdio-tools.hash new file +3 -0
new file mode 100644
index 0000000000..0111165f27
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  c5e17431c62392f6c1da1ba4fb0a6f5918521509a377af74485851f93ff2a106  mdio-tools-1.2.0.tar.gz
+sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
package/mdio-tools/mdio-tools.mk new file +20 -1
new file mode 100644
index 0000000000..308a23824b
@@ -0,0 +1,20 @@
+################################################################################
+#
+# mdio-tools
+#
+################################################################################
+
+MDIO_TOOLS_VERSION = 1.2.0
+MDIO_TOOLS_SITE = https://github.com/wkz/mdio-tools/releases/download/$(MDIO_TOOLS_VERSION)
+MDIO_TOOLS_LICENSE = GPL-2.0
+MDIO_TOOLS_LICENSE_FILES = COPYING
+MDIO_TOOLS_DEPENDENCIES = host-pkgconf libmnl
+
+MDIO_TOOLS_MODULE_SUBDIRS = kernel
+define MDIO_TOOLS_LINUX_CONFIG_FIXUPS
+       $(call KCONFIG_ENABLE_OPT,CONFIG_NET)
+       $(call KCONFIG_ENABLE_OPT,CONFIG_MDIO_DEVICE)
+endef
+
+$(eval $(kernel-module))
+$(eval $(autotools-package))
--
Quoted 2 lines

2.37.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Robert Marko
Quoted 42 lines · Robert Marko

mdio-tools are kernel module and accompanying tools for low-level debugging of devices attached on MDIO bus like PHY-s, switches etc.

Userspace tools provide C22 or C45 reads and writes, benchmarking and even dedicated Marvell Link Street tools via the included kernel module.

---
Changes in v2:
* Correct license
* Add host-pkgconf to DEPENDENCIES
* Add minimal required kernel config options

---
 package/Config.in                  |  1 +
 package/mdio-tools/Config.in       |  9 +++++++++
 package/mdio-tools/mdio-tools.hash |  3 +++
 package/mdio-tools/mdio-tools.mk   | 20 ++++++++++++++++++++
 4 files changed, 33 insertions(+)
 create mode 100644 package/mdio-tools/Config.in
 create mode 100644 package/mdio-tools/mdio-tools.hash
 create mode 100644 package/mdio-tools/mdio-tools.mk
package/Config.in +1 -0
index e3a34d6e97..ed41e8bdd4 100644
@@ -536,6 +536,7 @@ endmenu
        source "package/mbpfan/Config.in"
        source "package/mdadm/Config.in"
        source "package/mdevd/Config.in"
+       source "package/mdio-tools/Config.in"
        source "package/memtest86/Config.in"
        source "package/memtester/Config.in"
        source "package/memtool/Config.in"
package/mdio-tools/Config.in new file +0 -0
new file mode 100644
index 0000000000..feb1e825ac

package/mdio-tools/Config.in line 6

Quoted 6 lines
package/mdio-tools/Config.in new file +6 -0
@@ -0,0 +1,9 @@
+comment "mdio-tools needs a Linux kernel to be built"
+       depends on !BR2_LINUX_KERNEL
+
+config BR2_PACKAGE_MDIO_TOOLS
+       bool "mdio-tools"
+       depends on BR2_LINUX_KERNEL

depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1

I think you miss this here

Quoted 53 lines
package/mdio-tools/Config.in new file +3 -0
+       select BR2_PACKAGE_LIBMNL
+       help
+         Low-level debug tools for MDIO devices
package/mdio-tools/mdio-tools.hash new file +2 -0
new file mode 100644
index 0000000000..0111165f27
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  c5e17431c62392f6c1da1ba4fb0a6f5918521509a377af74485851f93ff2a106

mdio-tools-1.2.0.tar.gz
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING

package/mdio-tools/ renamed from package/mdio-tools/mdio-tools.mk +0 -0

mdio-tools.mk
new file mode 100644
index 0000000000..308a23824b

package/mdio-tools/mdio-tools.mk new file +8 -0
@@ -0,0 +1,20 @@
 
+################################################################################
+#
+# mdio-tools
+#
 
+################################################################################
+
+MDIO_TOOLS_VERSION = 1.2.0
+MDIO_TOOLS_SITE =

https://github.com/wkz/mdio-tools/releases/download/$(MDIO_TOOLS_VERSION)

package/mdio-tools/mdio-tools.mk new file +12 -1
+MDIO_TOOLS_LICENSE = GPL-2.0
+MDIO_TOOLS_LICENSE_FILES = COPYING
+MDIO_TOOLS_DEPENDENCIES = host-pkgconf libmnl
+
+MDIO_TOOLS_MODULE_SUBDIRS = kernel
+define MDIO_TOOLS_LINUX_CONFIG_FIXUPS
+       $(call KCONFIG_ENABLE_OPT,CONFIG_NET)
+       $(call KCONFIG_ENABLE_OPT,CONFIG_MDIO_DEVICE)
+endef
+
+$(eval $(kernel-module))
+$(eval $(autotools-package))
--

2.37.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Signature · 15 lines
Angelo Compagnucci

Software Engineer

[email protected]
__________________________________
Amarula Solutions SRL

Via le Canevare 30, 31100 Treviso, Veneto, IT

T. +39 (0)42 243 5310
[email protected]

www.amarulasolutions.com
[`as] https://www.amarulasolutions.com|

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
Quoted 56 lines · Angelo Compagnucci
Quoted 42 lines · Robert Marko

mdio-tools are kernel module and accompanying tools for low-level debugging of devices attached on MDIO bus like PHY-s, switches etc.

Userspace tools provide C22 or C45 reads and writes, benchmarking and even dedicated Marvell Link Street tools via the included kernel module.

---
Changes in v2:
* Correct license
* Add host-pkgconf to DEPENDENCIES
* Add minimal required kernel config options

---
 package/Config.in                  |  1 +
 package/mdio-tools/Config.in       |  9 +++++++++
 package/mdio-tools/mdio-tools.hash |  3 +++
 package/mdio-tools/mdio-tools.mk   | 20 ++++++++++++++++++++
 4 files changed, 33 insertions(+)
 create mode 100644 package/mdio-tools/Config.in
 create mode 100644 package/mdio-tools/mdio-tools.hash
 create mode 100644 package/mdio-tools/mdio-tools.mk
package/Config.in +1 -0
index e3a34d6e97..ed41e8bdd4 100644
@@ -536,6 +536,7 @@ endmenu
        source "package/mbpfan/Config.in"
        source "package/mdadm/Config.in"
        source "package/mdevd/Config.in"
+       source "package/mdio-tools/Config.in"
        source "package/memtest86/Config.in"
        source "package/memtester/Config.in"
        source "package/memtool/Config.in"
package/mdio-tools/Config.in new file +0 -0
new file mode 100644
index 0000000000..feb1e825ac

package/mdio-tools/Config.in line 6

Quoted 6 lines
package/mdio-tools/Config.in new file +6 -0
@@ -0,0 +1,9 @@
+comment "mdio-tools needs a Linux kernel to be built"
+       depends on !BR2_LINUX_KERNEL
+
+config BR2_PACKAGE_MDIO_TOOLS
+       bool "mdio-tools"
+       depends on BR2_LINUX_KERNEL

depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1

Quoted 1 line

I think you miss this here

Thanks, I completely missed it.
Added in v3.

Regards,
Robert

Quoted 60 lines
Quoted 43 lines
package/mdio-tools/Config.in new file +3 -0
+       select BR2_PACKAGE_LIBMNL
+       help
+         Low-level debug tools for MDIO devices
package/mdio-tools/mdio-tools.hash new file +3 -0
new file mode 100644
index 0000000000..0111165f27
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  c5e17431c62392f6c1da1ba4fb0a6f5918521509a377af74485851f93ff2a106  mdio-tools-1.2.0.tar.gz
+sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
package/mdio-tools/mdio-tools.mk new file +20 -1
new file mode 100644
index 0000000000..308a23824b
@@ -0,0 +1,20 @@
+################################################################################
+#
+# mdio-tools
+#
+################################################################################
+
+MDIO_TOOLS_VERSION = 1.2.0
+MDIO_TOOLS_SITE = https://github.com/wkz/mdio-tools/releases/download/$(MDIO_TOOLS_VERSION)
+MDIO_TOOLS_LICENSE = GPL-2.0
+MDIO_TOOLS_LICENSE_FILES = COPYING
+MDIO_TOOLS_DEPENDENCIES = host-pkgconf libmnl
+
+MDIO_TOOLS_MODULE_SUBDIRS = kernel
+define MDIO_TOOLS_LINUX_CONFIG_FIXUPS
+       $(call KCONFIG_ENABLE_OPT,CONFIG_NET)
+       $(call KCONFIG_ENABLE_OPT,CONFIG_MDIO_DEVICE)
+endef
+
+$(eval $(kernel-module))
+$(eval $(autotools-package))
--

2.37.3

Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

--

Angelo Compagnucci

Software Engineer

[email protected]
__________________________________
Amarula Solutions SRL

Quoted 8 lines

Via le Canevare 30, 31100 Treviso, Veneto, IT

T. +39 (0)42 243 5310
[email protected]

www.amarulasolutions.com

[`as] https://www.amarulasolutions.com|

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot