Commit graph

1595 commits

Author SHA1 Message Date
steamport
5daf8e2648 device/linux-amazon-thor: modernize APKBUILD (#1553) 2018-06-11 21:43:33 +00:00
Mayeul Cantan
4451373be6 New device: samsung-kylevess (Galaxy Trend Lite, s7390g) (#1541) 2018-06-10 14:20:36 +00:00
steamport
4257ea2096 device/linux-amazon-thor: use phoenix kernel (#1538) 2018-06-09 15:03:28 +00:00
steamport
aff6137268 menuconfig: add gconfig/xconfig support (#1509)
* change "pmbootstrap kconfig_check" to "pmbootstrap kconfig check"
* change "pmbootstrap menuconfig" to "pmbootstrap kconfig edit [-x|-g]"
  (with legacy alias, because the first syntax was referenced to a lot)
* enable X11 interfaces: -x: xconfig, -g: gconfig
* new function to copy the xauthority file:
  pmb.chroot.other.copy_xauthority()
* remove menufconfig() function from the kernel template and all kernel
  aports ([skip ci] because it would rebuild all kernels and run out of
  time). Alpine has dropped this as well, and it wouldn't work with the
  new code anyway.
2018-06-09 06:52:24 +00:00
Ricardo Rodrigues
317db382fc asus-grouper: fastboot max size is 650 (#1535) 2018-06-04 19:09:41 +00:00
George Hopkins
384462571b htc-ace: fix WiFi firmware (#1531) 2018-06-01 19:26:37 +00:00
yangxuan8282
74586c0ead firmware/firmware-pi-bluetooth: firmware for zero/zero w, 3b/3b+ (#1521) 2018-06-01 19:25:06 +00:00
Daniele Debernardi
047439a66f Add Raspberry Pi device (#1501) 2018-05-29 19:33:40 +00:00
Decatf
5f048bd53c linux-samsung-p4wifi: new config based on mainline tegra_defconfig (#1515)
* linux-samsung-p4wifi: Use libressl-dev
* linux-samsung-p4wifi: Update to kernel based on mainline tegra_defconfig

Previously it was based on the config from a mainline-ish kernel for
Android. The remaining Android specific patches have been dropped.
It is now mainline with out-of-tree drivers and corresponding hardware
specific patches/fixes/hacks.
2018-05-28 21:44:56 +00:00
Klaus
77f9876a61 samsung-gts210vewifi: make touchscreen work (#1516) 2018-05-28 21:13:08 +00:00
Sicelo
d486aae01c device/device-nokia-n900: i3 config tweaks (#1470)
* Add wrapper for i3status for better battery status reporting on N900/bq27200
* New hotkeys "asdfg" to switch workspaces
2018-05-20 13:52:04 +00:00
Bhushan Shah
f57b1704e9 lg-hammerhead: enable ofono by default on hammerhead (#1485)
- Depend on ofono from device-lg-hammerhead
- From postinstall script of device-lg-hammerhead enable ofono by
  default
2018-05-16 23:13:20 +02:00
Bhushan Shah
5a49f4db09 lg-hammerhead: add support for the modem (#1485)
- depend on the firmware-lg-hammerhead-modem and
  firmware-lg-hammerhead-adsp
- depend on the modem-qcom-msm-mainline-common

Currently adsp firmware is not used actually given upstream kernel
doesn't have support for adsp/sound subsystem. But it will be used
eventually.
2018-05-16 23:13:01 +02:00
Klaus
c89e5ff737 new device: gts210vewifi (Samsung Galaxy Tab S2 9.7 Wifi) (#1493)
Touch screen does not work yet, see the device page for details:
https://wiki.postmarketos.org/wiki/Samsung_Galaxy_Tab_S2_9.7_Wifi_(samsung-gts210vewifi)
2018-05-14 21:16:32 +00: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
Filip Matijević
948a46c3c1 device/linux-nokia-n9: update kernel to v4.17-rc4 (#1486) 2018-05-12 18:31:44 +00:00
george99g
49756113c3 device: add support for the samsung tab 3 7.0 (#1484) 2018-05-12 18:12:40 +00:00
Joey Hewitt
0272a7de51 ofono QMI: mainline kernel support (#1381)
Add modem-qcom-msm-downstream-common package that pulls in the
dependencies.

qcom_rmtfs now has udev rules to find the storage partitions. My hope
is they can be written flexibly enough to cover all devices and kernel
flavors.
2018-05-10 21:28:51 +00:00
george99g
a4966a41d1 Add support for the Samsung Galaxy S5 Mini (kminilte) (#1467) 2018-05-05 20:29:02 +00:00
Callum A. D. Thomson
15ba1bfb91 Samsung-i8190 wifi now working (#1440)
Guide for connecting to wlan is on the wiki page for the device, wifi
chip is BCM4334. Wlan interfaces are wlan0 and p2p0. Connection seems
stable, was able to install some packages.
2018-05-05 19:44:34 +00:00
Daniele Debernardi
38102885f5 [ui-weston] Set postmarketos artwork as default wallpaper (#1466) 2018-05-05 14:27:13 +00:00
Martijn Braam
6e75a19cc1 Hammerhead cleanup (#1460)
* aports/device: device-lg-hammerhead: Removed weston workaround
* aports/device: device-lg-hammerhead: Changed console output to ttyMSM0 for mainline
* aports/device: device-lg-hammerhead: Enabled xwayland for weston
2018-05-03 16:22:30 +02:00
Craig Tatlor
58f51f009a aports/device: add support for the sony xperia z2 (sirius) 2018-05-02 22:53:49 +02:00
Nikolay
12f0b3ce80 Add initial device support for Xiaomi Redmi Note 4 (xiaomi-mido) (#1415)
* Add initial device support for Xiaomi Redmi Note 4 (xiaomi-mido)

* Update APKBUILD

* Update APKBUILD

* Wifi support for Xiaomi Redmi Note 4

* Update APKBUILD

* Download firmware from different repo for Xiaomi Redmi Note 4

* Split up cat line
2018-04-25 11:40:16 +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
j0ki
eda9b90f02 samsung-i9195: WiFi support (#1324)
* firmware-samsung-i9195: new wlan subpackage
* samsung-i9195: add wlan firmware to nonfree-firmware dependencies
* firmware-samsung-i9195: change pkgver to sequential numbering.
this breaks package management. be careful when updating this package.
the old version was `201707.1`, which is higher than `1.1.0`.
2018-04-23 20:43:46 +00:00
Jacob Juric
fae7e7a3df Initial support for Motorola Moto G4 Play (motorola-harpia) (#1437)
Currently, Weston boots with a working touch interface, and USB networking.
2018-04-22 21:12:48 +00:00
Callum A. D. Thomson
ed35fbc94d Device samsung i8190 (Galaxy SIII mini) (#1428)
Working: Display, Touch, USB networking, FDE
2018-04-21 14:55:39 +00:00
alive4ever
844ef18c0c xiaomi-armani: load wlan module on default runlevel
Previous post install action results in loading wlan module during
sysinit. This is not possible since wlan device is only exposed after
wcnss-wlan service. This also delays ssh startup for approximately 3
minutes.

Loading wlan module should only be done on default runlevel, after
wcnss-wlan service has been started.

Also add a reference fb.modes file, although directfb applications still
doesn't work and cause the framebuffer driver to crash.
2018-04-21 01:17:51 +02:00
Bhushan Shah
2928b2ecbc Fix wireless on hammerhead after mainline move (#1430)
- Ship the wifi calibration data where upstream driver expects it
- Ship modules-load.conf to load wifi driver automatically

Fixes #1426
2018-04-20 17:21:22 +02:00
Bhushan Shah
5d56b2855d Remove the linux-lg-hammerhead
The King is dead, long live the King!
2018-04-19 20:22:09 +02:00
Bhushan Shah
8a158f6fe8 switch the lg-hammerhead to linux-postmarketos-qcom
- Currently just graphics along with weston tested
- Depend on firmware-adreno from device-lg-hammerhead
- Reduce dep of linux-firmware
- Just pull qcom, bracm and adreno firmware
2018-04-19 20:22:09 +02:00
Sicelo
9a80884957 Less Firmware Dependencies for N900 (#1414) [skip ci] 2018-04-15 21:33:41 +00:00
fjmax
5d5071573e Initial support for motorola-athene (#1412)
Working: USB network, display
Known not working: "pmbootstrap flash kernel" (kernel size too big)
2018-04-15 18:15:34 +00:00
Mayeul Cantan
69fdf24589 Add initial device support for Sony Xperia T3 (sony-seagull) (#1389) 2018-04-13 18:04:13 +00:00
Nick Boone
9ff62bc5da Initial Work for HTC One M8 Port (#1392)
* Progress can be followed in #1206
* Kernel boots with device tree from LineageOS and can
  be installed by android recovery zip
* Networking comes up at boot but there's not display yet
2018-04-09 22:11:32 +00:00
Lionel Duboeuf
26d23c674d update oneplus2 kernel (#1399) 2018-04-06 18:37:23 +00:00
Alexandroid99
fc18a8cf75 New device: htc-flounder (#1309) 2018-04-04 00:27:11 +00: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
Decatf
0a5bbce93c Update linux-samsung-p4wifi to kernel 4.16 (#1386)
* Specify a device tree binary file for p4wifi kernel
Previously the p4wifi kernel was using Android patches which append the
dtb to zImage in the kernel makefile.

Now follow mainline kernel convention of leaving the zImage and dtb
separate. Follow postmarketOS convention of specifying dtb file in
deviceinfo.
* Use linux-postmarketos-mainline APKBUILD build functions for p4wifi
* Update linux-samsung-p4wifi to kernel 4.16
- Use mainline broadcom bluetooth hci driver
- Use mainline atmel_mxt_ts driver
- Use mainline stmpe811 mfd driver and add stmpe811 ADC block
2018-04-03 23:29:11 +00:00
Aerotinge
e024767d05 New device: hTC Desire 816 (htc-a5ul) (#1378)
Signed-off-by: Aerotinge <wang.wander@gmail.com>
2018-03-30 19:28:45 +00:00
Aerotinge
d25edc898b New device: hTC Incredible S (htc-vivo) (#1365) 2018-03-30 00:05:41 +00:00
Lionel Duboeuf
5c65c3e95c New device: oneplus oneplus2 (#1366)
Based on work by @NotKit, thanks!
2018-03-28 21:10:12 +00:00
racer123
278dfcbbe8 Add support for GT-S756x (kylessopen, Galaxy Trend/S Duos/Ace II x) (#1361) 2018-03-25 19:00:40 +00:00
cybermonkey
8fe97c5840 New device: Xiaomi Redmi 4X (xiaomi-santoni) (#1346) 2018-03-20 18:46:01 +00:00
NotKit
12ebd049ff Motorola Droid 4 (maserati) (#1039)
Note about PMOS_NO_SAFESTRAP kernel cmdline:
This can be used to forcefully skip SafeStrap partition mount in device
initramfs hook, for example when booting with droid4-kexecboot on device with
SafeStrap configured as well.
2018-03-16 20:26:20 +00:00
alive4ever
6f34220b3a linux-xiaomi-armani: disable kgsl 3d driver (#1334)
The kgsl 3d driver causes the device to boot loop, so disable this for
now.

The device boots ok after removing the kgsl driver, although continuing
boot from debug-shell via `pmos_continue_boot` does not work (seems to
be a bug in msm_fb driver). So, one has to reflash the boot partition
generated with no intfs debug shell to enjoy this improvement.
2018-03-14 21:15:06 +00:00
Decatf
7a0cfe6da4 samsung-p4wifi: Load wifi modules, add audio output, remove touch screen calibration (#1328)
* [samsung-p4wifi] Include modules in kernel package
* [samsung-p4wifi] Load wifi modules at boot
* [samsung-p4wifi] Use mainline wm8994 sound driver
* [samsung-p4wifi] Add ALSA UCM config
Generated from xml2ucm tool.
* [samsung-p4wifi] Add headphone jack detect udev rules
* [samsung-p4wifi] Remove touchscreen calibration
It is not a resistive touchscreen. The default calibration works.
2018-03-13 19:39:07 +00:00
Oliver Smith
0acf0c9831 device-zte-kis3: Fix sdcard installation
There was a space at the end of the line, which the deviceinfo
parser couldn't handle. Fixes #1325.
2018-03-12 21:17:32 +01: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
pikpok
61ad82401b peregrine: framebuffer patch and xorg config (#1318) 2018-03-10 22:29:56 +00:00
Joey Hewitt
83e60ee431 i9195: add touchscreen to deviceinfo (#1313) 2018-03-10 13:59:25 +00:00
Ethan R. Jones
65e755225d Add ZTE Kis3 / ZTE Open C (#1311) 2018-03-10 13:52:09 +00:00
Daniele Debernardi
2054a4ff14 [nokia-n900] Add swiss german keyboard layout (#1310) 2018-03-10 13:08:33 +00:00
Daniele Debernardi
d3b439ae2d deviceinfo: remove external_disk_install and external_disk, use external_storage instead (#1301)
* deviceinfo: remove external_disk_install and external_disk, use external_storage instead
* Complain when external_disk* is used
2018-03-07 22:35:02 +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
Decatf
fcdba1bd8a New device: Samsung Galaxy Tab 10.1 (p4wifi) (#1279) 2018-03-05 20:55:05 +00:00
Filip Matijević
ed03333008 Fix Nokia N9 build and update kernel (#1281)
* Remove unneeded dtb entry from deviceinfo
* Update Nokia N9 to kernel v4.16-rc3
2018-03-03 11:01:35 +00:00
Oliver Smith
b8129fe127 Make nonfree depends optional part 2: device pkgs (#1268)
* Add nonfree_firmware subpackage to all devices, that depend on
  nonfree firmware.
* Some packages were depending on `linux-firmware`, but without having
  Wifi working. Removed that dependency as it was probably added by
  accident. If it was really necessary, chosing the appropriate
  split linux-firmware package (e.g. linux-firmware-brcm) is better
  anyway (that has been changed recently in Alpine and is possible
  now).
* Add a test case that makes sure we don't have firmware depends
  without subpackages in device aports anymore.
2018-02-26 22:11:44 +00:00
Luca Weiss
1c678fa3c5 Add nonfree-firmware subpackage for fp2 (#1261)
Also removes linux-firmware from device package as it
was probably never used.
2018-02-26 20:53:22 +00:00
pikpok
186b3ce912 New device: Moto G 4G (2013) (#1264) 2018-02-26 20:26:47 +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
Pierre Rudloff
934c5c2aa5 infocus-flatfish: Correct framebuffer mode (#1262) 2018-02-25 17:47:04 +00:00
Joey Hewitt
e802723505 samsung-i9195: fix kernel config (#1260)
It lacked some hardware config, such as the USB switch.
With this change, I was able to SSH over the USB network.

I based this off of LineageOS 14.1's config file from its
build root. I think we were missing the secondary config
file
(TARGET_KERNEL_VARIANT_CONFIG := msm8930_serrano_eur_lte_defconfig
in BoardConfig.mk).
2018-02-25 17:32:35 +00:00
Bart Ribbers
1c08fcf46d New device (Jolla Phone) (#1245) 2018-02-24 18:46:54 +00:00
MoreRobustThanYou
bfdda7a6ab Patch amazon-thor's kernel to properly set the RGB mode (#1252) 2018-02-24 08:25:32 +00:00
Pierre Rudloff
5ef2c055a2 New device: infocus-flatfish (#1251)
It boots and display/touchscreen partially work
(the framebuffer only fills a part of the screen).
2018-02-24 08:17:38 +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
Pierre Rudloff
a0fa6ebe88 gp-peak: Set deviceinfo_flash_fastboot_max_size (#1244) 2018-02-21 20:39:59 +00:00
Bart Ribbers
31ac94a4fe New device: Nexus 5X (LG Bullhead) (#1222) 2018-02-20 20:24:45 +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
d36982c01f linux-nokia-n9: update patch checksum 2018-02-19 21:04:52 +01: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
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
Pierre Rudloff
3d182a6f07 New gp-peak device (Geeksphone Peak) (#1214)
It boots and SSH works but the screen stays black.
2018-02-12 20:03:35 +00:00
Michael Hamann
1622e2b075 New device: Samsung Galaxy Note 8.0 (WiFi) n5110 (#1219)
This port includes:
* Weston including touch and WiFi (using e.g. firmware-samsung-i9305) works.
* Touchscreen calibration for osk-sdl
* Sound configuration
* Udev rules for touch and pen, pen works!
2018-02-12 19:20:49 +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
12487a1efa Initial porting effort to Xiaomi Redmi 1S (armani) (#1204)
The device is Xiaomi Redmi 1S, based on MSM8296 platform, with Qualcomm
Snapdragon 400.  The kernel is from lineageOS (3.4.0). Some additional patches
are needed for successful compilation. The screen dimension is 720x1280.

The touchscreen device name is ft5x06_i2c. Use this name for udev
instead of hardcoded device path. Also add a workaround for red
screen weston by setting weston_pixman to 2
The screen doesn't refresh. Enabling msm-fb-refresher as suggested.

Add udev rule to indicate whether the device is in charging state.
Green led indicates that the device is charging, whereas red light
indicates that the device is discharging.

For prima wlan module to work, an initialization procedure is needed (
echo 1 > /dev/wcnss_wlan ), before loading the prima wlan module
(wlan.ko). Also build the prima wlan as module. 

Xiaomi Redmi 1S is using pronto wlan module, which needs some firmware
to run. Add the required wifi firmware to enable the wifi interface.

Add an openrc service to load wlan module after wcnss_service is
initialized.
2018-02-05 19:58:08 +00:00
ashirviskas
d7a22e3636 [nextbit-robin] Added msm-fb-refresher so display is now working properly (#1197) 2018-02-03 12:00:52 +00:00
Emil Lauridsen
0fbe7ee76c Basic Xperia Z3 Tablet Compact support (#1200) 2018-02-03 11:34:51 +00:00
Pavel Machek
39883062ed gps-nokia-n900: Package initial version (#1198) 2018-02-03 11:19:07 +00:00
Daniele Debernardi
3237f58244 Add device Samsung Galaxy S5 (samsung-klte) (#1163) 2018-02-02 19:59:14 +00:00
Pavel Machek
d96d44b90e N900: Attempt to fix touchscreen being upside-down (#1183) 2018-02-01 21:47:12 +00:00
Peter Mann
301f732c5c Add initial support for Zenfone 5 (t00f/t00j) (#1176)
Current status:
  - flashing only manually (intel phones have different bootimg format)
  - usb networking works
  - xorg works using fbdev
  - packages needed for wayland are not available for x86
  - touch works in xorg and osk-sdl
2018-01-29 20:52:20 +00:00
Pavel Machek
d931b61091 Nokia N900: add right keymap for X11. (#1177)
Fixes #991.
2018-01-29 19:33:32 +00:00
ashirviskas
4f8e3489e9 Nextbit Robin booting. SSH over USB working (#1145) 2018-01-27 14:52:34 +00:00
Alfie Day
48c4deaf16 Enable xwayland on t2m-flame (#1168)
postmarketos-demos runs fine with xwayland enabled
2018-01-25 18:12:45 +00:00
Ryan Murthick
989af693b7 Add initial support for the Moto G 2013 (falcon) (#1165)
Currently working:
 - flashing both kernel and system
 - boots into weston with touch support
 - can also ssh in via usb
2018-01-24 23:52:27 +00:00
Vadim Rutkovsky
fdec907384 asus-flo: enable namespaces support (#1152)
Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
2018-01-23 00:43:05 +00:00
Pavel Machek
fcb508a3e9 Rename Nokia rx51->n900 and rm-696->n9 (#1146)
Closes #1143.
2018-01-21 15:09:37 +00:00
Martijn Braam
417b673286 linux-samsung-s6500d: Fixed kernel version number and upstream url (#1142) 2018-01-20 17:42:42 +00:00
Bradley Gamble
c0ba30c7e6 Google Nexus 10: Initial Support (#1138)
Uses watchdog-kick dependency to stop periodic (30s) reboots.
2018-01-20 00:50:14 +00:00
Chinmaya Krishnan Mahesh
61bf12bc88 (motorola-potter) Add display support (#1129)
using msm-fb-refresher
2018-01-17 17:57:24 +00:00
Chinmaya Krishnan Mahesh
a84393aa6d Initial support for Moto G5 Plus (potter) (#1126) 2018-01-16 20:55:23 +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
Eric Hosmer
e100b18aca motorola-shamu: Fix black screen after splash (#1112) 2018-01-12 22:01:55 +00:00
Daniele Debernardi
0b9acf52a4 [samsung-i9070] Add proper fix for framebuffer (#1106)
- Removed the framebuffer configuration in the initramfs hook
- Added patch for fixing the framebuffer mode in the kernel source
- Cleanup linux-samsung-i9070 APKBUILD
2018-01-09 19:42:52 +00:00
rrooij
4baa73c3bc samsung-i9195: fix weston pixman type (#1105) 2018-01-09 18:23:10 +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
rrooij
2cff732e2d asus-tf101: add initial support (#1103) 2018-01-08 21:49:08 +00:00
rrooij
bad59f2ea6 i9195: add initial support (#1099)
Current status:
* Red glare on screen (probably need kernel patch)
* No touch support
* Networking on USB does not work, but it does boot normally
2018-01-08 20:39:04 +00:00
Oliver Smith
44ee4d924d Fix qemu-vexpress and qemu-aarch64 (#1029)
* Don't ask for the mesa driver when the Qemu arch is not the
  native arch and always use swrast in that case
* qemu-vexpress: use LTS kernel
* qemu-aarch64: use drm-backend for weston
2018-01-08 15:18:37 +00:00
Eric Hosmer
db394a8af5 Add support for touch on motorola-shamu (#1093) 2018-01-07 07:55:13 +00:00
Adrian Siekierka
7fc0216fc9 Basic support for Sony Xperia Arc ("semc-anzu") (#1087)
* Boots successfully to Weston
* supports the touch screen
* SSH into the device over USB works
2018-01-06 19:14:17 +00:00
Oliver Smith
33dcf5fba6 i9070, maguro: fix subpackages variable
It still contained $pkgname-mesa, which is as subpackage that has
just been removed in #1086.
2018-01-06 16:03:03 +01:00
Eric Hosmer
b93a6af1d8 Add support for Motorola Google Nexus 6 (motorola-shamu) (#1084) 2018-01-06 14:51:47 +00:00
Oliver Smith
1901060d4d Let new and most old devices depend on mesa dri swrast (#1086)
* Devices: depend on mesa-dri-swrast (where it makes sense)
* Device wizard: add mesa-dri-swrast by default
* Closes #1013.
2018-01-06 14:08:10 +00:00
Yan
258b6b6bdf Base LeEco Le 2 support (#1073) 2018-01-05 16:52:44 +00:00
Oliver Smith
4b95925e92 Properly disable v4l on devices where it causes udev to hang (#1077)
Fixes #1033.
2018-01-04 16:41:27 +00:00
kamnxt
91169f3da6 Add basic support for LG G4 (h815) (#1060) 2017-12-30 21:00:42 +00:00
Alex Roth
2a951d962d Add Teclast X80 Pro (EFI/x86_64 tablet) (#1050) 2017-12-29 02:02:29 +00:00
lawl
8297ed30b7 add support for xiaomi-ido (Xiaomi Redmi 3 [Pro]) (#1043)
Device boots, weston starts, ssh works, osk-sdl works
2017-12-27 01:56:59 +00:00
Piotr Halama
083e21bcef Add samsung-s6500d support (#1042) 2017-12-26 23:08:30 +00:00
William O-D
5da25bc8ff samsung-espresso10: Added wifi (WIP), touch and usb support (#1034) 2017-12-23 21:37:41 +00:00
William O-D
7bce1ef049 Added new device: samsung-espresso10 (Samsung Galaxy Tab 2 10.1) (#1027) 2017-12-21 22:28:57 +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
rrooij
ddada76032 samsung-i9505: use ondemand as default cpu gov. (#1010)
The default is otherwise performance, which drains a lot of battery.
Therefore ondemand seems to be a reasonable default.
2017-12-15 23:11:30 +00:00
drebrez
cbb31df5a6 [samsung-maguro] Use devicepkg-dev, enable FIQ debugger (#1009)
* [samsung-maguro] Enable FIQ debugger console mode
* [samsung-maguro] Use devicepkg-dev and install mesa-dri-swrast
2017-12-15 22:51:51 +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
rrooij
b62a89e63e samsung-i9505: fix argb video settings in kernel (#1005)
The RGB values were not calculated correctly. This patch was send to
me by cascaro and works great. All credits goes to him.

This also fixes the issue of Weston not automatically recognizing the
good pixman type without setting it in the deviceinfo file.
2017-12-12 23:36:14 +00:00
rrooij
ec474dbba3 samsung-i9505: fix kernel partition in heimdall (#998) 2017-12-11 19:54:20 +00:00
rrooij
c9ecca715d i9505: add wifi firmware (#992)
Add the wifi firmware for bcm4335. This is the blob that is being used
in LineageOS/CyanogenMod 14.1.
2017-12-09 16:44:37 +00:00
drebrez
ae4e10441d [i9070] Install mesa-dri-swrast when mesa package is present (#989) 2017-12-08 21:40:49 +00:00
rrooij
0d97d66326 samsung-i9505: Fix red screen by using pixman type (#988) 2017-12-08 21:39:30 +00:00
rrooij
bef25f70d1 samsung-i9505: Add touch screen support (#984) 2017-12-07 23:11:26 +00:00
rrooij
5e0ec9cd58 New device: samsung-i9505 (#983) 2017-12-06 23:02:08 +00:00
Martijn Braam
483d9d68f7 [hammerhead] Redscreen kernel patch / xorg.conf / msm fb refresher (#924)
* Added redscreen kernel patch and xorg config
* Moved weston and x11 specific config to subpackage
* Removed deviceinfo_weston_pixman_type for hammerhead
* Added msm-fb-refresher to hammerhead
2017-12-05 20:00:59 +00:00
Kenneth Endfinger
e7f1ac5401 New device: Google Glass (#957) 2017-12-01 19:15:42 +00:00
Oliver Smith
9fe445af36 device-qemu-amd64: Use LTS kernel (#954) 2017-12-01 19:10:58 +00:00
shwsh
f983270531 Support the Lenovo K6 Power (#942) 2017-11-29 21:16:02 +00:00
drebrez
47f8f5fa53 Add Wiko Lenny3 device (#939) 2017-11-26 10:16:50 +00:00
Attila Szöllősi
f205650259 Workaround for mdss-fb (#927) 2017-11-21 23:17:59 +00:00
Rares
c8dde6e21f Add support for Sony Xperia Z1 (sony-honami) (#916) 2017-11-19 19:31:08 +00:00
clayton craft
dc0121d4ec [grouper] Add osk-sdl config for device (#670) 2017-11-18 17:42:37 +00:00
Oliver Smith
d7312852ef linux-samsung-i9003: fix compilation with PARANOID_NETWORK disabled (#884) 2017-11-14 19:33:34 +00:00
clayton craft
0ba6ed675d Close #897: Add max size option for fastboot (#899)
This adds a new deviceinfo 'flash_fastboot_max_size' used for
preventing fastboot from flashing a system partition that is too
large. Some devices do not support flashing over a certain size
(e.g. 500MB).
2017-11-11 22:00:22 +00:00
MoreRobustThanYou
60305a7cf5 Update vendor ID in amazon-thor deviceinfo (#886) 2017-11-09 22:25:38 +00:00
drebrez
d5e494ddc2 [samsung-maguro] Add firmware-samsung-maguro package (#849) 2017-11-06 22:03:35 +00:00
MoreRobustThanYou
967d1421e0 Update the amazon-thor kernel (#879)
Camera got fixed in the hdx-common kernel
2017-11-06 21:44:02 +00:00
Alex Roth
c775d2afd1 Add new device: samsung-i747m (Galaxy S3 USA/Canada version) (#877)
* Add samsung-i747m (Galaxy S3 USA/Canada)
* Add support for WiFi on i747m
2017-11-05 20:10:19 +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
Pablo Castellano
c1e4579d3e motorola-titan: Package wifi firmware (#771) 2017-11-04 22:30:03 +00:00
drebrez
1ef326fb4c [huawei-y530] Cleanup kernel APK, fix compilation issue, remove unnecessary DTBs (#872) 2017-11-04 22:05:57 +00:00
Alex Roth
f76781ccb7 Add new device oneplus-onyx (Oneplus X) (#856) 2017-11-04 02:45:37 +00:00
clayton craft
3c5f76f5dd [rx51] Fix uboot script to use -stable kernel name (#864) 2017-11-03 23:56:56 +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
MoreRobustThanYou
1e72ef48c7 New device: amazon-thor (KFHDX 3rd Gen) (#823) 2017-10-29 21:33:52 +00:00
drebrez
e5543e368b Some kernel APKBUILD cleanup (#833)
* Cleanup linux-htc-bravo APKBUILD
* Cleanup linux-samsung-tuna APKBUILD and rename the package to
  linux-samsung-maguro
* Cleanup linux-sony-aries APKBUILD
2017-10-28 19:43:28 +00:00
Oliver Smith
826e23de0a kconfig_check: disable CONFIG_PFT (#830)
This caused builds to fail with a modern GCC at least once, and while it originally was meant as
security feature by Qualcomm, "it is unsupported by Qualcomm, and opens up to a wide range
of potential attack surfaces that has not been audited by anyone."
2017-10-27 20:41:44 +00:00
opendata26
8963f2e6f7 sony-castor-windy: Various updates (#826)
* Fix wifi nvram file
* Add mesa-dri-freedreno dependency
* Fix touchscreen
* Add osk-sdl support
2017-10-26 18:13:18 +00:00
drebrez
0587f1cd8a Cleanup linux-lg-mako APKBUILD (#825) 2017-10-26 18:11:31 +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
a88c8c918c Fix #808: Add SYSVIPC kernel config check (#809)
* Add SYSVIPC kernel config check
* Add SYSVIPC kernel config option to all linux-device packages
2017-10-23 19:25: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
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
drebrez
1ff598acd8 [huawei-y530] Add firmware-huawei-y530 package with wifi required files (#781) 2017-10-17 16:25:38 +00:00
Kevin Liu
bab93f7c58 Fix kconfig check exception, rename samsung_tuna -> samsung-tuna (#777)
The kconfig checker expects linux-$_flavor = $pkgname. Thus, just make it so.
2017-10-16 18:54:49 +00:00
zhenyolka
0175f00236 [lg l65 d285] fix laggy screen (#778) 2017-10-16 18:51:22 +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
Davide Gessa
7840c9e342 New device: samsung-i9003 (#729) 2017-10-14 16:20:48 +00:00
drebrez
b3a9087977 [htc-desire] Add configuration for osk-sdl (#765) 2017-10-14 09:51:47 +00:00
Pablo Castellano
2060145b64 Fix #757: titan: enable msm-fb-refresher (#767) 2017-10-14 09:49:00 +00:00
montvid
1a09684c76 asus-flo: rebase on 4.11.12 kernel upstream (#734)
*  Rebase on 4.11.12 kernel upstream

I took the relevant patches from https://git.linaro.org/people/john.stultz/flo.git/log/?h=flo-v4.11 and
compiled with upstream kernel.org 4.11.12 kernel. 4.12rc1 and later have not fixed yet problems
with freedreno gpu hanging. So we now have an upstream source for the kernel and John Stultz
patches separately. 
Set this to y as it does not seem to have problems in Alpine - CONFIG_HW_RANDOM_MSM=y
Enable USB OTG in kernel. I still need to find out how to enable it in Alpine.

* Use pkgver instead of hash and other changes
* Add dependencies for X11 and osk

Added pointercal. Added dependencies so Xfce would work out of the box. Made changes in
90-android-touch-dev.rules as they are needed for proper X11 touchscreen calibration.
2017-10-12 20:19:45 +00:00
Pablo Castellano
1f942ba22a linux-samsung-i9100: Bump pkgrel and explain change (follow up from #738) (#741) 2017-10-11 15:21:01 +00:00
Luca Weiss
c7f5488b79 Fix #737: Disable ANDROID_PARANOID_NETWORK for all devices (#742)
* Disable ANDROID_PARANOID_NETWORK for all devices
* Add APKBUILD comments
* Bump pkgrels

This was done with a script, see:
<https://github.com/postmarketOS/pmbootstrap/pull/742#issuecomment-335608932>
2017-10-11 15:11:05 +00:00
bhuvi
a4c1c62220 [samsung-i9100] Fix for non root users not able to access network #737 (#738)
Unset CONFIG_ANDROID_PARANOID_NETWORK as it is useful only on android systems.
2017-10-10 19:18:31 +00:00
Attila Szöllősi
ffbe7a6c50 Device motorola-osprey (#714) 2017-10-07 17:55:55 +00:00
zhenyolka
6878a237f3 Added [lg-d285] (#694)
* Added [lg-d285]

* Added [device-lg-d285

* Added [device-lg-d285

* Added [device-lg-d285]

* Edit checksums

* Update APKBUILD

* Update APKBUILD
2017-10-07 19:23:58 +02:00
Larvitar
20a1b7f2c3 Fix htc-ace touchscreen + weston demo app (#715) 2017-10-07 16:29:37 +00:00
Pavel Machek
81a7348286 Provide default mixer configuration, so sound works by default. (#702)
Sound level is set to 80%, because of rumors that the speakers
could be damaged otherwise. Details in:
https://github.com/postmarketOS/pmbootstrap/pull/702
2017-10-07 16:19:19 +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
joris
0d4c353fc3 Porting to samsung-i9305 (Galaxy SIII LTE) (#690) 2017-10-04 17:20:17 +00:00
Pablo Castellano
dbbdf7cfa4 Fix #436: Clean apkbuilds (#692)
* Remove empty build() functions
* Remove obsolete '|| return 1' statements
2017-10-04 15:05:00 +00:00
drebrez
9705ba8b5d [huawei-y530] Add dev_touchscreen variable in deviceinfo (#667) 2017-10-02 22:37:38 +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
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
drebrez
e303ea7cf0 Set framebuffer mode in initramfs for all devices (#652) 2017-09-29 15:22:20 +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
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
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
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
91b846db30 Add device-specific configs for osk-sdl (#615) 2017-09-23 01:05:54 +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
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
82a35c1847 [rx51] Add libinput calibration matrix (#600) 2017-09-20 18:40:50 +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
Martijn Braam
4890b9a935 Added base offset to hammerhead deviceinfo (#556) 2017-09-18 18:46:29 +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
drebrez
8c3353e93e [huawei-y530] Add kernel modules (#579) 2017-09-14 18:24:33 +00:00
Tomas Safarik
97ad29c439 Add libsamsung-ipc to device-samsung-i9100 (#564)
* add libsamsung-ipc (from upstream replicant repository)
* add libsamsung-ipc as dependecy for device-samsung-i9100
* change device path for loading modem firmware on i9100
* add mounting of EFS to fstab
2017-09-14 18:18:12 +00:00
drebrez
7007e2eb63 Fix checksums (GitHub generates different archives now) (#577) 2017-09-14 18:16:16 +00:00
Yuval Adam
527948ec91 T2M Flame updates (#560)
* Fix t2m-flame MDSS driver issues
* Fix path in firmware-t2m-flame
* Remove unneccesary FB hacks
* Fix touchscreen on T2M Flame
* Remove unneeded initfs-hook.sh
* Add patch number prefixes
2017-09-13 19:46:45 +00:00
bhuvi
cf0f710f53 Fix #572: checksum linux-samsung-i9100 (#573) 2017-09-13 19:40:17 +00:00
clayton craft
4eb52ddff0 Feature/rx51 ofono (#567)
* [rx-51] remove pm=0 for nokia-modem
* Add ofono-1.20 + n900/isimodem fixes
* [rx51] Enable ofono support
2017-09-13 19:20:46 +00:00
drebrez
12cbff0ba5 Strip kernel modules for all kernels except for linux-postmarketos (#561)
Adding INSTALL_MOD_STRIP will cause modules to be stripped after
they are installed (option --strip-debug will be used)
In case someone isn't happy with it, please open a PR that reverts
it for your device, or start a discussion as a new issue.
2017-09-13 17:47:53 +00:00
Tomas Safarik
9208f1f199 [samsung-i9100] add wifi firmware (#514)
* add firmware for samsung-i9100
* add firmware package as dependecy for device package
* set kernel config for postmarketos firmware location
2017-09-11 16:20:34 +00:00
Pablo Castellano
bfb55c7b74 Unify names of scripts and patches (#557)
- 90-android.rules -> 90-android-touch-dev.rules
- reduce_lzo_compression.patch -> 02_reduce_lzo_compression.patch
- mdss_fb_refresh_rate.patch -> 02_mdss_fb_refresh_rate.patch
- aeea3592a13bf12861943e44fc48f1f270941f8d.patch -> 00_fix_return_address.patch
- gpu-msm-fix-gcc5-compile.patch -> 02_gpu-msm-fix-gcc5-compile.patch
- udev-hack.sh -> udev-v4l-hack.sh
- Separate udev-v4l-hack.sh from profile.sh
2017-09-11 15:29:22 +00:00
drebrez
a1b840bb71 [huawei-y530] Fix touchscreen (#552)
- Add patch to fix synaptics rmi touchscreen driver
- Disable not needed touchscreen drivers in kernel config
- Add udev rule to detect touchscreen device
2017-09-10 11:35:20 +00:00
drebrez
fe8e0b3fa7 Update/fix Huawey y530 kernel, framebuffer works (#534) 2017-09-08 15:18:11 +00:00
kskarthik
c57f4985d7 Working GUI for sony-aries (#525) 2017-09-06 22:36:07 +00:00
Ben Iofel
89f94a9c63 Enable xwayland and drm for weston on qemu-amd64 (#517) 2017-09-06 16:28:05 +00:00
Jean Lucas
1afc41e0e4 Initial support for OnePlus One (bacon) (#523)
Currently using the LineageOS 15.0 kernel.
2017-09-06 12:27:14 +02:00
zhuowei
cfb582da65 Initial support for Huawei Google Nexus 6P (Angler) (#512)
This uses the LineageOS 14.1 kernel.
2017-09-04 17:11:42 +00:00
Pablo Castellano
61db96961f qemu: improve networking (#482)
* qemu: network improvements (fixes #433)
- Use hostfwd instead of -redir, which is deprecated
- qemu devices: add interfaces configuration and virtio_net module
- redirect telnet ports 23 and 24 (debug)

* Added 'interfaces' files
* qemu: added aarch64 network device
* qemu: use default_ip
2017-09-03 14:01:21 +00:00
Wouter92
8576b3eabd Support for sony-yuga (#500) 2017-09-02 18:51:38 +00:00
Attila Szöllősi
730f25c4ce "Fix" udev issue on sony-amami (#496) 2017-09-01 23:57:28 +00:00
James Heald
b53a18ed23 Added LG G Watch R (lg-lenok) Support (#489)
* added LG G Watch R (also compatible with Urbane 1)
* added frame buffer fix script to install
* Added missing refreshrate patch
* Added xwayland
2017-09-01 22:20:09 +00:00
Fabrice Desré
da3a164992 Rename mozilla-flame to t2m-flame (#488)
* Rename mozilla-flame to t2m-flame
* Keep Mozilla as the marketing name
2017-09-01 21:30:38 +00:00
opendata26
48dba8734e Fix firmware-adreno and move it to firmware (#483) 2017-08-30 15:50:53 +02:00
drebrez
9271425c1a Initial Huawei Ascend Y530 support (#462) 2017-08-25 15:47:32 +00:00
SaiKarthik Karra
ed76dd9110 Add Xperia Z3C port (#448)
Booting works, SSH does not work yet (missing UDEVTMPFS?), screen does not work yet.
2017-08-24 17:35:46 +00:00
drebrez
8b420832df Add samsung-i9070 firmware package (#455)
Also change the arch of firmware-mozilla-flame's APKBUILD to "noarch".
2017-08-24 17:26:40 +00:00
Pablo Castellano
8565d86b21 linux-motorola-titan: fixed refresh rate (#449) 2017-08-23 16:41:40 +00:00
Yuval Adam
645141a5b9 Better Mozilla Flame device support (#435)
* No need to append DTB to kernel
* Remove kernel module build for now
* Add device-specific firmware package
* Add special partitions to fstab
* Fix typo in screen width
2017-08-21 19:38:11 +00:00
Kevin Liu
b19a5fe29e maguro: add wifi, framebuffer/weston, and touchscreen support (#425)
* Add maguro wifi support
* enable framebuffer and VT, WESTON STARTS
* make touchscreen work & fix merge conflict
Cherry-pick of lawl's commit, ed552e5d9272204c12f67bcb0401b3e08e57d35f.
2017-08-20 12:41:28 +00:00
Martijn Braam
2dded4b39d Add setting for device keymap for devices with keymaps (#379)
* Added rx51_us keymap to nokia n900
* Added keymap option to init
* Made install command run setup-keymap when neccesary
* Validate keymap on install
2017-08-19 21:40:20 +00:00
clayton craft
0136f832d0 [RX51] Remove unneeded kernel cmdline options (#376)
Remove omapfb options since they are irrelevant now that we use omapdrm.
2017-08-18 21:43:31 +00:00
opendata26
b3dc47f687 Add firmware-adreno package (#393)
* Add support for wifi and touchscreen on castor
* Various fixes
* Add firmware-adreno package
* Download firmware files
2017-08-18 21:13:38 +00:00
Attila Szöllősi
f267b78873 Update sony-amami deviceinfo (#412) 2017-08-18 18:14:06 +00:00
drebrez
7c42663436 Rename wrong deviceinfo_flash_cmdline to deviceinfo_kernel_cmdline (#369) 2017-08-14 14:22:38 +00:00
clayton craft
2bb305171e [RX51] misc improvements (#287)
* [RX51] enable hwdrivers service to 'fix' acpid

* [RX51] set rtc device for hwclock service

* [RX51] Enable networking service, add /etc/network/interfaces

* [RX51] Update APKBUILD checksums & pkgrel
2017-08-14 14:19:22 +02:00
opendata26
55b32da086 Add Xperia Z2 Tablet WiFi (#339)
* Add Xperia Z2 Tablet WiFi config

* Various fixes for Z2 tablet

* Fix Checksums
2017-08-11 12:41:29 +02:00
Yuval Adam
321156e59b Initial support for mozilla flame (#356)
* Initial Mozilla Flame packages

* Update dtbtool to use LineageOS upstream

* Use mkbootimg --dt flag only when deviceinfo_bootimg_qcdt is defined

* Update mkbootimg to use LineageOS upstream

* Add sparse image flashing on device-mozilla-flame

* Only support SD card install on Mozilla Flame

* Remove useless profile.sh on mozilla flame

* Package DTBs in /usr/lib/linux-mozilla-flame/

* Build and install modules in linux-mozilla-flame
2017-08-09 20:57:52 +00:00
Pablo Castellano
5d011e30ff Close #226: Launch postmarketOS in a qemu virtual machine (#350)
Thanks to Pablo Castellano and Martijn Braam!
In postmarketOS we are now able to generate system images with the
correct configuration so that they can boot already using qemu

This commit brings the `pmbootstrap qemu` action.
This command is very handy because you don't have to set all the
qemu parameters, pmbootstrap does it for you.

* device-qemu-vexpress: Added kernel command line according to wiki
* qemu: Added workaround for image writing permissions
* qemu: Added support to launch postmarketOS in a QEMU virtual machine

- Support for emulating these architectures in QEMU: arm, aarch64, x86_84
- Generate QEMU command correctly depending no guest architecture (arm/x86)
- Run QEMU in the same architecture as the host by default
- Refactoring in pmb.parse.arch and pmb.qemu.run
- Raise exception if DTB file or system image are not present
- Display more useful information when something fails (e.g. image not found)
- Run qemu version depending on arch (host or argument), not device configured

* device-qemu-amd64: set deviceinfo_kernel_cmdline to "PMOS_NO_OUTPUT_REDIRECT"
* qemu: added --memory argument to specific guest RAM
* device-qemu-amd64: adjusted deviceinfo_kernel_cmdline (console=tty1)
* Added /etc/network/interfaces for qemu-amd64
* qemu: Added KVM support if /dev/kvm if present
* Specify separate machines for architecture
* qemu: Check if QEMU is installed instead of crashing
* Added graphics driver to qemu-aarch64

- Use arm (as used in qemu) instead of armhf (used in Alpine)
- qemu argument is -dtb
- Follow same style to build the command + arguments

* qemu: Added SSH port redirection: ./pmbootstrap.py qemu -p 2222
2017-08-09 20:26:40 +00:00
Martijn Braam
9478c6272b Fix the checksum on the n900 device package (#352) 2017-08-09 14:25:48 +02:00
Attila Szöllősi
5a32e48eef Fix refresh rate on sony-amami (#348)
Patch added to hardcode pixclock in framebuffer driver
2017-08-08 16:50:11 +00:00
Attila Szöllősi
8eeb3fdc0e Fix weston on sony-amami (#340) 2017-08-07 19:08:35 +00:00
Pablo Castellano
ff968a751e Implement sparse system images (fix #299) (#303)
* Packaged libsparse

libsparse from the Android project provides multiple tools like img2simg
and simg2img.
These are used to split a large image for the system partition into
separate smaller chunks with sparse headers

This is required for several devices (at least bullhead, fp2 and titan)
because it fixes the "Invalid sparse file format at header magi" error

https://github.com/postmarketOS/pmbootstrap/issues/299

* Added new variable deviceinfo_flash_sparse (fixes #299)

Right after the system image is generated, pmbootstrap checks this
variable. In case it is true, run img2simg on it

* motorola-titan: enable deviceinfo_flash_sparse

* libsparse: use source from github: anestisb/android-simg2img

It is not that easy to use the upstream archive because everytime
you download it, the files have the current date as creation date
and that makes the file have a different checksum every download
https://github.com/postmarketOS/pmbootstrap/pull/303#issuecomment-319017197
2017-08-02 16:21:50 +00:00
Pablo Castellano
d690e38d50 Fix #223: Use .tar.gz instead of .zip for kernel sources (#315) 2017-08-01 15:57:52 +00:00
James Heald
ea575334e9 Add device Samsung Galaxy Note 2 (N7100) (#293) 2017-07-31 18:02:44 +00:00
Oliver Smith
c5004ead31 Move linux-postmarketos to from device to main 2017-07-29 01:14:09 +02:00
Oliver Smith
3e140ea690 Close #194: Aports subfolders! See migration guide in the wiki (#227)
Migration guide:
https://github.com/postmarketOS/pmbootstrap/wiki/Migration-to-aports-subfolders
2017-07-28 22:34:40 +00:00