ca-combos-editor icon indicating copy to clipboard operation
ca-combos-editor copied to clipboard

About rmt_storage patch

Open jason-akw opened this issue 5 years ago • 20 comments

Hi,

I'm trying to patch rmt_storage for my OP7Pro now. I tried many rmt_storage files from other phones with SDM855 chipset. But the modem won't boot.

I also have an OP5T phone, and I used the file that you provided, it works without any issue. Which device's file you extracted for OP5T?

I think I can try the file from that vendor's SDM855 device.

Thank you.

jason-akw avatar Dec 01 '19 11:12 jason-akw

Thank you for opening the issue:
I've extracted my rmt_storage file from a Pixel 2's vendor partition if I recall correctly.

Unfortunately I don't have access to an OP7 Pro: you can probably use the Sony Xperia X1's / Xiaomi Mi 9 vendor partition - it should work.

Give me 10 minutes

denysvitali avatar Dec 01 '19 12:12 denysvitali

3fa5a039a9d6fa1c6b500de36534ef399e89caf7ba51929d832f9384978d6e9f  rmt_storage

rmt_storage_xiaomi_9.tar.gz

denysvitali avatar Dec 01 '19 12:12 denysvitali

OnePlus7Pro:/ # dmesg|grep rmt_storage
dmesg|grep rmt_storage
[    8.927307] rmt_storage:INFO:check_support_using_libmdm: Modem subsystem found on target!
[    8.927806] rmt_storage:INFO:main: Done with init now waiting for messages!
[   10.168397] rmt_storage:INFO:rmt_storage_open_cb: Processing: Open Request for /boot/modem_fs1!
[   10.168659] rmt_storage:INFO:rmt_storage_open_cb: Processing: Open Request for /boot/modem_fs2!
[   10.168854] rmt_storage:INFO:rmt_storage_open_cb: Processing: Open Request for /boot/modem_fsg!
[   10.171010] rmt_storage:INFO:rmt_storage_alloc_buff_cb: Received req_size: 2097152! avail: 2097152
[   10.749713] rmt_storage:INFO:rmt_storage_open_cb: Processing: Open Request for /boot/modem_fs1!
[   10.749899] rmt_storage:INFO:rmt_storage_open_cb: Processing: Open Request for /boot/modem_fs2!
[   10.750073] rmt_storage:INFO:rmt_storage_open_cb: Processing: Open Request for /boot/modem_fsg!
[   10.751586] rmt_storage:ERR:rmt_storage_alloc_buff_cb: elapsed time(ms) is 581 < 5000
[   65.875407] rmt_storage:INFO:kmsg_enable: Enabling KMSG-LOGS!
[   65.875420] rmt_storage:INFO:rmt_storage_alloc_buff_cb: Received req_size: 2097152! avail: 2097152
[   66.451754] rmt_storage:INFO:rmt_storage_open_cb: Processing: Open Request for /boot/modem_fs1!
[   66.452986] rmt_storage:INFO:rmt_storage_open_cb: Processing: Open Request for /boot/modem_fs2!
[   66.453240] rmt_storage:INFO:rmt_storage_open_cb: Processing: Open Request for /boot/modem_fsg!
[   66.456037] rmt_storage:ERR:rmt_storage_alloc_buff_cb: elapsed time(ms) is 581 < 5000
[   66.456046] rmt_storage:INFO:kmsg_disable: Disabling KMSG-LOGS!

rmt_storage is running, but modem doesn't boot up

jason-akw avatar Dec 01 '19 13:12 jason-akw

Try to manually crash the modem (go to the dialer pad, write *#800# and click on Crash Modem)

denysvitali avatar Dec 01 '19 13:12 denysvitali

Tried, don't work. I also can not see the version of modem, it shows "unknown" on system settings.

jason-akw avatar Dec 01 '19 13:12 jason-akw

Can you try by pkilling the process and starting it again a couple of times (pkill rmt_storage && sleep 1 && /vendor/bin/rmt_storage &)?

denysvitali avatar Dec 01 '19 14:12 denysvitali

Tried about 20 times, modem still down.

I also tried Pixel 4's rmt_storage, also don't work.

jason-akw avatar Dec 01 '19 14:12 jason-akw

I need to do some reverse engineering on the binary I provided you: maybe it acts like the Oneplus' one and it looks for a similar device (therefore the patch is useless).

In the meantime, you can try with another device's rmt_storage. What version of Android are you using?

denysvitali avatar Dec 01 '19 21:12 denysvitali

I'm using Android 10 (OOS Beta 6).

I'll try other binary tomorrow.

jason-akw avatar Dec 01 '19 23:12 jason-akw

These days I tried binary from Mi 9T Pro, ASUS Zenfone 6, ROG Phone 2.

Now I got these errors from modem. [ 92.767422] modem SFR: (unknown, qcom_smem_get failed). [ 92.767441] subsys-restart: subsystem_restart_dev(): Restart sequence requested for modem, restart_level = RELATED. [ 92.813694] subsys-restart: subsystem_shutdown(): [kworker/u17:3:664]: Shutting down modem [ 92.829235] subsys-restart: subsys_send_uevent_notify(): SUBSYSTEM=modem CRASHCOUNT=141 CRASHREASON= [ 92.835685] sysmon-qmi: ssctl_del_server: Connection lost between QMI handle and modem's SSCTL service [ 92.835780] microdump_modem_notifier_nb: smem 421 not available [ 92.841680] subsys-restart: subsystem_powerup(): [kworker/u17:3:664]: Powering up modem [ 92.849526] subsys-pil-tz 4080000.qcom,mss: modem: loading from 0x000000008dc00000 to 0x0000000097200000 [ 93.287522] subsys-pil-tz 4080000.qcom,mss: modem: Brought out of reset [ 93.337696] subsys-pil-tz 4080000.qcom,mss: modem: Power/Clock ready interrupt received [ 93.346401] subsys-restart: subsystem_restart_wq_func(): [kworker/u17:3:664]: Restart sequence for modem completed. [ 93.351055] sysmon-qmi: ssctl_new_server: Connection established between QMI handle and modem's SSCTL service [ 93.375693] Fatal error on modem! [

jason-akw avatar Dec 11 '19 00:12 jason-akw

What kernel version are you using? Can you post here the original rmt_storage file?

denysvitali avatar Dec 11 '19 07:12 denysvitali

stock 4.14 kernel from OP7Pro_O2_BETA_6.

rmt_storage_op7pro.zip

jason-akw avatar Dec 14 '19 08:12 jason-akw

Sorry for the late reply, I'll look into it ASAP

denysvitali avatar Feb 24 '20 07:02 denysvitali

Hello @denysvitali Have you had a chance to look at rmt_storage from op7pro ?

Abyss777 avatar Mar 24 '20 11:03 Abyss777

Unfortunately not yet :(

denysvitali avatar Mar 25 '20 20:03 denysvitali

Hello Denys, do you have any patched rm_storage for snapdragon 845? i need for my Google Pixel 3 that keeps replacing my modded 00028874. Thank you

ghost avatar Sep 17 '21 11:09 ghost

Interesting. The rmt_stroage from Pixel 2 can use on the OP7Pro with OxygenOS 11 :)

jason-akw avatar Oct 23 '21 18:10 jason-akw

Interesting. The rmt_stroage from Pixel 2 can use on the OP7Pro with OxygenOS 11 :)

Would you mind sharing which specific OTA version you took the rmt_storage from? Thank you!

hdoublearp avatar Oct 25 '21 17:10 hdoublearp

Interesting. The rmt_stroage from Pixel 2 can use on the OP7Pro with OxygenOS 11 :)

Would you mind sharing which specific OTA version you took the rmt_storage from? Thank you!

Just use the file from this repo: https://github.com/denysvitali/ca-combos-editor/blob/master/resources/rmt_storage_patch/op5t/oos/9.0.9/rmt_storage

So strange, works on A11 but not A10.

jason-akw avatar Oct 26 '21 18:10 jason-akw

Hi!

Just use the file from this repo: https://github.com/denysvitali/ca-combos-editor/blob/master/resources/rmt_storage_patch/op5t/oos/9.0.9/rmt_storage

Is file in this repo worked on A11 ?

Dmitry-202 avatar Feb 15 '22 08:02 Dmitry-202