Commit Graph

566 Commits

Author SHA1 Message Date
clayton craft d45c7d2d84 Add armv7l (armhf) as supported native arch. (#682) 2017-10-02 22:49:40 +00:00
clayton craft 2587e430ed Fix console blanking (#676)
So I was wrong.. /etc/issue needs to contain the escape sequence output
by setterm,  not the actual call to setterm itself. My previous testing
of this was faulty, which led me to believe the previous implementation
of this would work.
2017-10-02 22:41:19 +00:00
drebrez ce2fd6262e Fix postmarketos-splash version detection during generation of splash screens (#668) 2017-10-02 22:39:09 +00:00
drebrez 535dba0964 [huawei-y530] Add dev_touchscreen variable in deviceinfo (#667) 2017-10-02 22:37:38 +00:00
clayton craft 4204a86992 Fix #673: Only load loop module if it is not already loaded in the kernel (#675)
This checks for /sys/modules/loop before modprobing the loop module. My
understanding is that if this module is built into the kernel, that this
directory is still created. For a kernel without loop built in,
losetup.py will try to load the module using modprobe.
2017-10-02 21:53:01 +00:00
zhuowei ec77bdb1d3 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 dbb1ce9345 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 9a8ed17f60 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 ec3bc95098 android-recovery: Don't extract tar archive in tmpfs (#654) 2017-09-30 21:59:08 +00:00
Attila Szöllősi 061bf6aa73 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
Attila Szöllősi 8017a3b452 Fix typo in pmb/install/install.py (#658) 2017-09-30 20:01:20 +00:00
Oliver Smith cfbf06ee71 CONTRIBUTING.md: Mention that we squash PRs (#651) 2017-09-29 21:23:46 +00:00
Pavel Machek ae1e52706a Package unicsy_demo (basic hardware demo) (#643) 2017-09-29 16:38:46 +00:00
Oliver Smith 26204891a8 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 8242f203e4 Fix missing Hildon dependencies (#650) 2017-09-29 16:08:02 +00:00
drebrez 23263bf92a Set framebuffer mode in initramfs for all devices (#652) 2017-09-29 15:22:20 +00:00
Attila Szöllősi 3cbd0d19c2 Add support for isorec flashing in recovery installer (#609) 2017-09-28 22:05:00 +00:00
clayton craft 9c4c1e9575 [linux-postmarketos] Update to 4.13.4 (#646) 2017-09-28 19:32:30 +02:00
clayton craft 4415074728 [tslib] Update to 1.13 (#642) 2017-09-28 15:28:40 +00:00
montvid e49fd392b2 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 d32f0826c6 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 7832b0210b 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 5031ff48bc [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 f572554c74 [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 c855ee095b 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 d48ca092b4 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
Oliver Smith e60eee7dfa Fix #151: git ambiguous argument error (#531)
We check if origin/HEAD is present. In case that reference is
missing, we show a meaningful error message now, with an explanation
on how to add it. Also moved find_out_of_sync_files_tracked() to
pmb.helpers.git
2017-09-25 22:05:29 +00:00
montvid 1416ce241d 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 8272ba2d52 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 5671609d07 [gtk+2.0-maemo] add missing py-six makedepend (#622) 2017-09-24 18:19:23 +00:00
drebrez c2028e3ae7 Implement cache for generated splash screens (#620) 2017-09-24 14:24:56 +00:00
clayton craft 1939e929c2 [maemo] fix packages with broken source links (#623) 2017-09-24 14:05:37 +00:00
clayton craft d98cb50347 Improve message for SSH key copying during install (#624)
This only displays the ssh key note if no keys are found, since it's
confusing if a user has 1 key but not the other. In that case, the
message would be displayed despite copying one of the keys over.
2017-09-24 14:02:17 +00:00
Martijn Braam df0566538e 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 3c4e709657 [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 eab6ca4e32 [osk-sdl] Update to 0.48 (#612) 2017-09-23 01:12:12 +00:00
clayton craft 4e3054a852 [sdl2] Update package to prevent installing upstream updates (#613) 2017-09-23 01:10:31 +00:00
clayton craft 6e402c4d36 [directfb] add gfx init patch and adjust configure options (#614) 2017-09-23 01:09:29 +00:00
clayton craft e0b673d838 Add device-specific configs for osk-sdl (#615) 2017-09-23 01:05:54 +00:00
Martijn Braam 84ef2d18e3 Update musl from upstream (#617) 2017-09-23 00:48:07 +00:00
montvid 65d57e279b 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 b7b0011195 postmarketos-base: Update wiki link (#607) 2017-09-21 19:56:59 +00:00
Luca Weiss 3667517c60 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 98f3b09194 [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
Jean Lucas a8cdb455f3 Support for Ed25519 SSH keys (#571) 2017-09-21 17:11:20 +00:00
clayton craft f2200ecdb9 [linux-postmarketos] update to 4.13.3 (#606) 2017-09-21 14:06:00 +02:00
clayton craft 20920aebc2 [rx51] Add libinput calibration matrix (#600) 2017-09-20 18:40:50 +00:00
clayton craft 0f9b45dbd8 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 220cd7b442 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
Oliver Smith bf6f5cb884 Fix confusing error message for invalid makedepends (#540)
This happens currently, when a makedepend is invalid:
ERROR: UnboundLocalError: local variable 'pkgname' referenced before assignment

With this patch, you get the meaning full error that should have been printed instead:
ERROR: Could not find package 'invalid-package' in the aports folder and could not find it in any APKINDEX
2017-09-19 19:51:43 +00:00