Difference between revisions of "Google Nexus 5X (lg-bullhead)"
(added unibench score)
|Line 102:||Line 102:|
== Photos ==
Revision as of 12:04, 1 March 2019
In android go to→ → and tap the build number 7 times. Then go to → → and enable OEM unlocking
Reboot to the bootloader and run "fastboot oem unlock" Now selecton the phone screen with the volume button and use the power button to accept.
Special key combos
Boot to bootloader: hold volume down + power button until the screen turns on
Launch recovery: first boot to the bootloader, press the volume down button twice and press the power button to select
The linux mainline kernel has very basic support for this phone since November 2016 (one cpu and uart). In January 2017 support for the onboard SDHCI was added and since March 2018 pstore-ramoops. Both should be included in 4.19.
To boot it using pmbootstrap follow the mainlining guide but note that it has a 64 Bit kernel also compared to downstream "device-lg-bullhead" you need to change the debug tty to /dev/ttyMSM0 in the deviceinfo file.
Change deviceinfo (aports/device/device-lg-bullhead/deviceinfo)
deviceinfo_kernel_cmdline="console=ttyMSM0,115200,n8 androidboot.hardware=bullhead boot_cpus=0-5 lpm_levels.sleep_disabled=1 msm_poweroff.download_mode=0 buildvariant=userdebug PMOS_NO_OUTPUT_REDIRECT"
ttyMSM0 tells the kernel to write debug output to the debugger cable, PMOS_NO_OUTPUT_REDIRECT tells the initram script from pmos to write there as well instead as to a (temporary) log file
increase the pkgrel in APKBUILD and rebuild the boot.img
$ pmbootstrap checksum device-lg-bullhead $ pmbootstrap export
build your kernel as described in mainlining guide
update the boot.img to include your local kernel
$ cp "/tmp/postmarketOS-export/boot.img-lg-bullhead" "$TEMP/boot.img" $ cd .output/arch/arm64/boot/ $ cat Image.gz dts/qcom/msm8992-bullhead-rev-101.dtb > "$TEMP/zImage-dtb" $ pmbootstrap chroot -- abootimg -u /tmp/mainline/boot.img -k /tmp/mainline/zImage-dtb $ pmbootstrap flasher list_devices
You can communicate with the device using screen (or other software), so in a separate terminal start it
$ screen /dev/ttyUSB0 115200
Boot your mobile to bootloader (power + vol down), you should see some debug output already in screen
Boot mainline kernel using fastboot
$ pmbootstrap chroot -- fastboot boot /tmp/mainline/boot.img