Commit graph

375 commits

Author SHA1 Message Date
Oliver Smith
cca32f2610 Only use gtk+2.0-maemo for Hildon (#1445) 2018-05-28 22:12:01 +00:00
yangxuan8282
05c583cced add some plugins for postmarketos-ui-xfce4 (#1503)
* add some plugins for postmarketos-ui-xfce4
* make start_xfce4.sh start xfce4 properly and add related dependencies
2018-05-21 17:53:29 +02:00
Bhushan Shah
01af1c2834 main: Add aport for libqofono (#1502)
libqofono provides the Qt/QML bindings for the ofono, and are used by
Plasma Mobile and nemo/sailfishos.
2018-05-18 10:45:55 +05:30
Bhushan Shah
e911489338 main/linux-postmarketos-qcom: Disable the sample qmi and rpmsg clients (#1485)
This was done for testing locally and is not needed for any
functionality, it managed to slip into the initial qcom kernel package,
but it is not needed.
2018-05-16 23:12:56 +02:00
Bhushan Shah
9edb856684 main/linux-postmarketos-qcom: Turn the remoteproc drivers into modules (#1485)
Upstream suggests to keep remoteproc drivers as modules given they
require the firmware files to be present when they are probed, instead
of putting required firmware files in initramfs due to size
restrictions. We make these drivers modules and load them from
userspace.
2018-05-16 23:12:45 +02:00
Daniele Debernardi
d5a12b1f0f [samsung-klte] Add mainline kernel (linux-postmarketos-qcom) (#1479)
Changes:
* device-samsung-klte with both downstream and mainline kernel
  subpackages
* linux-postmarketos-qcom updated to last commit

What works in mainline kernel:
* internal SD card
* volume and home key buttons
* usb network
2018-05-13 19:47:32 +00:00
Oliver Smith
89be40d875 main/weston: disable backend-rdp 2018-05-13 00:23:00 +02:00
Duncan Guthrie
77b61a05ba matchbox: miscellaneous fixes (#1475) 2018-05-10 21:45:25 +00:00
Luca Weiss
b65ae44275 main/weston: add patch for compilation with freerdp 2.0.0-rc2 (#1480) 2018-05-10 19:53:15 +00:00
Oliver Smith
95ba4c51b9 main/weston: fix build
This makes weston build again on x86_64. (It still won't build for
armhf and aarch64, because Alpine's mesa binary package is currently
stuck there, I'll look into that as well.) Detailed fixes:

1. New makedepends needed, because mesa-libwayland-egl does not exist
   anymore (see Alpine's aports commits 257a236 and 4f8b36b):
     wayland-libs-egl wayland-dev
   This fixes configure errors:

checking for EGL_TESTS... no
configure: error: Package requirements (egl glesv2 wayland-client wayland-egl) were not met:

Package 'wayland-client', required by 'virtual:world', not found
Package 'wayland-egl', required by 'virtual:world', not found

2. Disable RDP backend, because Weston source is incompatible with
   freerdp 2.0.0. This avoids compilation errors like this one:

libweston/compositor-rdp.c:193:5: error: 'SURFACE_BITS_COMMAND {aka struct _SURFACE_BITS_COMMAND}' has no member named 'bpp';
2018-05-10 20:42:11 +02:00
Oliver Smith
e96e183cad main/weston: bump pkgrel after soname bump
This doesn't exist anymore: so:libfreerdp.so.1.2
2018-05-10 00:17:11 +02:00
Oliver Smith
2864fa2bbf main/weston: bump pkgrel (soname bump)
This doesn't exist anymore: so:libfreerdp.so.1.2
2018-05-08 23:33:33 +02:00
opendata26
758b05e1f3 main/linux-postmarketos-qcom: update to latest revision (#1472)
* main/linux-postmarketos-qcom: update to latest revision
2018-05-07 00:02:47 +02:00
Martijn Braam
c813b146b6 linux-postmarketos-qcom: Remove composite usb gadget for networking (#1462)
* linux-postmarketos-qcom: Remove composite USB gadget
* linux-postmarketos-qcom: Fix usb networking
- Enable functionfs so we're able to actually configure the USB
  networking
- Enable the USB serial console for convenience, although not enabled by
  default pre-composed configuration
2018-05-06 22:34:17 +02:00
Martijn Braam
c8616eb683 main/postmarketos-artwork-wallpapers: Added the grass wallpapers (#1471) 2018-05-06 14:12:20 +00:00
Daniele Debernardi
38102885f5 [ui-weston] Set postmarketos artwork as default wallpaper (#1466) 2018-05-05 14:27:13 +00:00
Daniele Debernardi
5f2a577cff [ui-mate] Set postmarketOS artwork as default wallpaper (#1452) 2018-05-05 14:04:12 +00:00
Bhushan Shah
302b6f5c29 Use postmarketOS artwork on plasma-mobile (#1464) 2018-05-05 13:51:18 +00:00
Oliver Smith
ca92b35948 Disable LuneOS UI (see #1459) [skip ci]
Moved from aports/main to aports/luna, so we can disable the entire
folder from building in the binary repository:
* qt5-qtwebengine
* postmarketos-ui-luna
2018-05-02 22:38:19 +02:00
Craig Tatlor
9db916caa0 aports/main: linux-postmarketos-qcom: various configuration updates for sirius 2018-05-02 22:53:49 +02:00
Craig Tatlor
ede07e1eea aports/main: linux-postmarketos-qcom: update kernel 2018-05-02 22:53:49 +02:00
Craig Tatlor
0ab0fbe09f aports/main: linux-postmarketos-qcom: remove unused patch 2018-05-02 22:53:49 +02:00
Craig Tatlor
11f99b7d88 aports/main: linux-postmarketos-qcom: generate a dt.img for use with qcdt based devices 2018-05-02 22:53:49 +02:00
Oliver Smith
b73ad9e455 qt5-qtwebchannel: fix dependency
qt5-websockets has been renamed to qt5-qtwebsockets in Alpine.
2018-05-02 20:23:19 +02:00
Oliver Smith
5ff16dfef6 Update QT packages to QT 5.10 [skip ci]
Alpine's QT packages are at 5.10 as well, see #1458.
Building binary packages is going to take some time, I'm on it.
2018-05-02 01:42:24 +02:00
Oliver Smith
f5d5a9be19 msm-fb-refresher: use initfs hook (#1438)
The `msm-fb-refresher` updates the screen for msm based devices. It is
not needed for all devices, so we had some extra code in the initramfs,
that would only add it when the `deviceinfo_msm_refresher` variable was
set. However, we are able now to add files to initramfs hooks, so this
hack can be removed and simplify everything.

Changes:
* Remove `deviceinfo_msm_refresher` from all deviceinfos
* Add sanity check for it
* Move all `deviceinfo` sanity checks to an extra function
* `postmarketos-mkinitfs`: remove code for msm refresher
* `msm-fb-refresher`: add initramfs hook
2018-04-24 21:09:53 +00:00
Sicelo
2f52a22248 Fix issues with lock.sh for i3wm/N900 (#1439) 2018-04-23 21:04:31 +00:00
Oliver Smith
340a17d98f Set all of user's groups in "pmbootstrap install" (#1432)
The postmarketos-base package used to make the user part of the "video"
and "audio" groups. However, this did not work reliably, and we were
adding the "wheel" group in "pmbootstrap install" anyway.

Now all groups get added in "pmbootstrap install", and the names of the
groups have been moved to `pmb.config.install_user_groups`.
2018-04-23 20:52:03 +00:00
Oliver Smith
3bfc752cf3 Remove uboot-tools again (upstream is fixed)
Reverts 83633a9237026a86f34799cca326e14306682b69.
2018-04-21 20:39:25 +02:00
Nikk Saan
1acb17b164 Upgrade linux-pmos-stable to 4.16.2 (#1435)
Fix for n900 audio not working
2018-04-21 16:21:35 +00:00
Bhushan Shah
21469fdb7e Properly style the plasma-mobile
This provides some configuration which provides better plasma mobile
experience in terms of scaling, fonts and theme
2018-04-21 00:37:57 +02:00
Duncan Guthrie
044c496fc5 New UI: matchbox (#1420)
Add matchbox-window-manager, matchbox-desktop, and their associated
dependencies.
2018-04-19 19:01:02 +00:00
Bhushan Shah
3930a95f9b Add newer version of libdrm (2.4.91) 2018-04-19 20:22:09 +02:00
Bhushan Shah
ef66300eee Add the linux-postmarketos-qcom package
This is based on the linux-postmarketos-mainline, uses the fork of
<https://github.com/postmarketOS/linux>
2018-04-19 20:22:09 +02:00
Oliver Smith
e7551a4d33 Temporarily package uboot-tools as workaround
This package is currently broken in Alpine's binary packages for
the testing repository, and their build bot is stuck with another
package. In turn, this makes our package building for the repo get
stuck, as we can't build device-nokia-n900 (and it stops there).

See also: #1408
2018-04-17 17:31:09 +02:00
Bart Ribbers
d372f6f000 Bump pkgrel due to libressl soname upgrade (#1400)
Affected packages:
* qca-qt5
* qt5-qtbase
* libsamsung-ipc
2018-04-09 16:29:57 +00:00
Oliver Smith
a7e49ff158 Remove sdl2 aport again (fix is merged in Alpine) 2018-04-05 00:08:19 +02:00
Michael Hamann
24b2c2f799 Add SDL2 from Alpine Linux, force-enable directFB 2018-04-04 23:30:12 +02:00
Oliver Smith
63f921fbac pmbootstrap init: kernel selection / remove linux-pmos-lts (#1363)
* As discussed in IRC/matrix, we're removing `linux-postmarketos-lts`
  for now. The kernel isn't used right now, and we save lots of
  maintenance effort with not updating it every week or so.
* new config option `"kernel"` with possible values:
  `"downstream", "mainline", "stable"` (downstream is always
  `linux-$devicename`)
* ask for the kernel during `pmbootstrap init` if the device package
  has kernel subpackages and install it in `_install.py`
* postmarketos-mkinitfs: display note instead of exit with error when
  the `deviceinfo_dtb` file is missing (because we expect it to be
  missing for downstream kernels)
* device-sony-amami:
  * add kernel subpackages for downstream, mainline
  * set `deviceinfo_dtb`
* device-qemu-amd64: add kernel subpackages for stable, lts, mainline
* test cases and test data for new functions
* test case that checks all aports for right usage of the feature:
  * don't mix specifying kernels in depends *and* subpackages
  * 1 kernel in depends is maximum
  * kernel subpackages must have a valid name
  * Test if devices packages reference at least one kernel
* Remove `_build_device_depends_note()` which informs the user that
  `--ignore-depends` can be used with device packages to avoid building
  the kernel. The idea was to make the transition easier after a change
  we did months ago, and now the kernel doesn't always get built before
  building the device package so it's not relevant anymore.
* pmb/chroot/other.py:
  * Add autoinstall=True to kernel_flavors_installed(). When the flag
    is set, the function makes sure that at least one kernel for the
    device is installed.
  * Remove kernel_flavor_autodetect() function, wherever it was used,
    it has been replaced with kernel_flavors_installed()[0].
* pmb.helpers.frontend.py: remove code to install at least one kernel,
  kernel_flavors_installed() takes care of that now.
2018-04-03 23:50:09 +00:00
Daniele Debernardi
bfce4aae18 apk-file: Update to version 0.3.0 and new repository (#1382) 2018-04-02 00:02:12 +00:00
Oliver Smith
30076c1acc qt5-qtbase: bump pkgrel because of soname bump
This doesn't exist anymore:
so:libmysqlclient.so.18
2018-04-01 01:38:23 +02:00
Lionel Duboeuf
99c649cb5b re-enable RDP for weston (#1377)
RDP is the Remote Desktop Protocol. Usage information:
https://wiki.postmarketos.org/wiki/Weston
2018-03-30 16:44:40 +00:00
Oliver Smith
f468d3ed7e Disable metadata_csum when generating ext4 rootfs (#1367)
Some downstream kernels don't support this, and this recently became
the default in e2fsprogs.
2018-03-28 18:00:18 +00:00
Daniele Debernardi
5f6afd3b39 Add additional files into initramfs when debug-shell is installed (#1358) 2018-03-26 18:12:58 +00:00
Luca Weiss
dbb9cc144a Kernel updates (#1357)
* linux-postmarketos-mainline 4.16_rc6 [skip ci]
* linux-postmarketos-lts 4.14.29 [skip ci]
* linux-postmarketos-stable 4.15.12 [skip ci]
2018-03-21 21:59:35 +00:00
Luca Weiss
e917f5f013 Kernel updates (#1348)
* linux-postmarketos-stable 4.15.11 [skip ci]
* linux-postmarketos-lts 4.14.28 [skip ci]

NOTE: linux-postmarketos-mainline 4.16_rc6
has a regression, not updated yet (#1352)
2018-03-20 21:02:12 +00:00
Attila Szöllősi
ca5b16d6a4 Fix regex in recovery installer (#1339)
Fixes #1322.
2018-03-17 18:25:39 +00:00
Bhushan Shah
388a1bee06 Export some environment variables when starting plasma (#1341)
This environnment variables provides better integration and themeing to
various components and is inline with what reference Plasma Mobile
images is doing

Signed-off-by: Bhushan Shah <bhush94@gmail.com>
2018-03-16 19:42:48 +00:00
alive4ever
3e198bac24 recovery-installer: include tar inside recovery.zip (#1337)
busybox tar applet is messing with symbolic link extraction. Include GNU
tar binary to handle tarball extraction correctly.
2018-03-15 22:16:50 +00:00
Bhushan Shah
3b01bb6faf Add kwayland-integration to plasma-mobile dep (#1338)
* Add kwayland-integration packaging
* Make postmarketos-ui-plasma-mobile depend on kwayland-integration
2018-03-15 21:40:52 +00:00
Daniele Debernardi
70d797b6bc postmarketos-ui-xfce: Update to 0.2 (#1326)
* Add default icon theme
* Set pmOS wallpaper
* Add battery icon in top panel
* Use builddir (so --src works)
2018-03-12 19:17:36 +00:00
Joey Hewitt
0a2dbea03d i9195/Qualcomm modem support (#1314)
* Qualcomm MSM modem: 'rmtfs' support packages
* qcom_rmtfs: Server that talks to modem over IPC to allow it
  read/write data for its persistent storage. This is needed for it to
  boot, as well as periodically during usage. Added a patch that
  it expects the storage path symlinks in /etc instead of /boot.
* qrtr: IPC library for rmtfs
* libqipcrtr4msmipc: adapter library to make qrtr work on kernels with
  AF_MSM_IPC support. AF_QIPCRTR is the mainline equivalent since Linux
  ~4.7.
* msmipc-dev: Header files for qrtr and libqipcrtr4msmipc.
  Thanks to Bjorn Andersson <https://github.com/andersson> for rmtfs and
  qrtr.
* libsmdpkt_wrapper: adapter lib for QMI clients
  The SMD serial packet driver in Qualcomm kernels has, AFAICT, a bug
  in poll(); this works around it so that qmicli et al can work.
* i9195: firmware (modem only right now)
* add ofono (with patch for MSM devices)
  Based on Alpine's package.
* i9195: add modem support
* move all modem related packages to aports/modem
2018-03-11 15:59:09 +00:00
Luca Weiss
a3a5a35de0 Kernel updates (#1312)
* linux-postmarketos-stable 4.15.8 [skip ci]
* linux-postmarketos-lts 4.14.25 [skip ci]
2018-03-10 15:43:29 +00:00
Luca Weiss
44c74fc28f Kernel updates (#1295) [skip ci]
* linux-postmarketos-mainline 4.16_rc4
* linux-postmarketos-lts 4.14.24
2018-03-06 22:32:56 +00:00
Daniele Debernardi
f614c9df88 Implement charging mode (#1285)
* Add charging-sdl package
* Include charging-sdl into the initramfs-extra
* [initramfs] Detect charging mode and use triggerhappy to start
charging-sdl when the power key is pressed
2018-03-05 22:59:23 +00:00
Daniele Debernardi
19df13804c Remove /etc/network/interfaces and networking service from device packages (#1293)
This is not necessary anymore since there is now NetworkManager.
2018-03-05 21:18:13 +00:00
Oliver Smith
b541254994 linux-postmarketos-mainline: fix weston (x86_64) (#1283)
Since it works for linux-postmarketos-stable, I've simply copied over
the config, and ran "pmbootstrap menuconfig" on it again. Then it
worked again in Qemu.
2018-03-04 11:15:47 +00:00
Martijn Braam
6caeba319e postmarketos-base: Enable NetworkManager by default (#388) 2018-03-04 11:07:21 +00:00
Bart Ribbers
9b18e344dd Add NetworkManager and PulseAudio applets to Plasma (#1040)
* Add NetworkManager and PulseAudio applets to Plasma
* This crashes plasma mobile on armhf (where it is not usable due
  to performance problems anyway), except on mainlined kernels
  with hardware accelerated graphics. This is mentioned in the
  pkgdesc of postmarketos-ui-plasma-mobile now.
2018-03-02 21:07:18 +00:00
Luca Weiss
ef9cd3d784 Kernel updates (#1280)
* linux-postmarketos-stable 4.15.7
* linux-postmarketos-lts 4.14.23
2018-03-01 23:53:19 +00:00
Oliver Smith
c8f54ddcf4 Bump pkgrel of qt5-qtbase and db8
Upstream soname bumps, these don't exist anymore:
* so:libicui18n.so.59
* so:libicuuc.so.59
2018-02-28 21:49:48 +01:00
Bart Ribbers
23b5c7d3a1 Package the Plasma phone dialler (#1270)
* Package everything required for the Plasma dialler

* Improve build scripts

* Bump pkgrel of plasma-phone-components
2018-02-27 21:06:46 +01:00
Oliver Smith
76ed56905a postmarketos-mkinitfs: don't fail without deviceinfo [skip ci] (#1269)
When building device packages, the postmarketos-mkinitfs package gets
installed as dependency of postmarketos-base. It must not try to
create an initramfs at this point, when there is not deviceinfo file.

We build the initramfs during the installation, so it's fine.

Added [skip ci] because linux kernels and KDE updates are currently
getting built for the binary repository (so Travis couldn't finish
anyway).
2018-02-26 23:57:56 +00:00
Luca Weiss
6dd916d6c7 Kernel updates (#1267) [skip ci]
* linux-postmarketos-stable 4.15.6
* linux-postmarketos-lts 4.14.22
* linux-postmarketos-mainline 4.16_rc3
2018-02-26 23:27:28 +00:00
Daniele Debernardi
7cb729cbe3 Include fbdebug tool in debug-shell hook (#1266) 2018-02-26 20:32:01 +00:00
Oliver Smith
e654a995e6 device packages: depend on postmarketos-base (#1258)
* device-*: add postmarketos-base to depends
* aportgen: add postmarketos-base to depends
* Add test case
* postmarketos-base: Don't depend on devicepkg
* msm-fb-refresher: Enable service in post-install
2018-02-25 18:40:54 +00:00
Luca Weiss
c44c78d2de Kernel updates (#1253)
* linux-postmarketos-lts 4.14.21
* linux-postmarketos-stable 4.15.5
2018-02-24 08:34:42 +00:00
Pierre Rudloff
0685ccaee7 gp-peak: Add support for osk-sdl and audio (#1243)
* gp-peak: Add support for osk-sdl
* gp-peak: Move non-kernel files to device-gp-peak
* gp-peak: Add audio support
Manually trigger the udev rules for audio devices and add the default user to the audio group
2018-02-22 23:36:24 +00:00
Mayeul Cantan
e885f6a725 Add a maximum-attention hook to help with debugging boot issues (#1238)
The hook flashes every LED it can find, as well as the vibration motor.
More paths are probably necessary to support more devices and kernels.
2018-02-22 22:10:19 +00:00
Luca Weiss
9660d13ea2 Kernel updates (#1240)
* linux-postmarketos-mainline 4.16-rc2
* linux-postmarketos-stable 4.15.4
* linux-postmarketos-lts 4.14.20
2018-02-21 19:19:37 +00:00
Martijn Braam
64166249da postmarketos-ui-i3wm (#1225)
* Added a ui package for i3wm

* Added n900 specific i3wm config

* Fixed mixed tabs and spaces in i3status.

This is also the first commit made on an n900
running postmarketOS.

* Removed redundant X11

* Use lock.sh to lock the device

* Windows management improvements

* bump pkgver

* Fix device-nokia-n900 checksums

* Fixed path in the i3wm split package
2018-02-20 11:21:03 +01:00
Oliver Smith
a3310dbefc pmbootstrap build --src: override source for any package (#1210)
* New "pmbootstrap build --src=/local/source/path hello-world" syntax
* The local source path gets mounted inside the chroot
* From there, a copy of the source code gets created with rsync (so
  we can write into the source folder if necessary, for better
  compatibility with all kinds of APKBUILDs)
* After the aport gets copied into the chroot before building (as
  usually), we extend the APKBUILD with overrides to make it use
  mountpoint's source instead of downloading the package's source
  from the web as usually
* The package built with the local source gets _pYYYYMMDDHHMMSS
  appended to the pkgver
* linux-postmarketos-mainline: use $builddir, fix patch checksum
2018-02-19 22:04:01 +00:00
Martijn Braam
fa0dae0838 Wireguard for postmarketos-stable (#1231)
* Added modified wireguard APKBUILD from alpine
* Add required kernel options to postmarketos-stable
2018-02-19 16:51:00 +00:00
Pierre Rudloff
eb6ab4c641 gp-peak: display and touch screen (#1226)
Adds a /etc/local.d/ script in order to work around
udev being broken with this kernel.
2018-02-18 01:42:46 +00:00
Oliver Smith
b2495a917b linux-*: Don't depend on postmarketos-mkinitfs
Binary packages are rebuilding. If your kernel is not rebuilt yet, and
you don't want to build it yourself, just checkout the previous
pmbootstrap commit.

This commit also changes the arch from the postmarketOS kernels from
"all" to the ones where we actually have a kernel config.

Fixes #1229.
2018-02-17 18:26:31 +01:00
Oliver Smith
6aba5f73d4 Package kernel-scripts separately (#1234)
We have two methods of cross-compiling:
* native: everything runs with the host architecture, QEMU is not
  involved. This is the fastest, but requires the build system to be
  working with it. We use this for all linux-* packages currently.
* distcc: everything runs through QEMU emulating the target arch,
  *except* for the compiler. This is the most compatible approach
  working with all packages.

When compiling `linux-*` packages natively, kernel scripts needed
during the build process get generated. Some of these are C files that
get compiled as executables. In native mode, these get compied to the
native architecture, in distcc mode to the target architecture.

The problem is, that we need these scripts compiled for the target
architecture in the kernel's dev package in order to compile kernel
modules outside of the kernel's package (e.g. wireguard).

It is not possible to just rewrite this logic to generate target-arch
binaries when running in native mode, because these binaries require
musl-dev, linux-headers and some other packages to be installed for the
target architecture inside the native chroot.

We solve this by introducing a new `kernel-scripts` package. which
contains just the binary scripts. In case the dev package was
cross-compiled, it depends on `kernel-scripts` and symlinks these
binaries. The `kernel-scripts` package always gets compiled in distcc
mode since it does not have a `linux-` prefix.

Fixes #1230.
2018-02-16 22:00:37 +01:00
Oliver Smith
f05438b4e4 Various linux packages: Fix broken dev subpackage (#1228)
Fixes #1227.
This also updates the hash in linux-postmarketos-mainline, because the
hash changed upstream (they updated their git version server-side?).
2018-02-15 00:20:40 +01:00
Lucas Ramage
e5d88d4de7 mkbootimg: replace Python version with osm0sis' C version (#1193)
Closes #441. Adjust bootimg_analyze code:
* Install mkbootimg (which now provides unpackbootimg) instead of
  unpackbootimg. In theory, pmbootstrap should recognize this
  automatically, however right now it does not yet handle this case.
* The file names of the extracted files have changed.
2018-02-11 11:41:41 +00:00
Michael Hamann
99b398a7e5 devicepkg-dev: Generate calibration matrix for libinput (#1205)
* Automatically generate a calibration matrix for libinput
  This takes the calibration matrix for wayland and divides the pixel
  offsets by the device width/height.
* Bump pkgrels of devices using devicepkg-dev
  This causes new packages to be generated, using the new devicepkg-dev
  version.
2018-02-11 10:20:31 +00:00
alive4ever
f870333b99 Add triggerhappy: HID input device handler (#1211)
More information:
<https://wiki.postmarketos.org/wiki/Troubleshooting:HID_buttons>
2018-02-11 10:09:18 +00:00
Pavel Machek
ef60968c20 Update unicsy-demo to 0.4.6 (#1215) 2018-02-09 20:41:15 +00:00
Daniele Debernardi
4c91a72ff1 [fbdebug] Add panning functionality (#1207) 2018-02-06 21:21:25 +00:00
Daniele Debernardi
c818f9f054 fbdebug: Add initial framebuffer debug tool (#1196) 2018-02-03 19:09:59 +00:00
Oliver Smith
b165dd2c91 Testsuite: Run UIs in Qemu and check running processes and more (#982)
* Testsuite: Run UIs in Qemu and check running processes (and other changes)

* When `pmbootstrap qemu` gets killed, it now takes down the Qemu process with it
* `test/check_checksums.py` got a new optional `--build` parameter, which makes
  it build all changed packages instead of just checking the checksums
* We run this before running the testsuite now, so all changed packages get
  built before running tests (otherwise tests would hang without any output
  while a changed package is building)
* New testcase, that zaps all chroots, installs a specific UI (xfce4 and
  plasma-mobile currently, easy to extend), runs it via Qemu and checks the
  running processes via SSH.
* Version checking testcase: rewritten to include Alpine's testsuite file in
  our source tree, so we don't need to clone their git repo anymore. Now it
  is enabled for Travis.
* All this gives us a nice 10% code coverage boost
* Increased the `hello-world` pkgrel to verify that the Travis job is working.

* Various fixes
* Build device-packages for the device arch and don't raise an
  exception, but print a note if --ignore-depends is not specified
  and therefore the kernel gets installed, too.
* Don't use --force when building in Travis (because abuild doesn't
  check the checksums then. Bug report on the way.)
* Don't run the building process in the background, but wait for its
  completion
* Exit with 1 when showing usage in check_checksums.py
2018-02-02 00:16:29 +00:00
Oliver Smith
4c9b0de4f5 Fix invalid /etc/apk/repositories entry on device (#1189)
It used to have an entry for /mnt/pmbootstrap-packages, which only
makes sense while working on the chroot with pmbootstrap. After the
installation on the device, there's no repo in that path.
Furthermore, empty lines were added to the recovery installer script
for readability (thanks @ata2001!)
2018-02-01 22:44:20 +00:00
Oliver Smith
6d1af1b891 mkinitfs: Fail on missing depends / better usability in general (#1133)
* Fail if mkbootimg/uboot-tools are not installed, but creating a
  boot.img file / u-boot legacy image was requested via deviceinfo
  (fixes #312)
* Fail if /boot/dt.img is missing, but we have a qcdt device
* Fail if the dtb file specified in deviceinfo does not exist
* Fail if mkbootimg etc. exit with error code
* Don't try to add the ext4 module into the initramfs. We always
  compile it into the kernel. Instead, kconfig_check makes sure it
  is enabled now. (fixes #1037)
* Add a note that modprobe warnings can be ignored mostly
2018-01-31 19:39:09 +00:00
Oliver Smith
63247b469f libsamsung-ipc: update to 6.0.0003 and fix pkgver
Unfortunately pmbootstrap did not detect, that we had an invalid
pkgver in this package. See bug #1144.
2018-01-20 19:28:15 +00:00
Daniele Debernardi
8396a60cf3 abootimg: arch=all (#1131) 2018-01-18 00:58:50 +00:00
Oliver Smith
f5759c1e06 Gracefully handle packages breaking because of soname bumps (#1116)
Fixes #893. Changes:
* New action: "pmbootstrap pkgrel_bump"
* pmbootstrap detects missing soname depends when trying to install
  anyting, and suggests "pkgrel_bump --auto" to fix it
* Testcase test_soname_bump.py checks the pmOS binary package repo
  for soname breakage, so we see it when CI runs for new PRs
* libsamsung-ipc: bump pkgrel because of soname bump
2018-01-14 01:26:42 +00:00
rrooij
bf0a5f0a21 deviceinfo: add blobtools options (#1118)
Add a blobtools option to the deviceinfo file for creating specific
blobs for the Asus TF101 tablet. This will make it easier to flash
afterwards with ADB.
2018-01-13 20:38:29 +00:00
rrooij
6caddcb873 Add blobtools as package for tf101 (#1115)
This is for making a kernel image for the TF101 easier. See also:
ttps://github.com/postmarketOS/pmbootstrap/pull/1103#issuecomment-357035481

The TF101 does not support normal Android boot images and instead needs
a blob to be created.
2018-01-13 00:33:48 +00:00
Attila Szöllősi
ceefc5d8ec [recovery-installer] Copy contents of /etc/skel to home directory (#1114) 2018-01-12 21:53:15 +00:00
Alex Roth
6ae591471a postmarketos-artwork-wallpapers: Update to pull in JPG wallpapers (#1113) 2018-01-12 21:32:59 +00:00
Olgierd Nowakowski
bac4792f27 postmarketos-artwork: Spaces -> Tabs (#1110) 2018-01-10 19:00:55 +00:00
Filip Matijević
2cc6ae4a9d Add basic support for Nokia N9 (#1101)
Also added the watchdog-kick package:
Some devices (namely Nokia N9/950) use more than one watchdog, and
watchdog-kick package kicks all of /dev/watchdogs? every 10 seconds so
they don't reset the device
2018-01-09 16:42:55 +00:00
Olgierd Nowakowski
be5ae77c0a Artwork packages (corrected) (#1097)
* Packaged wallpapers and added a postmarketos-artwork metapackage

* Added artwork packages

* Spaces -> Tabs

* Merged postmarketos-artwork-wallpapers-extra to be a subpackage
Corrected maintainer email
2018-01-09 14:01:27 +01:00
Oliver Smith
73bd400ec0 qemu-amd64: make XFCE4, MATE work out of the box with SDL display (#1094)
* postmarketos-ui-xfce4: update to 0.1, depend on mesa-egl
* postmarketos-ui-mate: depend on mesa-egl
2018-01-08 18:29:11 +00:00
Olgierd Nowakowski
2cbff69bea Modified postmarketos-demo as discussed on IRC: (#1082)
Removed shutdown (as weston isn't running as root anymore)
Changed the firefox button to state that firefox needs to be installed
2018-01-05 03:06:16 +00:00
drebrez
a4dc750a3d Add initial packaging of MATE Desktop Environment (#1012)
Notably it has a loading delay (~30s) issue with marco (MATE window manager).
2018-01-03 18:43:13 +00:00
drebrez
5c2e83f051 [initramfs] Set framebuffer mode earlier in the script (before hooks) (#1070) 2018-01-03 00:38:32 +00:00
Bart Ribbers
75cd812fa3 postmarketos-ui-plasma-mobile: use kwin with framebuffer when missing /dev/dri (#1062)
Modified Plasma launch script to (crudely and unreliably)
detect if it has to run on the framebuffer or not
2018-01-02 22:53:21 +00:00
Luca Weiss
988aef6646 Update linux-postmarketos-mainline to 4.15-rc6 (#1067)
* Using full diff skipping v4.15-rc1
cgit doesn't generate proper patches for binary files (one was added in
v4.15-rc1 and removed in v4.15-rc5 because it also introduced a new
build-time dependency which is now solved). For 4.16 the "old" source
lines can be re-added but until then a full diff skipping v4.15-rc1
is needed.
* Add patch from linux-next to fix the build on some machines
  (sync-check.sh was not executable, see #950)
2018-01-01 23:53:01 +00:00
drebrez
1c71d748f5 [dtbTool] Fix version detection and find dtb in subfolders (#1057)
Fixes #1055.
2017-12-30 19:00:48 +00:00
clayton craft
d1c97617d6 linux-postmarketos-stable: Update to 4.14.9 (#1053) 2017-12-29 13:51:52 +00:00
Alex Roth
2a951d962d Add Teclast X80 Pro (EFI/x86_64 tablet) (#1050) 2017-12-29 02:02:29 +00:00
MoreRobustThanYou
6666f8a984 Replace dtbTool with the Skales dtbTool (#1048)
Should work the same, except it should also work in mainline,
because it uses libfdt (CM dtbtool often errors on mainline).
2017-12-28 20:44:50 +00:00
drebrez
0c63ff041c Feature debug-shell (#1028)
* Changed usb-shell behavior, it wait for some user action before continue booting
* Rename usb-shell to debug-shell and changed port to 23
* Add `20-debug-shell.sh` script to static code analysis
* Enable eth0 interface in initramfs (qemu)
* Add additional script to run a shell in order to be able to kill it from a telnet session
2017-12-23 19:22:28 +00:00
Oliver Smith
da9a4f99b7 Enable qt5-qtwebengine for aarch64 again
Compiling with the gold linker works \o/ - this fixes #1008.
2017-12-23 11:24:17 +01:00
Attila Szöllősi
7a92fc03d4 [recovery-installer] Log into one logfile instead of two (#1031) 2017-12-22 18:39:44 +00:00
Bart Ribbers
25d7b699c8 Add KDE debugging rules by default (#1032) 2017-12-22 18:37:36 +00:00
Attila Szöllősi
2f9ef89189 Rename deviceinfo variable flash_methods to flash_method (#1030)
* Rename deviceinfo variable flash_methods to flash_method
* Update pmb.config.deviceinfo_attributes / add sanity check
* Add test case that parses all deviceinfo files
2017-12-21 22:12:51 +00:00
Alex Roth
27b59a47bf Fix for qtwebengine not linking on armhf, re-add armhf arch for luna packages (#1025) 2017-12-19 23:28:26 +00:00
Oliver Smith
5584b04491 weston: bump pkgrel (soname bump of dependency libva) 2017-12-20 00:19:07 +01:00
Oliver Smith
204b7b4ef8 qt5-qtdeclarative (QML) compile for armv7 to enable JIT and make it work at all (#1022)
Also removed the Alpine maintainer (as we usually do so we don't
annoy him) and changed the pkgver to 9999 (this package is present
in upstream Alpine, we don't want it to get replaced when Alpine
updates their version).
2017-12-18 22:57:40 +00:00
Alex Roth
04d73a5824 Add packages and configuration changes to allow Luna to start in QEMU (#1016)
* Added a lot more Luna packages. It is now possible to start Luna, complete the first use app, and use the system. ARM support still broken.
* Cleanup & testing fixes. Starting in a fresh qemu environment works, but isn't quite deterministic. See wiki page for details
2017-12-17 18:25:59 +00:00
drebrez
db25689dfd apk-file: Command line front end for pkgs.alpinelinux.org (#1011) 2017-12-15 23:41:14 +00:00
drebrez
4782ffd01f Add devicepkg-dev which generate the touchscreen udev rule based on the deviceinfo (#995)
* Use devicepkg-dev by default in new device wizard
* Add link to reference wiki page
2017-12-14 21:17:18 +00:00
Oliver Smith
b031017414 qt5-qtwebengine: disable aarch64 and armhf (see #1008)
(Not increasing the pkgrel, because we really don't want to build
this when not necessary.)
2017-12-14 22:00:10 +01:00
Alex Roth
6792641fd1 Add qtwebengine & qtwebchannel from luna work (#999) 2017-12-12 23:37:04 +00:00
drebrez
fd7b2bb9ba aports: packaged matchbox-keyboard (#1001) 2017-12-12 19:40:12 +00:00
Bart Ribbers
c615d769a5 Add qt5-qtbase with OpenGL ES2 enabled (#996)
Add qt5-qtbase with OpenGL ES2 enabled and adjust the
upstream compatibility test case.
* Test case: don't get the qt5-qtbase version from any APKINDEX, but
  only from Alpine's community APKINDEX
* Test case: If the pkgver is 9999, look at _pkgver
2017-12-11 20:24:30 +00:00
Oliver Smith
b31e799f40 postmarketos-ui-plasma-mobile: Remove compile time warning (downloading pre-built packages from the binary repo is working) 2017-12-09 03:33:25 +01:00
Oliver Smith
bc21aed803 Fix android recovery zip (thanks @kaendfinger for the patch!)
Fixes #937.
2017-12-09 02:58:17 +01:00
Bart Ribbers
d6efa94dd4 Re-add powerdevil and polkit-kde-agent as runtime deps to postmarketos-ui-plasma-mobile (#977)
* Re-add powerdevil and polkit-kde-agent as runtime deps to postmarketos-ui-plasma-mobile
* Add kwinrc to start applications maximized
2017-12-04 23:19:17 +00:00
Bart Ribbers
45d3d6f008 Upgrade Qt libs to 5.9.3 / add test case to check if we're in sync with Alpine (#976)
* Upgrade Qt libs to 5.9.3
* Add test case to make sure we are always in sync with Alpine's QT
and update qt5-qtsensors, too.
* Remove qt5-qtquickcontrols2 (it's in Alpine now)
2017-12-04 23:06:09 +00:00
Oliver Smith
b8e71b7eba postmarketos-ui-plasma-mobile: depend on kwin 2017-12-03 19:01:19 +01:00
Oliver Smith
31df88c66b Remove dbus-nox11
It made problems, see #956 and #952. Originally this was added, so
our plasma mobile packaging - which targets wayland - doesn't need
to depend on X11 stuff. And because dbus-x11 caused a 1 minute
wait for an X server (#377).

We have yet to figure out if this problem returns, but even if that
happens, it's better than having it completely broken. And we can
probably figure out a better way to fix it (for real).
2017-12-02 20:19:16 +01:00
MoreRobustThanYou
8b2710cd90 Adds consolekit2 to postmarketos-ui-plasma-mobile depends (#965) 2017-12-02 12:59:53 +00:00
Oliver Smith
9fe445af36 device-qemu-amd64: Use LTS kernel (#954) 2017-12-01 19:10:58 +00:00
Alex Roth
196d555092 Merge Luna work into master (#945)
Contains everything from #940, except on top of master now.
Also added a postmarketos-ui-luna package to be a meta-
package for all of the Luna work.

Every component included here builds & runs, but isn't
functional without a handful more packages.
2017-11-29 23:29:26 +00:00
clayton craft
9b30cd6a46 [linux-postmarketos-stable] update to 4.14.2 (#946) 2017-11-28 19:09:17 +00:00
Bart Ribbers
eef97ce49d Lots of Plasma Shell improvements (#440)
* Add postmarketos-ui-plasma-mobile
* Add more required packages
* Upgrade plasma sources
* Modernize APKBUILDs
* Make it run in general
* Support RGB32 framebuffer with BGR order (thanks @zhuowei!)
2017-11-26 17:08:10 +00:00
Attila Szöllősi
f205650259 Workaround for mdss-fb (#927) 2017-11-21 23:17:59 +00:00
Pablo Castellano
b7d1905f30 postmarketos-mkinitfs: Handle "deviceinfo_bootimg_qcdt" boolean properly (#914) 2017-11-19 14:25:10 +00:00
Attila Szöllősi
fdbbc774a9 Run recovery installer in chroot (#901)
The recovery installer now has as few dependencies on the
Android recovery system as possible.
2017-11-16 22:20:57 +00:00
Oliver Smith
585c08bad5 Workaround for Qemu aarch64 abuild-tar bug (#907)
See also: <https://github.com/postmarketOS/pmbootstrap/issues/546>
2017-11-15 22:28:10 +00:00
clayton craft
15d2dc6f97 [linux-postmarketos-stable] Update to 4.14 (#903)
Note, I have removed the rx51 DRM patch that worked around the boot display issue (#208), this issue should be resolved in this kernel.
2017-11-14 16:13:35 +00:00
clayton craft
de9bacf81e [osk-sdl] Update to 0.51 (#862) 2017-11-12 11:17:30 +00:00
MoreRobustThanYou
c1a92c993c Fix #895: Disable RDP in weston (#898) 2017-11-11 18:17:33 +00:00
Oliver Smith
536da3687b Fix linux-postmarketos-mainline depends (#880)
* Use libressl-dev instead of openssl-dev
* Remove busybox-static-armhf
2017-11-08 20:24:02 +00:00
clayton craft
5304b91935 [linux-postmarketos-stable] Update to 4.13.12 (#883) 2017-11-08 19:40:04 +00:00
Oliver Smith
12b5b1ebec Close #453: Support mesa-dri-virtio in Qemu (#861)
The mesa driver, which ends up in the installation image, needs to be known
before the installation is done (in other words: when running the qemu action,
it is to late as the image has already been generated). That's why one can
choose the Qemu mesa driver in `pmbootstrap init` now:

```
Device [qemu-amd64]:
Which mesa driver do you prefer for your Qemu device? Only select something other
than the default if you are having graphical problems (such as glitches).
Mesa driver (dri-swrast/dri-virtio) [dri-virtio]:
```

It is still possible to select `dri-swrast`, because `dri-virtio` may not work
in all cases, and that way we could easily debug it or experiment with other
mesa drivers (e.g. the "vmware" one, which is supported by mesa and Qemu).

Other changes:
* `pmbootstrap qemu` accepts a `--display` variable now, which passes the value
  directly to `qemu`'s `display` option. It defaults to `sdl,gl=on` (@PureTryOut
  reported that to work best with plasma mobile on his PC). `--display` and
  `--spice` (which is still working) are mutually exclusive.
* Removed obsolete telnet port pass-through: We only use the debug telnet port
  since osk-sdl has been merged.
* Add show-cursor to the Qemu command line, so it shows a cursor in X11
* Refactored the spice code (`command_spice` only returns the spice command,
  because it has all necessary information already) and the spice port can be
  specified on the commandline now (previously it was hardcoded in one place and
  then always looked up from there).
* Start comments with capital letters.
* Keep the log on the screen a bit shorter (e.g. Qemu command is written to the
  "pmbootstrap log" anyway, so there's no need to display it again).
* linux-postmarketos-stable: Adjust kernel configs
x86_64, armhf: enable as modules:
CONFIG_DRM_VIRTIO_GPU, CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_BALLOON
aarch64: all 3 options were already enabled as built-in (no change)
* Set '-vga virtio' for mesa-dri-virtio
2017-11-05 13:48:49 +00:00
drebrez
c33e5d823e Add PMOS_FORCE_PARTITION_RESIZE kernel boot parameter (#874) 2017-11-04 22:54:42 +00:00
Oliver Smith
965ad4f4c7 libsamsung-ipc, linux-postmarketos-mainline: Fix invalid pkgrels (#853)
* libsamsung-ipc, linux-postmarketos-mainline: Fix invalid pkgrels
* Update linux-postmarketos-mainline to 4.14_rc7
2017-11-04 02:13:25 +00:00
clayton craft
d87aed4903 [linux-postmarketos-stable] Update to 4.13.11 (#858) 2017-11-03 18:50:46 +01:00
clayton craft
3579c4086d [linux-postmarketos-stable] Update to 4.13.10 (#847) 2017-11-01 15:56:57 +00:00
Oliver Smith
b786a5a157 pmbootstrap init: Wizard for new port device- and linux-packages (#821)
* pmbootstrap init: Generate new port device- and linux-package
* adds `pmbootstrap aportgen device-*` and
  `pmbootstrap aportgen linux-*`
* ask for confirmation when selecting a non-existing device
* generate the packages directly from init
* refactor aportgen code
* fixed some easy things in the linux- APKBUILD (more to come in
  follow-up PRs!)

Testing:
* Test all questions to the user from pmb.config.init and pmb.aportgen.device
  (except for the timezone question, because we would need to monkeypatch the
  os.path.exists() function, which messes up pytest, so we'd need to refactor
  the timezone function to be more testsuite friendly first)
* Run the device wizard in a testcase a few times and check the output, that
  pmbootstrap.aportgen.device and pmbootstrap.aportgen.linux create by parsing
  the resulting APKBUILDs and deviceinfo and checking its contents.
* Build the generated device package once in the same testcase

Thanks a lot to @drebrez for all the help with this one:
<https://github.com/postmarketOS/pmbootstrap/pull/821>

See also the updated porting guide:
<https://wiki.postmarketos.org/wiki/Porting_to_a_new_device>
2017-10-30 19:56:38 +00:00
Attila Szöllősi
c886f41ead [linux-postmarketos-mainline] Avoid name conflict when downloading patches (#817)
The conflict happens, when we're on rc-1, the old naming only contains the target version, so there will be two file named `postmarketos-linux-mainline-4.15-rc1.patch`: one that updates the kernel from the latest stable, and one empty.
2017-10-24 16:41:33 +00:00
Oliver Smith
a6d320df58 Various small xfce4/Hildon fixes (#792)
* XFCE4/Hildon: Log to syslog, see also:
  <https://github.com/postmarketOS/pmbootstrap/pull/762>
* Fix XFCE4 didn't start in qemu-amd64, because it required
  libEGL.so.1, which is provided by mesa-egl. This is a dependency
  of device-qemu-amd64-x11 now. (It worked for Hildon and Weston,
  because they pull mesa-egl in with other packages.)
2017-10-24 16:16:58 +00:00
Attila Szöllősi
a31d168635 Add linux-postmarketos-mainline aport (#799)
* Rename linux-postmarketos to linux-postmarketos-stable
* Adjust all device-* packages using linux-postmarketos and bump pkgrel
2017-10-23 20:15:32 +00:00