package/ndctl: new package
v2 cover package/ndctl: new package
From: Chen Pei <[email protected]>
ndctl is a userspace utility for managing persistent memory (PMEM) and NVDIMM devices on Linux, enabling configuration and monitoring of namespaces, regions, and health status.
Adding ndctl to Buildroot allows embedded or server systems with PMEM hardware to manage persistent memory directly on the target device in a lightweight, self-contained manner.
I have submitted a patch to upstream regarding the issue caused by disabling fwctl and keyutils. Currently, considering they will actually be used, I've decided to always pass -Dfwctl=enabled -Dkeyutils=enabled in Buildroot.
Finally, since docker services are currently unavailable in my region, I did not use test-pkg. Please point out any issues, thank you.
Changes in v2:
- Remove dependency BR2_LINUX_KERNEL, host-meson and host-ninja
- Add BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_16 for __struct_group
- Add invisible comments
- Keep libtracefs optional
- Sort all rows with "select BR2_PACKAGE_" and "_DEPENDENCIES" in alphabetical order
- Update _LICENSE and _LICENSE_FILES
- Add the missing dependency "udev"
- Use $(STAGING_DIR) instead of $(TARGET_DIR)
Chen Pei (2):
package/ndctl: new package
DEVELOPERS: Add Chen Pei to ndctl
DEVELOPERS | 1 + package/Config.in | 1 + package/ndctl/Config.in | 25 ++++++++++++++++++++ package/ndctl/ndctl.hash | 7 ++++++ package/ndctl/ndctl.mk | 51 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 85 insertions(+) create mode 100644 package/ndctl/Config.in create mode 100644 package/ndctl/ndctl.hash create mode 100644 package/ndctl/ndctl.mk
Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/2 package/ndctl: new package
From: Chen Pei <[email protected]>
A "device memory" enabling project encompassing tools and libraries for CXL, NVDIMMs, DAX, memory tiering and other platform memory device topics.
--- package/Config.in | 1 + package/ndctl/Config.in | 25 ++++++++++++++++++++ package/ndctl/ndctl.hash | 7 ++++++ package/ndctl/ndctl.mk | 51 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 package/ndctl/Config.in create mode 100644 package/ndctl/ndctl.hash create mode 100644 package/ndctl/ndctl.mk
package/Config.in +1 -0
@@ -2836,6 +2836,7 @@ menu "System tools" source "package/monit/Config.in" source "package/multipath-tools/Config.in" source "package/ncdu/Config.in" + source "package/ndctl/Config.in" source "package/nerdctl/Config.in" source "package/netifrc/Config.in" source "package/numactl/Config.in"
package/ndctl/Config.in new file +25 -0
@@ -0,0 +1,25 @@ +config BR2_PACKAGE_NDCTL + bool "ndctl" + depends on BR2_PACKAGE_HAS_UDEV + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_16 + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_MMU + select BR2_PACKAGE_INIPARSER + select BR2_PACKAGE_JSON_C + select BR2_PACKAGE_KEYUTILS + select BR2_PACKAGE_KMOD + select BR2_PACKAGE_UTIL_LINUX + select BR2_PACKAGE_UTIL_LINUX_LIBS + select BR2_PACKAGE_UTIL_LINUX_LIBUUID + help + A "device memory" enabling project encompassing tools and + libraries for CXL, NVDIMMs, DAX, memory tiering and other + platform memory device topics. + + https://github.com/pmem/ndctl + +comment "ndctl needs udev /dev management, a toolchain headers >= 5.16" + depends on BR2_USE_MMU + depends on !BR2_PACKAGE_HAS_UDEV \ + || !BR2_TOOLCHAIN_HAS_THREADS \ + || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_16
package/ndctl/ndctl.hash new file +7 -0
@@ -0,0 +1,7 @@ +# locally computed +sha256 dd4b9b9a9dc0a15e980670b6f889e910a80ad60f2309e03bfd9cc6071d14dd30 ndctl-83.tar.gz +sha256 1334f22048052d69647860fe9fb24997dc3b33737cb494297d68949f589fa1cf COPYING +sha256 5c37e41135091a39821cfb306ad8516625b0bb49510ce56ad85c347bbc46df29 LICENSES/other/CC0-1.0 +sha256 89807acf2309bd285f033404ee78581602f3cd9b819a16ac2f0e5f60ff4a473e LICENSES/other/MIT +sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 LICENSES/preferred/GPL-2.0 +sha256 9397d01be0ec93d29384447ba18e532ab7b01af8c8b582ece9f10ad45b9568db LICENSES/preferred/LGPL-2.1
package/ndctl/ndctl.mk new file +51 -0
51 lines not on this page · raw message
Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 7 lines · On 10/03/2026 09:18, [email protected] wrote:
From: Chen Pei <[email protected]>
A "device memory" enabling project encompassing tools and libraries for CXL, NVDIMMs, DAX, memory tiering and other platform memory device topics.
Signed-off-by Chen Pei <[email protected]>
Applied to master, thanks. For info, I relaxed the minimal toolchains headers to 5.10. Looking a bit more into this, I realized this was backported to 5.10 and 5.15. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/039c1ae13ec12f7cebddf86f37080d0a1fee28e6
Doing this review, I also saw that a new v84 version was also released, in case you would like to update:
https://github.com/pmem/ndctl/releases/tag/v84
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 14 lines · On Thu, 19 Mar 2026 21:51:18 +0100, [email protected] wrote:
Quoted 7 lines
From: Chen Pei <[email protected]>
A "device memory" enabling project encompassing tools and libraries for CXL, NVDIMMs, DAX, memory tiering and other platform memory device topics.
Signed-off-by Chen Pei <[email protected]>Applied to master, thanks. For info, I relaxed the minimal toolchains headers to 5.10. Looking a bit more into this, I realized this was backported to 5.10 and 5.15. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/039c1ae13ec12f7cebddf86f37080d0a1fee28e6
Quoted 3 lines
Doing this review, I also saw that a new v84 version was also released, in case you would like to update:
https://github.com/pmem/ndctl/releases/tag/v84
Hi, Julien,
Thank you for your review and help. I did notice that a new v84 version was also released. However, I will wait for the next version (which should be v85) to be released before updating. I have already fixed the upstream bug in ndctl that you found during my code review, and it has been merged. See:
https://github.com/pmem/ndctl/tree/pending
Thanks,
Pei
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Pei,
Quoted 20 lines · On 27/03/2026 13:57, [email protected] wrote:
Quoted 14 lines · On Thu, 19 Mar 2026 21:51:18 +0100, [email protected] wrote:
Quoted 7 lines
From: Chen Pei <[email protected]>
A "device memory" enabling project encompassing tools and libraries for CXL, NVDIMMs, DAX, memory tiering and other platform memory device topics.
Signed-off-by Chen Pei <[email protected]>Applied to master, thanks. For info, I relaxed the minimal toolchains headers to 5.10. Looking a bit more into this, I realized this was backported to 5.10 and 5.15. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/039c1ae13ec12f7cebddf86f37080d0a1fee28e6Quoted 3 lines
Doing this review, I also saw that a new v84 version was also released, in case you would like to update:
https://github.com/pmem/ndctl/releases/tag/v84
Quoted 7 lines
Hi, Julien,
Thank you for your review and help. I did notice that a new v84 version was also released. However, I will wait for the next version (which should be v85) to be released before updating. I have already fixed the upstream bug in ndctl that you found during my code review, and it has been merged. See:
https://github.com/pmem/ndctl/tree/pending
Thanks for the heads up. We'll wait for the v85, then.
Quoted 2 lines
Thanks,
Pei
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/2 DEVELOPERS: Add Chen Pei to ndctl
In reply to [email protected]From: Chen Pei <[email protected]>
--- DEVELOPERS | 1 + 1 file changed, 1 insertion(+)
DEVELOPERS +1 -0
@@ -612,6 +612,7 @@ F: package/qoriq-cadence-dp-firmware/ N: Chen Pei <[email protected]> F: package/iniparser/ +F: package/ndctl/ N: Chris Packham <[email protected]> F: package/coremark/
Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot