Configuration for GNSS/GPS on the PinePhone
These changes are reproduced from what I've configured manually, so it's not directly tested yet.
I'm pretty sure that at least the gpsd.conf
file (installed in /etc/conf.d/gpsd
) will conflict with the file installed by gpsd
itself. Can we solve this except using e.g. sed
in the .post-install
script?
The gpsd device-hook script should also probably check the output from the modem (so the output of atinout) if it returned "OK" and not some error but it should be alright for now.
Merge request reports
Activity
- Resolved by Administrator
- Resolved by Administrator
I'm pretty sure that at least the
gpsd.conf
file (installed in/etc/conf.d/gpsd
) will conflict with the file installed bygpsd
itself. Can we solve this except using e.g.sed
in the.post-install
script?It most definitely will. Sed is probably a cleaner solution.
DEVICE=""
is already in there so a simplesed -i 's/DEVICE=""/DEVICE="/dev/ttyUSB1"/g' /etc/conf.d/gpsd
will do.By Bart Ribbers on 2019-07-14T18:09:33
added 1 commit
- ec363185 - device/device-pine-dontbeevil: add gpsd configuration
By Luca Weiss on 2019-07-14T18:18:48
It most definitely will. Sed is probably a cleaner solution.
DEVICE=""
is already in there so a simplesed -i 's/DEVICE=""/DEVICE="/dev/ttyUSB1"/g' /etc/conf.d/gpsd
will do."cleaner" :(
I kinda feel the need to implement an option in apk that packages can cleanly override e.g. configuration files from another package. I'll ask on some Alpine mailing list (or the IRC/Matrix) for advice. Because we have a lost of weird post-install scripts that change files in some other packages...
By Luca Weiss on 2019-07-14T18:20:44
I kinda feel the need to implement an option in apk that packages can cleanly override e.g. configuration files from another package. I'll ask on some Alpine mailing list (or the IRC/Matrix) for advice. Because we have a lost of weird post-install scripts that change files in some other packages...
Good idea, I also don't like these weird post-install hacks.
I guess the cleanest way without any change in apk is changing the upstream program to read configs from a directory and not only from single config files. Then we can do it like with xorg or udev and add files like 10-postmarketos-specific-config.cfg. But of course this requires adjusting each upstream program where we have this problem (and this time the upstream program is openrc, since this is an openrc config.)
By Oliver Smith on 2019-07-16T21:29:04
added category::device + 1 deleted label
mentioned in issue #318 (closed)
By Luca Weiss on 2019-07-18T11:01:18
added 138 commits
-
ec363185...350ac7af - 136 commits from branch
master
- 34352975 - main/atinout: new aport
- 9cddc242 - device/device-pine-dontbeevil: add gpsd configuration
By Luca Weiss on 2019-09-09T08:19:13
-
ec363185...350ac7af - 136 commits from branch
added 96 commits
-
9cddc242...1573a806 - 94 commits from branch
master
- 21ed9ce1 - main/atinout: new aport
- d1ffd5c1 - device/device-pine64-dontbeevil: add gpsd configuration
By Luca Weiss on 2019-09-23T08:18:58
-
9cddc242...1573a806 - 94 commits from branch
added 1 commit
- 36b6fb2a - device/device-pine64-dontbeevil: add gpsd configuration
By Luca Weiss on 2019-09-23T08:24:27
added 99 commits
-
1f230b74...692f088c - 97 commits from branch
master
- eb43d71c - main/atinout: new aport
- df4385d3 - device/device-pine64-dontbeevil: add gpsd configuration
By Luca Weiss on 2019-10-14T21:00:29
-
1f230b74...692f088c - 97 commits from branch
So from my side this is blocked by #318 (closed) , a.k.a adding support for something like
overwrites="gpsd:/etc/conf.d/gpsd.conf"
in apk.In the meantime it would probably be possible to implement that using a package hook (and potentially post-install scripts).
By Luca Weiss on 2019-10-14T21:02:39
added 180 commits
-
df4385d3...729d4f9e - 175 commits from branch
master
- 1220c696 - main/atinout: new aport
- 6da39edc - device/device-pine64-dontbeevil: add gpsd configuration
- dfc49dbe - gps pinephone wip
- 883ce83b - temp/gpsd: import from Alpine
- 3fb220d5 - temp/gpsd: use init scripts from hyperbola
By Luca Weiss on 2019-12-11T23:27:50
Toggle commit list-
df4385d3...729d4f9e - 175 commits from branch
Great! I'll submit the gpsd changes to Alpine and we'll see what they say to it. (without the gpsd changes, gpsd refuses to start without changes to
/etc/conf.d/gpsd
)Done: https://gitlab.alpinelinux.org/alpine/aports/merge_requests/2125
By Luca Weiss on 2019-12-13T17:29:22
Edited by Administratoradded 341 commits
-
3fb220d5...10d8f5d4 - 337 commits from branch
master
- 1c78687a - main/atinout: new aport
- 7cb0c8fe - temp/gpsd: import from Alpine
- 05afb911 - temp/gpsd: use init scripts from hyperbola
- b1b3effc - device-pine64-pinephone: Add GNSS/GPS configuration
By Luca Weiss on 2020-01-24T17:28:14
Toggle commit list-
3fb220d5...10d8f5d4 - 337 commits from branch
added 9 commits
-
b1b3effc...6ea8296a - 5 commits from branch
master
- 4e4a2c67 - main/atinout: new aport
- b5473297 - temp/gpsd: import from Alpine
- bd5a4077 - temp/gpsd: use init scripts from hyperbola
- 0172c6d3 - device-pine64-pinephone: Add GNSS/GPS configuration
By Luca Weiss on 2020-01-26T16:46:43
Toggle commit list-
b1b3effc...6ea8296a - 5 commits from branch