Skip to contentSkip to conversation

Support for D-Link DNS-320L

PATCH Superseded Maciej Grela 2 participants 16 messages Oct 3, 2023 – Feb 5, 2024

lore
Share & tools
lore
#0 lore raw

cover Support for D-Link DNS-320L

Hello,

This is a short patchset to support a D-Link DNS-320L NAS. There are two device-specific packages which are required for proper system management on the device as well as a out-of-tree DTS. I am going to send it upstream when I learn more about device trees. I have added myself as a maintainer to the DEVELOPERS file for all relevant parts.

The packages have been checked with no issues detected:

➜ buildroot git:(master) ✗ utils/docker-run make check-package 389271 lines processed
0 warnings generated

An example boot log is presented below:
https://gist.github.com/enkiusz/482fab68ef7a630c8cfaad6f13f63919

I have noticed that the packages do not build for all architectures which is a problem I do not yet know how to solve:

➜ buildroot git:(master) ✗ cat iniparser.config BR2_PACKAGE_INIPARSER=y
➜ buildroot git:(master) ✗ utils/test-pkg --config iniparser.config -p iniparser

                    bootlin-armv5-uclibc [1/6]: OK
                     bootlin-armv7-glibc [2/6]: OK
                   bootlin-armv7m-uclibc [3/6]: FAILED
                     bootlin-x86-64-musl [4/6]: OK
                      br-arm-full-static [5/6]: FAILED
                            sourcery-arm [6/6]: OK
➜  buildroot git:(master) ✗ cat dns320l-daemon.config
BR2_PACKAGE_DNS320L_DAEMON=y
➜  buildroot git:(master) ✗ utils/test-pkg --config dns320l-daemon.config -p dns320l-daemon
                    bootlin-armv5-uclibc [1/6]: OK
                     bootlin-armv7-glibc [2/6]: OK
                   bootlin-armv7m-uclibc [3/6]: FAILED
                     bootlin-x86-64-musl [4/6]: OK
                      br-arm-full-static [5/6]: FAILED
                            sourcery-arm [6/6]: OK

6 builds, 0 skipped, 2 build failed, 0 legal-info failed, 0 show-info failed

These failures however don't seem to be relevant for the device I'm building the packages for as they run armv5 which is successful. Are successful builds for all toolchains a prerequisite for upstream inclusion? I do not want to spam the autobuilder logs with failures.

Cheers,

Maciej Grela (3):
package/iniparser: new package
package/dns320l-daemon: new package
board/netgear/dns320l: new board

 DEVELOPERS                                    |   6 +
 board/d-link/dns320l/dts/kirkwood-dns320l.dts | 218 ++++++++++++++++++
 configs/dns320l_defconfig                     |  16 ++
 package/Config.in                             |   2 +
 package/dns320l-daemon/Config.in              |   7 +
 package/dns320l-daemon/S50dns320l-daemon      |  37 +++
 package/dns320l-daemon/dns320l-daemon.hash    |   1 +
 package/dns320l-daemon/dns320l-daemon.mk      |  31 +++
 package/iniparser/Config.in                   |   6 +
 package/iniparser/iniparser.hash              |   2 +
 package/iniparser/iniparser.mk                |  42 ++++
 11 files changed, 368 insertions(+)
 create mode 100644 board/d-link/dns320l/dts/kirkwood-dns320l.dts
 create mode 100644 configs/dns320l_defconfig
 create mode 100644 package/dns320l-daemon/Config.in
 create mode 100644 package/dns320l-daemon/S50dns320l-daemon
 create mode 100644 package/dns320l-daemon/dns320l-daemon.hash
 create mode 100644 package/dns320l-daemon/dns320l-daemon.mk
 create mode 100644 package/iniparser/Config.in
 create mode 100644 package/iniparser/iniparser.hash
 create mode 100644 package/iniparser/iniparser.mk
Signature · 7 lines
2.39.2


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

PATCH 1/3 package/iniparser: new package

iniparser is a required dependency of dns320l-daemon

---
 package/Config.in                |  1 +
 package/iniparser/Config.in      |  6 +++++
 package/iniparser/iniparser.hash |  2 ++
 package/iniparser/iniparser.mk   | 42 ++++++++++++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 100644 package/iniparser/Config.in
 create mode 100644 package/iniparser/iniparser.hash
 create mode 100644 package/iniparser/iniparser.mk
package/Config.in +1 -0
index 009f7ba186..228e9eb1e3 100644
@@ -2085,6 +2085,7 @@ menu "Other"
 	source "package/gtest/Config.in"
 	source "package/gumbo-parser/Config.in"
 	source "package/highway/Config.in"
+	source "package/iniparser/Config.in"
 	source "package/jemalloc/Config.in"
 	source "package/lapack/Config.in"
 	source "package/libabseil-cpp/Config.in"
package/iniparser/Config.in new file +6 -0
new file mode 100644
index 0000000000..4932869943
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_INIPARSER
+	bool "iniparser"
+	help
+	  ini file parser
+
+	  https://github.com/ndevilla/iniparser
package/iniparser/iniparser.hash new file +2 -0
new file mode 100644
index 0000000000..a745062fcd
@@ -0,0 +1,2 @@
+# From https://github.com/ndevilla/iniparser/releases
+sha256  960daa800dd31d70ba1bacf3ea2d22e8ddfc2906534bf328319495966443f3ae  iniparser-4.1.tar.gz
package/iniparser/iniparser.mk new file +42 -0

42 lines not on this page · raw message

Signature · 7 lines
2.39.2


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

v2 cover Support for D-Link DNS-320L

Hello,

This is a short patchset to support a D-Link DNS-320L NAS. There are two device-specific packages which are required for proper system management on the device as well as a out-of-tree DTS. I am going to send it upstream when I learn more about device trees. I have added myself as a maintainer to the DEVELOPERS file for all relevant parts.

The packages have been checked with no issues detected:

➜ buildroot git:(master) ✗ utils/docker-run make check-package 389271 lines processed
0 warnings generated

An example boot log is presented below:
https://gist.github.com/enkiusz/482fab68ef7a630c8cfaad6f13f63919

The packages build successfully using test-pkg:

➜ buildroot git:(master) ✗ cat iniparser.config BR2_PACKAGE_INIPARSER=y
➜ buildroot git:(master) ✗ utils/test-pkg --config iniparser.config -p iniparser

                    bootlin-armv5-uclibc [1/6]: OK
                     bootlin-armv7-glibc [2/6]: OK
                   bootlin-armv7m-uclibc [3/6]: OK
                     bootlin-x86-64-musl [4/6]: OK
                      br-arm-full-static [5/6]: OK
                            sourcery-arm [6/6]: OK

6 builds, 0 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed ➜ buildroot git:(master) ✗

➜ buildroot git:(master) ✗ cat dns320l-daemon.config BR2_PACKAGE_DNS320L_DAEMON=y
➜ buildroot git:(master) ✗ utils/test-pkg --config dns320l-daemon.config -p dns320l-daemon

                    bootlin-armv5-uclibc [1/6]: OK
                     bootlin-armv7-glibc [2/6]: OK
                   bootlin-armv7m-uclibc [3/6]: SKIPPED
                     bootlin-x86-64-musl [4/6]: OK
                      br-arm-full-static [5/6]: OK
                            sourcery-arm [6/6]: OK

6 builds, 1 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed ➜ buildroot git:(master) ✗

---
changes v1 -> v2:
- don't build iniparser on the host
- properly handle building static and shared iniparser in all combos
- disable dns320l-daemon on platforms without fork()
- DNS-320L is manufactured by D-Link not Netgear, change commit summaries to reflect that

Maciej Grela (3):
package/iniparser: new package
package/dns320l-daemon: new package
board/d-link/dns320l: new board

 DEVELOPERS                                    |   6 +
 board/d-link/dns320l/dts/kirkwood-dns320l.dts | 218 ++++++++++++++++++
 configs/dns320l_defconfig                     |  16 ++
 package/Config.in                             |   2 +
 package/dns320l-daemon/Config.in              |   8 +
 package/dns320l-daemon/S50dns320l-daemon      |  37 +++
 package/dns320l-daemon/dns320l-daemon.hash    |   1 +
 package/dns320l-daemon/dns320l-daemon.mk      |  31 +++
 package/iniparser/Config.in                   |   6 +
 package/iniparser/iniparser.hash              |   2 +
 package/iniparser/iniparser.mk                |  56 +++++
 11 files changed, 383 insertions(+)
 create mode 100644 board/d-link/dns320l/dts/kirkwood-dns320l.dts
 create mode 100644 configs/dns320l_defconfig
 create mode 100644 package/dns320l-daemon/Config.in
 create mode 100644 package/dns320l-daemon/S50dns320l-daemon
 create mode 100644 package/dns320l-daemon/dns320l-daemon.hash
 create mode 100644 package/dns320l-daemon/dns320l-daemon.mk
 create mode 100644 package/iniparser/Config.in
 create mode 100644 package/iniparser/iniparser.hash
 create mode 100644 package/iniparser/iniparser.mk
Signature · 7 lines
2.39.2


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

PATCH v2 1/3 package/iniparser: new package

In reply to Maciej Grela

iniparser is a required dependency of dns320l-daemon

---
 package/Config.in                |  1 +
 package/iniparser/Config.in      |  6 ++++
 package/iniparser/iniparser.hash |  2 ++
 package/iniparser/iniparser.mk   | 56 ++++++++++++++++++++++++++++++++
 4 files changed, 65 insertions(+)
 create mode 100644 package/iniparser/Config.in
 create mode 100644 package/iniparser/iniparser.hash
 create mode 100644 package/iniparser/iniparser.mk
package/Config.in +1 -0
index 009f7ba186..228e9eb1e3 100644
@@ -2085,6 +2085,7 @@ menu "Other"
 	source "package/gtest/Config.in"
 	source "package/gumbo-parser/Config.in"
 	source "package/highway/Config.in"
+	source "package/iniparser/Config.in"
 	source "package/jemalloc/Config.in"
 	source "package/lapack/Config.in"
 	source "package/libabseil-cpp/Config.in"
package/iniparser/Config.in new file +6 -0
new file mode 100644
index 0000000000..4932869943
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_INIPARSER
+	bool "iniparser"
+	help
+	  ini file parser
+
+	  https://github.com/ndevilla/iniparser
package/iniparser/iniparser.hash new file +2 -0
new file mode 100644
index 0000000000..a745062fcd
@@ -0,0 +1,2 @@
+# From https://github.com/ndevilla/iniparser/releases
+sha256  960daa800dd31d70ba1bacf3ea2d22e8ddfc2906534bf328319495966443f3ae  iniparser-4.1.tar.gz
package/iniparser/iniparser.mk new file +56 -0

56 lines not on this page · raw message

Signature · 7 lines
2.39.2


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

v3 cover Support for D-Link DNS-320L

Hello,

This is a short patchset to support a D-Link DNS-320L NAS. There are two device-specific packages which are required for proper system management on the device as well as a out-of-tree DTS. I am going to send it upstream when I learn more about device trees. I have added myself as a maintainer to the DEVELOPERS file for all relevant parts.

The packages have been checked with no issues detected:

➜ buildroot git:(master) ✗ utils/docker-run make check-package 389271 lines processed
0 warnings generated

An example boot log is presented below:
https://gist.github.com/enkiusz/482fab68ef7a630c8cfaad6f13f63919

The packages build successfully using test-pkg:

➜ buildroot git:(master) ✗ cat iniparser.config BR2_PACKAGE_INIPARSER=y
➜ buildroot git:(master) ✗ utils/test-pkg --config iniparser.config -p iniparser

                    bootlin-armv5-uclibc [1/6]: OK
                     bootlin-armv7-glibc [2/6]: OK
                   bootlin-armv7m-uclibc [3/6]: OK
                     bootlin-x86-64-musl [4/6]: OK
                      br-arm-full-static [5/6]: OK
                            sourcery-arm [6/6]: OK

6 builds, 0 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed ➜ buildroot git:(master) ✗

➜ buildroot git:(master) ✗ cat dns320l-daemon.config BR2_PACKAGE_DNS320L_DAEMON=y
➜ buildroot git:(master) ✗ utils/test-pkg --config dns320l-daemon.config -p dns320l-daemon

                    bootlin-armv5-uclibc [1/6]: OK
                     bootlin-armv7-glibc [2/6]: OK
                   bootlin-armv7m-uclibc [3/6]: SKIPPED
                     bootlin-x86-64-musl [4/6]: OK
                      br-arm-full-static [5/6]: OK
                            sourcery-arm [6/6]: OK

6 builds, 1 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed ➜ buildroot git:(master) ✗

---
changes v1 -> v2:
- don't build iniparser on the host
- properly handle building static and shared iniparser in all combos
- disable dns320l-daemon on platforms without fork()
- DNS-320L is manufactured by D-Link not Netgear, change commit summaries to reflect that

changes v2 -> v3:
- use SIGTERM to restart dns320l-daemon not to trigger a device poweroff when the daemon is restarted
- add a special 'poweroff' verb to the dns320l-daemon init script to trigger device poweroff
- patch the default dns320l-daemon configuration to listen on localhost only

Maciej Grela (3):
package/iniparser: new package
package/dns320l-daemon: new package
board/d-link/dns320l: new board

 DEVELOPERS                                    |   6 +
 board/d-link/dns320l/dts/kirkwood-dns320l.dts | 218 ++++++++++++++++++
 configs/dns320l_defconfig                     |  16 ++
 package/Config.in                             |   2 +
 .../0001-listen-on-localhost.patch            |  21 ++
 package/dns320l-daemon/Config.in              |   8 +
 package/dns320l-daemon/S50dns320l-daemon      |  42 ++++
 package/dns320l-daemon/dns320l-daemon.hash    |   1 +
 package/dns320l-daemon/dns320l-daemon.mk      |  32 +++
 package/iniparser/Config.in                   |   6 +
 package/iniparser/iniparser.hash              |   2 +
 package/iniparser/iniparser.mk                |  56 +++++
 12 files changed, 410 insertions(+)
 create mode 100644 board/d-link/dns320l/dts/kirkwood-dns320l.dts
 create mode 100644 configs/dns320l_defconfig
 create mode 100644 package/dns320l-daemon/0001-listen-on-localhost.patch
 create mode 100644 package/dns320l-daemon/Config.in
 create mode 100644 package/dns320l-daemon/S50dns320l-daemon
 create mode 100644 package/dns320l-daemon/dns320l-daemon.hash
 create mode 100644 package/dns320l-daemon/dns320l-daemon.mk
 create mode 100644 package/iniparser/Config.in
 create mode 100644 package/iniparser/iniparser.hash
 create mode 100644 package/iniparser/iniparser.mk
Signature · 7 lines
2.39.2


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

PATCH v3 1/3 package/iniparser: new package

In reply to Maciej Grela

iniparser is a required dependency of dns320l-daemon

---
 package/Config.in                |  1 +
 package/iniparser/Config.in      |  6 ++++
 package/iniparser/iniparser.hash |  2 ++
 package/iniparser/iniparser.mk   | 56 ++++++++++++++++++++++++++++++++
 4 files changed, 65 insertions(+)
 create mode 100644 package/iniparser/Config.in
 create mode 100644 package/iniparser/iniparser.hash
 create mode 100644 package/iniparser/iniparser.mk
package/Config.in +1 -0
index 009f7ba186..228e9eb1e3 100644
@@ -2085,6 +2085,7 @@ menu "Other"
 	source "package/gtest/Config.in"
 	source "package/gumbo-parser/Config.in"
 	source "package/highway/Config.in"
+	source "package/iniparser/Config.in"
 	source "package/jemalloc/Config.in"
 	source "package/lapack/Config.in"
 	source "package/libabseil-cpp/Config.in"
package/iniparser/Config.in new file +6 -0
new file mode 100644
index 0000000000..4932869943
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_INIPARSER
+	bool "iniparser"
+	help
+	  ini file parser
+
+	  https://github.com/ndevilla/iniparser
package/iniparser/iniparser.hash new file +2 -0
new file mode 100644
index 0000000000..a745062fcd
@@ -0,0 +1,2 @@
+# From https://github.com/ndevilla/iniparser/releases
+sha256  960daa800dd31d70ba1bacf3ea2d22e8ddfc2906534bf328319495966443f3ae  iniparser-4.1.tar.gz
package/iniparser/iniparser.mk new file +56 -0

56 lines not on this page · raw message

Signature · 7 lines
2.39.2


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

Re: [Buildroot] [PATCH v3 1/3] package/iniparser: new package

Hi Maciej,

Quoted 1 line · Maciej Grela

iniparser is a required dependency of dns320l-daemon

This is a package itself and also a required dependency of dns320l-daemon, but you shouldn't specify it here. Here you have to describe what is iniparser package, for example as
written in project github:
"
Iniparser is a modules that offers parsing of .ini files from C.
"

Quoted 29 lines
---
  package/Config.in                |  1 +
  package/iniparser/Config.in      |  6 ++++
  package/iniparser/iniparser.hash |  2 ++
  package/iniparser/iniparser.mk   | 56 ++++++++++++++++++++++++++++++++
  4 files changed, 65 insertions(+)

create mode 100644 package/iniparser/Config.in create mode 100644 package/iniparser/iniparser.hash create mode 100644 package/iniparser/iniparser.mk

package/Config.in +1 -0
index 009f7ba186..228e9eb1e3 100644
@@ -2085,6 +2085,7 @@ menu "Other"
  	source "package/gtest/Config.in"
  	source "package/gumbo-parser/Config.in"
  	source "package/highway/Config.in"
+	source "package/iniparser/Config.in"
  	source "package/jemalloc/Config.in"
  	source "package/lapack/Config.in"
  	source "package/libabseil-cpp/Config.in"
package/iniparser/Config.in new file +0 -0
new file mode 100644
index 0000000000..4932869943

package/iniparser/Config.in line 4

Quoted 4 lines
package/iniparser/Config.in new file +4 -0
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_INIPARSER
+	bool "iniparser"
+	help
+	  ini file parser

Here ^^^ you can repeat more or less what I've suggested for commit log

Quoted 72 lines
package/iniparser/Config.in new file +2 -0
+
+	  https://github.com/ndevilla/iniparser
package/iniparser/iniparser.hash new file +2 -0
new file mode 100644
index 0000000000..a745062fcd
@@ -0,0 +1,2 @@
+# From https://github.com/ndevilla/iniparser/releases
+sha256  960daa800dd31d70ba1bacf3ea2d22e8ddfc2906534bf328319495966443f3ae  iniparser-4.1.tar.gz
package/iniparser/iniparser.mk new file +56 -0
new file mode 100644
index 0000000000..f3f74601f3
@@ -0,0 +1,56 @@
+################################################################################
+#
+# iniparser
+#
+################################################################################
+
+INIPARSER_VERSION = 4.1
+INIPARSER_SITE = $(call github,ndevilla,iniparser,v$(INIPARSER_VERSION))
+INIPARSER_INSTALL_STAGING = YES
+INIPARSER_LICENSE = MIT
+INIPARSER_LICENSE_FILES = LICENSE
+INIPARSER_SO_TARGET = libiniparser.so.1
+INIPARSER_A_TARGET = libiniparser.a
+INIPARSER_BUILD_TARGETS =
+INIPARSER_STAGING_INSTALL_TGTS =
+INIPARSER_TARGET_INSTALL_TGTS =
+
+INIPARSER_CONFIGURE_OPTS = $(TARGET_CONFIGURE_OPTS)
+
+ifeq ($(BR2_STATIC_LIBS),y)
+INIPARSER_BUILD_TARGETS = $(INIPARSER_A_TARGET)
+INIPARSER_STAGING_INSTALL_TGTS = $(INIPARSER_A_TARGET)
+INIPARSER_TARGET_INSTALL_TGTS = $(INIPARSER_A_TARGET)
+else ifeq ($(BR2_SHARED_LIBS),y)
+INIPARSER_LINK_SO = y
+
+INIPARSER_BUILD_TARGETS = $(INIPARSER_SO_TARGET)
+INIPARSER_STAGING_INSTALL_TGTS = $(INIPARSER_SO_TARGET)
+
+INIPARSER_TARGET_INSTALL_TGTS = $(INIPARSER_SO_TARGET)
+else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
+INIPARSER_LINK_SO = y
+
+INIPARSER_BUILD_TARGETS = $(INIPARSER_A_TARGET) $(INIPARSER_SO_TARGET)
+INIPARSER_STAGING_INSTALL_TGTS = $(INIPARSER_A_TARGET) $(INIPARSER_SO_TARGET)
+
+# Don't install static libs on target
+INIPARSER_TARGET_INSTALL_TGTS = $(INIPARSER_SO_TARGET)
+endif
+
+define INIPARSER_BUILD_CMDS
+	$(INIPARSER_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(INIPARSER_BUILD_TARGETS)
+endef
+
+define INIPARSER_INSTALL_STAGING_CMDS
+	$(INSTALL) -D -m 0644 $(@D)/src/iniparser.h $(@D)/src/dictionary.h $(STAGING_DIR)/usr/include/
+	$(foreach target,$(INIPARSER_STAGING_INSTALL_TGTS),$(INSTALL) -D -m 0755 $(@D)/$(target) $(STAGING_DIR)/usr/lib/)
+	$(if $(INIPARSER_LINK_SO),ln -s -r $(STAGING_DIR)/usr/lib/$(INIPARSER_SO_TARGET) $(STAGING_DIR)/usr/lib/libiniparser.so)
+endef
+
+define INIPARSER_INSTALL_TARGET_CMDS
+	$(foreach target,$(INIPARSER_TARGET_INSTALL_TGTS),$(INSTALL) -D -m 0755 $(@D)/$(target) $(TARGET_DIR)/usr/lib/)
+	$(if $(INIPARSER_LINK_SO),ln -s -r $(TARGET_DIR)/usr/lib/$(INIPARSER_SO_TARGET) $(TARGET_DIR)/usr/lib/libiniparser.so)
+endef
+
+$(eval $(generic-package))
Signature · 6 lines
Giulio Benetti
CEO&CTO@Benetti Engineering sas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw

PATCH v3 2/3 package/dns320l-daemon: new package

In reply to Maciej Grela

dns320l-daemon is a simple system management daemon for the D-Link DNS-320L NAS. It handles power, Wake-on-LAN, temperature, fan speed and some LEDs.

---
 package/Config.in                             |  1 +
 .../0001-listen-on-localhost.patch            | 21 ++++++++++
 package/dns320l-daemon/Config.in              |  8 ++++
 package/dns320l-daemon/S50dns320l-daemon      | 42 +++++++++++++++++++
 package/dns320l-daemon/dns320l-daemon.hash    |  1 +
 package/dns320l-daemon/dns320l-daemon.mk      | 32 ++++++++++++++
 6 files changed, 105 insertions(+)
 create mode 100644 package/dns320l-daemon/0001-listen-on-localhost.patch
 create mode 100644 package/dns320l-daemon/Config.in
 create mode 100644 package/dns320l-daemon/S50dns320l-daemon
 create mode 100644 package/dns320l-daemon/dns320l-daemon.hash
 create mode 100644 package/dns320l-daemon/dns320l-daemon.mk
package/Config.in +1 -0
index 228e9eb1e3..f1c451890f 100644
@@ -2684,6 +2684,7 @@ menu "System tools"
 	source "package/dcron/Config.in"
 	source "package/ddrescue/Config.in"
 	source "package/debianutils/Config.in"
+	source "package/dns320l-daemon/Config.in"
 	source "package/docker-cli/Config.in"
 	source "package/docker-compose/Config.in"
 	source "package/docker-engine/Config.in"
package/dns320l-daemon/0001-listen-on-localhost.patch new file +21 -0
new file mode 100644
index 0000000000..50da024024
@@ -0,0 +1,21 @@
+# HG changeset patch
+# User Maciej Grela <[email protected]>
+# Date 1696540279 -7200
+#      Thu Oct 05 23:11:19 2023 +0200
+# Node ID eca5ed65582402e64c36145290c214aee84b012b
+# Parent  1f945ce22321a876143b38aaf5610c8915172b90
+Subject: [PATCH] Listen on localhost by default
+Signed-off-by: Maciej Grela <[email protected]>
+
+diff -r 1f945ce22321 -r eca5ed655824 dns320l-daemon.ini
+--- a/dns320l-daemon.ini        Tue Dec 09 12:24:29 2014 +0100
++++ b/dns320l-daemon.ini        Thu Oct 05 23:11:19 2023 +0200
+@@ -4,7 +4,7 @@
+ 
+ [Daemon]
+ ServerPort = 57367
+-ServerAddr = 0.0.0.0
++ServerAddr = 127.0.0.1
+ SyncTimeOnStartup = 0
+ SyncTimeOnShutdown = 0
+ DeviceShutdownDelay = 30
package/dns320l-daemon/Config.in new file +8 -0
new file mode 100644
index 0000000000..35bd30a9e5
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_DNS320L_DAEMON
+	bool "dns320l-daemon"
+	depends on BR2_USE_MMU # fork()
+	select BR2_PACKAGE_INIPARSER
+	help
+	  MCU Daemon for the D-Link DNS-320L
+
+	  https://www.aboehler.at/hg/dns320l-daemon
package/dns320l-daemon/S50dns320l-daemon new file +42 -0

42 lines not on this page · raw message

package/dns320l-daemon/dns320l-daemon.hash new file +1 -0
new file mode 100644
index 0000000000..4396eb8f5d
@@ -0,0 +1 @@
+sha256  eac74a64f0d4127748e629b8a5f723eab58ac83064a3f249f97b85bcd7faf061  tip.tar.bz2
package/dns320l-daemon/dns320l-daemon.mk new file +32 -0
new file mode 100644
index 0000000000..bc24a553c2
@@ -0,0 +1,32 @@
+################################################################################
+#
+# dns320l-daemon
+#
+################################################################################
+
+DNS320L_DAEMON_VERSION = 1.0
+DNS320L_DAEMON_SOURCE = tip.tar.bz2
+DNS320L_DAEMON_SITE = https://www.aboehler.at/hg/dns320l-daemon/archive
+DNS320L_DAEMON_LICENSE = GPL-3
+DNS320L_DAEMON_DEPENDENCIES = iniparser
+DNS320l_DAEMON_PATCH = 0001-listen-on-localhost.patch
+
+define DNS320L_DAEMON_BUILD_CMDS
+	$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+		CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
+endef
+
+define DNS320L_DAEMON_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/dns320l-daemon $(TARGET_DIR)/usr/bin/
+	$(INSTALL) -D -m 0600 $(@D)/dns320l-daemon.ini $(TARGET_DIR)/etc/
+endef
+
+define DNS320L_DAEMON_INSTALL_INIT_SYSTEMD
+	$(INSTALL) -D -m 0644 $(@D)/dns320l-daemon.service $(TARGET_DIR)/lib/systemd/system/
+endef
+
+define DNS320L_DAEMON_INSTALL_INIT_SYSV
+	$(INSTALL) -D -m 0755 package/dns320l-daemon/S50dns320l-daemon $(TARGET_DIR)/etc/init.d/S50dns320l-daemon
+endef
+
+$(eval $(generic-package))
Signature · 7 lines
2.39.2


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

Re: [Buildroot] [PATCH v3 2/3] package/dns320l-daemon: new package

Hi Maciej,

Quoted 132 lines · Maciej Grela

dns320l-daemon is a simple system management daemon for the D-Link DNS-320L NAS. It handles power, Wake-on-LAN, temperature, fan speed and some LEDs.

---
  package/Config.in                             |  1 +
  .../0001-listen-on-localhost.patch            | 21 ++++++++++
  package/dns320l-daemon/Config.in              |  8 ++++
  package/dns320l-daemon/S50dns320l-daemon      | 42 +++++++++++++++++++
  package/dns320l-daemon/dns320l-daemon.hash    |  1 +
  package/dns320l-daemon/dns320l-daemon.mk      | 32 ++++++++++++++
  6 files changed, 105 insertions(+)

create mode 100644 package/dns320l-daemon/0001-listen-on-localhost.patch create mode 100644 package/dns320l-daemon/Config.in
create mode 100644 package/dns320l-daemon/S50dns320l-daemon create mode 100644 package/dns320l-daemon/dns320l-daemon.hash create mode 100644 package/dns320l-daemon/dns320l-daemon.mk

package/Config.in +1 -0
index 228e9eb1e3..f1c451890f 100644
@@ -2684,6 +2684,7 @@ menu "System tools"
  	source "package/dcron/Config.in"
  	source "package/ddrescue/Config.in"
  	source "package/debianutils/Config.in"
+	source "package/dns320l-daemon/Config.in"
  	source "package/docker-cli/Config.in"
  	source "package/docker-compose/Config.in"
  	source "package/docker-engine/Config.in"
package/dns320l-daemon/0001-listen-on-localhost.patch new file +21 -0
new file mode 100644
index 0000000000..50da024024
@@ -0,0 +1,21 @@
+# HG changeset patch
+# User Maciej Grela <[email protected]>
+# Date 1696540279 -7200
+#      Thu Oct 05 23:11:19 2023 +0200
+# Node ID eca5ed65582402e64c36145290c214aee84b012b
+# Parent  1f945ce22321a876143b38aaf5610c8915172b90
+Subject: [PATCH] Listen on localhost by default
+Signed-off-by: Maciej Grela <[email protected]>
+
+diff -r 1f945ce22321 -r eca5ed655824 dns320l-daemon.ini
+--- a/dns320l-daemon.ini        Tue Dec 09 12:24:29 2014 +0100
++++ b/dns320l-daemon.ini        Thu Oct 05 23:11:19 2023 +0200
+@@ -4,7 +4,7 @@
+
+ [Daemon]
+ ServerPort = 57367
+-ServerAddr = 0.0.0.0
++ServerAddr = 127.0.0.1
+ SyncTimeOnStartup = 0
+ SyncTimeOnShutdown = 0
+ DeviceShutdownDelay = 30
package/dns320l-daemon/Config.in new file +8 -0
new file mode 100644
index 0000000000..35bd30a9e5
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_DNS320L_DAEMON
+	bool "dns320l-daemon"
+	depends on BR2_USE_MMU # fork()
+	select BR2_PACKAGE_INIPARSER
+	help
+	  MCU Daemon for the D-Link DNS-320L
+
+	  https://www.aboehler.at/hg/dns320l-daemon
package/dns320l-daemon/S50dns320l-daemon new file +42 -0
new file mode 100644
index 0000000000..3bc2a60d0b
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+DAEMON="dns320l-daemon"
+
+start() {
+	printf 'Starting %s: ' "$DAEMON"
+	start-stop-daemon -S -x "/usr/bin/$DAEMON"
+	status="$?"
+	if [ "$status" -eq 0 ]; then
+		echo "OK"
+	else
+		echo "FAIL"
+	fi
+	return "$status"
+}
+
+stop() {
+	printf 'Stopping %s: ' "$DAEMON"
+	start-stop-daemon -s INT -K -x "/usr/bin/$DAEMON"
+}
+
+poweroff() {
+	printf 'Stopping %s: ' "$DAEMON"
+	start-stop-daemon -s TERM -K -x "/usr/bin/$DAEMON"
+}
+
+restart() {
+	stop
+	sleep 1
+	start
+}
+
+case "$1" in
+	start|stop|restart)
+		"$1";;
+	reload)
+		restart;;
+	*)
+		echo "Usage: $0 {start|stop|restart|poweroff}"
+		exit 1
+		;;
+esac
package/dns320l-daemon/dns320l-daemon.hash new file +1 -0
new file mode 100644
index 0000000000..4396eb8f5d
@@ -0,0 +1 @@
+sha256  eac74a64f0d4127748e629b8a5f723eab58ac83064a3f249f97b85bcd7faf061  tip.tar.bz2
package/dns320l-daemon/dns320l-daemon.mk new file +0 -0
new file mode 100644
index 0000000000..bc24a553c2

package/dns320l-daemon/dns320l-daemon.mk line 9

Quoted 9 lines
package/dns320l-daemon/dns320l-daemon.mk new file +9 -0
@@ -0,0 +1,32 @@
+################################################################################
+#
+# dns320l-daemon
+#
+################################################################################
+
+DNS320L_DAEMON_VERSION = 1.0
+DNS320L_DAEMON_SOURCE = tip.tar.bz2
+DNS320L_DAEMON_SITE = https://www.aboehler.at/hg/dns320l-daemon/archive

URL has moved to:
https://gitlab.aboehler.at/andreas/dns320l-daemon

and there are no Releases or git tags, so can you use as VERSION the latest git SHA1?

Thank you
Best regards

Signature · 2 lines
Giulio Benetti
CEO&CTO@Benetti Engineering sas
Quoted 13 lines
package/dns320l-daemon/dns320l-daemon.mk new file +13 -0
+DNS320L_DAEMON_LICENSE = GPL-3
+DNS320L_DAEMON_DEPENDENCIES = iniparser
+DNS320l_DAEMON_PATCH = 0001-listen-on-localhost.patch
+
+define DNS320L_DAEMON_BUILD_CMDS
+	$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+		CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
+endef
+
+define DNS320L_DAEMON_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/dns320l-daemon $(TARGET_DIR)/usr/bin/
+	$(INSTALL) -D -m 0600 $(@D)/dns320l-daemon.ini $(TARGET_DIR)/etc/
+endef

package/dns320l-daemon/dns320l-daemon.mk line 32

Quoted 10 lines
package/dns320l-daemon/dns320l-daemon.mk new file +10 -0
+
+define DNS320L_DAEMON_INSTALL_INIT_SYSTEMD
+	$(INSTALL) -D -m 0644 $(@D)/dns320l-daemon.service $(TARGET_DIR)/lib/systemd/system/
+endef
+
+define DNS320L_DAEMON_INSTALL_INIT_SYSV
+	$(INSTALL) -D -m 0755 package/dns320l-daemon/S50dns320l-daemon $(TARGET_DIR)/etc/init.d/S50dns320l-daemon
+endef
+
+$(eval $(generic-package))

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

#9 lore raw

PATCH v3 3/3 board/d-link/dns320l: new board

In reply to Maciej Grela

Add support for the D-Link DNS-320L using:

- U-Boot 1.1.4 (in device flash)
- Linux kernel 6.5.5

This is a 2-Bay 3.5'' SATA NAS with the following specs:

- Marvell 88F6702 (1 GHz) CPU
- 256 MiB DDR2 RAM
- 128 MiB NAND Flash
- 2 x SATA
- 1 x 1000 Mbit/s Ethernet port
- 1 x USB 2.0

The builtin bootloader banner is:
U-Boot 1.1.4 (Aug 22 2012 - 17:06:54) Marvell version: 3.6.0.DNS-320L.01

Manufacturer product page: http://sharecenter.dlink.com/products/DNS-320
Device wiki: https://wikidevi.wi-cat.ru/D-Link_DNS-320L_rev_A1

---
 DEVELOPERS                                    |   6 +
 board/d-link/dns320l/dts/kirkwood-dns320l.dts | 218 ++++++++++++++++++
 configs/dns320l_defconfig                     |  16 ++
 3 files changed, 240 insertions(+)
 create mode 100644 board/d-link/dns320l/dts/kirkwood-dns320l.dts
 create mode 100644 configs/dns320l_defconfig
DEVELOPERS +6 -0
index c45e7315da..76e8644073 100644
@@ -1950,6 +1950,12 @@ N:	Ludwig Kormann <[email protected]>
 F:	board/in-circuit/
 F:	configs/icnova*
 
+N:	Maciej Grela <[email protected]>
+F:	board/d-link/dns320l/
+F:	configs/dns320l_defconfig
+F:	package/dns320l-daemon
+F:	package/iniparser
+
 N:	Maeva Manuel <[email protected]>
 F:	board/freescale/imx8qmmek/
 F:	configs/freescale_imx8qmmek_defconfig
board/d-link/dns320l/dts/kirkwood-dns320l.dts new file +218 -0

218 lines not on this page · raw message

configs/dns320l_defconfig new file +16 -0
new file mode 100644
index 0000000000..f281984267
@@ -0,0 +1,16 @@
+BR2_arm=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_SYSTEM_DHCP="eth0"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.5.5"
+BR2_LINUX_KERNEL_DEFCONFIG="mvebu_v5"
+BR2_LINUX_KERNEL_APPENDED_UIMAGE=y
+BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x8000"
+BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/d-link/dns320l/dts/kirkwood-dns320l.dts"
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_CPIO_GZIP=y
+BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
+
+# The package is required for proper power management
+BR2_PACKAGE_DNS320L_DAEMON=y
Signature · 7 lines
2.39.2


_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Reviewed-by on v3 3/3
#10 lore raw

Re: [Buildroot] [PATCH v3 3/3] board/d-link/dns320l: new board

Hi Maciej,

sorry for the late reply,

Quoted 34 lines · Maciej Grela

Add support for the D-Link DNS-320L using:

- U-Boot 1.1.4 (in device flash)
- Linux kernel 6.5.5

This is a 2-Bay 3.5'' SATA NAS with the following specs:

- Marvell 88F6702 (1 GHz) CPU
- 256 MiB DDR2 RAM
- 128 MiB NAND Flash
- 2 x SATA
- 1 x 1000 Mbit/s Ethernet port
- 1 x USB 2.0

The builtin bootloader banner is:
U-Boot 1.1.4 (Aug 22 2012 - 17:06:54) Marvell version: 3.6.0.DNS-320L.01

Manufacturer product page: http://sharecenter.dlink.com/products/DNS-320
Device wiki: https://wikidevi.wi-cat.ru/D-Link_DNS-320L_rev_A1

---
  DEVELOPERS                                    |   6 +
  board/d-link/dns320l/dts/kirkwood-dns320l.dts | 218 ++++++++++++++++++
  configs/dns320l_defconfig                     |  16 ++
  3 files changed, 240 insertions(+)

create mode 100644 board/d-link/dns320l/dts/kirkwood-dns320l.dts create mode 100644 configs/dns320l_defconfig

DEVELOPERS +0 -0
index c45e7315da..76e8644073 100644

DEVELOPERS N: Ludwig Kormann <[email protected]> · line 1957

Quoted 8 lines
DEVELOPERS +5 -0
@@ -1950,6 +1950,12 @@ N:	Ludwig Kormann <[email protected]>
  F:	board/in-circuit/
  F:	configs/icnova*
 
+N:	Maciej Grela <[email protected]>
+F:	board/d-link/dns320l/
+F:	configs/dns320l_defconfig
+F:	package/dns320l-daemon
+F:	package/iniparser

The 2 lines above should be part of the respective patches and not of this one,

Quoted 218 lines
DEVELOPERS +1 -0
+
  N:	Maeva Manuel <[email protected]>
  F:	board/freescale/imx8qmmek/
  F:	configs/freescale_imx8qmmek_defconfig
board/d-link/dns320l/dts/kirkwood-dns320l.dts new file +208 -0
new file mode 100644
index 0000000000..660508a51a
@@ -0,0 +1,218 @@
+/dts-v1/;
+
+/*
+ * Device Tree file for DLINK DNS-320L
+ *
+ * Copyright (C) 2015, Sunke Schlüters <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ *
+ *
+ * This file is based on the work of Andreas Böhler <[email protected]>:
+ *   - http://www.aboehler.at/doku/doku.php/projects:dns320l
+ *   - http://www.aboehler.at/hg/linux-dns320l/file/ba7a60ad7687/linux-3.12/kirkwood-dns320l.dts
+ */
+
+#include "marvell/kirkwood.dtsi"
+#include "marvell/kirkwood-6281.dtsi"
+
+/ {
+	model = "D-Link DNS-320L";
+	compatible = "dlink,dns-320l", "marvell,kirkwood-88f6702", "marvell,kirkwood";
+
+	memory {
+		device_type = "memory";
+		reg = <0x00000000 0x10000000>;
+	};
+
+	chosen {
+		bootargs = "console=ttyS0,115200n8 earlyprintk";
+		stdout-path = &uart0;
+	};
+
+	gpio-keys {
+		compatible = "gpio-keys";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
+		pinctrl-names = "default";
+
+		button@1 {
+			label = "Reset push button";
+			linux,code = <KEY_RESTART>;
+			gpios = <&gpio0 28 1>;
+		};
+		button@2 {
+			label = "USB unmount button";
+			linux,code = <KEY_EJECTCD>;
+			gpios = <&gpio0 27 1>;
+		};
+	};
+
+	gpio-leds {
+		compatible = "gpio-leds";
+		pinctrl-0 = <&pmx_led_usb_blue &pmx_led_red_right_hdd
+			     &pmx_led_red_left_hdd  &pmx_led_usb_orange>;
+		pinctrl-names = "default";
+
+		blue-usb {
+			label = "usb_blue";
+			gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
+		};
+		orange-usb {
+			label = "usb_orange";
+			gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
+		};
+		orange-l_hdd {
+			label = "hdd1_orange";
+			gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
+		};
+		orange-r_hdd {
+			label = "hdd2_orange";
+			gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
+		};
+	};
+
+ 	ocp@f1000000 {
+		pinctrl: pin-controller@10000 {
+
+			pinctrl-0 = <&pmx_button_power>;
+			pinctrl-names = "default";
+
+			pmx_sata0: pmx-sata0 {
+				marvell,pins = "mpp20";
+				marvell,function = "sata0";
+			};
+			pmx_sata1: pmx-sata1 {
+				marvell,pins = "mpp21";
+				marvell,function = "sata1";
+			};
+			pmx_led_red_right_hdd: pmx-led-red-right-hdd {
+			    marvell,pins = "mpp22";
+			    marvell,function = "gpio";
+			};
+			pmx_led_red_left_hdd: pmx-led-red-left-hdd {
+			    marvell,pins = "mpp23";
+			    marvell,function = "gpio";
+			};
+			pmx_power_sata: pmx-power-sata {
+			    marvell,pins = "mpp24";
+			    marvell,function = "gpio";
+			};
+			pmx_led_usb_blue: pmx-led-usb-blue {
+			    marvell,pins = "mpp25";
+			    marvell,function = "gpio";
+			};
+			pmx_led_usb_orange: pmx-led-usb-orange {
+				marvell,pins = "mpp26";
+				marvell,function = "gpio";
+			};
+			pmx_button_usb_copy: pmx-button-usb-copy {
+				marvell,pins = "mpp27";
+				marvell,function = "gpio";
+			};			
+			pmx_button_reset: pmx-button-reset {
+				marvell,pins = "mpp28";
+				marvell,function = "gpio";
+			};
+			pmx_button_power: pmx-button-power { // I can't get this one to trigger a button press...
+				marvell,pins = "mpp29";
+				marvell,function = "gpio";
+			};						
+		};
+		sata@80000 {
+			status = "okay";
+			nr-ports = <2>;
+		};
+		serial@12000 {
+			status = "okay";
+		};
+
+		serial@12100 {
+			pinctrl-0 = <&pmx_uart1>;
+			pinctrl-names = "default";
+			status = "okay";
+		};
+	};
+
+	regulators {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		pinctrl-0 = <&pmx_power_sata>;
+		pinctrl-names = "default";
+
+		sata_power: regulator@1 {
+			compatible = "regulator-fixed";
+			reg = <1>;
+			regulator-name = "SATA Power";
+			regulator-min-microvolt = <5000000>;
+			regulator-max-microvolt = <5000000>;
+			enable-active-high;
+			regulator-always-on;
+			regulator-boot-on;
+			gpio = <&gpio1 24 0>;
+		};
+	};
+};
+
+&nand {
+	pinctrl-0 = <&pmx_nand>;
+	pinctrl-names = "default";
+	status = "okay";
+	chip-delay = <35>;
+
+	partition@0 {
+		label = "u-boot";
+		reg = <0x0000000 0x100000>;
+		read-only;
+	};
+
+	partition@100000 {
+		label = "uImage";
+		reg = <0x0100000 0x500000>;
+	};
+
+	partition@600000 {
+		label = "ramdisk";
+		reg = <0x0600000 0x500000>;
+	};
+
+	partition@b00000 {
+		label = "image";
+		reg = <0x0b00000 0x6400000>;
+	};
+
+	partition@6f00000 {
+		label = "mini firmware";
+		reg = <0x6f00000 0xa00000>;
+	};
+
+	partition@7900000 {
+		label = "config";
+		reg = <0x7900000 0x500000>;
+	};
+
+	partition@7e00000 {
+	    label = "my-dlink";
+	    reg = <0x7e00000 0x200000>;
+	};
+};
+
+&mdio {
+	status = "okay";
+
+	ethphy0: ethernet-phy@0 {

board/d-link/dns320l/dts/kirkwood-dns320l.dts line 218

Quoted 10 lines
board/d-link/dns320l/dts/kirkwood-dns320l.dts new file +10 -0
+		reg = <0>;
+	};
+};
+
+&eth0 {
+	status = "okay";
+	ethernet0-port@0 {
+		phy-handle = <&ethphy0>;
+	};
+};

Is this ^^^ dts pending upstream?

configs/dns320l_defconfig line 1

Quoted 7 lines
configs/dns320l_defconfig new file +1 -0
new file mode 100644
index 0000000000..f281984267
@@ -0,0 +1,16 @@
+BR2_arm=y

Here you haven't specified any particular Arm architecture but MV78260 is specified as a:
"
ARMv7-compliant CPU cores with the latest Marvell micro-architecture enhancements, with a double
precision IEEE-compliant Floating Point Unit (FPU)
per core
"

Maybe you could give a try to enable VFP3-16 since the SoC supports it:
https://datasheet.datasheetarchive.com/originals/crawler/marvell.com/1657ba38481c63b54928f3c1d60858fd.pdf

Here instead you need:
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_5=y
because if not set if changes while Buildroot increase Latest Linux Version resulting in build failure:
"
Incorrect selection of kernel headers: expected 6.6.x, got 6.5.x
"

Quoted 5 lines
configs/dns320l_defconfig new file +5 -0
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_SYSTEM_DHCP="eth0"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.5.5"

configs/dns320l_defconfig line 16

Quoted 10 lines
configs/dns320l_defconfig new file +10 -0
+BR2_LINUX_KERNEL_DEFCONFIG="mvebu_v5"
+BR2_LINUX_KERNEL_APPENDED_UIMAGE=y
+BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x8000"
+BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/d-link/dns320l/dts/kirkwood-dns320l.dts"
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_CPIO_GZIP=y
+BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
+
+# The package is required for proper power management
+BR2_PACKAGE_DNS320L_DAEMON=y

I've built tested successfully with utils/docker-run so with the changes above:

Best regards

Signature · 6 lines
Giulio Benetti
CEO&CTO@Benetti Engineering sas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#11 lore raw

Re: [Buildroot] [PATCH v3 3/3] board/d-link/dns320l: new board

Hi Maciej,

Quoted 311 lines · Giulio Benetti

Hi Maciej,

sorry for the late reply,

Quoted 36 lines · Maciej Grela

Add support for the D-Link DNS-320L using:

- U-Boot 1.1.4 (in device flash)
- Linux kernel 6.5.5

This is a 2-Bay 3.5'' SATA NAS with the following specs:

- Marvell 88F6702 (1 GHz) CPU
- 256 MiB DDR2 RAM
- 128 MiB NAND Flash
- 2 x SATA
- 1 x 1000 Mbit/s Ethernet port
- 1 x USB 2.0

The builtin bootloader banner is:
U-Boot 1.1.4 (Aug 22 2012 - 17:06:54) Marvell version: 3.6.0.DNS-320L.01

Manufacturer product page: http://sharecenter.dlink.com/products/DNS-320
Device wiki: https://wikidevi.wi-cat.ru/D-Link_DNS-320L_rev_A1

---
  DEVELOPERS                                    |   6 + board/d-link/dns320l/dts/kirkwood-dns320l.dts | 218 ++++++++++++++++++ configs/dns320l_defconfig                     |  16 ++

  3 files changed, 240 insertions(+)

  create mode 100644 board/d-link/dns320l/dts/kirkwood-dns320l.dts create mode 100644 configs/dns320l_defconfig

DEVELOPERS +0 -0
index c45e7315da..76e8644073 100644
@@ -1950,6 +1950,12 @@ N:    Ludwig Kormann <[email protected]>

  F:    board/in-circuit/
  F:    configs/icnova*

DEVELOPERS N: Ludwig Kormann <[email protected]> · line 1957

Quoted 5 lines
DEVELOPERS +5 -0
+N:    Maciej Grela <[email protected]>
+F:    board/d-link/dns320l/
+F:    configs/dns320l_defconfig
+F:    package/dns320l-daemon
+F:    package/iniparser

The 2 lines above should be part of the respective patches and not of this one,

Quoted 221 lines

+
  N:    Maeva Manuel <[email protected]>
  F:    board/freescale/imx8qmmek/
  F:    configs/freescale_imx8qmmek_defconfig

board/d-link/dns320l/dts/kirkwood-dns320l.dts new file +16 -0
new file mode 100644
index 0000000000..660508a51a
@@ -0,0 +1,218 @@
+/dts-v1/;
+
+/*
+ * Device Tree file for DLINK DNS-320L
+ *
+ * Copyright (C) 2015, Sunke Schlüters <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ *
+ *
+ * This file is based on the work of Andreas Böhler <[email protected]>:
+ *   - http://www.aboehler.at/doku/doku.php/projects:dns320l
+ *   - 

http://www.aboehler.at/hg/linux-dns320l/file/ba7a60ad7687/linux-3.12/kirkwood-dns320l.dts
+ */

board/d-link/dns320l/dts/kirkwood-dns320l.dts new file +7 -0
+
+#include "marvell/kirkwood.dtsi"
+#include "marvell/kirkwood-6281.dtsi"
+
+/ {
+    model = "D-Link DNS-320L";
+    compatible = "dlink,dns-320l", "marvell,kirkwood-88f6702", 

"marvell,kirkwood";

board/d-link/dns320l/dts/kirkwood-dns320l.dts new file +97 -0
+
+    memory {
+        device_type = "memory";
+        reg = <0x00000000 0x10000000>;
+    };
+
+    chosen {
+        bootargs = "console=ttyS0,115200n8 earlyprintk";
+        stdout-path = &uart0;
+    };
+
+    gpio-keys {
+        compatible = "gpio-keys";
+        #address-cells = <1>;
+        #size-cells = <0>;
+        pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
+        pinctrl-names = "default";
+
+        button@1 {
+            label = "Reset push button";
+            linux,code = <KEY_RESTART>;
+            gpios = <&gpio0 28 1>;
+        };
+        button@2 {
+            label = "USB unmount button";
+            linux,code = <KEY_EJECTCD>;
+            gpios = <&gpio0 27 1>;
+        };
+    };
+
+    gpio-leds {
+        compatible = "gpio-leds";
+        pinctrl-0 = <&pmx_led_usb_blue &pmx_led_red_right_hdd
+                 &pmx_led_red_left_hdd  &pmx_led_usb_orange>;
+        pinctrl-names = "default";
+
+        blue-usb {
+            label = "usb_blue";
+            gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
+        };
+        orange-usb {
+            label = "usb_orange";
+            gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
+        };
+        orange-l_hdd {
+            label = "hdd1_orange";
+            gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
+        };
+        orange-r_hdd {
+            label = "hdd2_orange";
+            gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
+        };
+    };
+
+     ocp@f1000000 {
+        pinctrl: pin-controller@10000 {
+
+            pinctrl-0 = <&pmx_button_power>;
+            pinctrl-names = "default";
+
+            pmx_sata0: pmx-sata0 {
+                marvell,pins = "mpp20";
+                marvell,function = "sata0";
+            };
+            pmx_sata1: pmx-sata1 {
+                marvell,pins = "mpp21";
+                marvell,function = "sata1";
+            };
+            pmx_led_red_right_hdd: pmx-led-red-right-hdd {
+                marvell,pins = "mpp22";
+                marvell,function = "gpio";
+            };
+            pmx_led_red_left_hdd: pmx-led-red-left-hdd {
+                marvell,pins = "mpp23";
+                marvell,function = "gpio";
+            };
+            pmx_power_sata: pmx-power-sata {
+                marvell,pins = "mpp24";
+                marvell,function = "gpio";
+            };
+            pmx_led_usb_blue: pmx-led-usb-blue {
+                marvell,pins = "mpp25";
+                marvell,function = "gpio";
+            };
+            pmx_led_usb_orange: pmx-led-usb-orange {
+                marvell,pins = "mpp26";
+                marvell,function = "gpio";
+            };
+            pmx_button_usb_copy: pmx-button-usb-copy {
+                marvell,pins = "mpp27";
+                marvell,function = "gpio";
+            };
+            pmx_button_reset: pmx-button-reset {
+                marvell,pins = "mpp28";
+                marvell,function = "gpio";
+            };
+            pmx_button_power: pmx-button-power { // I can't get this 

one to trigger a button press...
+                marvell,pins = "mpp29";
+                marvell,function = "gpio";
+            };
+        };
+        sata@80000 {
+            status = "okay";
+            nr-ports = <2>;
+        };
+        serial@12000 {
+            status = "okay";
+        };

board/d-link/dns320l/dts/kirkwood-dns320l.dts new file +76 -0
+
+        serial@12100 {
+            pinctrl-0 = <&pmx_uart1>;
+            pinctrl-names = "default";
+            status = "okay";
+        };
+    };
+
+    regulators {
+        compatible = "simple-bus";
+        #address-cells = <1>;
+        #size-cells = <0>;
+        pinctrl-0 = <&pmx_power_sata>;
+        pinctrl-names = "default";
+
+        sata_power: regulator@1 {
+            compatible = "regulator-fixed";
+            reg = <1>;
+            regulator-name = "SATA Power";
+            regulator-min-microvolt = <5000000>;
+            regulator-max-microvolt = <5000000>;
+            enable-active-high;
+            regulator-always-on;
+            regulator-boot-on;
+            gpio = <&gpio1 24 0>;
+        };
+    };
+};
+
+&nand {
+    pinctrl-0 = <&pmx_nand>;
+    pinctrl-names = "default";
+    status = "okay";
+    chip-delay = <35>;
+
+    partition@0 {
+        label = "u-boot";
+        reg = <0x0000000 0x100000>;
+        read-only;
+    };
+
+    partition@100000 {
+        label = "uImage";
+        reg = <0x0100000 0x500000>;
+    };
+
+    partition@600000 {
+        label = "ramdisk";
+        reg = <0x0600000 0x500000>;
+    };
+
+    partition@b00000 {
+        label = "image";
+        reg = <0x0b00000 0x6400000>;
+    };
+
+    partition@6f00000 {
+        label = "mini firmware";
+        reg = <0x6f00000 0xa00000>;
+    };
+
+    partition@7900000 {
+        label = "config";
+        reg = <0x7900000 0x500000>;
+    };
+
+    partition@7e00000 {
+        label = "my-dlink";
+        reg = <0x7e00000 0x200000>;
+    };
+};
+
+&mdio {
+    status = "okay";
+
+    ethphy0: ethernet-phy@0 {

board/d-link/dns320l/dts/kirkwood-dns320l.dts line 218

Quoted 10 lines
board/d-link/dns320l/dts/kirkwood-dns320l.dts new file +10 -0
+        reg = <0>;
+    };
+};
+
+&eth0 {
+    status = "okay";
+    ethernet0-port@0 {
+        phy-handle = <&ethphy0>;
+    };
+};

Is this ^^^ dts pending upstream?

configs/dns320l_defconfig line 1

Quoted 7 lines
configs/dns320l_defconfig new file +1 -0
new file mode 100644
index 0000000000..f281984267
@@ -0,0 +1,16 @@
+BR2_arm=y

Here you haven't specified any particular Arm architecture but MV78260 is specified as a:
"
ARMv7-compliant CPU cores with the latest Marvell micro-architecture enhancements, with a double
precision IEEE-compliant Floating Point Unit (FPU)
per core
"

Maybe you could give a try to enable VFP3-16 since the SoC supports it:
https://datasheet.datasheetarchive.com/originals/crawler/marvell.com/1657ba38481c63b54928f3c1d60858fd.pdf

Here instead you need:
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_5=y
because if not set if changes while Buildroot increase Latest Linux Version resulting in build failure:
"
Incorrect selection of kernel headers: expected 6.6.x, got 6.5.x
"

Quoted 9 lines

configs/dns320l_defconfig line 10

Quoted 9 lines
configs/dns320l_defconfig new file +9 -0
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_SYSTEM_DHCP="eth0"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.5.5"
+BR2_LINUX_KERNEL_DEFCONFIG="mvebu_v5"
+BR2_LINUX_KERNEL_APPENDED_UIMAGE=y
+BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x8000"
+BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/d-link/dns320l/dts/kirkwood-dns320l.dts"

forgotten to mention you also need:
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y

Quoted 11 lines

configs/dns320l_defconfig line 16

Quoted 6 lines
configs/dns320l_defconfig new file +6 -0
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_CPIO_GZIP=y
+BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
+
+# The package is required for proper power management
+BR2_PACKAGE_DNS320L_DAEMON=y

I've built tested successfully with utils/docker-run so with the changes above:

Best regards

Signature · 6 lines
Giulio Benetti
CEO&CTO@Benetti Engineering sas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#12 lore raw

PATCH v2 2/3 package/dns320l-daemon: new package

In reply to Maciej Grela

dns320l-daemon is a simple system management daemon for the D-Link DNS-320L NAS. It handles power, Wake-on-LAN, temperature, fan speed and some LEDs.

---
 package/Config.in                          |  1 +
 package/dns320l-daemon/Config.in           |  8 +++++
 package/dns320l-daemon/S50dns320l-daemon   | 37 ++++++++++++++++++++++
 package/dns320l-daemon/dns320l-daemon.hash |  1 +
 package/dns320l-daemon/dns320l-daemon.mk   | 31 ++++++++++++++++++
 5 files changed, 78 insertions(+)
 create mode 100644 package/dns320l-daemon/Config.in
 create mode 100644 package/dns320l-daemon/S50dns320l-daemon
 create mode 100644 package/dns320l-daemon/dns320l-daemon.hash
 create mode 100644 package/dns320l-daemon/dns320l-daemon.mk
package/Config.in +1 -0
index 228e9eb1e3..f1c451890f 100644
@@ -2684,6 +2684,7 @@ menu "System tools"
 	source "package/dcron/Config.in"
 	source "package/ddrescue/Config.in"
 	source "package/debianutils/Config.in"
+	source "package/dns320l-daemon/Config.in"
 	source "package/docker-cli/Config.in"
 	source "package/docker-compose/Config.in"
 	source "package/docker-engine/Config.in"
package/dns320l-daemon/Config.in new file +8 -0
new file mode 100644
index 0000000000..35bd30a9e5
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_DNS320L_DAEMON
+	bool "dns320l-daemon"
+	depends on BR2_USE_MMU # fork()
+	select BR2_PACKAGE_INIPARSER
+	help
+	  MCU Daemon for the D-Link DNS-320L
+
+	  https://www.aboehler.at/hg/dns320l-daemon
package/dns320l-daemon/S50dns320l-daemon new file +37 -0
new file mode 100644
index 0000000000..3e0b4a3339
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+DAEMON="dns320l-daemon"
+
+start() {
+	printf 'Starting %s: ' "$DAEMON"
+	start-stop-daemon -S -x "/usr/bin/$DAEMON"
+	status="$?"
+	if [ "$status" -eq 0 ]; then
+		echo "OK"
+	else
+		echo "FAIL"
+	fi
+	return "$status"
+}
+
+stop() {
+	printf 'Stopping %s: ' "$DAEMON"
+	start-stop-daemon -K -x "/usr/bin/$DAEMON"
+}
+
+restart() {
+	stop
+	sleep 1
+	start
+}
+
+case "$1" in
+	start|stop|restart)
+		"$1";;
+	reload)
+		restart;;
+	*)
+		echo "Usage: $0 {start|stop|restart}"
+		exit 1
+		;;
+esac
package/dns320l-daemon/dns320l-daemon.hash new file +1 -0
new file mode 100644
index 0000000000..4396eb8f5d
@@ -0,0 +1 @@
+sha256  eac74a64f0d4127748e629b8a5f723eab58ac83064a3f249f97b85bcd7faf061  tip.tar.bz2
package/dns320l-daemon/dns320l-daemon.mk new file +31 -0
new file mode 100644
index 0000000000..fd87ac1be3
@@ -0,0 +1,31 @@
+################################################################################
+#
+# dns320l-daemon
+#
+################################################################################
+
+DNS320L_DAEMON_VERSION = 1.0
+DNS320L_DAEMON_SOURCE = tip.tar.bz2
+DNS320L_DAEMON_SITE = https://www.aboehler.at/hg/dns320l-daemon/archive
+DNS320L_DAEMON_LICENSE = GPL-3
+DNS320L_DAEMON_DEPENDENCIES = iniparser
+
+define DNS320L_DAEMON_BUILD_CMDS
+	$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+		CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
+endef
+
+define DNS320L_DAEMON_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/dns320l-daemon $(TARGET_DIR)/usr/bin/
+	$(INSTALL) -D -m 0600 $(@D)/dns320l-daemon.ini $(TARGET_DIR)/etc/
+endef
+
+define DNS320L_DAEMON_INSTALL_INIT_SYSTEMD
+	$(INSTALL) -D -m 0644 $(@D)/dns320l-daemon.service $(TARGET_DIR)/lib/systemd/system/
+endef
+
+define DNS320L_DAEMON_INSTALL_INIT_SYSV
+	$(INSTALL) -D -m 0755 package/dns320l-daemon/S50dns320l-daemon $(TARGET_DIR)/etc/init.d/S50dns320l-daemon
+endef
+
+$(eval $(generic-package))
Signature · 7 lines
2.39.2


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

PATCH v2 3/3 board/d-link/dns320l: new board

In reply to Maciej Grela

Add support for the D-Link DNS-320L using:

- U-Boot 1.1.4 (in device flash)
- Linux kernel 6.5.5

This is a 2-Bay 3.5'' SATA NAS with the following specs:

- Marvell 88F6702 (1 GHz) CPU
- 256 MiB DDR2 RAM
- 128 MiB NAND Flash
- 2 x SATA
- 1 x 1000 Mbit/s Ethernet port
- 1 x USB 2.0

The builtin bootloader banner is:
U-Boot 1.1.4 (Aug 22 2012 - 17:06:54) Marvell version: 3.6.0.DNS-320L.01

Manufacturer product page: http://sharecenter.dlink.com/products/DNS-320
Device wiki: https://wikidevi.wi-cat.ru/D-Link_DNS-320L_rev_A1

---
 DEVELOPERS                                    |   6 +
 board/d-link/dns320l/dts/kirkwood-dns320l.dts | 218 ++++++++++++++++++
 configs/dns320l_defconfig                     |  16 ++
 3 files changed, 240 insertions(+)
 create mode 100644 board/d-link/dns320l/dts/kirkwood-dns320l.dts
 create mode 100644 configs/dns320l_defconfig
DEVELOPERS +6 -0
index c45e7315da..76e8644073 100644
@@ -1950,6 +1950,12 @@ N:	Ludwig Kormann <[email protected]>
 F:	board/in-circuit/
 F:	configs/icnova*
 
+N:	Maciej Grela <[email protected]>
+F:	board/d-link/dns320l/
+F:	configs/dns320l_defconfig
+F:	package/dns320l-daemon
+F:	package/iniparser
+
 N:	Maeva Manuel <[email protected]>
 F:	board/freescale/imx8qmmek/
 F:	configs/freescale_imx8qmmek_defconfig
board/d-link/dns320l/dts/kirkwood-dns320l.dts new file +218 -0

218 lines not on this page · raw message

configs/dns320l_defconfig new file +16 -0
new file mode 100644
index 0000000000..f281984267
@@ -0,0 +1,16 @@
+BR2_arm=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_SYSTEM_DHCP="eth0"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.5.5"
+BR2_LINUX_KERNEL_DEFCONFIG="mvebu_v5"
+BR2_LINUX_KERNEL_APPENDED_UIMAGE=y
+BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x8000"
+BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/d-link/dns320l/dts/kirkwood-dns320l.dts"
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_CPIO_GZIP=y
+BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
+
+# The package is required for proper power management
+BR2_PACKAGE_DNS320L_DAEMON=y
Signature · 7 lines
2.39.2


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

PATCH 2/3 package/dns320l-daemon: new package

In reply to Maciej Grela

dns320l-daemon is a simple system management daemon for the D-Link DNS-320L NAS. It handles power, Wake-on-LAN, temperature, fan speed and some LEDs.

---
 package/Config.in                          |  1 +
 package/dns320l-daemon/Config.in           |  7 ++++
 package/dns320l-daemon/S50dns320l-daemon   | 37 ++++++++++++++++++++++
 package/dns320l-daemon/dns320l-daemon.hash |  1 +
 package/dns320l-daemon/dns320l-daemon.mk   | 31 ++++++++++++++++++
 5 files changed, 77 insertions(+)
 create mode 100644 package/dns320l-daemon/Config.in
 create mode 100644 package/dns320l-daemon/S50dns320l-daemon
 create mode 100644 package/dns320l-daemon/dns320l-daemon.hash
 create mode 100644 package/dns320l-daemon/dns320l-daemon.mk
package/Config.in +1 -0
index 228e9eb1e3..f1c451890f 100644
@@ -2684,6 +2684,7 @@ menu "System tools"
 	source "package/dcron/Config.in"
 	source "package/ddrescue/Config.in"
 	source "package/debianutils/Config.in"
+	source "package/dns320l-daemon/Config.in"
 	source "package/docker-cli/Config.in"
 	source "package/docker-compose/Config.in"
 	source "package/docker-engine/Config.in"
package/dns320l-daemon/Config.in new file +7 -0
new file mode 100644
index 0000000000..c335e749f0
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_DNS320L_DAEMON
+	bool "dns320l-daemon"
+	select BR2_PACKAGE_INIPARSER
+	help
+	  MCU Daemon for the D-Link DNS-320L
+
+	  https://www.aboehler.at/hg/dns320l-daemon
package/dns320l-daemon/S50dns320l-daemon new file +37 -0
new file mode 100644
index 0000000000..3e0b4a3339
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+DAEMON="dns320l-daemon"
+
+start() {
+	printf 'Starting %s: ' "$DAEMON"
+	start-stop-daemon -S -x "/usr/bin/$DAEMON"
+	status="$?"
+	if [ "$status" -eq 0 ]; then
+		echo "OK"
+	else
+		echo "FAIL"
+	fi
+	return "$status"
+}
+
+stop() {
+	printf 'Stopping %s: ' "$DAEMON"
+	start-stop-daemon -K -x "/usr/bin/$DAEMON"
+}
+
+restart() {
+	stop
+	sleep 1
+	start
+}
+
+case "$1" in
+	start|stop|restart)
+		"$1";;
+	reload)
+		restart;;
+	*)
+		echo "Usage: $0 {start|stop|restart}"
+		exit 1
+		;;
+esac
package/dns320l-daemon/dns320l-daemon.hash new file +1 -0
new file mode 100644
index 0000000000..4396eb8f5d
@@ -0,0 +1 @@
+sha256  eac74a64f0d4127748e629b8a5f723eab58ac83064a3f249f97b85bcd7faf061  tip.tar.bz2
package/dns320l-daemon/dns320l-daemon.mk new file +31 -0
new file mode 100644
index 0000000000..fd87ac1be3
@@ -0,0 +1,31 @@
+################################################################################
+#
+# dns320l-daemon
+#
+################################################################################
+
+DNS320L_DAEMON_VERSION = 1.0
+DNS320L_DAEMON_SOURCE = tip.tar.bz2
+DNS320L_DAEMON_SITE = https://www.aboehler.at/hg/dns320l-daemon/archive
+DNS320L_DAEMON_LICENSE = GPL-3
+DNS320L_DAEMON_DEPENDENCIES = iniparser
+
+define DNS320L_DAEMON_BUILD_CMDS
+	$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+		CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
+endef
+
+define DNS320L_DAEMON_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/dns320l-daemon $(TARGET_DIR)/usr/bin/
+	$(INSTALL) -D -m 0600 $(@D)/dns320l-daemon.ini $(TARGET_DIR)/etc/
+endef
+
+define DNS320L_DAEMON_INSTALL_INIT_SYSTEMD
+	$(INSTALL) -D -m 0644 $(@D)/dns320l-daemon.service $(TARGET_DIR)/lib/systemd/system/
+endef
+
+define DNS320L_DAEMON_INSTALL_INIT_SYSV
+	$(INSTALL) -D -m 0755 package/dns320l-daemon/S50dns320l-daemon $(TARGET_DIR)/etc/init.d/S50dns320l-daemon
+endef
+
+$(eval $(generic-package))
Signature · 7 lines
2.39.2


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

PATCH 3/3 board/netgear/dns320l: new board

In reply to Maciej Grela

Add support for the D-Link DNS-320L using:

- U-Boot 1.1.4 (in device flash)
- Linux kernel 6.5.5

This is a 2-Bay 3.5'' SATA NAS with the following specs:

- Marvell 88F6702 (1 GHz) CPU
- 256 MiB DDR2 RAM
- 128 MiB NAND Flash
- 2 x SATA
- 1 x 1000 Mbit/s Ethernet port
- 1 x USB 2.0

The builtin bootloader banner is:
U-Boot 1.1.4 (Aug 22 2012 - 17:06:54) Marvell version: 3.6.0.DNS-320L.01

Manufacturer product page: http://sharecenter.dlink.com/products/DNS-320
Device wiki: https://wikidevi.wi-cat.ru/D-Link_DNS-320L_rev_A1

---
 DEVELOPERS                                    |   6 +
 board/d-link/dns320l/dts/kirkwood-dns320l.dts | 218 ++++++++++++++++++
 configs/dns320l_defconfig                     |  16 ++
 3 files changed, 240 insertions(+)
 create mode 100644 board/d-link/dns320l/dts/kirkwood-dns320l.dts
 create mode 100644 configs/dns320l_defconfig
DEVELOPERS +6 -0
index c45e7315da..76e8644073 100644
@@ -1950,6 +1950,12 @@ N:	Ludwig Kormann <[email protected]>
 F:	board/in-circuit/
 F:	configs/icnova*
 
+N:	Maciej Grela <[email protected]>
+F:	board/d-link/dns320l/
+F:	configs/dns320l_defconfig
+F:	package/dns320l-daemon
+F:	package/iniparser
+
 N:	Maeva Manuel <[email protected]>
 F:	board/freescale/imx8qmmek/
 F:	configs/freescale_imx8qmmek_defconfig
board/d-link/dns320l/dts/kirkwood-dns320l.dts new file +218 -0

218 lines not on this page · raw message

configs/dns320l_defconfig new file +16 -0
new file mode 100644
index 0000000000..f281984267
@@ -0,0 +1,16 @@
+BR2_arm=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_SYSTEM_DHCP="eth0"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.5.5"
+BR2_LINUX_KERNEL_DEFCONFIG="mvebu_v5"
+BR2_LINUX_KERNEL_APPENDED_UIMAGE=y
+BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x8000"
+BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/d-link/dns320l/dts/kirkwood-dns320l.dts"
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_CPIO_GZIP=y
+BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
+
+# The package is required for proper power management
+BR2_PACKAGE_DNS320L_DAEMON=y
Signature · 7 lines
2.39.2


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