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
Can't find docs about how to patch #517
Comments
Support for bcm43436b0 (brcmfmac) has been added recently. |
How awesome is that! I'll surely do at some point. Any particular things to look for in the diffs? |
Hello, what's the latest progress? I've been studying ticwatch Pro3 LTE recently. The chip seems to be bcm43436b0, and the Linux kernel version is 4.9. Are you interested in working together |
Definitely! I also have the 3. I didn't have time to bindiff the first but both should be relatively easy. I have only little time so I postponed but I have some time here snd there 😃 Both chipsets are supported and both arm. Imagine the Hijacker app on your watch 🤯 hit me up on Telegram 👊 |
OK, it's a great honor |
Busy with work, I have less free time. Come on! 😃 |
This is the bindiff out put info: What is next step to do and How to make this firmware patch? |
Load them into your favorite disassembler and try to figure out how the offsets in definitions.mk need to be changed. |
@lasyka I'll hop on to the Ticwatch Pro 3 fw then. Please let me know how you progress |
Hmm the TWP3 has two firmwares, and the first one is actually the exact same version as the TWP, 9.88.0.0. Wondering which one is being used
|
Sorry, I'm a newbie, don't know how to do next step to patch the ticwatch wifi firmware. :( |
So far I understand what to do next, I just don't have time. Just got a job to complete, then I'm jumping back in 👍 |
@yesimxev
Since it loaded |
Hmm it's a third version. Can't wait to continue |
@yesimxev the nexmon README says: |
I'll check when there's time. Both needs patches anyway 👌 |
I'm going to disassemble tonight. Is it a simple "find and replace" the addresses, according to the definitions.mk from the same chipset? I may be missing something in there. Could you give me just one example say the first thing you'd change, just so I know what you exactly mean. Doesn't have to be the solution, just in theory. Also, is the ROM bin needed too, or is the RAM bin enough? I also have an lg v20 waiting in the nexmon cue, again it's a supported chipset 👌😄 |
Almost done boardconfig.mk. What's the next step? |
Make a very simple patch that is doing nothing else then extracting the compressed ucode. If that is working and the chip starts your patched firmware, you know that you found the correct locations of the ucode and the minimum required set of functions required for the ucode decompression operation. Then you can continue to add additional patches one by one, such as monitor mode, frame injection, ...
… On 11. Nov 2022, at 11:09, yesimxev ***@***.***> wrote:
Almost done boardconfig.mk. What's the next step?
—
Reply to this email directly, view it on GitHub <#517 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACZ773RO4ULONVSBQR6QRF3WHYLMPANCNFSM5QAHOGXQ>.
You are receiving this because you were mentioned.
|
@matthiasseemoo I'm ready with the ucode.bin. What shall I do after it's extracted? |
Setup the folders/files structure for a new fw with only the patched for ucode extraction (see patch.c) and try to build and run it |
@yesimxev I noticed that the Raspberry Pi Pico Wireless uses a Infineon CYW43439 which has the same architecture on the WLAN side. This using the RPI pico W might be a less expensive way of troubleshooting the patching process. |
Thank you for your advice. I also have a big support from @jlinktu, I just have some other stuff to clear first. We're not far from the result 🎉 |
any progress? I am starting to porting the work too for the same ticwatch model, let me know if I must work on it or if you have already modded nexmon for that purpose. |
It's very close to finish. Just figuring out dunping rom and it doesn't want to spit out what we want. Does this work on your watch in adb shell? |
already tried to do that sometime ago, same result, even with twrp and root, it fails. |
pheraps, have you found the offset of some "Important" function? (monitor mode, send frame, rx handler ecc..) |
|
I want to first copy the ROM somewhere into a RAM location and then dump it. But I'm not sure how to access |
I tried the other method which I see on this repo for other devices with my address. But it returns nex_driver_io error. There must be a step in between that lets me access that memory address |
From the screenshot I can see that you are passing decimal "800000" as value. The ROM of your chip starts at hex |
Thanks for your reply, I tried that too, but I had only this screenshot at hand. I'm still about to do the summary where are we at 😃 |
I came across this readme in one of the rom-extraction folders, saying
So I'm trying to understand. Do I need to copy the patched fw back to the device? As far as I know, my patches which were done only did the extracted ucode part. Is there a step missing before I could run dump-rom? UPDATE: after a good sleep, I got it. Flashpatched fw allows reading rom |
I'm looking to patch TicWatch Pro's bcm43436b0 chipset fw version 9.88.0.0. As far as I see, it could be easily supported.
Is there any guide on how to edit the patches? So far I've got the fw_bcmdhd.bin but unsure of how to figure out patches just by looking at the other's patches.
The text was updated successfully, but these errors were encountered: