Commit graph

138 commits

Author SHA1 Message Date
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
drebrez
95b694bda3 Implement cache for initramfs-extra (#796)
Partially implements:
<https://github.com/postmarketOS/pmbootstrap/issues/411>
2017-10-22 21:00:39 +00:00
clayton craft
9b4807d874 [linux-postmarketos] Update to 4.13.9 (#802) 2017-10-21 20:17:47 +00:00
clayton craft
7bfd1a8788 [ofono] delete, in favor of Alpine upstream (#803)
Alpine accepted the 1) update to 1.21 and 2) the patch to fix initialization on the n900 (which will be in ofono 1.22)
2017-10-21 20:17:03 +00:00
clayton craft
842db355c1 Fix #774: Don't create device-mapper mapping without subpartitions (#775)
This causes initramfs to skip calling 'kpartx' when pmOS has been
installed on an external disk (e.g. sdcard). Fixes mounting pmOS_boot
by label (#774).
2017-10-20 17:20:40 +00:00
clayton craft
fdff56f4ec Fix #499: Don't generate weston.ini from the deviceinfo anymore (#739)
@drebrez deserves much credit for this one for all the testing,
bisecting and for fixing everything. Thank you very much!
---
* devices which need a custom weston.ini ship it with a install_if
  subpackage, so it only gets installed when weston is installed. This
  sounds complicated, but is actually pretty clean in the APKBUILD.
* postmarketos-ui-weston: has a weston.ini.default, which enables
  xwayland and uses fbdev as backend (because that's what most
  devices use!). It defaults to the weston.ini.default if there is no
  weston.ini (as installed by the device package).
* changed spaces to tabs for consistency, general minor refactoring of
  device-APKBUILDs
2017-10-20 00:07:00 +00:00
clayton craft
f996de4076 [linux-postmarketos] Update to 4.13.8 (#794) 2017-10-19 22:31:28 +00:00
clayton craft
a6c9c353ff Install dbus by default (#783)
Since we are starting it on boot, and wpa_supplicant is being run in 'dbus mode', it makes sense to have it installed by default.
2017-10-18 19:02:28 +00:00
Attila Szöllősi
9ba8b8fe2c [recovery-installer] Don't fail when reflashing after fail (#786) 2017-10-18 18:58:58 +00:00
Martijn Braam
f898709b68 Fix #790: pkgdesc for postmarketos-ui-xfce4 said it was GTK+3 already (#791) 2017-10-18 18:57:08 +00:00
Oliver Smith
ec65cb9968 Weston: log to syslog instead of /tmp/weston.log (#762)
Placing such files in /tmp/ is an unnecessary attack vector, as
@pavelmachek showed. All udev rules, which mentioned /tmp/weston.log
do not contain any path anymore.

Logs can be read with:
logread -f /var/log/messages | grep weston

See also: <https://wiki.alpinelinux.org/wiki/Syslog>
2017-10-17 20:38:47 +00:00
clayton craft
89f929565d [linux-postmarketos] Enable support for namespaces (#759)
See #693
2017-10-17 16:27:36 +00:00
drebrez
1ff598acd8 [huawei-y530] Add firmware-huawei-y530 package with wifi required files (#781) 2017-10-17 16:25:38 +00:00
Oliver Smith
6c07834748 pmbootstrap init: Show pkgdesc for each postmarketos-ui package (#763)
This way we could give the user a rough idea what will be installed,
and also use this to display a short warning about long compile times
(e.g. until the plasma mobile stuff is upstreamed).
2017-10-16 20:01:21 +00:00
Attila Szöllősi
08c9e0caaa Package firmware-sony-amami (wifi firmware) and wcnss-wlan (#770) 2017-10-15 16:32:12 +00:00
Attila Szöllősi
43a87e5c5c Add kernel updater script (#625) 2017-10-14 23:17:49 +00:00
Oliver Smith
8d927d43bb postmarketos-base-x11: Less dependencies (#720) 2017-10-14 23:14:19 +00:00
clayton craft
c7c2b2d02a Add osk-sdl as default luks unlock mechanism on boot (#476)
More information: <https://postmarketos.org/osk-port>
2017-10-14 18:10:12 +00:00
clayton craft
733823e198 [linux-postmarketos] Update to 4.13.7 (#772) 2017-10-14 17:01:39 +00:00
drebrez
50d682901e [android-recovery-zip] Add missing apk keys (#747) 2017-10-14 15:41:12 +00:00
clayton craft
fe9f90a820 [osk-sdl] Update to 0.50 (#764) 2017-10-14 09:50:09 +00:00
clayton craft
1d702fd28f Fix #588: Add chrony ntp client & timezone config (#674)
This adds chrony as the ntp client (starting on boot), and also adds a
prompt in the init step for configuring the timezone.
2017-10-13 19:18:24 +00:00
clayton craft
c4c14f006a [linux-postmarketos] Update to 4.13.6 (#752) 2017-10-12 20:14:15 +00:00
Pablo Castellano
114fdc0a68 Close #709: Improve user creation (#725)
* Allow to specify a custom username in "pmbootstrap init"
* Build chroots have "pmos" instead of "user" as username now
* Installation user UID is 1000 now (as in all other Linux distributions)
* Adjust autologins
* postmarketos-base: enable wheel group for sudo, removed previous sudoers file
* Implement safe upgrade path:
We save the version of the work folder format now, in $WORK/version.
When this file does not exist, it defaults to 0.
In case it does not match the currently required version
(pmb.config.work_version), then ask the user if it should
automatically be upgraded.
2017-10-12 20:08:10 +00:00
Pavel Machek
20f0418934 Update Unicsy-demo to v0.4 (#743) 2017-10-11 15:18:53 +00:00
Oliver Smith
d1ef0ded0e Fix #731: Create symlinks for noarch-subpackages (#740)
* apkindex:
  * Also parse the architecture field
* symlink_noarch_package:
  * Renamed to symlink_noarch_packages
  * Always work on all packages (so we don't need to guess which
    subpackages have been generated after a certain build)
  * Get invoked when running 'pmbootstrap index'
  * Use 'apk index' to generate one index, where the architecture
    does not get rewritten (abuild does that by default, due to
    Alpine's repos not having a 'noarch' folder and diverging from
    that doesn't make things easier for us). That goes super fast,
    and then we know which packages are noarch packages and can
    create the symlinks.
* Made output less verbose:
  * Use -q for 'apk index' when calling it directly (when it gets
    called by abuild we can't control that)
  * Output that the APKINDEXes get reindexed only to the 'pmbootstrap
    log'.
2017-10-11 15:11:25 +00:00
Luca Weiss
a83aa92d5a Fix weston arguments (#736)
See "man 1 weston". Fixes dc28cbf.
2017-10-10 19:40:20 +00:00
Oliver Smith
e06ca9853d postmarketos-ui-xfce4: depend on xorg-server (#721)
* postmarketos-ui-xfce4: depend on xorg-server
* Source archive must not contain pkgrel
2017-10-10 19:39:07 +00:00
clayton craft
caf386d8ec Set swclock to use recent date/time on first boot (#723) 2017-10-09 19:10:28 +00:00
zhuowei
7c01831c90 aports: add kmscube for testing kernel modesetting (#724)
kmscube is a command line utility for testing KMS-capable GPU drivers,
which may be useful for validating DRM rendering and OpenGL ES acceleration
capabilities required by accelerated Weston/KWin on supported devices.
2017-10-09 19:00:35 +00:00
drebrez
d4df6dc96b Add mkfs.ext2 and mkfs.ext4 binaries to the android-recovery-installer (#684) 2017-10-07 18:36:23 +00:00
Pavel Machek
4b3f15b63e Add postmarketos-ui-xfce4 with touchscreen-optimized config (#695) 2017-10-07 16:27:42 +00:00
drebrez
d82e8f7199 Fix #199: Run weston with user instead of root (#707) 2017-10-07 16:14:49 +00:00
Oliver Smith
4daffc77ce Fix #710: linux-postmarketos: use "olddefconfig" (#712) 2017-10-06 18:45:47 +00:00
Oliver Smith
de80b6bdb5 Package postmarketos-ui-hildon (#649) 2017-10-06 18:34:51 +00:00
Oliver Smith
8d2a1a417d Automatically install X11 and mesa dependencies (using install_if) (#696)
* device-qemu-amd64: subpackages for x11 and mesa
* postmarketos-base: add x11 subpackage
2017-10-06 18:19:47 +00:00
clayton craft
014a93f680 [ofono] update to 1.21 (#705)
This release (1.21) includes 3 patches upstreamed earlier. The 4th patch didn't make the cutoff, but has just been merged so it'll be in 1.22
2017-10-05 20:28:46 +00:00
clayton craft
80539f751c [linux-postmarketos] Update to 4.13.5 (#704) 2017-10-05 20:23:00 +00:00