Commit graph

330 commits

Author SHA1 Message Date
zhuowei
a6fdf65446 aports: clean up APKBUILD for unicsy-demo, sdl_net, and chocolate-doom (#664)
* aports: unicsy-demo: pure Python program should have noarch set

Per https://wiki.alpinelinux.org/wiki/APKBUILD_examples:Python#arch,
pure Python programs should be marked as noarch in the APKBUILD instead
of all.

* aports: sdl_net: fix build on aarch64

The version of config.guess and config.sub predate aarch64, so
./configure errors out with instructions to update them.
Add a prepare section in APKBUILD to do this.

* aports: sdl_net+chocolate-doom: pass CHOST and CBUILD to configure

Other Alpine packages pass these options in to aid cross compling; for
example, the template APKBUILD from
https://github.com/alpinelinux/abuild/blob/master/newapkbuild.in#L43
uses them. Add them to chocolate-doom and sdl_net.
2017-10-02 20:47:26 +00:00
clayton craft
08ada9641d Fix #570: postmarketos-base: Start swclock service on boot (#660)
This service will set system time from the mtime of a file written on shutdown.
2017-10-01 00:51:32 +00:00
clayton craft
c30957ca67 Fix #193: Enable console screen blanking (#661)
This enables console screen blanking/powersaving by default. Without it, the screen will stay on indefinitely, killing battery life and/or prolonging charge time. UIs should be able to override this with dpms (e.g. xset). I arbitrarily chose 5 min as the blank time.
2017-09-30 22:41:45 +00:00
Attila Szöllősi
e4fad30e2a android-recovery: Don't extract tar archive in tmpfs (#654) 2017-09-30 21:59:08 +00:00
Attila Szöllősi
41fcf67bc5 postmarketos-base: Write /boot to /etc/fstab (#653)
Also removed fstab entry from nokia-rx51 post-install script.
2017-09-30 21:52:33 +00:00
Pavel Machek
28b49f1dfa Package unicsy_demo (basic hardware demo) (#643) 2017-09-29 16:38:46 +00:00
Oliver Smith
09afa1f853 postmarketos-base: Execute setup-udev, remove mosh from dependencies (#647)
* postmarketos-base: Execute setup-udev, remove mosh from dependencies

* Run setup-udev [0], because that is what `setup-xorg-base` does [1].
It configures more than one OpenRC service and it also messes with the
runlevels. Only after running that, Hildon works (tested in Qemu).

[0]: 2fbea8b8da/main/eudev/setup-udev
[1]: 06300dd483/setup-xorg-base.in (L25)

* Remove `mosh` from `postmarketos-base` dependencies. I don't think anyone
uses it right now, and it's easy to add custom packages in `pmbootstrap init`
nowadays.

* Minor style changes in the `APKBUILD`
* [rx51] Remove udev-trigger service start
2017-09-29 16:10:09 +00:00
Oliver Smith
d0bebe1c3e Fix missing Hildon dependencies (#650) 2017-09-29 16:08:02 +00:00
drebrez
e303ea7cf0 Set framebuffer mode in initramfs for all devices (#652) 2017-09-29 15:22:20 +00:00
Attila Szöllősi
06dc9adf4a Add support for isorec flashing in recovery installer (#609) 2017-09-28 22:05:00 +00:00
clayton craft
19f8a4a944 [linux-postmarketos] Update to 4.13.4 (#646) 2017-09-28 19:32:30 +02:00
clayton craft
f6de66028e [tslib] Update to 1.13 (#642) 2017-09-28 15:28:40 +00:00
montvid
cc69cdfc34 Fix bootloader cmd eaten characters (#644)
* Feed the whacky bootloader that eats 26 characters
https://dflund.se/~triad/krad/nexus7-flo/ proposed a fix for the bootloader and it works.
2017-09-28 15:08:08 +00:00
Oliver Smith
d48f020477 Workaround for #633: increase sleep before pmOS-demos shows up (#638)
A proper fix will be implemented soon, see #633.
2017-09-27 20:48:08 +00:00
zhuowei
0ed89b5621 angler: support Wi-Fi and graphics (#555)
* Package Broadcom Wi-Fi firmware from AOSP

This uses a mirror of AOSP's platform/hardware/broadcom/wlan repo at version
android-8.0.0_r12 (6c8ef5b600cec5d36a54a0276fe8c97b9ab8d6bb).

This is needed as Nexus 6P uses a BCM4358, and the blob available in Alpine's
linux-firmware package is old and vulnerable to Broadpwn. See #513.

* device: angler: enable Wi-Fi and graphics output

Changes:

- Set resolution on bootup

This is copied from the Nexus 5's init script.

- Add Wi-Fi calibration file and change firmware path

This is also based on the Nexus 5's implementation.

- Enable CONFIG_VT and NFS in the kernel

- Explicitly use identity touchscreen calibration

- Rename the touchscreen udev rules

- Enable msm-fb-refresher
2017-09-27 17:41:25 +00:00
clayton craft
0d8260c621 [ofono] add patch submitted upstream (#630) (#635)
This adds a patch I submitted upstream to ofono: https://lists.ofono.org/pipermail/ofono/2017-September/017557.html
2017-09-27 17:20:44 +00:00
clayton craft
4633c69229 [rx51] Update udev rules for proper detection of modem in ofono (#636)
For some reason the ofono rules don't always work for the N900's modem.
This picks out the relevant parts of that rule and seems to successfully
set up the modem device every time now.
2017-09-27 17:18:09 +00:00
Pablo Castellano
6bf7ea3ea8 Qemu support for the QXL driver and SPICE (#481)
* pmb.helpers.run: support running processes in background
* enable QXL driver support in the linux kernel configurations so
that we can also use SPICE to connect to the VM.

QXL is a paravirtual graphics driver with 2D support

The SPICE project aims to provide a complete open source solution for remote
access to virtual machines in a seamless way.

Both DRM_QXL and DRM_BOCHS are enabled as modules.
According to [1], on Linux guests, the qxl and bochs_drm kernel modules
must be loaded in order to gain a decent performance

* qemu: add new option --spice to connect to VM using a SPICE client

If specified, 'pmbootstrap qemu' will look for some SPICE client in the
user's PATH and run qemu using the QXL driver.

Currently supported spice clients are 'spicy' and 'remote-viewer' but
adding support for more clients can be easily done.

qemu with qxl support will run on port 8077/tcp, which doesn't belong to
any well-known service and represents 'PM' in decimal.

References:
[0] https://www.linux-kvm.org/page/SPICE
[1] https://wiki.archlinux.org/index.php/QEMU#qxl
[2] https://wiki.archlinux.org/index.php/QEMU#SPICE
[3] https://github.com/postmarketOS/pmbootstrap/issues/453 (partially fixed)
2017-09-26 20:52:00 +00:00
montvid
07b4cebd06 Move to a stable kernel branch to fully fix freedreno. (#634)
* Enable Weston drm for Freedreno

* update rel and hash

* Change from flo-WIP to flo 4.11 kernel

Fixes freedreno. Runs smoothly without lockups.

* Config for flo 4.11 kernel branch
2017-09-26 22:00:44 +02:00
montvid
4b291dacd0 asus-flo: wifi & freedreno support + new firmware-asus-flo (#627)
* firmware-asus-flo: packaged all flo firmware
* device-asus-flo: depend on firmware-asus-flo package
* default android wifi config
* Add wifi and freedreno support
* change to console=ttyMSM0 - as per https://dflund.se/~triad/krad/nexus7-flo/
* Add current kernel config as it is currently working with wifi.
* Increase pkgrel to account for changes in the kernel config.
2017-09-25 20:39:11 +00:00
clayton craft
174cfcd7eb Enable dbus service by default (#628)
Quite a few things use dbus (plasma, hildon, ofono, connman,
networkmanager, etc) that I think it makes sense to just have this
started by default in pmOS rather than have every device package
implement this on their own.

In case someone shows up with a use-case, where dbus by default
is not desired, please speak up. Possible solutions are in #628.
2017-09-25 20:33:04 +00:00
clayton craft
bb7dceb456 [gtk+2.0-maemo] add missing py-six makedepend (#622) 2017-09-24 18:19:23 +00:00
drebrez
fbc909b7f4 Implement cache for generated splash screens (#620) 2017-09-24 14:24:56 +00:00
clayton craft
fa8b21b53f [maemo] fix packages with broken source links (#623) 2017-09-24 14:05:37 +00:00
Martijn Braam
7abec5849b Deterministic dhcp lease (#619)
* Ensure leased ip is always 172.16.42.2
* Bumped version for postmarketos-mkinitfs
2017-09-23 14:23:38 +00:00
montvid
565cd0bdc1 [asus-flo]: Fix udev rule (Remove \) (#611)
* remove \ because of udev warning

* fix hash for changed udev rules

* device-asus-flo: Increase pkgrel
2017-09-23 01:31:38 +00:00
clayton craft
89e7f54531 [osk-sdl] Update to 0.48 (#612) 2017-09-23 01:12:12 +00:00
clayton craft
8462820994 [sdl2] Update package to prevent installing upstream updates (#613) 2017-09-23 01:10:31 +00:00
clayton craft
c95390d499 [directfb] add gfx init patch and adjust configure options (#614) 2017-09-23 01:09:29 +00:00
clayton craft
91b846db30 Add device-specific configs for osk-sdl (#615) 2017-09-23 01:05:54 +00:00
Martijn Braam
4b67d15535 Update musl from upstream (#617) 2017-09-23 00:48:07 +00:00
montvid
43225855c2 Add Nexus 7 2013 flo support 4.11 kernel (#608)
Nexus 7 2013 flo support with Linaro flo-WIP kernel. Touchscreen, weston, usb internet working.
2017-09-21 22:23:54 +00:00
Luca Weiss
3ecfa09d8e postmarketos-base: Update wiki link (#607) 2017-09-21 19:56:59 +00:00
Luca Weiss
5227409d06 Fairphone 2 support (#602)
* Started with stock kernel config (fairphone-perf_defconfig)
* Enabled DEVTMPFS
* Deactivated MSM_KGSL
* Enabled the serial console
* Enabled USB networking
2017-09-21 17:21:21 +00:00
drebrez
3fc5efe33a [htc-bravo] Reduce kernel size & remove touchscreen calibration (#605)
* [htc-bravo] Reduce kernel size
* [htc-bravo] Remove unnecessary touchscreen calibration
* [htc-bravo] Bump linux-htc-bravo version
2017-09-21 17:13:25 +00:00
clayton craft
a81d06005a [linux-postmarketos] update to 4.13.3 (#606) 2017-09-21 14:06:00 +02:00
clayton craft
82a35c1847 [rx51] Add libinput calibration matrix (#600) 2017-09-20 18:40:50 +00:00
clayton craft
1b35dd595d Improve copy in mkinitfs (#599)
'install' does not properly handle symlinks, it copies the entire file
instead of a symlink to it. This PR uses `cp -a` to preserve symlinks.

For example, with `install`, the files libc.musl-armhf.so.1 and
ld-musl-armhf.so.1 are the same size, despite the fact that in rootfs
libc.musl-armhf.so.1 is actually a symlink to ld-musl-armhf.so.1.

According to @drebrez research, the initramfs size shrunk from 
1 567 930 to 1 168 591.
2017-09-20 18:36:22 +00:00
clayton craft
28595f72ef Close #574: swap file support/encrypted swap on rx51 (#585)
This adds a custom swap file service, which allows specifying a
recommended swap size in the deviceinfo file via
`deviceinfo_swap_size_recommended`. For the N900 this defaults
to 1024 MB now. As the swap file is created in the root partition,
we have encrypted swap now (unless encryption is disabled with
`--no-fde`).
2017-09-20 18:32:19 +00:00
clayton craft
4e138979b8 Adjust luksFormat options to reduce time to open luks device on boot (#430)
This is a workaround for #429, until the iteration count can be
specified directly in cryptsetup.

* Add default iter-time option, and option to override
* set SHA1 default hash for luksFormat, add option to override
* [RX51] load omap-sham in initramfs for HW accel. sha1
2017-09-19 19:46:18 +00:00
Tomas Safarik
3813e58108 set system partition for flashing with heimdall (#596)
* add firmware for samsung-i9100

* add firmware package as dependecy for device package

* fix sha sums

* fix checksums

* APKBUILD fixes

* hopefully correct pkgrel versions

* set kernel config for postmarketos firmware location

* bump pkgrel

* update checksum for linux-samsung-i9100

* fix path for downloading firmware files

* update checksums

* set device system partion for flash to FACTORYFS ( issue#422 )
(please check that I merged master correctly in previous commit)
2017-09-19 01:20:02 +02:00
drebrez
3c988d76af Add LG G Watch (dory) support (#595)
* Add LG G Watch (dory) support

* Use github.com mirror instead of googlesource.com to have fixed checksum

* Fix kernel compilation and remove unnecessary initfs-hook for framebuffer settings
2017-09-19 01:15:04 +02:00
Attila Szöllősi
8e3ca34988 Close #554: kernel config checking (#589)
* Check kernel config
* Allow specifying multiple kernel packages, and also no packages
  which defaults to scanning all kernel configs (it is super fast
  anyway)
* Add the check to Travis CI
* Adjust existing kernel configs, so they pass the kconfig_check.
(We've had to put in a lot of defaults in the aarch64
linux-postmarketos configs, that's why the diff is a bit unclean.)
* Increase modified kernel pkgrels
2017-09-18 21:36:54 +00:00
clayton craft
1bef78c6df Add msm-fb-refresher package and initfs config (#587)
* Add msm-fb-refresher package and initfs config
* Bump version for pmos-mkinitfs
* Create msm-fb-refresher openrc service
* kill refresher when initfs is done
2017-09-18 19:17:30 +00:00
Martijn Braam
4890b9a935 Added base offset to hammerhead deviceinfo (#556) 2017-09-18 18:46:29 +00:00
clayton craft
d842513f5c [postmarketos-base] Fix typo in sed statement (#586) 2017-09-16 00:01:25 +00:00
clayton craft
e473a6cf3f Fix wpa_supplicant configuration (#578) 2017-09-15 17:44:50 +00:00
clayton craft
a2cb1b4108 [linux-postmarketos] Update to 4.13.2 (#582) 2017-09-15 15:44:14 +00:00
Jean Lucas
ca88005b31 bacon: Get display output & touchscreen working (#583)
- Revert to LineageOS 14.1 kernel
- Enable virtual terminal
- Update touchscreen settings

At the moment, display output works, but only when the following is run:
while [ ! ]; do cat /sys/class/graphics/fb0/modes >
/sys/class/graphics/fb0/mode; done.
2017-09-15 15:31:17 +00:00
Yuval Adam
ebb7398c09 Fix build error in device-t2m-flame (#580) 2017-09-14 18:52:32 +00:00