Skip to content

Instantly share code, notes, and snippets.

@javashin
Created January 24, 2023 06:56
Show Gist options
  • Save javashin/17628327d567974127fea4df400f9393 to your computer and use it in GitHub Desktop.
Save javashin/17628327d567974127fea4df400f9393 to your computer and use it in GitHub Desktop.
De-Brick Redmi Note 8 And Unlock Bootloader From EDL
After Flashing Wrong FW (Screen Flashing) Or Whatever Gives You HardBrick
From Linux .....
Install QDL >
https://www.96boards.org/documentation/consumer/guides/qdl.md.html
git clone https://git.linaro.org/landing-teams/working/qualcomm/qdl.git QDL-ENG-Ginkgo
cd QDL-ENG-Ginkgo ; make ; cd -
cp -Rfa QDL-ENG-Ginkgo QDL-BL-UNLOCK-Ginkgo
Follow Photos To Put Device On EDL MODE <> https://telegra.ph/Unbrick-Guide-for-Redmi-Note-88T-05-30 <> Get Firehose And Eng Rom Ginkgo
I Used https://t.me/xiaomiengs/49 And https://t.me/xiaomiengs/27
Get https://icedrive.net/s/baScvfja2G <> Unlock Ginkgo BL With laurel_sprout Bootloader (TEMP Device Change)
Place Firehose On Both Dirs , QDL-ENG-Ginkgo And QDL-BL-UNLOCK-Ginkgo
Unpack Eng Rom And Place All The Files Including patch0.xml + rawprogram0.xml on QDL-ENG-Ginkgo
Unpack ##ROMadd.com##_Redmi Note 8 Bootloader Unlock Tool Free(All MIUI).rar And Place All The Files In Unlock Folder On QDL-BL-UNLOCK-Ginkgo
Check with lsusb for >
Bus 001 Device 007: ID 05c6:9008 Qualcomm, Inc. Gobi Wireless Modem (QDL mode)
Check dmesg for something similar to this >
usb 1-3: new high-speed USB device number 7 using xhci_hcd
usb 1-3: New USB device found, idVendor=05c6, idProduct=9008, bcdDevice= 0.00
usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-3: Product: QUSB_BULK_CID:0411_SN:FAC12C0F
usb 1-3: Manufacturer: Qualcomm CDMA Technologies MSM
qcserial 1-3:1.0: Qualcomm USB modem converter detected
usb 1-3: Qualcomm USB modem converter now attached to ttyUSB0
qcserial ttyUSB0: Qualcomm USB modem converter now disconnected from ttyUSB0
Start Flashing Now
Enter To QDL-ENG-Ginkgo
Here Starts The Fun
./qdl --storage emmc --include /dev/ttyUSB0 ./ginkgo_willow_noauth_ddr.elf ./rawprogram0.xml ./patch0.xml
Disconnect From USB Press Vol + , Vol - , Power To Hardreset When Feel The Vibration Release Vol - , Power And Keep Pressing Vol +
On Vanilla Recovery Do Factory Data Reset And Reboot To System , After Boot Go Enable USB Debugging And Toggle OEM Unlock Power Off
Put Device In EDL Again
Enter QDL-BL-UNLOCK-Ginkgo
./qdl --storage emmc --include /dev/ttyUSB0 ./ginkgo_willow_noauth_ddr.elf ./rawprogram0.xml ./patch0.xml
Disconnect From USB Press Vol + , Vol - , Power To Hardreset When Feel The Vibration Release Vol + , Power And Keep Pressing Vol -
On Fastboot Mode Check >
fastboot getvar all <> Device is now laurel_sprout don't freak out
Then Unlock Bootloader >
fastboot flashing unlock
fastboot flashing unlock_critical
Enter those Commands several times until it's all unlocked
fastboot flashing get_unlock_ability <> Output must be (1)
Also on getvar all You Can See (bootloader) unlocked:yes
Get Global Fastboot Images Unpack And Replace The FireHose With The NoAuth Patched
https://bigota.d.miui.com/V11.0.12.0.PCOMIXM/ginkgo_global_images_V11.0.12.0.PCOMIXM_20201119.0000.00_9.0_global_37804edbcb.tgz
rename ginkgo_willow_noauth_ddr.elf to prog_emmc_firehose_Sm6125_ddr.elf
Edit flash_all.sh And Replace Product 'ginkgo' to 'laurel_sprout' On The Top Of The Script Save And Exit
Run flash_all.sh
If You See FAILED (remote: 'Flashing is not allowed for Critical Partitions
Repeat Unlock Commands And Try Again If The Images Are Not Fully Flashed Device Remains As laurel_sprout And Boot Fine But We Want Ginkgo....
DONE
Now Enjoy Unbricked Redmi Note 8 With Instant Unlocked Bootloader
Time To Flash TWRP Erase Everything Flash Last EEA FW + A Nice A13 Custom ROM ....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment