Commit graph

3047 commits

Author SHA1 Message Date
RedFox arch
8a99b46f8d
xiaomi-cacus: new device (MR 1145)
Splash logo displayed.
SSH over USB works,
Weston works.
Port build scripts to python3.
2020-04-13 21:02:13 +03:00
Niklas Cathor
5acf41a60e
linux-samsung-kminilte: add flashlight support (MR 1150)
These changes enable the flashlight LED driver (fled_rt5033), and add
support for switching the light on and off from userspace.

In more detail:

* CONFIG_FLED_RT5033 enables the flashlight driver
* CONFIG_VIDEO_EXYNOS_FIMC_IS is required for the flashlight driver to
  compile (there seems to be a lot of cross-dependency between the two
  drivers)
* patch 0001 fixes the use of usleep (which no longer exists), to make
  the kernel compile with those settings

With these changes, /sys/class/flashlight/rt-flash-led shows up in
sysfs, but it's only possible to control the brightness of the LED,
not to switch it on.

Patch 0002 is what actually makes the flashlight usable: it makes
the /sys/class/flashlight/rt-flash-led/mode file writable.

Writing "Torch" there enables the flashlight, writing "Off" disables
it again. "Mixed" mode works like "Torch" as well. I have not figured
out yet how to trigger the camera flash, so setting the mode to
"Flash" is possible, albeit pointless.
2020-04-13 19:08:19 +03:00
Dolphin von Chips
ef7f4514a7 cross/grub-efi-x86: upgrade to 2.04-r1 2020-04-13 12:40:23 +05:00
Niklas Cathor
6e75bf0e40
main/postmarketos-mkinitfs: fix mkbootimg call for devices w/o dtb (MR 1148)
Don't pass empty arguments to mkbootimg, when _second or _dt are not set.
2020-04-12 19:51:22 +02:00
Oliver Smith
961e14dcac
cross/musl-*: upgrade to 1.1.24-r6 2020-04-12 15:27:26 +02:00
Dolphin von Chips
e5b9623017
mrhlpr.json: change suffix in commit names (MR 1146) 2020-04-12 03:52:48 +03:00
Oliver Smith
23c58a681f
main/postmarketos-mkinitfs: modules from files (!1123)
Read kernel module names from files in
/etc/postmarketos-mkinitfs/modules and print out which modules are
required by which of these files as the initramfs gets generated. Put
the default modules into a new 00-default.modules. This allows mkinitfs
hooks to add modules to the initramfs.

Parse the modules from a file similar to modules-load.d, with commented
lines and empty lines ignored. Add a simple test script for that and run
it in check().
2020-04-12 00:56:22 +02:00
Oliver Smith
3e7604601a
main/postmarketos-mkinitfs: split mkinitfs funcs (!1123)
Split mkinitfs.sh into two files, so the functions (now in
mkinitfs_functions.sh) can be sourced in a test. Such a test will be
added in the next commit.

Move $BINARIES_EXTRA into the get_binaries_extra() function, so its
$(find...) does not get executed when sourcing the functions file. Move
$BINARIES into get_binaries() too for consistency.
2020-04-12 00:56:22 +02:00
Oliver Smith
74f42ebeb0
main/postmarketos-mkinitfs: pass shellcheck (!1123)
Make it pass shellcheck by fixing obvious mistakes like '==' instead of
'='. Add "shellcheck disable" lines for things that are intentionally done
or would be a bit more complicated to rewrite. It would be nice to
refactor some things like '${outfile/initramfs-/uImage-}', but this should
be done in a separate change (patches welcome).

Remove unused variable "modules_path". While at it, add two new fatal
error messages instead of just "exit 1" without any comment and remove
redundant mkdir in APKBUILD.
2020-04-12 00:56:17 +02:00
Minecrell
900cb19576
qemu-*: move from testing to main (!1121)
For testing changes for device categorization, it is useful to have
a device in each of the categories. The PinePhone is close to being
moved to main/, but it doesn't fulfill all requirements yet.

The QEMU "device ports" are very simple since QEMU currently only
emulates a rather limited set of hardware features. All available features
are working correctly (especially after the recent rework of the QEMU
packages). I suppose it is also usable as a "daily driver", at least for
its intended purpose (a virtual machine for testing postmarketOS changes). :)

Given that everyone can run QEMU, everyone could potentially maintain
it. For now I have added myself as maintainer since I did most of the
recent cleanup. Add drebrez as second maintainer.

Overall it seems useful to have qemu-* in main/, especially because
it is now the device that is selected by default in pmbootstrap.
2020-04-11 15:47:49 +02:00
Minecrell
69efae2e0b
CI: test_directory_structure: Allow device/{community,main} (!1121) 2020-04-11 15:47:49 +02:00
Oliver Smith
e42d8487bd
pmaports.cfg: add channel (!1141)
Replace branch_pmos and branch_alpine keys (that were never used) with a
new channel key. pmbootstrap will look up the branches related to a
channel in channels.cfg of the master branch. While at it, modernize the
file.
2020-04-11 02:26:03 +02:00
Oliver Smith
c80d1c5fb2
channels.cfg: new file (!1141)
Let's add a nice file that defines the available release channels.
Upcoming pmbootstrap patches will make use of this in 'pmbootstrap init'
for example:

[20:46:22] Choose the postmarketOS release channel.
[20:46:22] Available (2):
[20:46:22] * edge: Rolling release channel
[20:46:22] * stable: Upcoming beta release (WIP, DO NOT USE!)
[20:46:22] Channel [edge]:

Closes: #519
2020-04-11 02:25:31 +02:00
Niklas Cathor
153f7ca342
samsung-kminilte: add wifi firmware package (!1127)
linux-samsung-kminilte: adjust paths where the bcmdhd driver expects firmware
device-samsung-kminilte: add "nonfree-firmware" subpackage
firmware-samsung-kminilte: new package

firmware post-install actions:
- enable "deferred-initcalls" in sysinit for wlan0 to be available
- force wpa_supplicant to use wlan0 instead of p2p0
(both based on script from device-samsung-klte package)

[ci:skip-build]: already built successfully in CI
2020-04-11 02:10:17 +02:00
Danct12
7f64e287e7
main/linux-postmarketos-allwinner: use rtl8723cs driver from kernel tree (!1002)
We'll use the new RTL8723CS driver in the kernel tree instead
of using the one that we have to fetch from GitHub.

Signed-off-by: Danct12 <danct12@disroot.org>
Signed-off-by: Asriel Dreemurr <asriel.danctnix@gmail.com>

[ci:skip-build]: already built successfully in CI
2020-04-11 01:48:52 +02:00
Antoine Fontaine
dafe96e37e
main/postmarketos-ui-weston: launch dbus with weston (!1118) 2020-04-11 01:44:18 +02:00
Luca Weiss
a81946781a
cross/crossdirect: fix rust breakage (!1139)
See:
* https://gitlab.alpinelinux.org/alpine/aports/issues/11349
* 7bb907ec23
2020-04-10 19:57:36 +02:00
Antoine Fontaine
4046873480
main/postmarketos-ui-i3wm: set XDG_RUNTIME_DIR (!1131)
working towards https://gitlab.com/postmarketOS/pmaports/-/issues/458.
2020-04-09 11:05:26 +02:00
Daniele Debernardi
bd15afc217
main/postmarketos-mkinitfs: execute lddtree without privileges (!1133)
The lddtree script uses the scanelf utility which has some security check that causes a slowdown of the operation, executing it without privileges it's really faster.
2020-04-09 10:35:06 +02:00
Daniele Debernardi
36f15b58f6
main/postmarketos-mkinitfs: remove initramfs-extra cache (!1133) 2020-04-09 10:35:03 +02:00
Dolphin von Chips
e2ab2fcd47
main/dtbtool: use "python3" binary instead of "python" (!1136) 2020-04-08 17:37:48 +03:00
Niklas Cathor
22db6d0541
samsung-kminilte: change arch to armv7 (!1130)
- disable CONFIG_CRYPTO_SHA256_ARM, since it causes the build to fail with:
    arch/arm/crypto/sha256-core.S:1831: Error: thumb conditional instruction should be in IT block
2020-04-07 08:56:59 +02:00
Alexey Min
5119c7a043
main/dtbtool: fix upstream compat issues
fix depends and force a rebuild
2020-04-07 07:03:33 +03:00
Alexey Min
3456f5fad0
xiaomi-lavender: new device (Xiaomi Redmi Note 7) (!1095)
[ci:skip-build] already built on CI (in 1.5 hours)
2020-04-06 04:38:56 +03:00
Alexey Min
213d01a99a
main/linux-postmarketos-qcom-sdm660: new aport (!1095)
tracks https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git/tree/?h=for-next
and adds sdm660 patches on top of it
2020-04-06 04:00:40 +03:00
Oliver Smith
0ea9d8db52
main/anbox-image: fix armv7 build (!1128)
[ci:skip-vercheck]
2020-04-05 19:49:17 +02:00
Antoine Fontaine
db0af6a8ed
main/anbox-image: move image to /usr/share/anbox and updates armv7 to 64bit binder (!1116) 2020-04-05 15:30:46 +02:00
Oliver Smith
ca708dd453
maemo: remove (!1126)
The current postmarketOS port does not do Hildon/Maemo Leste justice.
Various features are missing or broken. We can't even upgrade to the newest
version, because of packaging issues that can't easily be resolved. And
nobody is maintaining it currently. So for the people who want to use
Hildon, please use Maemo Leste (https://maemo-leste.github.io/).

If somebody is willing to invest a lot of time for a new postmarketOS
port of Hildon/Maemo Leste, let us know!
2020-04-05 15:22:13 +02:00
Zhuowei Zhang
129f93ec5b
google-crosshatch: update downstream kernel to LineageOS 17.1 kernel (!1040)
This updates google-crosshatch's downstream kernel to Lineage 17.1's
version (4.9.200, shared with Lineage's Pixel 3a port).

The newer kernel is needed because this device's kernel requires a
matching dtbo partition. The previous kernel would fail to boot with an
Android 10 dtbo partition.

Two patches were removed: Android 10's bootloader no longer passes the dm
or skip_initramfs boot arguments because of the new dynamic partitions
(https://source.android.com/devices/tech/ota/dynamic_partitions/ab_legacy).

Changes from the LineageOS kernel config:
https://gist.github.com/zhuowei/89b4135ff27e88f5a3dd3e4bf3cd31ab

Tested by booting to USB networking and debug-shell: I have not tested
flashing full pmOS using this kernel yet.

For some reason, on this kernel, when pmOS can't find system partitions
during the "Trying to mount subpartitions for 10 seconds..." stage, it
waits for 70 seconds instead of 10 seconds. I'm not sure why. It does go
to debug-shell correctly after a minute.

[ci:skip-build]: already built successfully in CI
2020-04-05 14:27:17 +02:00
Oliver Smith
ccbdea7495
pmaports.cfg: require pmbootstrap 1.18.0 2020-04-05 14:12:42 +02:00
Dolphin von Chips
176555a4a1
**/linux-*: update usage of downstreamkernel_prepare helper (!1084)
[skip-ci]: just downloading all kernel sources takes about one hour
           and ollieparanoid wants to merge it now. This already ran
	   successfully with [ci:skip-build] and [ci:skip-vercheck].
2020-04-05 12:43:25 +02:00
Dolphin von Chips
a4b1fb8371
devicepkg-dev: implement out-of-tree build for kernel (!1084) 2020-04-05 12:30:39 +02:00
Bhushan Shah
8af4d8c27a
main/telepathy-mission-control: backport bugfix for newer glib (!1119)
This fixes telephony functions on plasma mobile
2020-04-05 04:12:51 +03:00
Luca Weiss
7e8259ca58
pine64-pinephone: fix microphone in ucm (!1113)
Both internal microphone and headset microphone are working reasonably well now out of the box.
2020-04-05 02:20:17 +02:00
Minecrell
612d29d598
device-*: remove redundant installation of modules-load.conf/modprobe.conf (!1124)
This is now automatically installed in devicepkg_package.

[ci:ignore-count]: this should build fine in CI.
2020-04-04 21:17:22 +03:00
Minecrell
4db63c0627
main/devicepkg-dev: install modules-load.conf/modprobe.conf (!1124)
Many device ports install extra modules-load.conf/modprobe.conf
configurations. Simplify this a bit by installing these automatically
to appropriate locations in the file system.
2020-04-04 21:17:18 +03:00
Minecrell
6127a5b4b2
samsung-i927: remove mesa-demos from depends (!1124)
mesa-demos is currently broken in Alpine since it needs a rebuild.
However, a device port shouldn't force installation of something like
mesa-demos so we should remove it anyway.
2020-04-04 21:17:15 +03:00
Bart Ribbers
34061fed2d
temp/plasma-phone-components: bump pkgrel
Make sure our package is newer than Alpine's
2020-04-03 21:55:57 +02:00
Minecrell
c747733aec
main/linux-postmarketos-qcom-msm8916: upgrade to 5.6 (!1115)
- Update to Linux 5.6
- Major improvements for Samsung Galaxy Tab 4 10.1 WiFi (samsung-matissevewifi)
  - Buttons
  - Accelerometer
  - Display
  - Touchscreen
  - Audio (Speaker is WIP)
- Upstreamed some patches
2020-03-31 21:42:36 +03:00
Bart Ribbers
adf71f344b
kde/plasma-dialer: rebuild against libphonenumber 8.12.0-r2 2020-03-31 15:45:42 +02:00
Minecrell
a1735c9596
cross/gcc-*: upgrade to 9.3.0-r1
upstream commit 6957885149
2020-03-31 15:38:47 +02:00
Alexey Min
7200c1f06a
cross/musl-*: upgrade to 1.1.24-r5
upstream commit 3ace36cce8
2020-03-31 14:13:59 +03:00
Alexey Min
a2192cf548
cross/busybox-static-*: upgrade to 1.31.1-r14
upstream commit fa77359eb3
2020-03-31 01:11:06 +03:00
Alexey Min
53147b32d0
main/linux-postmarketos-qcom-msm8974: add findutils build dependency (!1090)
Forces to use normal "find" instead of busybox find.
This fixes unrecognized -printf parameter error dutring build:

 ...
 GEN     usr/initramfs_data.cpio
find: unrecognized: -printf
BusyBox v1.31.1 () multi-call binary.

Usage: find [-HL] [PATH]... [OPTIONS] [ACTIONS]
 ...
2020-03-30 20:34:34 +02:00
Alexey Min
469265294e
samsung-klte: refactor firmware packages, add modules to initfs (!1090)
* make modules_initfs same as lg-hammerhead
  (fixes postmarketOS splash logos at boot)
* split out downstream-firmware and mainline-firmware
* add firmware-adreno to firmware-mainline subpkg
* prepare deviceinfo file to mainline kernel
2020-03-30 20:34:34 +02:00
Luca Weiss
d01f1c73a2
fairphone-fp2: add modules into initramfs (!1090) 2020-03-30 20:34:34 +02:00
Luca Weiss
c185730ef3
main/linux-postmarketos-qcom-msm8974: enable useful config options (!1090) 2020-03-30 20:34:34 +02:00
Luca Weiss
9e4c2f697d
main/linux-postmarketos-qcom-msm8974: upgrade to 5.6.0_rc6 (!1090) 2020-03-30 20:34:34 +02:00
Bart Ribbers
6cb395bc48
temp/plasma-phone-components: upgrade to 5.18.80_git20200328
Directly to master as this is required to be able to launch applications
from the shell again, which is quite... important.
2020-03-30 16:37:36 +02:00
Martijn Braam
1446ec3787
temp/mesa-git: upgrade to 0_git20200323 (!1104) 2020-03-30 12:57:13 +02:00