LG G2 Korean (lg-f320)

Contributors

 * HexagonWin

Maintainer(s)
HexagonWin

How to enter flash mode
For fastboot, this needs lg's proprietary download mode to be removed. Please see LG G3 Europe device's wiki document for details. After that, it can be ran by turning off device, connecting via usb cable to a computer or a charger, and clicking power and volume up simultaneousely and a bit waiting like that.

For recovery, do the same as above but disconnect usb cable.

LG Verification fail error
LG's bootloader has a bad thing : Some verification. you can use openbump, same as in LG G3 Europe device's wiki document.

Installation
Fastboot installation works well, but sometimes fail for an unknown reason. Micro SD Card slot installation works well. You can also dualboot with android by installing pmOS on the micro sd card, and flashing pmOS and Android to each Recovery partition and the android boot partition.

Recovery zip installation was the most stable

Problems
This device is not upstreamed yet, as I (HexagonWin) is being very busy. Because of LG's bootloader's verification things, it is a bit hard to load a boot image after making it, and needs open bump once.

Mainline?
This device has MSM8974, it can be mainlined. The Google Nexus 5 (lg-hammerhead) is really similar to this device.

20210703. I tried mainlining. No USB, no display, no everything, except that I know it boots. I don't have a UART, but with a kernel panic init script, the kernel panicks and reboot. And without it it just stays in manufacturer screen/fastboot log screen and doesn't panic.

For a future me : Here's the commands I used to create a boot.img with a mainline kernel. Although it is unclear if it actually booted, it was accepted by the stock bootloader. (Note : PMBootstrap is installed in  and Linux Source Tree is in.

UART
The UART method seems to be also same as the Nexus 5, it seems like it is using the 3.5 audio port. However, this is not yet tried. This UART method also seems to be same for LG-D802 and/or other LG-D80* variants. This information is from a trusty manual from a secret source.

Parts
Please refer to this : http://www.deviceinfohw.ru/devices/item.php?item=373245 Note : Although it is named D802 in the page, it is because the Android OS that runs in it is for D802 (The international version), and the kernel is edited to work for this device F320.