TobleMiner / dialog-cr16c-uart-boot

Tools and utilities for booting Dialog SC14441 and similar MCUs via UART
MIT License
10 stars 2 forks source link

Gigaset A415 can't synchronize #13

Open garfieldairlines opened 1 year ago

garfieldairlines commented 1 year ago

Gigaset A415 logs

root@vaporeon:/home/garfieldairlines/dialog-cr16c-uart-boot/host^main ♥
# python3 dialogtool.py -p /dev/ttyUSB0 chip_id                                                                                                                                                                                                                          18:16:32
Will send 6992 bytes to SC14441 bootloader
Unexpected byte 0x00 from bootloader
Payload size accepted, sending data
Response checksum correct, starting payload
Dispatching command Dispatch, id: 0, cmd: <__main__.PingCommand object at 0x7f9e9543f220>
Dispatching command Dispatch, id: 1, cmd: <__main__.PingCommand object at 0x7f9e9543c520>
Dispatching command Dispatch, id: 2, cmd: <__main__.PingCommand object at 0x7f9e9543f220>
Failed to synchronize with loader
garfieldairlines commented 1 year ago

(also pls I can haz nyan cat ringtone kthxbye)

wlcx commented 1 year ago

Are you using mac os? I had the same on an m1 pro, but the same gigaset debug adaptor and handset worked when running on linux.

The built-in Mac OS drivers for the cp2102 can be dodgy, my bet is it's that

garfieldairlines commented 1 year ago

Nope, was Arch Linux (btw)

fridtjof commented 1 year ago

So the reason for this is that the stub never makes it to the communication loop.

It crashes when trying to initialize QSPI which doesn't exist or at least isn't implemented in the same way on that particular chip used in A415.

I worked around this for now in https://github.com/fridtjof/dialog-cr16c-uart-boot/tree/sc14481 (the built firmware ~should match the code, but i might've had other random changes in at the time), but it's relatively useless for now as it will obviously crash when using QSPI for anything (like firmware read/write)

Shoutout to jr (who i can't find on here) for hacking on this with me at camp23 :)

garfieldairlines commented 1 year ago

…will you be at the MRMCD ? I need my phone flashed aaaaaaah

garfieldairlines commented 10 months ago

Dumb question, will you be at the 37c3 ? I still might or might not have a interest at getting that ringtone changed :eyes:

fridtjof commented 10 months ago

yep, I'll be there (save for any last minute surprises) :)

Not sure if we'll get anywhere (haven't bothered to look for ringtones yet, maybe cross referencing the existing firmwares where patches were done already might help), but I'll bring the hardware for sure.

garfieldairlines commented 10 months ago

Well I'm at the congress, I'd be eager to flash it (and bonus points if you can snatch that ringtone, I still got so jealous from the Easterhegg !) Say me hi (ideally on fedi or telegram, or email !) https://garfieldairlines.net/contact.html