[GUIDE] How to restore IMEI, Baseband, MAC, fix NVRAM WARNING and fix NVDATA CORRUPTED on MERLIN ? (Redmi Note 9 / Redmi 10X 4G)

Search This thread

VD171

Senior Member
Jun 21, 2012
2,937
2
2,172
127.0.0.1
LG K10
Samsung Galaxy J7
Hello guys, can anyone help me i need some guidance. My redmi 9 got hard bricked but i was able to repair him with SP flash tool. Sadly in the process i lost my IMEI. Also was able to repair him with Maui meta. Everything works fine, but now in WiFi list, i have this WiFi error called nvram warning 0x10. Im trying to fix ir but its seems Impossible. Already rooted the phone, trying to use some WiFi fix files but when i use the apk es file explorer, i follow tutorial but on data folder i dont find any nvram folder. I think its was deleted on the hard brick repair process. So i created a new nvram file with scatter file that was inside fastboot rom folder. Made some changes that were asked from a internet tutorial, and save the new nvram.img in the fastboot rom folder, I changed too some informations about scatter file. Some words that were written like none changed for nvram.img and false for true. Then I saved.
After that i flashed with SP flash, ONLY the nvram file and everything went fine as you can see in the pictures. Once more i installed twrp, root, but when I go to the folder data, i still can't find nvram folder. I don't know what I'm doing wrong. As anybody have a solution for this?
Just write a new wifi MAC using modem meta.
Good luck
 

Rlucifer.01

Member
Sep 6, 2021
39
8
You're right. But i was thinking if i do what you say, write WiFi mac address, then IMEI recover with maui, then i could install TWRP make recovery still with eng rom instaled? And after that install normal Rom with sp flash, after that install TWRP again and install the backup made inside the normal rom? Or will backup made in eng mode be deleted after running the official rom? I could also backup the files inside an sd card.
Why not use sp flash tool readback ? That will make it easier
 
  • Like
Reactions: Nicolasjfb

Nicolasjfb

Member
Apr 10, 2022
18
4
Why not use sp flash tool readback ? That will make it easier
Well i did that. I explained that in my first message. I created nvram.img from scatter file that was inside fastboot rom folder. Opened scatter file with block note changed two things from nvram text and then used sp flash tool readback to save the nvram on the computer. After that i putted nvram.img inside the official rom folder and changed scatter so i could add nvram. Then inside sp flash i only marked the nvram option and clicked download and everything went okay. But then still no nvram partition inside the data partition, i checked with root installed and es explorer apk.

Well I'm already in meta mode now what? Where i do write WiFi mac address, and first where do i get him.

Edit: think i found it 😄 now i write it where?
 

Attachments

  • IMG_20220424_005312.jpg
    IMG_20220424_005312.jpg
    2.7 MB · Views: 123
  • IMG_20220424_010235.jpg
    IMG_20220424_010235.jpg
    2 MB · Views: 122
  • IMG_20220424_010302.jpg
    IMG_20220424_010302.jpg
    2.7 MB · Views: 107
  • IMG_20220424_010942.jpg
    IMG_20220424_010942.jpg
    3.3 MB · Views: 133
Last edited:

Rlucifer.01

Member
Sep 6, 2021
39
8
Well i did that. I explained that in my first message. I created nvram.img from scatter file that was inside fastboot rom folder. Opened scatter file with block note changed two things from nvram text and then used sp flash tool readback to save the nvram on the computer. After that i putted nvram.img inside the official rom folder and changed scatter so i could add nvram. Then inside sp flash i only marked the nvram option and clicked download and everything went okay. But then still no nvram partition inside the data partition, i checked with root installed and es explorer apk.

Well I'm already in meta mode now what? Where i do write WiFi mac address, and first where do i get him.

Edit: think i found it 😄 now i write it where?
It should be around there check everything until you find it, update wifi mac
 
  • Like
Reactions: Nicolasjfb

Nicolasjfb

Member
Apr 10, 2022
18
4
It should be around there check everything until you find it, update wifi mac
Think i found it ☺️ Is it here down below? Where it says random mac address i Change the number for my wifi mac address, then i click on update mac. That's it? And after that i can just recover IMEI with maui meta, then flash oficial rom with sp flash or before leaving the eng rom i need to do a backup?

Edit: i did what i said now i got a pop up message saying to reboot phone.
 

Attachments

  • IMG_20220424_011415.jpg
    IMG_20220424_011415.jpg
    2.5 MB · Views: 94

Rlucifer.01

Member
Sep 6, 2021
39
8
Think i found it ☺️ Is it here down below? Where it says random mac address i Change the number for my wifi mac address, then i click on update mac. That's it? And after that i can just recover IMEI with maui meta, then flash oficial rom with sp flash or before leaving the eng rom i need to do a backup?
Check your wifi , is it good or still have error ? For imei you can check by setting, is it still there or its blank, if it blank just use maui meta to write it back
 
  • Like
Reactions: Nicolasjfb

Nicolasjfb

Member
Apr 10, 2022
18
4
Check your wifi , is it good or still have error ? For imei you can check by setting, is it still there or its blank, if it blank just use maui meta to write it back
Where do i see that? Im not seeing any WiFi list to connect. About IMEI it shows up blanck will recover with maui meta again. I think i can only write him on sim card 2 if i try to write on sim card 1 someone told me it can give a error after flashing normal rom saying nvdata corrupted. Last time i did it that way.
 

Attachments

  • IMG_20220424_012518.jpg
    IMG_20220424_012518.jpg
    3.4 MB · Views: 36

Rlucifer.01

Member
Sep 6, 2021
39
8
Where do i see that? Im not seeing any WiFi list to connect. About IMEI it shows up blanck will recover with maui meta again. I think i can only write him on sim card 2 if i try to write on sim card 1 someone told me it can give a error after flashing normal rom saying nvdata corrupted. Last time i did it that way.
Yes, if your planning to use stock miui you can only use sim2, dual sim only work with custom rom with custom kernel and patched md1img..
 
  • Like
Reactions: Nicolasjfb

Nicolasjfb

Member
Apr 10, 2022
18
4
Yes, if your planning to use stock miui you can only use sim2, dual sim only work with custom rom with custom kernel and patched md1img..
found the WiFi list and no nvram error x10 is not showing up anymore. ☺️ Thank you so much dude. Now only need to write IMEI and then flash normal rom with sp flash and that's it correct?


Edit: I'm seeing the IMEI toturial the guy it's saying before recover IMEI i need to erase nvram and nvdata with fastboot command. Do i do that or just skip that step and write only IMEi?
 

Rlucifer.01

Member
Sep 6, 2021
39
8
Your welcome, yes everything should be fine, when you using sp flash tool dont use format all+download, is gonna format your nvram then losing imei and mac wifi once more
 
  • Like
Reactions: Nicolasjfb

Rlucifer.01

Member
Sep 6, 2021
39
8
found the WiFi list and no nvram error x10 is not showing up anymore. ☺️ Thank you so much dude. Now only need to write IMEI and then flash normal rom with sp flash and that's it correct?


Edit: I'm seeing the IMEI toturial the guy it's saying before recover IMEI i need to erase nvram and nvdata with fastboot command. Do i do that or just skip that step and write only IMEi?
If you erase it, you will lose you mac wifi then it need you to update the mac address again
 

Nicolasjfb

Member
Apr 10, 2022
18
4
Your welcome, yes everything should be fine, when you using sp flash tool dont use format all+download, is gonna format your nvram then losing imei and mac wifi once more
Alright then. Thank you for everything. You are a life saver 😉. The IMEI toturial that im seeing says before writing IMEI back i need to erase nvram and data first with fastboot command. Can i just skip that part? Doing what it says will not delete the WiFi Mac address or nvram and nvdata? I think i need to find another toturial, right? I can't trust this guy!
 

Rlucifer.01

Member
Sep 6, 2021
39
8
I have tried write imei once,its simpel turn off your phone, open maui meta click connect then plug your phone to pc, make sure you already installed the driver
 
  • Like
Reactions: Nicolasjfb

Seif El-Sayed

Member
Jul 10, 2022
6
0
Warnings:

- This guide requires the backup be done when the IMEI was present!
- NEVER try to flash in "format all" mode ! Otherwise, you will LOSE all secure and identifying infos for your device. Like IMEI.
- Keep your backup files safe and secure ! If you can, encrypt them.
- Never try to share your backups or your security and privacy will be compromised.
- USE AT YOUR OWN RISK. I AM NOT RESPONSIBLE FOR YOUR ACTIONS.


What this guide does ?

- Restores IMEI.
- Restores Baseband/RADIO/Modem.
- Restores Wi-Fi MAC.
- Restores Bluetooth MAC.
- Fixes "NVRAM WARNING: ERR 0x10" error.
- Fixes NV Data corrupted error.
- Fixes unknown baseband.
- Fixes null IMEI.

How to backup ?
You can backup the listed partitions using TWRP, PBRP, DD, SP Flash Tool or anyway you want.
I suggest you to use your favorite tool.

How to restore ?
You can restore the listed partitions using TWRP, PBRP, DD, SP Flash Tool or anyway you want.
I suggest you to use same tool of backup.

Partition: nvcfg
Description: This partition stores variable configs of NVDATA and NVRAM.​
Size: 32.768 KiB (32 MiB)​
Block: /dev/block/mmcblk0p11​
Start address: 0xa4a2000​
Length: 0x2000000​
2021-02-07_17.15.13.png

Partition: nvdata
Description: This partition stores variable data of secure and identifying infos for your device. Like IMEI, WiFi MAC, Bluetooth MAC, calibration data and others.​
Size: 65.536 KiB (64 MiB)​
Block: /dev/block/mmcblk0p12​
Start address: 0xc4a2000​
Length: 0x4000000​
2021-02-07_17.14.51.png

Partition: nvram
Description: This partition stores persistent data of secure and identifying infos for your device. Like IMEI, WiFi MAC, Bluetooth MAC, calibration data and others.​
Size: 65.536 KiB (64 MiB)​
Block: /dev/block/mmcblk0p21​
Start address: 0x19f00000​
Length: 0x4000000​
2021-02-07_17.15.59.png

Partition: persist
Description: This partition stores persistent data for factory reset protection. Like google account and miaccount/micloud.​
Size: 49.152 KiB (48 MiB)​
Block: /dev/block/mmcblk0p13​
Start address: 0x104a2000​
Length: 0x3000000​
2021-02-07_17.16.58.png

Partition: proinfo
Description: This partitions stores persistent data of default structure for NVRAM/RADIO/MODEM/BASEBAND.​
Size: 3.072 KiB (3 MiB)​
Block: /dev/block/mmcblk0p19​
Start address: 0x18200000​
Length: 0x300000​
2021-02-07_17.16.10.png

Partition: protect1 (or protect_f)
Description: This partition stores variable data of SIM/RADIO/MODEM/BASEBAND settings and infos.​
Size: 8.192 KiB (8 MiB)​
Block: /dev/block/mmcblk0p15​
Start address: 0x164a2000​
Length: 0x800000​
2021-02-07_17.16.27.png

Partition: protect2 (or protect_s)
Description: This partition stores variable data of SIM/RADIO/MODEM/BASEBAND settings and infos.​
Size: 11.640 KiB (11,36 MiB)​
Block: /dev/block/mmcblk0p16​
Start address: 0x16ca2000​
Length: 0xb5e000​
2021-02-07_17.16.48.png



:unsure: Do you need help with your MERLIN device ?
Read this FAQ: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4225163/
I have backup with twrp and when trying to restore and open the phone again then doing factory reset everything is lost and i lost call sensor too
 

VD171

Senior Member
Jun 21, 2012
2,937
2
2,172
127.0.0.1
LG K10
Samsung Galaxy J7
Where can I find a patched md1img.img file for Redmi 9A?
 

matteo555

Member
Jun 22, 2022
47
5
I created nvram.img from scatter file
scatter file from eng_rom (engeneered_rom) ????

by that, nvram.img have inside all stored IMEI and WIFI-mac_address replacement and modification that has done in eng_rom, right ?
After nvram.img is saved, (that means the device is stil under eng_rom) after that, you must flash device into stock_rom, correct ?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Warnings:

    - This guide requires the backup be done when the IMEI was present!
    - NEVER try to flash in "format all" mode ! Otherwise, you will LOSE all secure and identifying infos for your device. Like IMEI.
    - Keep your backup files safe and secure ! If you can, encrypt them.
    - Never try to share your backups or your security and privacy will be compromised.
    - USE AT YOUR OWN RISK. I AM NOT RESPONSIBLE FOR YOUR ACTIONS.


    What this guide does ?

    - Restores IMEI.
    - Restores Baseband/RADIO/Modem.
    - Restores Wi-Fi MAC.
    - Restores Bluetooth MAC.
    - Fixes "NVRAM WARNING: ERR 0x10" error.
    - Fixes NV Data corrupted error.
    - Fixes unknown baseband.
    - Fixes null IMEI.

    How to backup ?
    You can backup the listed partitions using TWRP, PBRP, DD, SP Flash Tool or anyway you want.
    I suggest you to use your favorite tool.

    How to restore ?
    You can restore the listed partitions using TWRP, PBRP, DD, SP Flash Tool or anyway you want.
    I suggest you to use same tool of backup.

    Partition: nvcfg
    Description: This partition stores variable configs of NVDATA and NVRAM.​
    Size: 32.768 KiB (32 MiB)​
    Block: /dev/block/mmcblk0p11​
    Start address: 0xa4a2000​
    Length: 0x2000000​
    2021-02-07_17.15.13.png

    Partition: nvdata
    Description: This partition stores variable data of secure and identifying infos for your device. Like IMEI, WiFi MAC, Bluetooth MAC, calibration data and others.​
    Size: 65.536 KiB (64 MiB)​
    Block: /dev/block/mmcblk0p12​
    Start address: 0xc4a2000​
    Length: 0x4000000​
    2021-02-07_17.14.51.png

    Partition: nvram
    Description: This partition stores persistent data of secure and identifying infos for your device. Like IMEI, WiFi MAC, Bluetooth MAC, calibration data and others.​
    Size: 65.536 KiB (64 MiB)​
    Block: /dev/block/mmcblk0p21​
    Start address: 0x19f00000​
    Length: 0x4000000​
    2021-02-07_17.15.59.png

    Partition: persist
    Description: This partition stores persistent data for factory reset protection. Like google account and miaccount/micloud.​
    Size: 49.152 KiB (48 MiB)​
    Block: /dev/block/mmcblk0p13​
    Start address: 0x104a2000​
    Length: 0x3000000​
    2021-02-07_17.16.58.png

    Partition: proinfo
    Description: This partitions stores persistent data of default structure for NVRAM/RADIO/MODEM/BASEBAND.​
    Size: 3.072 KiB (3 MiB)​
    Block: /dev/block/mmcblk0p19​
    Start address: 0x18200000​
    Length: 0x300000​
    2021-02-07_17.16.10.png

    Partition: protect1 (or protect_f)
    Description: This partition stores variable data of SIM/RADIO/MODEM/BASEBAND settings and infos.​
    Size: 8.192 KiB (8 MiB)​
    Block: /dev/block/mmcblk0p15​
    Start address: 0x164a2000​
    Length: 0x800000​
    2021-02-07_17.16.27.png

    Partition: protect2 (or protect_s)
    Description: This partition stores variable data of SIM/RADIO/MODEM/BASEBAND settings and infos.​
    Size: 11.640 KiB (11,36 MiB)​
    Block: /dev/block/mmcblk0p16​
    Start address: 0x16ca2000​
    Length: 0xb5e000​
    2021-02-07_17.16.48.png



    :unsure: Do you need help with your MERLIN device ?
    Read this FAQ: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4225163/
    2
    I have tried write imei once,its simpel turn off your phone, open maui meta click connect then plug your phone to pc, make sure you already installed the driver
    Ok once more thank you for everything. I hope all this conversation between us helps other people in the future with the same problems. 🤠

    Stay safe.
    1
    Warnings:

    - This guide requires the backup be done when the IMEI was present!
    - NEVER try to flash in "format all" mode ! Otherwise, you will LOSE all secure and identifying infos for your device. Like IMEI.
    - Keep your backup files safe and secure ! If you can, encrypt them.
    - Never try to share your backups or your security and privacy will be compromised.
    - USE AT YOUR OWN RISK. I AM NOT RESPONSIBLE FOR YOUR ACTIONS.



    Partition: nvram
    Description: This partition stores persistent data of secure and identifying infos for your device. Like IMEI, WiFi MAC, Bluetooth MAC, calibration data and others.​
    Size: 65.536 KiB (64 MiB)​
    Block: /dev/block/mmcblk0p21​
    Start address: 0x19f00000​
    Length: 0x4000000​
    2021-02-07_17.15.59.png



    in my case nvram location in /dev/block/mmcblk0p22Screenshot_18.png
    Screenshot_18.png
    1
    HOW TO TAKE BACK UP REPAIRED IMEI VIA METAMOD ON ENGINEERING ROMNOW I WANNA FLASH LATEST ROM CAN UH TELL ME HOW TAKE BACK UP...? ND RESTORE IN OFFICIAL ROM?
    You can backup the listed partitions using TWRP, PBRP, DD, SP Flash Tool or any tool you want.
    The thread is not specific for how to use any tool.
    You need to google about it or watch any video in youtube.
    Good luck
    1
    I am getting a "checksum invalid" error.
    I flashed the engineering ROM to restore my IMEI information. Using the scatter file from the engineering ROM, I used SP flash tool to extract nvcfg, nvdata, nvram, persist, proinfo, pretect1 and protect2. I do this using the "readback" option in SP Flash
    I then edit the scatter file of stock global 12.0.6, and load it back into SP flash tool, but it tells me the checksums are invalid. Am I doing something incorrectly?

    EDIT: I've just read in another post that trying to set IMEI 1 will cause this error. I'll try the process again and update this if I learn anything else.

    EDIT2: Same issue when just doing IMEI2 on the partition. Pulling the above mentioned partitions from the device still results in files that give a failing checksum. Flashing a the stock 12.0.6 ends up in the recovery menu with the "NV data is corrupted" message
    Try to delete the file "Checksum.ini".