(2025-05-01, 04:36 PM)emily Wrote: (This is also why the Lua input PR has been languishing recently. There's one very tricky memory corruption bug remaining, and I have not had the chance to sit down and figure out wtf is happening. Sorry about that.)
I got a little anxious with my Tangarine lying around and I wanted to try to at the very least determine if the faceplate device works. (@redshift got Tangarine to work, so I thought maybe I could get custom firmware to work.) I felt like a fish out of water trying to build the Tangarine firmware from source.
- Before I started, I installed `esp-idf` from the AUR and also followed its own corresponding directions for installation.
- First, I used this Git branch: https://codeberg.org/bloop/tangara-fw/sr...ut-drivers
- Next, I used this command: `git clone https://codeberg.org/bloop/tangara-fw.git && cd tangara-fw && git switch emily/lua-input-drivers`
- I followed the build directions from upstream: https://codeberg.org/cool-tech-zone/tang...UILDING.md
Resolved, see below.
However, I have encountered an issue: when I've tried to flash the Tangarine firmware, Tangara now enters a boot loop situation. At first, it will turn on seemingly normal. However, only the volume buttons and lock slider work. None of the Tangarine buttons work when pressed. About 28 seconds after booting up, Tangara will restart. Is this the memory corruption bug that you've mentioned? (I should've realized that there was a bit of foreshadowing, as I noticed Tangara restart by itself after successful firmware flashing via the CLI.) Or have I done something wrong with building from source?
One observation: the SD card menu icon isn't immediately displayed if I don't provide any user interaction. However, the menu can be brought up if you (rather quickly) manually eject and reinsert Tangara's SD card. (The effect doesn't last long, however, as Tangara will boot loop).
The one good thing I learned is that I can use the Tangara Companion GUI to "flash" the upstream Tangara firmware if any custom firmware isn't working out as expected. When I flash the normal firmware (even with the Tangarine face plate), Tangara doesn't experience the same boot looping situation.
(I'm a bit nervous that I might've not reassembled my Tangara with Tangarine gently earlier today. I currently don't have the vanilla faceplate with me, but it should be back in my possession tomorrow. Regardless, I believe the signs right now don't indicate that there was hardware damage with the flex cable.)