Help - Bangle.js 2: Stuck in Bootloop, DFU update not helping #5286
Replies: 1 comment
-
Posted at 2022-10-11 by user113695 Possibly a file system corruption, specifically of .boot0 or .bootcde ? Posted at 2022-10-11 by @fanoush check this https://forum.espruino.com/conversations/380059/ however before erasing it would be nice if you would be willing to backup your spi flash, I can post instructions, the procedure (transfer 8MB over BLE) may take many minutes (30?) Posted at 2022-10-11 by SloFlo No, I can connect to BLE/webIDE only for a second, and then it disconnects again and I don't see any output. Posted at 2022-10-11 by SloFlo Sure I can do the flash backup. Lemme know how. Posted at 2022-10-11 by @fanoush OK, thanks, you need to enable terminal log icon in webide https://www.espruino.com/ide/ in settings->general, then start logging by clicking that new icon on left side and confirming start and then paste this code
it will take long time so better put it on charger. After it is done (32768 base64 encoded lines!) stop logging, save output to text file and zip it an upload here or somewhere. To get out of the boot loop flash that zip file in that conversation to use internal flash for storage and connect via IDE. Posted at 2022-10-11 by @fanoush in linux you can convert base64 text back to binary via base64 command from coreutils which should be installed by default in any linux distro. Something like this works for me in WSL when first saving the output as text file in windows 10 (with DOS line endings)
grep command filters just base64 encoded lines (lines ending with Posted at 2022-10-12 by @gfwilliams Sorry about the issues, but thanks for being willing to dump the flash. Hopefully when I have it I can make a new firmware that won't bootloop.
... but actually if you just post your text file up here that's fine and I can do everything at this end Posted at 2022-10-12 by SloFlo Hm, this is interesting - I can't get more than 15102 lines of log. EDIT: Nevermind. I had the setting "save log to localstorage" set to true and that was apparently the culprit. Now it's gone past 16k and still counting. Will post new log here in a minute. Attachments: Posted at 2022-10-12 by SloFlo Here's the full output: Attachments: Posted at 2022-10-12 by @fanoush The log-3.txt.zip looks complete - full 8MB inside. Posted at 2022-10-13 by @gfwilliams Excellent - thanks! I'll see if I can reproduce the boot errors here Posted at 2022-10-13 by @gfwilliams ... I'm just uploading now - it's taking a while ;) If you want to get it working on the proper firmware, I think: Interestingly looking at the flash dump seems like there's been a compact, but it hasn't wiped all of the flash memory that it freed and it's left some rubbish in there, so that could have been the cause of the problems. I know it was a problem in older firmwares, but since yours was shipped with 2v14 I'd have thought it would have been fine. edit: took over an hour to upload, but I can reproduce the boot loop so hopefully I can get a fix in soon! Posted at 2022-10-13 by @fanoush
so can pushing and holding button trigger compact and then (because of still holding the button) watchdog reboot in the middle of compact? Posted at 2022-10-13 by @gfwilliams Fixed! If you install the latest cutting edge build it should fix that even with your data in flash (but I'm afraid your data seems pretty garbled and I don't think is recoverable). It was to do with Storage being corrupted, and then the recent addition of filename tables (to speed up storage) meant that it was using a corrupt file (which was massive) as a filename table, and it spent ages searching it and caused a reboot.
Well, it shouldn't directly reboot - because Posted at 2022-10-16 by SloFlo Thanks so much for the help, folks! Watch is fixed through the temp firmware + Posted at 2022-10-17 by @gfwilliams Great! Thanks for the flash dump before you did that though - hopefully that'll have meant we improve stability quite a lot going forwards |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-10-11 by SloFlo
Heyhey, I just checked my watch and it was frozen on the screen of my last messages, so I held the button to go back to the watchface. And instead of doing that, it went into a boot loop and it's still stuck there (see gif/photos below).
I can get into DFU mode and then reflash firmware 2.15 and I've done that once through the android DFU app and once through the web IDE, but neither prevents it from going back into a bootloop afterwards.
Any help is appreciated.
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions