Maintainers:
Status: Under development
Make sure your device already has Bootloader unlocked and third-party recovery installed(TWRP or OrangeFox, etc)
Make sure that you have made a backup of the following partitions:
fsc
fsg
ftm
laf_a
laf_b
modem_a
modem_b
modemst1
modemst2
Without these backed up, if you happen to brick your device, there’s a big risk that your device will not be able to use cellular anymore!
Note For now, the support for these devices are not yet in the edk2-msm repo, but in MU-sm8150Pkg. The support would be added into edk2-msm after as soon as problems got fixed.
G8X (MH2LM)
G8X UEFI image: edk2-msm
Driver pack: LGE-G8X-Drivers
Unnoficial Driver pack: LGE-G8X-Drivers
(I hope it doesn’t bother, it just brings some improvements since the maintainer is busy and wanted to help)
G8S (BETALM)
G8S UEFI image: MU-sm8150Pkg
G8S UEFI image: EDK2-MSM
Driver pack: LGE-G8S-Drivers
Unnoficial Driver pack: LGE-G8S-Drivers
(I hope it doesn’t bother, it just brings some improvements since the maintainer is busy and wanted to help)
V50S (MH2LM5G)
V50S UEFI image: edk2-msm
Driver pack: LGE-V50S-Drivers
V50 (FLASHLMDD)
V50 UEFI image: MU-sm8150Pkg
Driver pack: LGE-V50S-Drivers
Shell script to use mass-storage mode:(Author @gus33000): msc.sh
Partitioning tool: parted
Windows installation ISO:please read Step 1.1 Downloading files
Some LG devices like LG G8X cannot enter fastboot mode by default. The LGE’s proprietary download mode replaces fastboot.
However, it is possible to enable the fastboot mode by erasing laf_a
and laf_b
partitions.
IMPORTANT: Please do a backup of them before erasing
There are several methods of erasing:
(Dangerous operation! Please make sure you know what you are doing)
dd if=/dev/zero of=/dev/block/by-name/laf_a bs=4k
dd if=/dev/zero of=/dev/block/by-name/laf_b bs=4k
This section is mostly the same with the main installation guide, with one additional step.
Please read 1.2 Partition the UFS carefully first.
After executing the “Print the current partition table” step as below:
(parted) print
You may notice that right after the userdata
partiton, there’s also a tiny grow
partition.
.........
Number Start End Size File system Name Flags
.........
30 19.0GB 126GB 107GB ext4 userdata
31 126GB 126GB 4096B grow
(parted)
For now, the parted
tool has a known issue. The partition table will be corrupted after creating more than 32 numbers of partitions.
To solve that, we can delete the grow
partition here.
(parted) rm 31
Then follow the remaining steps in 1.2 Partition the UFS.
At the meantime, for LG G8X/V50S it doesn’t support the mainline linux-based linux-simple-mass-storage
But we can use the msc.sh mentioned earlier in TWRP/OrangeFox to achieve the similar functionality.
adb push msc.sh /cache/
adb shell sh /cache/msc.sh
The disk should show up in your PC now. (Which supports USB3.0 thanks @gus33000)
Note: For LG G8X users, you may also try fastboot boot this boot.img that can automatically enter mass storage mode. lg_g8x-massstorage.img
Only for G8S right now
Enter simpleinit and select Massstorage on the upper left corner, you will see some lines of text and maybe some penguins then youre in mass storage mode
TODO: Enable simplemasstorage on G8X
Please read 2.1 Installing using mass storage mode
and skip the part of booting UEFI image.
The driver pack above contains a tool called DriverUpdater.exe(by @gus33000)
After extracting the driver pack, open a prompt window and change directory to the extracted folder.
.\DriverUpdater.exe -d .\definitions\Desktop\ARM64\Internal\your_device_code.txt -r . -p E:\
(replace the definition file to the one corresponding to your device, and replace the E:\ to the installation path of your windows arm system)
Please read 2.1.4 Fix partition names
Don’t forget to follow these necessary steps from Step 3.2 Modem provisioning on Qualcomm Snapdragon 855 phones to get cellular data and SMS to work on your device.
UFS | Y |
---|---|
SD card | N |
Buttons | Y |
ACPI | Y |
Linux Boot | Y |
Android Boot | Y |
Windows | Y |
Mass Storage Mode | Y |