Issue #2072
open
Issue #2025: Enable to recreate the EFS partition completely from scratch
Investigate how the stock RIL recovers partially corrupted EFS on GT-I9300
Added by Louis R over 4 years ago.
Updated almost 4 years ago.
Category:
Telephony and mobile data
Device:
Galaxy S 3 (I9300)
Type of work:
C programming
Description
Hi there,
A month ago or so, my i9300 stopped recognising my sim card. It worked fine for around two years. One day in the morning, my phone said "No sim card - no service". I cannot understand how and why the problem started.
The SIM card is working on other phones. None of other SIM I could use work with my i9300.
I restored nv_data.bin following this procedure: https://redmine.replicant.us/projects/replicant/wiki/RestoreEfsNvDataBackupFile It went well but didn't change anything.
Please find attached the logs I got using:
adb logcat -b radio
I am not sure how related this issue is with other similar issues, so I started a new one. I read similar issues, but it seems to me they are a little different. I cannot tell, really, for I am not really able to understand the logs. Do not hesitate to ask for more detail.
Hope someone can help me,
Best
Files
Thx Kurtis, I'll look into this related issue. I'll get back to you when the install is done, hope this works for me.
Best,
Louis
01-04 19:30:03.035 1965 2301 D use-Rlog/RLOG-RIL-IPC:
01-04 19:30:03.035 1965 2301 D use-Rlog/RLOG-RIL-IPC: xmm626_sec_modem_fmt_recv: Received FMT message
01-04 19:30:03.035 1965 2301 D use-Rlog/RLOG-RIL-IPC: xmm626_sec_modem_fmt_recv: Message: aseq=0xff, command=IPC_PWR_PHONE_PWR_UP, type=IPC_TYPE_NOTI, size=0
01-04 19:30:03.035 1965 2301 D use-Rlog/RLOG-RIL: Updating RIL radio state to 0
01-04 19:30:03.035 1965 2301 D use-Rlog/RLOG-RIL-IPC:
01-04 19:30:03.035 1965 2301 D use-Rlog/RLOG-RIL-IPC: xmm626_sec_modem_fmt_recv: Received FMT message
01-04 19:30:03.035 1965 2301 D use-Rlog/RLOG-RIL-IPC: xmm626_sec_modem_fmt_recv: Message: aseq=0x00, command=IPC_MISC_ME_IMSI, type=IPC_TYPE_NOTI, size=16
01-04 19:30:03.035 1965 2301 D use-Rlog/RLOG-RIL-IPC: ================================= IPC FMT data =================================
01-04 19:30:03.035 1965 2301 D use-Rlog/RLOG-RIL-IPC: [0000] 0F 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 .0000000 00000000
01-04 19:30:03.035 1965 2301 D use-Rlog/RLOG-RIL-IPC: ================================================================================
01-04 19:30:03.110 1965 2303 D use-Rlog/RLOG-RIL-IPC: Reading RFS data failed
01-04 19:30:03.110 1965 2303 E use-Rlog/RLOG-RIL-IPC: Receiving from IPC RFS client failed
01-04 19:30:03.110 1965 2303 E use-Rlog/RLOG-RIL: IPC RFS client loop failed
01-04 19:30:03.170 1965 2303 D use-Rlog/RLOG-RIL: Closed IPC RFS client
01-04 19:30:03.170 1965 2303 D use-Rlog/RLOG-RIL: Opened IPC RFS client
That looks like a corrupted modem data partition (EFS).
Running the stock OS or specific versions of LineageOS is capable of reparing some issues.
Though we need to do more research on it. Ideally we'd want to be able to reconstruct the modem data partition (EFS) just with the IMEI, but we're not there yet.
I do not know how much my case can be used to do this research, but here are some details of my issue.
Please find attached my corrupted efs, my functional efs and the difference between the two directories (output of $ diff -qr dir1 dir2).
One can see there are differences. One would need to go into the details of the listed files to understand what was corrupted in my efs partition and led to the sim issue, but I am not really able to do this.
Hope this helps.
Btw, thx for doing what you guys do,
Best,
Louis
- Subject changed from Sim card not recognised on i9300 to EFS data corruption on i9300 => SIM card not recognized.
- Category set to Telephony and mobile data
- Priority changed from Normal to Low
I've modified a bit the bugreport name to reflect the bug:
- The original bug talked about the symptom of the SIM card not being recognized, and that's now fixed for Louis R
- I think it's very interesting to keep that bug open not to loose it, as we might need it for future reference on work to recover from EFS corruptions, as the EFS backups before and after the reparation were posted.
On my side I've advanced a bit on this topic by doing some research on older devices that are supported by Replicant 4.2 but not 6.0, as we have way more documentation on them. I've added the information to the #2025 bug.
In a nutshell I was given code for a tool to change the IMEI for these devices, and I've also found how the template nv_data.bin is created, but I've not managed to rebuild the EFS from scratch yet despite of both advancements.
- Related to Issue #2025: Enable to recreate the EFS partition completely from scratch added
- Subject changed from EFS data corruption on i9300 => SIM card not recognized. to Investigate how the stock RIL recovers partially corrupted EFS on GT-I9300
I've renamed the bug again to integrate it better with the other bugs to reconstruct the EFS from scratch.
I've renamed the bug again to integrate it better with the other bugs to reconstruct the EFS from scratch.
- Type of work C programming added
Also available in: Atom
PDF