Temporary Fix for LG G4 bootloop issue(lengthens life)

Did this for work for you?

  • Yes

    Votes: 4 100.0%
  • No

    Votes: 0 0.0%

  • Total voters
    4
  • Poll closed .
Search This thread

XeniX_Force

Senior Member
Dec 21, 2013
483
71
23
karachi
Hello everyone.
You all might have read in the xda news that @XCnathan32 fixed the Nexus 6p and now also the Nexus 5 bootloop issue (same as on our G4s) by disabling the big faulty cores and running the phone on only the small ones. Now our beloved dev @steadfasterX has come up with a similar fix for our G4.
it works by flashing modified boot and TWRP image onto the LG G4 so that it only works on the small four cores

UPDATE: Tested and found working by @the_naxhoo on his H815

Requirements
  1. An unlocked G4
  2. @steadfasterX 's FWUL for ease and required tools (lglaf)
  3. Patience and prayers (optional though)

NOTE: the attached files are only for the T-Mobile variant which had 20o software before boot looping and the International H815 (BGR) variant which had 20g software before bootlooping

Guide:

(A)For unlocked devices that can access Fastboot
Access Fastboot mode by using the following method:
Pull out battery then connect usb cable, press volume down, put battery back while keeping volume down pressed
If you just reached the Fastboot mode, Congrats. Now execute the following commands in fastboot
Code:
fastboot flash boot boot.img
fastboot flash recovery twrp_4cores_3.1.1-1-g4.img

Now you have a kernel and twrp with max 4 CPUs and the faulty CPUs disabled. Enjoy your resurrected phone.

(B)For Devices that can not acess Fastboot(unlocked only)


For a backup of your existing data you need an external SD Card big enough for a full backup of your device (64 GB if you want to backup the /data partition - otherwise you will be fine with 8 GB) best is to format the SD card with ext4 !! fat32 will fail for backup

For just flashing a boot image any SD card will fit..

1)extract both files you downloaded(see attached files) and put them on the SD card
2)boot FWUL and login
3)put the external SD card in your phone
4)boot phone to download mode and connect it to your PC with FWUL running
5)in FWUL find the folder LG on the desktop and open it
double click on the lglaf (auth) icon
6)you should see the lglaf shell now. Type in the command:
Code:
uname -a
(it should print out the line with your current kernel version which just indicates that you're connected)
7)mount external SD:
Code:
mount -t ext4 /dev/block/mmcblk1p1 /storage/external_SD

8)Now backup first (recommended but optional):
Update regarding backing up:

Check out the new guide here: https://tinyurl.com/dlbackup



9)Now flash:
Code:
dd if=/storage/external_SD/boot.img of=/dev/block/mmcblk0 seek=491520 bs=512
Code:
dd if=/storage/external_SD/twrp_4cores_3.1.1-1-g4.img of=/dev/block/mmcblk0 seek=573440 bs=512


Now you have a kernel and twrp with max 4 CPUs and the faulty CPUs disabled. Enjoy your resurrected phone.

Please test and leave comments

Support / IRC Channel
IRC means Internet Relay Chat and you will get best support there only.
Choose how to get in:
PC (HexChat and Pidgin are only 2 of them! This list is not complete!)
Android (Yaaic, AndChat, HoloIRC, AndroIRC are only a few of them! This list is not complete!)
Web (KiwiIRC-Web,FreenodeWebchat])
When you have to choose a channel it is: #Carbon-user
When you be asked for a server network choose: freenode

Update: File for h815 20i is here: https://xdaforums.com/g4/general/fix-lg-g4-bootloop-issue-t3647538/post73282829
File for h815 20p is here: https://xdaforums.com/g4/general/fix-lg-g4-bootloop-issue-t3647538/post73610856
File for H811 20r is here: https://xdaforums.com/g4/general/fix-lg-g4-bootloop-issue-t3647538/post73636261
 

Attachments

  • h811_20o_4cores_bootimg.zip
    14.2 MB · Views: 1,314
  • lgg4_twrp_4cores_3.1.1-1.zip
    15.6 MB · Views: 2,498
  • h815_20g_4cores_bootimg.zip
    13.1 MB · Views: 1,680
Last edited:

steadfasterX

Recognized Developer
Nov 13, 2013
6,195
15,453
127.0.0.1
OnePlus 7T Pro
hi,
Here you find it all:
https://lg-firmwares.com/lg-h815-firmwares/
ist there a way to disable the big cores on any rom (original/custom) for all time?
Atm the method is ROM specific. That means I need a direct link or the EXACT file name to the used kdz. E.g. H815 has several country versions.

Disabling the cores on any ROM means modifying aboot which is not an option because even when your device is unlocked the try may soft or hard brick.

Instead once I have the time I will make a flashable TWRP zip for this which patches the boot image after flashing a ROM but this is a manual task everytime after flashing a ROM.


As posted by (skdubg) and select GBR version.
Perfect thx.




Sent from my LG-H815 using XDA Labs
 

steadfasterX

Recognized Developer
Nov 13, 2013
6,195
15,453
127.0.0.1
OnePlus 7T Pro
As posted by (skdubg) and select GBR version.

find attached the patched boot image for your ROM version.
just to mention it again: the modded twrp image is highly recommended to flash as well bc TWRP will make use of all cores it can find when backing up/restore

when your device is unlocked AND you have fastboot access you can just do a

Code:
[COLOR="Blue"]fastboot flash boot boot_4cores.img
fastboot flash recovery twrp_4cores.img[/COLOR]

The download mode way I described in the OP is required when you cannot access fastboot and for locked devices. I will try to create a KDZ out of this but atm this is the way to go then.

I cannot say for sure that this way will soft brick locked devices or not. it should not but i cannot test it..!!
It mainly depends on the fact if the whole boot image gets verified or just the kernel + initrd.
afaik its not the whole boot partition... so it should work with the download mode way even on locked devices.


@XeniX_Force : attach the file and fastboot cmds to the OP as well pls.

.
 

Attachments

  • h815_20g_4cores_bootimg.zip
    13.1 MB · Views: 239
Last edited:

rustybronnco

Member
Dec 26, 2014
19
11
https://en.wikipedia.org/wiki/LG_smartphone_bootloop_issues

When officially acknowledging the bootloop issues with the G4, LG stated that it was caused by a "loose contact between components";


---------- Post added at 02:41 PM ---------- Previous post was at 02:35 PM ----------

but we tested on the_naxhoo's bootlooped phone and it's back to working
Applying pressure to the chip may also bring it back to a non-boot loop condition.

My G3 has a credit card 'shim' between the LPDDR3 and the housing. It cured? the fad out to black for a period of time. They also blue or green screened as well. On the G4 it shows up as a boot looping or stop (stuck) booting condition. My G4 is currently at LG awaiting a motherboard.
 

XeniX_Force

Senior Member
Dec 21, 2013
483
71
23
karachi
https://en.wikipedia.org/wiki/LG_smartphone_bootloop_issues



---------- Post added at 02:41 PM ---------- Previous post was at 02:35 PM ----------


Applying pressure to the chip may also bring it back to a non-boot loop condition.

My G3 has a credit card 'shim' between the LPDDR3 and the housing. It cured? the fad out to black for a period of time. They also blue or green screened as well. On the G4 it shows up as a boot looping or stop (stuck) booting condition. My G4 is currently at LG awaiting a motherboard.

understood

the thread has been renamed
our phone is hopeless
 

Stransky

Senior Member
Mar 28, 2011
826
161
Newtownabbey
Xiaomi Mi 6
Xiaomi Pad 6
The OP has been edited with a fastboot metho,chave d. you can either use it or the download mode method to try and revive your G4 your requested file has been attached please try and report to us as soon as possible

Hi
Thanks for the files. Have a new problem in that my G4 has stopped bootlooping, in fact it is not doing anything now.
Have tried another battery but no response, Was on the Lifes Good screen and it suddenly
went blank and it will not boot to anything. Tried spare battery and connected to charger but nothing.
Any ideas?
 

steadfasterX

Recognized Developer
Nov 13, 2013
6,195
15,453
127.0.0.1
OnePlus 7T Pro
Hi
Thanks for the files. Have a new problem in that my G4 has stopped bootlooping, in fact it is not doing anything now.
Have tried another battery but no response, Was on the Lifes Good screen and it suddenly
went blank and it will not boot to anything. Tried spare battery and connected to charger but nothing.
Any ideas?

yea bootloop is the first stage. next one is what u describe. send it to repair.
there are good chances that it went into QDL 9008 mode. Just connect it to your PC and watch unknown devices in your device manager (or type lsusb on linux) and see what happens.


.


.
 
Last edited:
  • Like
Reactions: Stransky

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    Hello everyone.
    You all might have read in the xda news that @XCnathan32 fixed the Nexus 6p and now also the Nexus 5 bootloop issue (same as on our G4s) by disabling the big faulty cores and running the phone on only the small ones. Now our beloved dev @steadfasterX has come up with a similar fix for our G4.
    it works by flashing modified boot and TWRP image onto the LG G4 so that it only works on the small four cores

    UPDATE: Tested and found working by @the_naxhoo on his H815

    Requirements
    1. An unlocked G4
    2. @steadfasterX 's FWUL for ease and required tools (lglaf)
    3. Patience and prayers (optional though)

    NOTE: the attached files are only for the T-Mobile variant which had 20o software before boot looping and the International H815 (BGR) variant which had 20g software before bootlooping

    Guide:

    (A)For unlocked devices that can access Fastboot
    Access Fastboot mode by using the following method:
    Pull out battery then connect usb cable, press volume down, put battery back while keeping volume down pressed
    If you just reached the Fastboot mode, Congrats. Now execute the following commands in fastboot
    Code:
    fastboot flash boot boot.img
    fastboot flash recovery twrp_4cores_3.1.1-1-g4.img

    Now you have a kernel and twrp with max 4 CPUs and the faulty CPUs disabled. Enjoy your resurrected phone.

    (B)For Devices that can not acess Fastboot(unlocked only)


    For a backup of your existing data you need an external SD Card big enough for a full backup of your device (64 GB if you want to backup the /data partition - otherwise you will be fine with 8 GB) best is to format the SD card with ext4 !! fat32 will fail for backup

    For just flashing a boot image any SD card will fit..

    1)extract both files you downloaded(see attached files) and put them on the SD card
    2)boot FWUL and login
    3)put the external SD card in your phone
    4)boot phone to download mode and connect it to your PC with FWUL running
    5)in FWUL find the folder LG on the desktop and open it
    double click on the lglaf (auth) icon
    6)you should see the lglaf shell now. Type in the command:
    Code:
    uname -a
    (it should print out the line with your current kernel version which just indicates that you're connected)
    7)mount external SD:
    Code:
    mount -t ext4 /dev/block/mmcblk1p1 /storage/external_SD

    8)Now backup first (recommended but optional):
    Update regarding backing up:

    Check out the new guide here: https://tinyurl.com/dlbackup



    9)Now flash:
    Code:
    dd if=/storage/external_SD/boot.img of=/dev/block/mmcblk0 seek=491520 bs=512
    Code:
    dd if=/storage/external_SD/twrp_4cores_3.1.1-1-g4.img of=/dev/block/mmcblk0 seek=573440 bs=512


    Now you have a kernel and twrp with max 4 CPUs and the faulty CPUs disabled. Enjoy your resurrected phone.

    Please test and leave comments

    Support / IRC Channel
    IRC means Internet Relay Chat and you will get best support there only.
    Choose how to get in:
    PC (HexChat and Pidgin are only 2 of them! This list is not complete!)
    Android (Yaaic, AndChat, HoloIRC, AndroIRC are only a few of them! This list is not complete!)
    Web (KiwiIRC-Web,FreenodeWebchat])
    When you have to choose a channel it is: #Carbon-user
    When you be asked for a server network choose: freenode

    Update: File for h815 20i is here: https://xdaforums.com/g4/general/fix-lg-g4-bootloop-issue-t3647538/post73282829
    File for h815 20p is here: https://xdaforums.com/g4/general/fix-lg-g4-bootloop-issue-t3647538/post73610856
    File for H811 20r is here: https://xdaforums.com/g4/general/fix-lg-g4-bootloop-issue-t3647538/post73636261
    3
    [....]
    # mount -t ext4 /dev/block/mmcblk1p1 /storage/external_SD (note, no errors)
    # ls /storage/external_SD (test123 is from when I had it mounted under FWUL)
    lost+found
    test123
    # touch /storage/external_SD/mytest
    touch: '/storage/external_SD/mytest': Permission denied
    # ls -la /storage/external_SD
    drwx------ root root 2017-08-08 20:55 lost+found
    -rw-r--r-- root root 11 2017-08-08 20:58 test123
    # ls -la /storage
    drwxrwxrwx root root 2017-08-08 20:58 external_SD
    #

    And of course without the ability to write to the filesystem, dd fails as well:

    # dd if=/dev/block/mmcblk0 of=/storage/external_SD/fulldump.img bs=1024
    dd: /storage/external_SD/fulldump.img: Permission denied
    #

    Just in case there was something weird with ext4, I also performed the same thing with ext2, and no luck -- Permission denied.
    Any suggestions?
    Is there perhaps a way for the connected computer to present storage over the USB connection and to mount it?
    Or, is there perhaps a way through this shell to enable the wireless NIC, and mount a CIFS/SMB share? (yes I know, a far shot in the dark)
    Again, additional thanks and PayPal reward for anything that helps me recover my photos and videos.

    First of all: donating with thx clicks is totally enough! ;)
    Second: /dev/block/mmcblk0pX: Permission denied --> Those are normal and ok. The only important one here is: /dev/block/mmcblk0 where u have read and write permissions to.

    This one here is interesting:
    /dev/block/mmcblk1p1: Permission denied
    as it shouldnt happen. Even more interesting is that u are able to mount it ?!

    Besides this please try the following:
    boot into Download mode without the external SD.
    Insert the sdcard once the dl mode is fully up and then exec the following:

    ls -la /dev/block/mmcblk1*
    mount -t ext4 /dev/block/mmcblk1p1 /storage/external_SD

    (you could mount exfat/vfat formatted sdcards with mount -t vfat /dev/block/mmcblk1p1 /storage/external_SD but ext4 is recommended)
    touch /storage/external_SD/mytest
    if it fails..
    chmod 777 /dev/block/mmcblk1p1
    touch /storage/external_SD/mytest



    please consider to join me on IRC which is much easier for troubleshooting.. See the OP for the details.

    .
    3
    I have h815 international and I flashed imperium rom 14.2 based on v20p.thsnk you in advance

    Στάλθηκε από το LG-H815 μου χρησιμοποιώντας Tapatalk

    just to be sure I mention it again: your device must be bootloader unlocked!

    here u go (see attached)

    @XeniX_Force : please add it to the OP ;)


    EDIT:
    oh just realized you mentioned Imperium.. they use another kernel... just a second..

    UPDATE:
    @andrewfx1
    modded imperium kernel for 20p (click) online.
    @XeniX_Force add this one as well to the OP

    .
    3
    As posted by (skdubg) and select GBR version.

    find attached the patched boot image for your ROM version.
    just to mention it again: the modded twrp image is highly recommended to flash as well bc TWRP will make use of all cores it can find when backing up/restore

    when your device is unlocked AND you have fastboot access you can just do a

    Code:
    [COLOR="Blue"]fastboot flash boot boot_4cores.img
    fastboot flash recovery twrp_4cores.img[/COLOR]

    The download mode way I described in the OP is required when you cannot access fastboot and for locked devices. I will try to create a KDZ out of this but atm this is the way to go then.

    I cannot say for sure that this way will soft brick locked devices or not. it should not but i cannot test it..!!
    It mainly depends on the fact if the whole boot image gets verified or just the kernel + initrd.
    afaik its not the whole boot partition... so it should work with the download mode way even on locked devices.


    @XeniX_Force : attach the file and fastboot cmds to the OP as well pls.

    .
    2
    H815 v20i 4cores boot image attached



    .