Google Nexus 4 (lg-mako)

Installation
pmbootstrap init pmbootstrap install (enter fastboot, see below) pmbootstrap flasher flash_rootfs pmbootstrap flasher boot

To flash the kernel, you can choose  (but charging and power off doesn't work as expected anymore, see below).

Attempting to flash an arbitrarily large rootfs (here xfce4 ui, >1GB), will fail: Note that this is not related to the destination partition size. The getvar option to  does not list a max-download-size variable. Unfortunately the  flag is not useful since the image is not sparse. An untested tedious workaround may be to just flash a smaller ui image and manually.

Entering &quot;Fastboot mode&quot;
Hold  + , let go of   once the device display does something (e.g. turns from battery icon to black screen).

Reverting to factory
Reflashing a factory image after a pmOS install may hang. For the final factory image (LMY48T), the display will show a looping animation of rotating / flying colored dots on a black background (but be patient, wait at least 10 minutes to confirm hang). Follow the instructions at Reverting to stock (manta). The first time setup screen should follow the rotating dots (perhaps 8 minutes). During the flash the back of the device may warm noticeably.

Charging and power off (after flashing the postmarketOS kernel)
You can flash the postmarketOS kernel, but instead of charging the battery, it will boot straight into postmarketOS (or the on screen keyboard to type in the password). Right now, the best way to charge it from that situation is to boot the recovery TWRP.

You can properly turn the device off by unplugging the usb cable, then booting into fastboot, then choosing power off.

Wifi
We need to package the wcnss.* files for wifi. A version from 2015 can be found here.

Output from hwtest
output:

CPU tuning
CPU tuning: The default governor is battery-draining "performance" (see, package cpufrequtils). Thermal throttling seems to be activated in this case (dmesg): Try the "ondemand" governor (via ).

Charging
Charging: Charging appears to work (during USB networking at least). Monitor via. Charging current seems to be reported as a negative value. (Try.

Charging updates also spam dmesg: The  command (package lm-sensors) shows a couple of charging-related(?), non-zero thermal sensor values (  and  ).

Sensors
For reference, sensor information from sensorsandbox (f-droid) on mako 16GB; note that in addition to hardware-based sensors, it presumably includes software-based / derived sensors. sensor details (sensorssandbox)

Mainline
Current tree can be found here Qualcomm_Snapdragon_600_(APQ8064)

theohussey's mainlining progress was here. Read on for generic instructions of what would need to be done.

That most peripherals of the  should work with mainline as well, once they are enabled in the DTS file. In fact, @vetzki reported in that the   boots when using exactly the same DTS as the one from   (this is not recommended, as misconfiguring your device like that may damage it). SSH appears to be working for a short time before getting kicked out, the display does not work.

A good way forward would be using a minimal version of the  DTS, where everything but USB is deleted, and fixing USB / trying to get the display working with the DSI Panel Porting Guide. The downstream DTSI files that need to be ported to the upstream kernel are probably located here, and I guess the exact panel name appears when running  after a successful boot (I did not verify this). Please expand this when you're working on it, and report your progress in #postmarketOS. Check out the Mainline Guide.

Partition Layout
Partition layout:

= Community Info =

Maintainers

 * Ivan Belokobylskiy

Contributors

 * ollieparanoid
 * PabloCastellano and robb4 on IRC: Workaround for red screen bug