[Xiaomi Redmi Note 4 Questions & Answers] feitlimit:
I flased stock rom with MiFlash successfully but it wasn't rebooting into system.

So I tried resetting using edl tool. But even after successful reset the phone was not rebooting to system (T-T) HALPPPPPP

Here is the response:

When I did edl reset

/Desktop/edl$ edl reset
Qualcomm Sahara / Firehose Client V3.60 (c) B.Kerler 2018-2022.
main - Trying with no loader given ...
main - Waiting for the device
......
main - Hint: Press and hold vol up+dwn, connect usb. For some, only use vol up.
main - Xiaomi: Press and hold vol dwn + pwr, in fastboot mode connect usb.
Run "./fastpwn oem edl".
main - Other: Run "adb reboot edl".

..main - Device detected :)
sahara - Protocol version: 2, Version supported: 1
main - Mode detected: sahara
sahara -
------------------------
HWID: 0x000460e100000000 (MSM_ID:0x000460e1,OEM_ID:0x0000,MODEL_ID:0x0000)
CPU detected: "MSM8953"
PK_HASH: 0x57158eaf1814d78fd2b3105ece4db18a817a08ac664a5782a925f3ff8403d39a
Serial: 0xb94b1788

sahara - Detected loader: /usr/local/lib/python3.10/dist-packages/edlclient-3.60-py3.10.egg/edlclient/../Loaders/Duplicate/000460e100000000_57158eaf1814d78f_fhprg.bin
sahara - Protocol version: 2, Version supported: 1
sahara - Uploading loader /usr/local/lib/python3.10/dist-packages/edlclient-3.60-py3.10.egg/edlclient/../Loaders/Duplicate/000460e100000000_57158eaf1814d78f_fhprg.bin ...
sahara - 32-Bit mode detected.
sahara - Firehose mode detected, uploading...
sahara - Loader successfully uploaded.
main - Trying to connect to firehose loader ...
firehose_client
firehose_client - [LIB]: No --memory option set, we assume "eMMC" as default ..., if it fails, try using "--memory" with "UFS","NAND" or "spinor" instead !
firehose - TargetName=MSM8953
firehose - MemoryName=eMMC
firehose - Version=1
firehose - Trying to read first storage sector...
firehose - Running configure...
firehose - Storage report:
firehose - total_blocks:122142720
firehose - block_size:512
firehose - page_size:512
firehose - num_physical:3
firehose - mfr_id:144
firehose - serial_num:684331451
firehose - fw_version:162
firehose - mem_type:eMMC
firehose - prod_name:HCG8a4
firehose_client - Supported functions:
-----------------
firehose - Reset succeeded.

After that when I did edl print gpt

/Desktop/edl$ edl printgpt
Qualcomm Sahara / Firehose Client V3.60 (c) B.Kerler 2018-2022.
main - Trying with no loader given ...
main - Waiting for the device
main - Device detected :)
main - Mode detected: firehose
main - Trying to connect to firehose loader ...
firehose - Nop succeeded.
firehose - No supported functions detected, configuring qc generic commands
firehose -
firehose_client
firehose_client - [LIB]: No --memory option set, we assume "UFS" as default ..., if it fails, try using "--memory" with "UFS","NAND" or "spinor" instead !
firehose
firehose - [LIB]: Memory type was set as UFS but device reported it is eMMC instead.
firehose - TargetName=MSM8953
firehose - MemoryName=eMMC
firehose - Version=1
firehose - Trying to read first storage sector...
firehose - Running configure...
firehose - Storage report:
firehose - total_blocks:122142720
firehose - block_size:512
firehose - page_size:512
firehose - num_physical:3
firehose - mfr_id:144
firehose - serial_num:684331451
firehose - fw_version:162
firehose - mem_type:eMMC
firehose - prod_name:HCG8a4
firehose_client - Supported functions:
-----------------
configure,program,firmwarewrite,patch,setbootablestoragedrive,ufs,emmc,power,benchmark,read,getstorageinfo,getcrc16digest,getsha256digest,erase,peek,poke,nop,xml

Parsing Lun 0:

GPT Table:
-------------
modem: Offset 0x0000000004000000, Length 0x0000000005400000, Flags 0x1000000000000000, UUID b1a3b73b-3c54-7af9-fb67-ba5085083023, Type EFI_BASIC_DATA, Active False
fsc: Offset 0x000000000c000000, Length 0x0000000000000400, Flags 0x0000000000000000, UUID ca14a617-afa1-fa4c-ddd1-893f321b46a2, Type 0x57b90a16, Active False
ssd: Offset 0x000000000c000400, Length 0x0000000000002000, Flags 0x0000000000000000, UUID d6548930-6418-9d08-e2af-ab2c28edfdb0, Type 0x2c86e742, Active False
sbl1: Offset 0x000000000c002400, Length 0x0000000000080000, Flags 0x0000000000000000, UUID 120b8f5a-c11b-7adc-a290-718663eddd57, Type 0xdea0ba2c, Active False
sbl1bak: Offset 0x000000000c082400, Length 0x0000000000080000, Flags 0x0000000000000000, UUID b3bda10d-eb75-e084-4c0d-0a5c6d5df1e2, Type EFI_BASIC_DATA, Active False
rpm: Offset 0x000000000c102400, Length 0x0000000000080000, Flags 0x0000000000000000, UUID 1e2b0d4e-6328-d9b0-3068-db9a6e5a46f1, Type 0x98df793, Active False
rpmbak: Offset 0x000000000c182400, Length 0x0000000000080000, Flags 0x0000000000000000, UUID 37871a50-ce6b-a20b-ac87-5193ba91d70e, Type EFI_BASIC_DATA, Active False
tz: Offset 0x000000000c202400, Length 0x0000000000200000, Flags 0x0000000000000000, UUID a1f48661-736a-a839-5799-4656f9cd4482, Type 0xa053aa7f, Active False
tzbak: Offset 0x000000000c402400, Length 0x0000000000200000, Flags 0x0000000000000000, UUID 1ae6fd30-d084-47e4-1aeb-0ba323c06754, Type EFI_BASIC_DATA, Active False
devcfg: Offset 0x000000000c602400, Length 0x0000000000040000, Flags 0x0000000000000000, UUID 2a7a0aae-e698-c6fa-1dc8-4727f0672c23, Type 0xf65d4b16, Active False
devcfgbak: Offset 0x000000000c642400, Length 0x0000000000040000, Flags 0x0000000000000000, UUID 661c69d0-0f09-0ced-9921-bdf7f84facfe, Type 0xf65d4b16, Active False
dsp: Offset 0x000000000c682400, Length 0x0000000001000000, Flags 0x0000000000000000, UUID 108d7e23-25c4-f34a-6aa9-a540a512c680, Type EFI_BASIC_DATA, Active False
modemst1: Offset 0x000000000d682400, Length 0x0000000000180000, Flags 0x0000000000000000, UUID a5da5a4b-8a04-39d2-8bb4-fd4515b83e56, Type 0xebbeadaf, Active False
modemst2: Offset 0x000000000d802400, Length 0x0000000000180000, Flags 0x0000000000000000, UUID b2095c6c-2001-fe13-c5e9-6dd83e493687, Type 0xa288b1f, Active False
DDR: Offset 0x0000000010000000, Length 0x0000000000008000, Flags 0x1000000000000000, UUID 8debcfca-3bb7-8cdd-786f-de0eb346891c, Type 0x20a0c19c, Active False
fsg: Offset 0x0000000010008000, Length 0x0000000000180000, Flags 0x1000000000000000, UUID c62d1ad3-50fa-dcac-5df1-78d4f80a2ebb, Type 0x638ff8e2, Active False
sec: Offset 0x0000000010188000, Length 0x0000000000004000, Flags 0x1000000000000000, UUID 57da92e3-79a8-a4dc-082d-3dec9abb14de, Type 0x303e6ac3, Active False
splash: Offset 0x0000000014000000, Length 0x0000000000b00000, Flags 0x0000000000000000, UUID 740e4d83-3f3b-edd5-9d00-82db1d0f21b0, Type 0x20117f86, Active False
aboot: Offset 0x0000000018000000, Length 0x0000000000100000, Flags 0x1000000000000000, UUID 085978fa-3652-ab06-3283-3f7e124cce78, Type 0x400ffdcd, Active False
abootbak: Offset 0x0000000018100000, Length 0x0000000000100000, Flags 0x1000000000000000, UUID 54d50850-306f-c06d-dabf-7efb28c64d50, Type EFI_BASIC_DATA, Active False
boot: Offset 0x0000000018200000, Length 0x0000000004000000, Flags 0x1000000000000000, UUID a18f7044-6029-bb3b-36a7-d4fa1d90addd, Type 0x20117f86, Active False
recovery: Offset 0x000000001c200000, Length 0x0000000004000000, Flags 0x1000000000000000, UUID 1d9612f0-745b-10b7-67b8-1fc70bdcd99f, Type 0x9d72d4e4, Active False
devinfo: Offset 0x0000000020200000, Length 0x0000000000100000, Flags 0x1000000000000000, UUID 26cc8f9b-1564-6c97-74a9-b807d5e3f5b1, Type 0x1b81e7e6, Active False
system: Offset 0x0000000020300000, Length 0x00000000c0000000, Flags 0x1000000000000000, UUID cc933ccb-9256-29a8-8810-a8aed758d967, Type 0x97d7b011, Active False
cache: Offset 0x00000000e4000000, Length 0x0000000010000000, Flags 0x0000000000000000, UUID f6c00d98-736d-5ab4-71c7-1071028eff13, Type 0x5594c694, Active False
persist: Offset 0x00000000f4000000, Length 0x0000000002000000, Flags 0x0000000000000000, UUID f4c3a245-9cb1-f9c9-db61-7a42afa3f3c0, Type 0x6c95e238, Active False
misc: Offset 0x00000000f6000000, Length 0x0000000000100000, Flags 0x0000000000000000, UUID 1e4a0dc1-8ae2-0b84-c576-8fc7e8fa17d9, Type 0x82acc91f, Active False
keystore: Offset 0x00000000f6100000, Length 0x0000000000080000, Flags 0x0000000000000000, UUID c2322be2-94a0-9c7b-293c-fddc90f3f895, Type 0xde7d4029, Active False
config: Offset 0x00000000f6180000, Length 0x0000000000008000, Flags 0x0000000000000000, UUID d379cd4c-7ea4-5cc5-9fe4-a335222a7a25, Type 0x91b72d4d, Active False
oem: Offset 0x00000000f6188000, Length 0x0000000010000000, Flags 0x0000000000000000, UUID 9d4d49f4-0cb5-3c23-72f3-e7c71fd0b775, Type 0x7db6ac55, Active False
limits: Offset 0x0000000108000000, Length 0x0000000000008000, Flags 0x1000000000000000, UUID f2525664-9500-507a-99f0-882d6c701257, Type 0x10a0c19c, Active False
mota: Offset 0x000000010c000000, Length 0x0000000000080000, Flags 0x0000000000000000, UUID ba4543b3-f802-c688-478b-2cd30c69d546, Type EFI_BASIC_DATA, Active False
dip: Offset 0x000000010c080000, Length 0x0000000000100000, Flags 0x0000000000000000, UUID c7354291-9240-daa8-5001-27cb38ca47d7, Type 0x4114b077, Active False
mdtp: Offset 0x000000010c180000, Length 0x0000000002000000, Flags 0x0000000000000000, UUID c27ac3ab-c8a4-a590-21e7-b5168f3b14ae, Type 0x3878408a, Active False
syscfg: Offset 0x000000010e180000, Length 0x0000000000080000, Flags 0x0000000000000000, UUID 2f18a193-8d1b-2b15-7910-e93a5e5675e2, Type 0x98df793, Active False
mcfg: Offset 0x000000010e200000, Length 0x0000000000400000, Flags 0x0000000000000000, UUID cd42a46e-c05e-1c17-9545-ab08e4761023, Type EFI_BASIC_DATA, Active False
lksecapp: Offset 0x0000000110000000, Length 0x0000000000020000, Flags 0x1000000000000000, UUID 68beb1db-7246-0bd3-94a6-ef439b86851c, Type 0xa11d2a7c, Active False
lksecappbak: Offset 0x0000000110020000, Length 0x0000000000020000, Flags 0x1000000000000000, UUID a79ec8d0-1b67-d27f-52fd-1db5ef2f79a2, Type 0xa11d2a7c, Active False
cmnlib: Offset 0x0000000110040000, Length 0x0000000000040000, Flags 0x1000000000000000, UUID 62c87bd4-2563-8a6c-1925-2effb890bc8b, Type 0x73471795, Active False
cmnlibbak: Offset 0x0000000110080000, Length 0x0000000000040000, Flags 0x1000000000000000, UUID 028d9223-6709-ef26-3dfe-7abdd93b4755, Type 0x73471795, Active False
cmnlib64: Offset 0x00000001100c0000, Length 0x0000000000040000, Flags 0x1000000000000000, UUID ca84fcba-56b2-24e4-6d02-26820d98fd14, Type 0x8ea64893, Active False
cmnlib64bak: Offset 0x0000000110100000, Length 0x0000000000040000, Flags 0x1000000000000000, UUID b63b07f6-c52d-730f-f346-2e9c45d29675, Type 0x8ea64893, Active False
keymaster: Offset 0x0000000110140000, Length 0x0000000000040000, Flags 0x1000000000000000, UUID 8953626e-3a6d-1923-ec9f-b9bf7737ea92, Type 0xe8b7cf6e, Active False
keymasterbak: Offset 0x0000000110180000, Length 0x0000000000040000, Flags 0x1000000000000000, UUID e032b98f-7a67-6f08-ffc2-ea2a33112776, Type 0xe8b7cf6e, Active False
apdp: Offset 0x0000000114000000, Length 0x0000000000040000, Flags 0x0000000000000000, UUID 76af9d37-c95c-3eb4-ca7f-32a04a3aac14, Type 0xe6e98da2, Active False
msadp: Offset 0x0000000114040000, Length 0x0000000000040000, Flags 0x0000000000000000, UUID 4575067b-ad2d-e519-2171-d341a6caa1e5, Type 0xed9e8101, Active False
dpo: Offset 0x0000000114080000, Length 0x0000000000002000, Flags 0x0000000000000000, UUID 5276ca19-9770-f3d3-922f-d387ac3d66a7, Type 0x11406f35, Active False
cust: Offset 0x0000000114082000, Length 0x0000000034000000, Flags 0x0000000000000000, UUID e1ff5c32-d777-4c04-ec96-90be112e7caf, Type 0x1b81e7e6, Active False
userdata: Offset 0x0000000148082000, Length 0x0000000d47779e00, Flags 0x0000000000000000, UUID 17fdd37d-c742-669c-4413-e7a06cab5d3c, Type 0x1b81e7e6, Active False

Total disk size:0x0000000e8f800000, sectors:0x000000000747c000