Commit graph

4745 commits

Author SHA1 Message Date
Oliver Smith
13a7778f94
main/postmarketos-base-ui: NetworkManager: hostname-mode=none (MR 2457)
Disable the hostname management feature of NetworkManager. This isn't
useful for the postmarketOS use case, where we set one hostname in
/etc/hostname via pmbootstrap and want it to be used. (It makes more
sense for normal PCs, which may just have the hostname 'localhost' at
the end of the installation and then not be unique in the network.)

NetworkManager is supposed to only change the hostname if it is set to
localhost, however this detection does not work properly in
postmarketOS. I've skimmed through sources of elogind, NetworkManager
and OpenRC a bit and found that in OpenRC the definitive location to put
the hostname is /etc/hostname. The other path, /etc/conf.d/hostname, is
just a fallback. Experiments show that setting something in
/etc/conf.d/hostname does prevent NM from setting a hostname offered by
the DHCP server, but it's not clear to my why this happens. I suspect
elogind + dbus. Disabling this feature we don't need anyway seems like a
good approach to me without wasting too much time here.
2021-08-24 14:37:41 +02:00
Pixead
8bc434515f
samsung-dream: fixed wifi driver issue (MR 2446) 2021-08-23 09:17:15 +02:00
Luca Weiss
58eaa90874
main/postmarketos-mkinitfs: change wait for subpartitions (MR 2432)
Previously it was assumed that with the counter and the sleep 0.1 the
process would take about 10 seconds to complete. On newer devices with
tens or even hundreds of partitions going through all partitions already
takes a significant amount of time, so change the logic to measure the
time elapsed instead.
2021-08-22 20:15:40 +02:00
Bobby The Builder
2f325b6124
main/device-pine64-pinephone: disable sysrq config (MR 2447)
it's already disabled in kernel config:

      sysctl: cannot stat /proc/sys/kernel/sysrq: error code 2
       *   Unable to configure kernel parameters from /etc/sysctl.d/sysrq.conf
2021-08-22 19:24:22 +02:00
Bobby The Builder
16d91a3514
community/device-pine64-pinetab: disable sysrq config (MR 2447)
it's already disabled in kernel config:

      sysctl: cannot stat /proc/sys/kernel/sysrq: error code 2
       *   Unable to configure kernel parameters from /etc/sysctl.d/sysrq.conf
2021-08-22 19:24:17 +02:00
omame
8e60170a9e
samsung-j6primelte: Proprietary firmware (MR 2451) 2021-08-22 19:15:50 +02:00
MightyM17
169a653565
samsung-espresso3g: new port. (MR 2427)
[ci:skip-build] Already built on CI in MR
2021-08-21 21:07:36 +02:00
Jonas Heinrich
4de4d6aa98
samsung-i8150: new device (Samsung Galaxy W) (MR 2435) 2021-08-21 20:39:10 +02:00
Clayton Craft
c1a6a6511b
postmarketos-config-nftables: allow DNS from wlan* (MR 2448)
This fixes DNS when a system is connected to a pmOS device as a hotspot.

The rule is in the default set of firewall rules, instead of a
subpackage.. I think this is OK. I don't believe anything should be
listening on port 53 except when the hotspot is running...
2021-08-21 20:33:52 +02:00
Clayton Craft
2f2976ce7d
gitignore: add 'src/' dir created when running abuild manually (MR 2450)
When using abuild to update checksums and other things manually in pmaports,
it creates a src/ dir in the package dir which should not be commited.
2021-08-21 20:30:46 +02:00
Bobby The Builder
d71802cb25
main/linux-postmarketos-allwinner: upgrade to 5.13.12 (MR 2452)
[ci:skip-build] Already built on CI in MR
2021-08-21 20:27:32 +02:00
omame
1431998cff
samsung-j6primelte: new device (MR 2444)
[ci:skip-build] Already built on CI in MR
2021-08-19 06:15:14 +03:00
Alexey Minnekhanov
f4a6b4f8d1
main/linux-postmarketos-rockchip: enable SPI flash and autofs support (MR 2436) 2021-08-19 04:12:36 +03:00
Bart Ribbers
323c909f8c
main/postmarketos-base-ui: add "$HOME/.local/bin" to $PATH (MR 2445)
This directory is specified by the XDG Base Directory specification
(https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html).
Quoting:

> User-specific executable files may be stored in $HOME/.local/bin.
> Distributions should ensure this directory shows up in the UNIX $PATH environment variable, at an appropriate place.

So let's actually do this. This way also binaries installed by e.g. Pip
or Cargo will be usable out-of-the-box rather than that the user has to
figure out why it's not appearing in their PATH.
2021-08-18 17:05:02 +03:00
Firstbober
5a4c8d7583
wiko-v12bnlite: new device (MR 2439)
[ci:skip-build] Already built on CI in MR
2021-08-18 16:01:26 +03:00
Dylan Van Assche
23ee2f2dd3
temp/upower: drop torch patches (MR 2429)
With Phosh 0.13.0, Logind is used without patches for the torch
as UPower doesn't want to handle this. Therefore, we can drop
the torch patches to UPower.

[ci:skip-build] already built successfully in CI
2021-08-17 22:39:17 -07:00
Clayton Craft
c4fc7c9ed0
temp/eg25-manager: build master branch, drop merged patches (MR 2443)
I believe everything here has been merged in master, so let's build that
for now (since it includes at least 1 additional fix not in the patches
that were dropped here)
2021-08-16 10:56:11 -07:00
Clayton Craft
2283190a93
main/postmarketos-mkinitfs: move dev node creation to initfs (MR 2407)
There should be no reason that this has to be done by mkinitfs, and
moving it to initfs simplifies mkinitfs (and the creation of a
replacement)
2021-08-16 19:04:38 +02:00
Bart Ribbers
a97aca7e3a
raspberry-rpi4: mark as having hardware acceleration (MR 2442)
This is the case since e1f00d9658
2021-08-16 17:02:04 +02:00
Bart Ribbers
e1f00d9658
raspberry-rpi4: add hardware acceleration (MR 1568)
Without Mesa it would render everything using the software renderer
which is abysmally slow
2021-08-15 23:19:05 +02:00
Clayton Craft
b2a82a028d
main/linux-postmarketos-allwinner: support zram kconfig check (MR 2434)
Note: building zram as a module allows for easy reconfiguration at
runtime (e.g. using the zram-init service).

[ci:skip-build] Already built in a MR
2021-08-14 18:57:39 +03:00
Siddharth Manthan
0d0ce2f3ef
samsung-gt58lte: New device Samsung Galaxy Tab A LTE 8.0 (2015) (MR 2218) 2021-08-14 13:43:58 +02:00
Timotej Lazar
ac7a1d92ce
linux-kobo-clara-mainline: improve kernel config (MR 2381)
Disable debug options and SMP, and remove support for other platforms.
Unixbench reports a speedup for process creation and syscalls, from

    Process Creation                                126.0       1043.8     82.8
    System Call Overhead                          15000.0     235497.3    157.0

to

    Process Creation                                126.0       1826.7    145.0
    System Call Overhead                          15000.0     421030.2    280.7
2021-08-14 13:41:09 +02:00
Jonas Heinrich
483972a3a8
htc-pyramid: new device (HTC Sensation) (MR 2428) 2021-08-14 13:35:18 +02:00
link2xt
7889677cde
htc-ville: change arch to armv7, update the kernel and firmware (MR 2430)
Updated the kernel to the latest version from LineageOS [1] (branch
`cm-14.1`), copied their configuration file and updated it according
to `pmbootstrap kconfig check`. Previous kernel was from `cm-12.1`
branch.

Fixed firmware package. Switched firmware source to
LineageOS/TheMuppets and install only the Wi-Fi firmware, but into the
correct directory. Previously all available firmware was simply copied
into wrong directories.

[1] https://github.com/LineageOS/android_kernel_htc_msm8960

[ci:skip-build] already built successfully in CI
2021-08-13 23:26:43 -07:00
Bart Ribbers
4c1b607f3e
main/postmarketos-ui-plasma-mobile: clean up runtime deps (MR 2433)
plasma-nm-mobile is already a dep of plasma-phone-components
ofono is already a dep of plasma-phone-components
ofono-openrc already gets pulled in automatically through openrc and
ofono
networkmanager is already pulled in by plasma-nm-mobile
qt5-qtvirtualkeyboard has been replaced by maliit ages ago

[ci:skip-build] already built successfully in CI
2021-08-13 23:22:25 -07:00
Bobby The Builder
63e2807916
temp/u-boot-pinephone: upgrade to 2021.07 (MR 2315)
- switch sources to official repo https://source.denx.de/u-boot
- use tag v2021.07
- extract patches from pine64-org
- enable DMA transfers from eMMC and mSD (u-boot from Megi)

[ci:skip-build] already built successfully in CI
2021-08-13 23:19:29 -07:00
Bobby The Builder
cc6eb4d1f4
temp/u-boot-rockpro64: trigger build to package latest TF-A (MR 2315) 2021-08-13 23:19:29 -07:00
Bobby The Builder
1a4203d992
temp/u-boot-pinebookpro: trigger build to package latest TF-A (MR 2315) 2021-08-13 23:19:28 -07:00
Bobby The Builder
a3e9236692
main/crust: upgrade to 0.4 (MR 2315)
add patch for 5.13 irq clocks
   0289a01c9e
2021-08-13 23:19:28 -07:00
Bobby The Builder
b795e65785
temp/arm-trusted-firmware: common build for rk3328, rk3399 and pinephone (MR 2315)
Include:
  smaeul: "all idle entry attempts will return PSCI_E_INVALID_PARAMS, and Linux
  isn't smart enough to stop trying without these patches:
  https://github.com/crust-firmware/arm-trusted-firmware/commits/d6ebf5dab2daab8"

  Extra patches custom to pinephone
2021-08-13 23:19:28 -07:00
bademux
d96467bbad
linux-xiaomi-tissot: enable Realtek usb ethernet adapters (MR 2419)
[ci:skip-build] already built successfully in CI
2021-08-12 08:56:31 -07:00
Clayton Craft
ac6c5bcb61
temp/sdl2: drop fork (MR 2425)
2.0.16 is in alpine aports, and includes the fixes carried in this fork
2021-08-11 16:24:34 +02:00
Clayton Craft
fb452cc3d0
channels.cfg: mark v21.03 as unsupported (MR 2424) 2021-08-10 11:33:48 -07:00
Caleb Connolly
3e86acc9d9
postmarketos-mkinitfs: flashing: fix wrong flavor (MR 2401)
The flavor string was naively parsed using sed by removing everything
before the first hyphen, this breaks for -rc kernels. Instead lets glob
/usr/share/kernel for the installed kernel flavor. This will also
prevent the kernel being flashed if the running kernel has a different
localversion than the updated one.

[ci:skip-build] already built successfully in CI
2021-08-10 00:09:34 -07:00
Jakob Hauser
4baa805b41
main/postmarketos-base: change permission on tm2-touchkey leds (MR 2380)
Allow users in group "input" to control the tm2-touchkey leds.

Additionally correcting the udev rule for disabling the tm2-touchkey leds by default.

[ci:skip-build] already built successfully in CI
2021-08-10 00:03:50 -07:00
Bobby The Builder
13af7396e9
main/linux-postmarketos-allwinner: upgrade to 5.13.6 (MR 2390)
[ci:skip-build] already built successfully in CI
2021-08-10 00:01:27 -07:00
Caleb Connolly
9e3b3700d1
gitlab-ci: shellcheck ttyescape (MR 2309)
[ci:skip-build] already built successfully in CI
2021-08-09 23:57:24 -07:00
Caleb Connolly
20f93d942d
main/ttyescape: new aports (MR 2309)
Add ttyescape, a script and triggerhappy configuration to allow mobile device
users to access and use a shell without having to plug in to a computer.

One of the largest limitations with a mobile device is the lack of keyboard, for
mainstream OSs like Android and iOS, this is a non-issue as the whole OS stack
is built to automatically recover in case of a crash / hang, hiding the internal
state of affairs from users and making use of careful design to minimise the
impact.  When bringing Linux to mobile, we carry not only the benefits of the
Linux desktop but also it's limitations. In the event that your desktop manager
goes haywire or hangs completely, or your graphics drivers get unhappy, the
ability to quickly jump to a tty and start killing bad behaving programs or
reset your display manager is one that most of us take for granted.  But when
hit by similar errors on a mobile device there is no such recourse available,
users either have to reboot and hope that the issue doesn't occur again, or pull
out a laptop and pull up a shell (assuming ssh is enabled and the rndis
interface comes up).

ttyescape proposes to solve this issues by pieceing together several already
available tools, notably:
 - triggerhappy, a tool used to perform actions when
certain buttons or key combinations are pressed with no dependencies on the
display manager in use.
 - fbkeyboard, a framebuffer keyboard for tty's, it
renders on top of the current tty and uses the device touchscreen as input.
2021-08-09 23:57:24 -07:00
Bart Ribbers
2a185f64d5
pine64-rockpro64: add myself as co-maintainer (MR 2362)
[ci:skip-vercheck]
[ci:skip-build] already built successfully in CI]
2021-08-09 20:16:28 -07:00
Bart Ribbers
80d5c34ac7
pine64-rockpro64: move to community (MR 2362)
This device runs on linux-postmarketos-rockchip which at the moment of
writing is 5.13.0 with (only) 6 patches applied, so close-to mainline.
I personally use 2 of these devices with postmarketOS installed daily as
my homeserver setup and it has worked really well. It's also a good
target to run Plasma Bigscreen on as a TV setupbox
2021-08-09 20:06:37 -07:00
Caleb Connolly
9e2a6201d4
firmware-oneplus-sdm845: add venus firmware (MR 2418)
I forgot to include this firmware in the list, lets deal with that now
>.<

[ci:skip-build] already built successfully in CI
2021-08-09 20:04:03 -07:00
Newbyte
b17df00654
main/linux-postmarketos-exynos4: compress with xz (MR 2410)
gzip results in a boot.img that's too big (over 8 MB) for e.g.
samsung-i9300, so let's replace it with something that produces
smaller kernels. With this, the entire boot.img is 6,3 MB (down
from 8MiB, or 8.5458944 MB) which leaves plenty of space on the
8 MB partition and prevents the recovery from being overwritten
when this kernel is flashed.

Tested and works on samsung-i9300.

[ci:skip-build] already built successfully in CI
2021-08-09 20:02:03 -07:00
afeuerstein
8e6824c6e0
{main,cross}/gcc*: sync makedeps with Alpine (remove paxmark) (MR 2421)
[ci:skip-build] gcc never builds on CI, let alone 11 gccs
[ci:skip-vercheck]
2021-08-10 01:54:18 +03:00
Newbyte
8e3224d1f0
main/postmarketos-ui-phosh: add lollypop to recommends (MR 2417)
This provides a mobile-friendly music player in the default
installation which is something that's currently lacking.

[ci:skip-vercheck]: _pmb_recommends change doesn't need pkgrel bump
2021-08-09 16:02:41 +03:00
Martijn Braam
a52e82b3ee
main/postmarketos-config-nftables: fix hotspot with networkmanager (MR 2408)
The networkmanager hotspot needs to have DHCP input enabled on the wifi
interfaces so the temporary dnsmasq instance can work. The
networkmanager backend is also switched to the nftables one so it can
create the ad-hoc hotspot forwarding/masquerade table.
2021-08-07 16:54:59 +02:00
Oliver Smith
be2fdfe491
cross/busybox-static-*: upgrade to 1.33.1-r5 2021-08-07 16:54:01 +02:00
Oliver Smith
2ac6c742ba
main/postmarketos-ondev: depend on ttf-dejavu (MR 2400)
Proper fix for the monospace fonts seen when postmarketos-ondev is
installed without also installing osk-sdl. This doesn't happen anymore
with pmbootstrap install --ondev, because it will always pull in osk-sdl
again for other reasons. However, since postmarketos-ondev is using this
font, let's directly depend on it instead of having it pulled in as side
effect of also having osk-sdl installed.
2021-08-05 18:44:32 +02:00
Henrik Grimler
103a46094c
postmarketos-exynos4: change kernel config CMDLINE (MR 2404)
And extend bootloader CMDLINE per default, giving us the option to
change the CMDLINE both via the kernel config and from samsung's
S-BOOT shell.

Note: the default console in exynos_defconfig (which this config is
based on) is ttySAC1, but all midas devices uses ttySAC2, so set it to
ttySAC2 instead. Also remove all other variables. They are not needed,
and (at least) root=/dev/ram0 seem to prevent us from booting pmos.

[ci:skip-build] already built successfully in CI
2021-08-05 18:37:26 +02:00
Henrik Grimler
25152c0fc0
device-samsung-i9300: fix name of dtb variables (MR 2404)
When kernel variants were renamed in
69cd6ff843
these dtb vars were forgotten, making it impossible to boot a kernel
build with `pmbootstrap build linux-postmarketos-exynos4`, no dtb is
appended to the zImage and we get stuck on samsungs boot logo.
2021-08-05 18:36:57 +02:00