From nobody Fri Apr 11 11:57:25 2025 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZYwCn61N1z5rsTg; Fri, 11 Apr 2025 11:57:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZYwCn5N4Gz3mQq; Fri, 11 Apr 2025 11:57:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744372645; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=clQD6t/i8zne0Ryy9AvgNtx/4JNRBqodwgFvVVePZMM=; b=Z4E/9Y009tKenghivsIlhBfqPnAW+4hla0j5PBtrbJ57PYZWgYs70EyzpiCcFECnxQBXTe BZg4l2xe2uXz0b1KH3W76WnK814MnB7ccK1mzw/OBB2Ep7dZj1vkjGdzt1UQYjHycBoJh5 2mZSDqlrQECg+v2VYEmIssNCJkngdHDQHhGzcJjDDDro9lyfQXiW6sgO/GnjNRl+MxAqgq ZTcNbvhee6nvdOFx0bX9rYM/ur9ysHfOJIG9+RIHAFL/xwO81jZ4QB06F5ZQvJRQNUu8cS hfTNq17UgXwBmvKcG6pPmraO2Dtk81QfC79t+MbOuCkidcXfteNnWbpu9sIOQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744372645; a=rsa-sha256; cv=none; b=o0gRHUEm4waEARrYslETNsyKuDcxsoXj2oXndeZvnSR4ite16NOMGNAQHIVzRYtxtXDPoP 3hgVayoFdSyDQqw694tp7ib61DreYmSE2PjSRmPLem31sStraAYxkEYI+PZ/xovdQcoKKL n/X2uXd6pEJ7asGhPQf5Pa9UvYTYy+xRZtecrLf0ymgkHZz2jSGS+uWAffqx2qvgwAXVQO ATBMTZN6W+flOTmsONNrMPhP/GahZBnAW5ZVyCJYgnMUf9620RJfKPk6Mnxc4B2Huul+mv jKjqmVUfEJU28HVpe15PPTTGa+cHGMqgUq+AqrNaXblwbnXPD5FL6t7k7g3swA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744372645; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=clQD6t/i8zne0Ryy9AvgNtx/4JNRBqodwgFvVVePZMM=; b=Szj2/idCIYVa8Kwoe5zQeRyelKGbn/8zocHwSy1Wh1jkAT3/cIxdwcTTVMc2TU/obhL2xS M6Lkg2cMkQMq6x2YOBlTlVB1/2P4niuxUgZvTvdNGpMKOkZ105XYYI662nI3SHWRsE+/I/ vh/ptt294Z2UhKZ756mD9C5h41fV5umWYUsRzR65U47GPk5RxXQBHXAs7u7J6Mw+MFI9/7 +OpeQtPA7guDtqTDXSOJO9yHK/d/neYDf2qhX1Zm3vHyIAV4X+PVpx5lYET2O22dylLNME muIaU4pOmwm//wGGBLRf5424UHCiLnMUZYcatx+iGMy5C0qlYkqicCKwQN5UEQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZYwCn4qy2zX1w; Fri, 11 Apr 2025 11:57:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 53BBvPbn011403; Fri, 11 Apr 2025 11:57:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 53BBvPPI011400; Fri, 11 Apr 2025 11:57:25 GMT (envelope-from git) Date: Fri, 11 Apr 2025 11:57:25 GMT Message-Id: <202504111157.53BBvPPI011400@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Lev A. Serebryakov" Subject: git: 6d6ce04aaa7a - main - devel/msp430-debug-stack: Better devd config installed as sample. List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lev X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6d6ce04aaa7a5b1c8067321e82e6b95d20dcd144 Auto-Submitted: auto-generated The branch main has been updated by lev: URL: https://cgit.FreeBSD.org/ports/commit/?id=6d6ce04aaa7a5b1c8067321e82e6b95d20dcd144 commit 6d6ce04aaa7a5b1c8067321e82e6b95d20dcd144 Author: Lev A. Serebryakov AuthorDate: 2025-04-11 11:54:50 +0000 Commit: Lev A. Serebryakov CommitDate: 2025-04-11 11:54:50 +0000 devel/msp430-debug-stack: Better devd config installed as sample. 1. Install devd config as sample, to preserve actual config on package removal. 2. Make this config better to support more devices and back-channel UART. PR: 286020 Reported by: Yusuf Yaman [1] Reported by: Petre Rodan [2] --- devel/msp430-debug-stack/Makefile | 4 +- devel/msp430-debug-stack/files/mspfet.conf | 22 ---------- devel/msp430-debug-stack/files/mspfet.conf.sample | 53 +++++++++++++++++++++++ devel/msp430-debug-stack/pkg-plist | 2 +- 4 files changed, 56 insertions(+), 25 deletions(-) diff --git a/devel/msp430-debug-stack/Makefile b/devel/msp430-debug-stack/Makefile index 77b05bcbcc86..8c87cf41f3fb 100644 --- a/devel/msp430-debug-stack/Makefile +++ b/devel/msp430-debug-stack/Makefile @@ -1,6 +1,6 @@ PORTNAME= msp430-debug-stack PORTVERSION= 3.15.1.1 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= devel MASTER_SITES= https://dr-download.ti.com/software-development/driver-or-library/MD-4vnqcP1Wk4/${PORTVERSION}/ \ LOCAL/lev:doc1 \ @@ -50,6 +50,6 @@ do-install: ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/slau320aj.pdf ${STAGEDIR}${DOCSDIR}/ ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/slau656d.pdf ${STAGEDIR}${DOCSDIR}/ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/devd - ${INSTALL_DATA} ${FILESDIR}/mspfet.conf ${STAGEDIR}${PREFIX}/etc/devd + ${INSTALL_DATA} ${FILESDIR}/mspfet.conf.sample ${STAGEDIR}${PREFIX}/etc/devd .include diff --git a/devel/msp430-debug-stack/files/mspfet.conf b/devel/msp430-debug-stack/files/mspfet.conf deleted file mode 100644 index 3143c6d293cb..000000000000 --- a/devel/msp430-debug-stack/files/mspfet.conf +++ /dev/null @@ -1,22 +0,0 @@ -# Warning: Only a single instance of each FET product is supported -# - -attach 20 { - device-name "umodem[0-9]+"; - match "vendor" "0x2047"; # TI MSPBSL_STANDARD_USB_VID - match "product" "0x001(0|3|4)"; # Products: UIF eZ-FET MSP-FET - match "interface" "0"; # JTAG-Interface - action "cd /dev; p=$product; dn=$device-name; \ - un=$(sysctl -n dev.umodem.${dn#umodem}.ttyname); \ - chmod 666 cua${un}; ln -sf cua${un} mspfet${p#0x}"; -}; - -notify 20 { - match "system" "USB"; - match "subsystem" "INTERFACE"; - match "type" "DETACH"; - match "vendor" "0x2047"; # TI MSPBSL_STANDARD_USB_VID - match "product" "0x001(0|3|4)"; # Products: UIF eZ-FET MSP-FET - match "interface" "0"; # JTAG-Interface - action "p=$product; rm /dev/mspfet${p#0x}"; -}; diff --git a/devel/msp430-debug-stack/files/mspfet.conf.sample b/devel/msp430-debug-stack/files/mspfet.conf.sample new file mode 100644 index 000000000000..11e4d0383642 --- /dev/null +++ b/devel/msp430-debug-stack/files/mspfet.conf.sample @@ -0,0 +1,53 @@ +# replacement /usr/local/etc/devd/mspfet.conf file that allows +# unprivileged users in the 'operator' group to rw the MSP FETs +# Warning: Only a single instance of each FET product is supported +# while using mspdebug with the tilib interface + +attach 20 { + device-name "umodem[0-9]+"; + match "vendor" "0x2047"; # TI MSPBSL_STANDARD_USB_VID + match "product" "0x001(0|3|4)"; # UIF eZ-FET MSP-FET + match "interface" "0"; # JTAG interface + action "cd /dev; p=$product; dn=$device-name; \ + un=$(sysctl -n dev.umodem.${dn#umodem}.ttyname); \ + chgrp operator cua${un}; chmod 660 cua${un}; \ + ln -sf cua${un} mspfet${p#0x}"; +}; + +attach 20 { + device-name "umodem[0-9]+"; + match "vendor" "0x2047"; + match "product" "0x001(0|3|4)"; + match "interface" "2"; # back-channel uart interface + action "cd /dev; p=$product; dn=$device-name; \ + un=$(sysctl -n dev.umodem.${dn#umodem}.ttyname); \ + chgrp operator tty${un}; chmod 660 tty${un}"; +}; + +notify 20 { + match "system" "USB"; + match "subsystem" "INTERFACE"; + match "type" "DETACH"; + match "vendor" "0x2047"; + match "product" "0x001(0|3|4)"; + match "interface" "0"; # JTAG interface + action "p=$product; rm /dev/mspfet${p#0x}"; +}; + +notify 100 { + match "system" "USB"; + match "subsystem" "INTERFACE"; + match "type" "ATTACH"; + match "vendor" "0x2047"; + match "product" "0x001(0|3|4)"; + action "chgrp operator /dev/$cdev; chmod 660 /dev/$cdev"; +}; + +notify 100 { + match "system" "USB"; + match "subsystem" "INTERFACE"; + match "type" "ATTACH"; + match "vendor" "0x15ba"; # OLIMEX LTD + match "product" "0x0100"; # MSP430 JTAGISO ver.2 + action "chgrp operator /dev/$cdev; chmod 660 /dev/$cdev"; +}; diff --git a/devel/msp430-debug-stack/pkg-plist b/devel/msp430-debug-stack/pkg-plist index 5a06858bd3a7..94c36c67e23f 100644 --- a/devel/msp430-debug-stack/pkg-plist +++ b/devel/msp430-debug-stack/pkg-plist @@ -9,4 +9,4 @@ lib/libmsp430.so lib/libmsp430.a %%PORTDOCS%%%%DOCSDIR%%/slau320aj.pdf %%PORTDOCS%%%%DOCSDIR%%/slau656d.pdf -etc/devd/mspfet.conf +@sample etc/devd/mspfet.conf.sample