All of lore.kernel.org
 help / color / mirror / Atom feed
* [master][RFC PATCH] packagegroup-arago-tisdk-connectivity: Enable zeroconf ip support
@ 2026-01-19 11:03 vishnu singh
  2026-01-22  6:49 ` [meta-arago] " Yogesh Hegde
  0 siblings, 1 reply; 3+ messages in thread
From: vishnu singh @ 2026-01-19 11:03 UTC (permalink / raw)
  To: meta-arago, reatmon, denis

From: Vishnu Singh <v-singh1@ti.com>

Dante DEP useage zeroconf for Dante network IP addresses.
Zeroconf provide the IP network without manual configuation,
and avahi-autoipd is for auto ip assignment.
To get the zeroconf ip at bootup, zeroconf-autoip service is used.

Signed-off-by: Vishnu Singh <v-singh1@ti.com>
---
 .../zeroconf-autoip/zeroconf-autoip.bb        | 30 +++++++++++++++++++
 .../zeroconf-autoip/zeroconf-autoip/README    |  1 +
 .../zeroconf-autoip/zeroconf-autoip@.service  | 12 ++++++++
 .../packagegroup-arago-tisdk-connectivity.bb  |  7 +++++
 4 files changed, 50 insertions(+)
 create mode 100644 meta-arago-distro/recipes-connectivity/zeroconf-autoip/zeroconf-autoip.bb
 create mode 100644 meta-arago-distro/recipes-connectivity/zeroconf-autoip/zeroconf-autoip/README
 create mode 100644 meta-arago-distro/recipes-connectivity/zeroconf-autoip/zeroconf-autoip/zeroconf-autoip@.service

diff --git a/meta-arago-distro/recipes-connectivity/zeroconf-autoip/zeroconf-autoip.bb b/meta-arago-distro/recipes-connectivity/zeroconf-autoip/zeroconf-autoip.bb
new file mode 100644
index 00000000..4b59a7e6
--- /dev/null
+++ b/meta-arago-distro/recipes-connectivity/zeroconf-autoip/zeroconf-autoip.bb
@@ -0,0 +1,30 @@
+SUMMARY = "Zerconf autoip"
+DESCRIPTION = "Zeroconf IP assignment using avahi autoipd"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://README;md5=102e8ceedf1b96837ba2eefc0d47f4e6"
+
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
+COMPATIBLE_MACHINE = "am62dxx"
+
+SRC_URI = "file://zeroconf-autoip@.service \
+	file://README \
+"
+
+S = "${UNPACKDIR}"
+
+inherit systemd
+
+SYSTEMD_SERVICE:${PN} = "zeroconf-autoip@eth0.service zeroconf-autoip@eth1.service"
+SYSTEMD_AUTO_ENABLE = "enable"
+
+do_install() {
+	install -d ${D}${systemd_system_unitdir}
+	install -m 0644 ${WORKDIR}/zeroconf-autoip@.service ${D}${systemd_system_unitdir}/
+}
+
+FILES:${PN}= " \
+	${systemd_system_unitdir} \
+	${systemd_system_unitdir}/zeroconf-autoip@.service \
+"
+PR = "r0"
diff --git a/meta-arago-distro/recipes-connectivity/zeroconf-autoip/zeroconf-autoip/README b/meta-arago-distro/recipes-connectivity/zeroconf-autoip/zeroconf-autoip/README
new file mode 100644
index 00000000..1ad1d419
--- /dev/null
+++ b/meta-arago-distro/recipes-connectivity/zeroconf-autoip/zeroconf-autoip/README
@@ -0,0 +1 @@
+TI-TFL
diff --git a/meta-arago-distro/recipes-connectivity/zeroconf-autoip/zeroconf-autoip/zeroconf-autoip@.service b/meta-arago-distro/recipes-connectivity/zeroconf-autoip/zeroconf-autoip/zeroconf-autoip@.service
new file mode 100644
index 00000000..952a8c60
--- /dev/null
+++ b/meta-arago-distro/recipes-connectivity/zeroconf-autoip/zeroconf-autoip/zeroconf-autoip@.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=zerocnf-autoipd for %i interface
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/avahi-autoipd --force-bind %i
+ExecStop=/usr/sbin/avahi-autoipd -k %i
+Restart=on-failure
+RestartSec=30
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity.bb
index 0a8d4493..66aa4872 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity.bb
@@ -53,6 +53,11 @@ BT_TI = "\
     bt-enable \
     bt-fw \
 "
+ZEROCONF_TI = "\
+	zeroconf \
+	avahi-autoipd \
+	zeroconf-autoip \
+"
 
 CONNECTIVITY_RDEPENDS = " \
     htop \
@@ -68,6 +73,8 @@ CONNECTIVITY_RDEPENDS = " \
 CONNECTIVITY_RDEPENDS:append:ti33x = " ${BT_TI}"
 CONNECTIVITY_RDEPENDS:append:ti43x = " ${BT_TI}"
 CONNECTIVITY_RDEPENDS:append:am57xx = " ${BT_TI}"
+CONNECTIVITY_RDEPENDS:append:am62dxx = " ${ZEROCONF_TI}"
+
 
 RDEPENDS:${PN} = "\
     ${CONNECTIVITY_RDEPENDS} \
-- 
2.50.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-22 16:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-19 11:03 [master][RFC PATCH] packagegroup-arago-tisdk-connectivity: Enable zeroconf ip support vishnu singh
2026-01-22  6:49 ` [meta-arago] " Yogesh Hegde
2026-01-22  7:02   ` Singh, Vishnu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.