[MEMO] REDMAGIC 9 Pro (NX769J) | How to flash EDL ROM using QFIL [Unbrick]

投稿者: | 2024年5月11日
Info:
This article is a translation of an article I wrote before.
Maybe there are people who need this information. So I have created an article translated into English.
However, since my native language is Japanese, it may contain sentences that are not accurate.
If you can read Japanese, I recommend that you read the original article.
  • I want to install a Global ROM on my REDMAGIC 9 Pro+(Chinese version)!!!
  • I was customizing the system and it turned into a bootloop, which is pretty bad!!!!

There are many different situations for each person.
The situation is especially bad if the device is bootloop and cannot even boot to fastboot. (Based on actual experience). But as long as it's not physically broken, it should be recoverable.

I.e. unbrick is possible.

Many thanks to all at XDA Forums.

👇️👇️👇️👇️👇️
Redmagic 9 Pro | 9 Pro Plus (NX769J) 9.0.13 Global EDL ROM | XDA Forums
👆️👆️👆️👆️👆️

Contents


What to prepare

  • REDMAGIC 9 Pro/Pro+
    • Since it flash in EDL mode, there should be no problem if the bootloader is locked. However, most people are probably reading this page because of problems after unlocking.
  • Windows PC with QFIL working properly
    • Which one??? I don't know. There is a driver compatibility issue that you just have to try.
      I heard that it is not recognized if the CPU is Ryzen. However, it seems to be recognized depending on the driver.
      Well, IntelCPU will be more stable.
  • Compatible USB cable
    • Which one??? I don't know this either. All you can do is try different cables.
      At least Anker USB 2.0 AtoC cable worked well.
  • QPST
    • Developer tools for Qualcomm internals that have been leaked for some reason.
      It seems that it only works if it is a QFIL that goes in when QPST is installed, not the QFIL stand-alone version. Basically, choose the latest version, but if it doesn't work, you can try past versions.
      If you change the installation location from the default “C:\Program Files (x86)\Qualcomm\QPST\, it will not work correctly, so use the default settings.
      QPST Tool - Qualcomm Product Support Tools (QPST)
  • Qualcomm HS-USB QDLoader 9008 Driver
  • REDMAGICOS 9.0.13 Global EDL ROM
  • firehose.elf

About EDL mode

Qualcomm Emergency DownLoad mode.
As the name suggests, this is a feature on Qualcomm SoCs. Internal firmware can be accessed even if the device cannot be booted. This and QPST make it possible to unbrick. And it can be exploited.

For REDMAGIC 9 Pro, accessing the EDL mode is easy.
In the power-off state, simply hold down the volume keys up and down at the same time and connect the USB cable.
If the ADB is available, you can boot with the ADB command.

After booting EDL mode, the screen remains dark and nothing is displayed. By checking the device manager, you can see that the device is running in EDL mode.

To exit the EDL, press and hold the power button to turn off the power.

Quote: XDA Forums

How to flash

QPST and driver installation instructions are omitted.

Background knowledge

Information about the location and file to flash data is described in XML. The same number of “rawprogram” and “patch” are used as a pair.
In the case of this ROM, each is divided into six files from 0 to 5. Flash all six to complete the process.

Note:
The “reprogram” folder also contains rawprogram0-5. These XMLs seems to flash more files. However, there is no need to use this one.
This means that there is no need to check at the contents of the “reprogram” folder.

Files with the same number are in pairs

Preparation

The working folder should not contain any 2-byte characters and the path should not be too long. It would be a good idea to have it directly under the C drive.
Extract “Redmagic9Pro_Global_9008.rar” and place “firehose.elf” in the folder with many files.
Note that the images are renamed folders. So, by default, "firehose.elf" is placed in the “nubia9” folder.

Put firehose.elf

Flash with QFIL

How to use QFIL:

  1. Select "Flat Build" for Build Type.
  2. Select "firehose.elf".
  3. Select "rawprogram" and "patch" XML files.
    Multiple selections are possible, so select all 0-5 at once.
  4. Verify that XML selection is correct.
  5. Bottom right, select "UFS" for storage.
  6. Connect device in EDL mode and select port if not automatically selected.
  7. Press Download button to start flash! It may appear to stop, but wait.
  8. When "Finish Download" appears in the log, it is complete.
QFIL setting

In step 6, i.e., just before the flash, connect the device. This is because for some reason QFIL does not recognize EDL after a while after being connected in EDL mode.

Old Information: Select XML one by one

*** Back when I didn't know I could select multiple XMLs at once. ***

----------
Also, once flashed, the QFIL will no longer recognize the EDL. It is not possible to flash continuously. But it is necessary to flash 0 to 5.

Therefore, the following steps are followed:

  1. Unplug the USB cable and press and hold the “Vol up + Power” button for about 11 seconds to force restart.
  2. Keep pressing the button to enter recovery mode.
  3. Power off from recovery mode.
  4. Select the next XML files in QFIL (steps 3 and 4).
  5. Return to step 6.

Repeat until all (6 XML files) are flashed. There is no need to restart the QFIL.

Why boot into recovery mode once?
Bootloop because ROM is incomplete. Even if you try to reboot by pressing the power button long enough, it is faster to reboot with a bootloop, so the system reboots endlessly.

Flash rawprogram0/patch0 through rawprogram5/patch5 and you are done. (Well, it is important to flash everything, and the order is not important.)
----------

After booting into the system, the initial setup will begin.

At this time, it may boot in SAFE MODE. Reboot again to return to normal mode.
It may also fail to boot and ask if you want to try reboot or format data. If so, format data. You should then be able to boot.

This will install REDMAGIC OS 9.0.13.
OTA updates work fine, so you may want to update to the latest version.


Supplemental Information

Supplemental information on QFIL errors

  • ERROR: function: main:320 Uploading Image using Sahara protocol failed
    • In this case, the QFIL does not recognize the EDL.
      Turn off the device and reconnect it in EDL mode, change the driver, change the USB cable, change the QPST version, change the PC to be used, etc.
  • Download Fail:FireHose Fail:FHLoader Fail:Process fail
    • Connection to EDL mode is successful, but there is a problem with the firehose file.
      This error that occurs when trying to start QFIL Partition Manager. It does not seem to work with the firehose we used this time.

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です