* [gentoo-commits] repo/proj/guru:dev commit in: net-misc/eg25-manager/files/, net-misc/eg25-manager/
@ 2021-06-25 18:55 Marco Scardovi
0 siblings, 0 replies; 2+ messages in thread
From: Marco Scardovi @ 2021-06-25 18:55 UTC (permalink / raw
To: gentoo-commits
commit: 6a91720406e314ab7dbdb68a43d71f03d709c691
Author: Marco Scardovi <marco <AT> scardovi <DOT> com>
AuthorDate: Fri Jun 25 18:55:16 2021 +0000
Commit: Marco Scardovi <marco <AT> scardovi <DOT> com>
CommitDate: Fri Jun 25 18:55:16 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6a917204
net-misc/eg25-manager: add new package
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Marco Scardovi <marco <AT> scardovi.com>
net-misc/eg25-manager/Manifest | 1 +
net-misc/eg25-manager/eg25-manager-20210617.ebuild | 33 ++++++++++++++++++++++
net-misc/eg25-manager/files/eg25-manager.service | 29 +++++++++++++++++++
net-misc/eg25-manager/metadata.xml | 8 ++++++
4 files changed, 71 insertions(+)
diff --git a/net-misc/eg25-manager/Manifest b/net-misc/eg25-manager/Manifest
new file mode 100644
index 000000000..797483fbc
--- /dev/null
+++ b/net-misc/eg25-manager/Manifest
@@ -0,0 +1 @@
+DIST eg25-manager-20210617.tar.gz 44079 BLAKE2B eaca2f92f6baeb780515e124f8916db899398411f4874359ce3dcca69ed62cb5822849f4ac30c1e549c64e4a10b274e561238eb71d2e13d380db7f95831f63f5 SHA512 bdf73812ee58b4e382495c441e2c71adea582e3e404e5c3993192522d41fc15a0c8baef8874f64b688fba84bc99e890835b6c69cedbf0733635ee5190caa95da
diff --git a/net-misc/eg25-manager/eg25-manager-20210617.ebuild b/net-misc/eg25-manager/eg25-manager-20210617.ebuild
new file mode 100644
index 000000000..90f4d8c42
--- /dev/null
+++ b/net-misc/eg25-manager/eg25-manager-20210617.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit meson systemd
+
+COMMIT="f2593b62b10513f94039d5c9ba995905b23e7eb4"
+
+DESCRIPTION="Daemon for managing the Quectel EG25 modem"
+HOMEPAGE="https://gitlab.com/mobian1/devices/eg25-manager"
+SRC_URI="https://gitlab.com/mobian1/devices/eg25-manager/-/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="~arm64"
+LICENSE="GPL-3"
+SLOT="0"
+
+RDEPEND="
+ dev-libs/libgpiod
+ virtual/libusb:1
+ net-misc/modemmanager
+"
+
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+src_install() {
+ meson_src_install
+ systemd_dounit "${FILESDIR}"/eg25-manager.service
+}
+
+pkg_postinst() {
+ systemd_reenable --all eg25-manager
+}
diff --git a/net-misc/eg25-manager/files/eg25-manager.service b/net-misc/eg25-manager/files/eg25-manager.service
new file mode 100644
index 000000000..f79102725
--- /dev/null
+++ b/net-misc/eg25-manager/files/eg25-manager.service
@@ -0,0 +1,29 @@
+[Unit]
+Description=Quectel EG25 modem
+Before=ModemManager.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/eg25manager
+Restart=on-failure
+ProtectControlGroups=true
+ProtectHome=true
+ProtectKernelTunables=true
+ProtectSystem=strict
+RestrictSUIDSGID=true
+PrivateTmp=true
+ProtectedKernelModules=true
+MemoryDenyWriteExecute=true
+PrivateMounts=true
+NoNewPrivileges=true
+CapabilityBoundingSet=
+ProtectProc=true
+ProtectDevices=true
+DeviceAllow=/dev/ttyS2
+LockPersonality=true
+PrivateNetwork=true
+ProtectClock=true
+ProtectKernelLog=true
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-misc/eg25-manager/metadata.xml b/net-misc/eg25-manager/metadata.xml
new file mode 100644
index 000000000..144c8091c
--- /dev/null
+++ b/net-misc/eg25-manager/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>marco@scardovi.com</email>
+ <name>Marco Scardovi</name>
+ </maintainer>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: net-misc/eg25-manager/files/, net-misc/eg25-manager/
@ 2021-07-24 0:57 Gerben Jan Dijkman
0 siblings, 0 replies; 2+ messages in thread
From: Gerben Jan Dijkman @ 2021-07-24 0:57 UTC (permalink / raw
To: gentoo-commits
commit: 41f2676464f289d1465470ae05fa66ac8513f7e6
Author: Gerben Jan Dijkman <gjdijkman <AT> gjdwebserver <DOT> nl>
AuthorDate: Sat Jul 24 00:57:40 2021 +0000
Commit: Gerben Jan Dijkman <gjdijkman <AT> gjdwebserver <DOT> nl>
CommitDate: Sat Jul 24 00:57:40 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=41f26764
net-misc/eg25-manager: Added extra files for configuration
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Gerben jan Dijkman <gjdijkman <AT> gjdwebserver.nl>
net-misc/eg25-manager/eg25-manager-0.3.0.ebuild | 7 ++-
.../eg25-manager/files/eg25-pinephone-1.0.toml | 49 +++++++++++++++++++++
.../eg25-manager/files/eg25-pinephone-1.1.toml | 50 ++++++++++++++++++++++
.../eg25-manager/files/eg25-pinephone-1.2.toml | 42 ++++++++++++++++++
4 files changed, 147 insertions(+), 1 deletion(-)
diff --git a/net-misc/eg25-manager/eg25-manager-0.3.0.ebuild b/net-misc/eg25-manager/eg25-manager-0.3.0.ebuild
index 229397034..bb97e8158 100644
--- a/net-misc/eg25-manager/eg25-manager-0.3.0.ebuild
+++ b/net-misc/eg25-manager/eg25-manager-0.3.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -26,8 +26,13 @@ S="${WORKDIR}/${PN}-${COMMIT}"
src_install() {
meson_src_install
systemd_dounit "${FILESDIR}"/eg25-manager.service
+ insinto /etc/eg25-manager
+ newins "${FILESDIR}"/eg25-pinephone-1.0.toml pine64,pinephone-1.0.toml
+ newins "${FILESDIR}"/eg25-pinephone-1.1.toml pine64,pinephone-1.1.toml
+ newins "${FILESDIR}"/eg25-pinephone-1.2.toml pine64,pinephone-1.2.toml
}
pkg_postinst() {
systemd_reenable --all eg25-manager
}
+
diff --git a/net-misc/eg25-manager/files/eg25-pinephone-1.0.toml b/net-misc/eg25-manager/files/eg25-pinephone-1.0.toml
new file mode 100644
index 000000000..8a3cf4590
--- /dev/null
+++ b/net-misc/eg25-manager/files/eg25-pinephone-1.0.toml
@@ -0,0 +1,49 @@
+[manager]
+need_libusb = true
+usb_vid = 0x2c7c
+usb_pid = 0x0125
+
+# Uncomment the following if you need to change the modem detection timeout on
+# resume and/or the time during which suspend is blocked after modem boot
+#[suspend]
+#boot_timeout = 120
+#recovery_timeout = 9
+
+[gpio]
+dtr = 358
+pwrkey = 35
+reset = 68
+apready = 231
+disable = 232
+
+[at]
+uart = "/dev/ttyS2"
+configure = [
+# Each command has 4 possible elements:
+# * `cmd` : the AT command itself, which will be translated to "AT+`cmd`"
+# * `subcmd`: the subcommand in case a single AT command can be used
+# to change multiple parameters, such as QCFG (optional)
+# * `value` : the commands, argument, usually used to set the value of
+# a specific parameter (optional)
+# * `expect`: the expected return value; the command is first executed
+# without any value in order to query the current state. This
+# state is then compared to the `expect` string; if they don't
+# match, the command is then executed with value `expect` in
+# order to set the parameter to the configured value (optional)
+# A command can have `expect` OR `value` configured, but it shouldn't have both
+ { cmd = "QGMR" },
+ { cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
+ { cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
+ { cmd = "QCFG", subcmd = "ims", expect = "1" },
+ { cmd = "QCFG", subcmd = "urc/ri/ring", expect = "\"pulse\",2000,1000,5000,\"off\",1" },
+ { cmd = "QCFG", subcmd = "urc/ri/smsincoming", expect = "\"pulse\",2000" },
+ { cmd = "QCFG", subcmd = "urc/ri/other", expect = "\"off\",1" },
+ { cmd = "QCFG", subcmd = "urc/delay", expect = "1" },
+ { cmd = "QURCCFG", subcmd = "urcport", expect = "\"usbat\"" },
+ { cmd = "QSCLK", value = "1" },
+]
+suspend = [
+]
+resume = [
+]
+reset = [ { cmd = "CFUN", value = "1,1" } ]
diff --git a/net-misc/eg25-manager/files/eg25-pinephone-1.1.toml b/net-misc/eg25-manager/files/eg25-pinephone-1.1.toml
new file mode 100644
index 000000000..559ba9110
--- /dev/null
+++ b/net-misc/eg25-manager/files/eg25-pinephone-1.1.toml
@@ -0,0 +1,50 @@
+[manager]
+need_libusb = true
+usb_vid = 0x2c7c
+usb_pid = 0x0125
+
+# Uncomment the following if you need to change the modem detection timeout on
+# resume and/or the time during which suspend is blocked after modem boot
+#[suspend]
+#boot_timeout = 120
+#recovery_timeout = 9
+
+[gpio]
+dtr = 358
+pwrkey = 35
+reset = 68
+apready = 231
+disable = 232
+
+[at]
+uart = "/dev/ttyS2"
+configure = [
+# Each command has 4 possible elements:
+# * `cmd` : the AT command itself, which will be translated to "AT+`cmd`"
+# * `subcmd`: the subcommand in case a single AT command can be used
+# to change multiple parameters, such as QCFG (optional)
+# * `value` : the commands, argument, usually used to set the value of
+# a specific parameter (optional)
+# * `expect`: the expected return value; the command is first executed
+# without any value in order to query the current state. This
+# state is then compared to the `expect` string; if they don't
+# match, the command is then executed with value `expect` in
+# order to set the parameter to the configured value (optional)
+# A command can have `expect` OR `value` configured, but it shouldn't have both
+ { cmd = "QGMR" },
+ { cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
+ { cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
+ { cmd = "QCFG", subcmd = "ims", expect = "1" },
+ { cmd = "QCFG", subcmd = "urc/ri/ring", expect = "\"pulse\",2000,1000,5000,\"off\",1" },
+ { cmd = "QCFG", subcmd = "urc/ri/smsincoming", expect = "\"pulse\",2000" },
+ { cmd = "QCFG", subcmd = "urc/ri/other", expect = "\"off\",1" },
+ { cmd = "QCFG", subcmd = "urc/delay", expect = "1" },
+ { cmd = "QURCCFG", subcmd = "urcport", expect = "\"usbat\"" },
+ { cmd = "QSCLK", value = "1" },
+]
+suspend = [
+]
+resume = [
+]
+reset = [ { cmd = "CFUN", value = "1,1" } ]
+
diff --git a/net-misc/eg25-manager/files/eg25-pinephone-1.2.toml b/net-misc/eg25-manager/files/eg25-pinephone-1.2.toml
new file mode 100644
index 000000000..109e46892
--- /dev/null
+++ b/net-misc/eg25-manager/files/eg25-pinephone-1.2.toml
@@ -0,0 +1,42 @@
+# Uncomment the following if you need to change the modem detection timeout on
+# resume and/or the time during which suspend is blocked after modem boot
+#[suspend]
+#boot_timeout = 120
+#recovery_timeout = 9
+
+[gpio]
+dtr = 34
+pwrkey = 35
+reset = 68
+apready = 231
+disable = 232
+status = 233
+
+[at]
+uart = "/dev/ttyS2"
+configure = [
+# Each command has 4 possible elements:
+# * `cmd` : the AT command itself, which will be translated to "AT+`cmd`"
+# * `subcmd`: the subcommand in case a single AT command can be used
+# to change multiple parameters, such as QCFG (optional)
+# * `value` : the commands, argument, usually used to set the value of
+# a specific parameter (optional)
+# * `expect`: the expected return value; the command is first executed
+# without any value in order to query the current state. This
+# state is then compared to the `expect` string; if they don't
+# match, the command is then executed with value `expect` in
+# order to set the parameter to the configured value (optional)
+# A command can have `expect` OR `value` configured, but it shouldn't have both
+ { cmd = "QGMR" },
+ { cmd = "QDAI", expect = "1,1,0,1,0,0,1,1" },
+ { cmd = "QCFG", subcmd = "risignaltype", expect = "\"physical\"" },
+ { cmd = "QCFG", subcmd = "ims", expect = "1" },
+ { cmd = "QCFG", subcmd = "apready", expect = "1,0,500" },
+ { cmd = "QURCCFG", subcmd = "urcport", expect = "\"usbat\"" },
+ { cmd = "QSCLK", value = "1" },
+]
+suspend = [
+]
+resume = [
+]
+reset = [ { cmd = "CFUN", value = "1,1" } ]
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-24 0:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-25 18:55 [gentoo-commits] repo/proj/guru:dev commit in: net-misc/eg25-manager/files/, net-misc/eg25-manager/ Marco Scardovi
-- strict thread matches above, loose matches on Subject: below --
2021-07-24 0:57 Gerben Jan Dijkman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox