Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About rmt_storage patch #5

Open
jason-akw opened this issue Dec 1, 2019 · 20 comments
Open

About rmt_storage patch #5

jason-akw opened this issue Dec 1, 2019 · 20 comments

Comments

@jason-akw
Copy link

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.

@denysvitali
Copy link
Owner

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
Copy link
Owner

denysvitali commented Dec 1, 2019

3fa5a039a9d6fa1c6b500de36534ef399e89caf7ba51929d832f9384978d6e9f  rmt_storage

rmt_storage_xiaomi_9.tar.gz

@jason-akw
Copy link
Author

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

@denysvitali
Copy link
Owner

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

@jason-akw
Copy link
Author

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

@denysvitali
Copy link
Owner

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

@jason-akw
Copy link
Author

Tried about 20 times, modem still down.

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

@denysvitali
Copy link
Owner

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?

@jason-akw
Copy link
Author

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

I'll try other binary tomorrow.

@jason-akw
Copy link
Author

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!
[

@denysvitali
Copy link
Owner

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

@jason-akw
Copy link
Author

stock 4.14 kernel from OP7Pro_O2_BETA_6.

rmt_storage_op7pro.zip

@denysvitali
Copy link
Owner

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

@Abyss777
Copy link

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

@denysvitali
Copy link
Owner

Unfortunately not yet :(

@ghost
Copy link

ghost commented Sep 17, 2021

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

@jason-akw
Copy link
Author

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

@hdoublearp
Copy link

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!

@jason-akw
Copy link
Author

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 jason-akw reopened this Oct 26, 2021
@Dmitry-202
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants