Hey everyone,
The thing that bugged me most about my Echo Nano was the gap between tracks. Live albums, Pink Floyd, Dream Theater, any album where the songs flow into each other: you get a little cut every time the track changes.
So I spent the last few days reverse engineering the firmware and wrote a patch that makes it gapless. It's on GitHub here: https://github.com/renatolousan/echo-nano-gapless
My test: Phil Collins – Face Value, the transition from "The Roof Is Leaking" into "Droned". Those two tracks flow straight into each other on the album. On stock firmware there's an obvious gap there. With the patch it plays exactly like the CD: no gap, no click.
I also tested it more rigorously. I generated a continuous test tone, cut it into 5 tracks, played them on the Nano and recorded the headphone output through an audio interface. At the track boundaries the waveform continues within 0.001 of a sample, which is below the noise floor of the recording. 44.1/16, 48/24 and 96/24 were all tested.
What works:
- FLAC → FLAC and WAV → WAV, in normal play order (browsing by folder or by artist/album both worked for me)
- Tracks with the same sample rate / bit depth / channels (basically every album)
What doesn't (it falls back to stock behaviour, with the gap):
- Shuffle, repeat one, A-B
- CUE sheets. If you have an album as one big FLAC + .cue, split it into tracks. The repo has a script that does it losslessly and checks the result bit for bit
- A change of sample rate between tracks
- MP3/AAC
How it works / what's in the repo: there is no firmware image in the repo. FiiO's firmware is their code, so I don't redistribute it. You download the official 2.0.0 NANOV200.IMG from FiiO, and patch.py checks that it's the exact official file, applies a ~6 KB patch and gives you the patched image. The source of the patch and a reproducible build are included too.
Important caveats, please read before trying it:
- This has been tested on one player (mine). Treat it as experimental. Modifying firmware can brick your device, and I take no responsibility.
- On my unit the normal "copy the .IMG to the root and reboot" updater refused every firmware, even the official ones. I ended up flashing through Loader mode (hold ⏮ while plugging in USB with the player off) with a small tool included in the repo. It also makes a backup first and can restore the official firmware. That restore path is tested.
- Do a backup first. Really.
Big thanks to the nanitecfw2 project: its emulator and USB tool made this possible.
If you try it, I'd love to hear how it goes, especially from people with different units or setups. Issues and PRs welcome!