StarGate01 / p8b-infinitime

Run InfiniTime & Bootloader on the P8 smartwatch
MIT License
20 stars 2 forks source link

Going back to different firmwares. #5

Closed sanyi closed 1 year ago

sanyi commented 1 year ago

Hey there, cool project, tank you for the effort :)

I have a P8b watch, was able to install WaspOS, then this OS. Everything works only that I am not able to change to any different OS anymore. I am just asking to ensure i don't miss something obvious.

I am using ota-dfu-python/dfu.py utilities from my linux machine.

Trying to load python3 ota-dfu-python/dfu.py -z micropython.zip -a D4:EA:B6:CD:32:13 --legacy works but once done it just return to the 2 triangles infinitime screen.

Trying to load python3 ota-dfu-python/dfu.py -z espruino_2v05.31_p8_SDK14_SD50.zip -a D4:EA:B6:CD:32:13 --legacy will fail after Waiting for Image Size notification with timeout.

Flashing back from this repository works again.

StarGate01 commented 1 year ago

WaspOS and Infinitime use different memory layouts, you can't just flash one over the other. Instead, you have to use a reloader - similar to the process you used to install Infinitime on the P8b in the first place. But this time, in the other direction. See https://wiki.pine64.org/wiki/Switching_your_PineTime_between_InfiniTime_and_Wasp-os § InfiniTime => Wasp-os , you need the file build-pinetime/reloader-mcuboot.zip from the WaspOS release. The reloading takes a bit and a few reboots, after which the watch should be able to accept a WaspOS image.

sanyi commented 1 year ago

Thank you :) I think i understand. Proceeded that way, my watch is now in a boot loop and refuses to react to long button press. This could be me trying different things without knowing exactly what i am doing. I guess we can close this. If i am able to fix it i will comment on the issue.

StarGate01 commented 1 year ago

The button mapping is probably incorrect for the P8, leading to a nonfunctional button. You need to reboot the watch somehow, either by letting the battery drain overnight, or by disconnecting the battery shortly if you already opened the watch.

I have not tested converting a watch back to WaspOS, so no idea if that works. If everything fails, you can open the watch and flash it via SWD.

sanyi commented 1 year ago

Something went very wrong. Nor battery depletion helped. Ended up opening the watch, I will probably program it directly. Not a big deal since I was mainly exploring how to use this watch as a micro wall mounted HMI. Closing this issue since it is not relevant. Thank you.

StarGate01 commented 1 year ago

Thanks for the feedback; I will test going back to waspOS for my next release and provide a modified reloader for the P8.