Skip to content
AlanRSVPublic
forked from dragarok/ReChord

About

Custom firmware for the SNOWSKY (FiiO) Echo Mini. Make covers, themes and playlists with its companion app, Echo Library: https://musicorganizer-production.up.railway.app/ (source: https://github.com/AlanRSV/musicorganizer)

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

 
 

Repository files navigation

GILB

GILB is a free, from-source custom firmware for the SNOWSKY (FiiO) Echo Mini, a fork of ReChord: its own code on both of the player's cores, from boot to the screen you see. GILB is made on the 8 GB board (two units) and tested on both boards; each release has an image for each: HIFIEC90.IMG (8 GB) and MINIV900.IMG (512 MB, tested by users on their players). It was renamed from ReChord to GILB on 2026-11-24.

Download: the newest image is on GitHub Releases and on GILB's download site (site/ in this repository). How to install: Install.

Companion apps: Echo Library makes the album covers, playlists and boot splash GILB shows (more in Echo Library); GILB's Land makes themes and layouts.

The first custom firmware for the Echo Mini is RECHO, by its creator Atzkey (Ko-fi): it proved what this player can do, and ReChord's authors learned from it by decompiling it, alongside the stock firmware. ReChord was started by Bruno Moraga (brnomt/ReChord); the firmware GILB builds on was written by dragarok (dragarok/ReChord); this repository is a fork of dragarok's. Who did what, and what GILB owes RECHO: Credits.

Coming from ReChord? Install GILB over it as any update. At its first start GILB moves its files to their new names: RECHORD/ becomes GILB/ (the library's index, playlists, the queue, the splash, themes; on the microSD card too, when it is first read) and RECHORD.CFG becomes GILB.TXT (the settings; GILB.CFG until 2026-12-04, renamed because browsers hide .cfg files). Nothing needs setting up again.

Modern (here in the Pink theme)

Modern Now Playing in the Pink theme: a 24/96 FLAC with its cover, badges, bit rate and progress Modern Library > Albums: a 2 x 2 grid of covers with their years

Modern Home: Now Playing, Folders, Library, Queue, Bluetooth, USB, Settings Modern album page: track numbers, titles and lengths

Retro (Settings › Display › Look)

Retro Now Playing: the cover in two colours, title, artist, album and year in the pixel font, an outlined progress bar Retro Library > Albums: tinted covers and years in the pixel font

Retro Home in the pixel font, the cursor's row inverted Retro Library list with pixel chevrons and an outlined scrollbar

Screenshots from the desktop simulator, which runs the firmware's own UI code (2x scale; the panel is 320×170), with a demo library of invented artists and albums.

Echo Library

Echo Library is GILB's companion app: a web app that opens your music folder (on the player in USB disk mode, a microSD card, or a copy on your computer) and prepares it for the player. Source: AlanRSV/musicorganizer.

  • Album covers: GILB doesn't decode the pictures inside music files. Echo Library makes each album's cover files from its embedded art or a cover.jpg beside the tracks: Covers › Make missing covers does the whole library at once. It can also find missing covers online.
  • Playlists, splash and clock: M3U8 playlists the player reads, the boot splash picture, and the player's clock.
  • Library care: tags checked against MusicBrainz, lyrics from LRCLIB, files the player can't play, duplicates, and folders organized by artist and album.

It runs in Chrome or Edge on a computer (the File System Access API; on Android, a tester uses the Vanadium browser); your music is read and changed on your own device and never uploaded.

What it does

Playback

  • Gapless and bit-exact, across track boundaries and sample-rate changes.
  • Formats: FLAC, WAV/AIFF (integer and float), MP3, AAC/HE-AAC, ALAC, Ogg Vorbis, Opus, WavPack, APE, WMA (v1/v2, Pro, Lossless), DSD (DSF/DFF).
  • Decoding: core B decodes; core A feeds it and the DACs (two CS43131). FLAC, APE and ALAC hand one step to the chip's HIFI block, as stock does (on the device: bit-exact, 6-14x faster than core B's own code for FLAC).
  • Library basics: tags (ID3v2/ID3v1/APEv2/Vorbis/MP4/RIFF), a play queue, play modes, and resume after power-off: with Resume at power-on set to Last track, the same queue (a Library list, a playlist, shuffle's order) plays on from the same song and time (GILB/QUEUE.BIN).
  • Library: Songs, Albums, Artists, Genres, Years (newest first), Favourites and Playlists, indexed in the background (it re-reads only what changed, and refreshes by itself when a card goes in or the PC wrote). Playlists are made and edited on the player and kept as M3U8 files on the microSD card (/SD/GILB, or Internal: Settings > Playback > Library data). Albums is a 2 x 2 grid of covers (each album folder's cover56.rgb, made by Echo Library; a letter tile without one), each with its release year, or its name and year (Settings > Display > Album grid).
  • EQ on core B: stock's six presets (Retro, Bass, Heavy, Pop, Jazz, Unique) and a 10-band Custom; Off is bit-exact.
  • ReplayGain on core B (Settings > Playback > ReplayGain: Off, Track, Album): the REPLAYGAIN_* tags of FLAC, Ogg, MP3 (ID3v2 TXXX or APEv2), APE, WavPack and M4A, read as each track is queued, so the gain changes exactly at the gapless boundary; the tagged peak never clips; tracks without tags play as they are. Not while USB-C earphones stream (the reader is in the overlay window they hold).

Interface

  • Boot splash: from about 0.18 s after power-on to the first screen at 0.4 s: GILB/SPLASH.RGB if it's on Internal (320 × 170 RGB565 little-endian, 108,800 bytes; Echo Library makes it from any picture), else "GILB" and the build date.
  • Header: a status line on every screen with play state, volume, a Bluetooth icon while earphones are linked, the time, and the battery.
  • Clock: the player's battery-backed clock chip, kept running while it is off. Shown in the header in 12- or 24-hour time (Settings > Display > Clock). Set from Echo Library (Player settings > Player clock): it leaves the PC's time in GILB/TIME.TXT, which the player takes as it leaves USB disk mode.
  • Lists: seven rows, with cursor memory per level.
  • Look (Settings > Display > Look): Modern, or Retro, an old LCD player's style. Retro uses the LCD colours (navy on pale blue-grey) everywhere and its own Now Playing, in GILB's own bold pixel font (drawn in tools/gilb_pixfont.py; a line with accented letters falls back to Noto Sans): "3 of 12" over the cover, the cover in the screen's two colours, title, artist, album and year beside it, an outlined progress bar, the times at its ends and the bit rate between them. Its header shows the play state and the volume in dB at the left, the battery in % at the right; on other screens the title is in the pixel font too. Lists and menus are in the pixel font as well, without section icons, with a pixel ">" for rows that open, the cursor's row inverted and an outlined scrollbar; Library > Albums' grid has the pixel font, covers in the screen's two colours and the same scrollbar. Each Look keeps its own theme (Settings > Display > Theme lists the current Look's themes).
  • Layouts (Settings > Display > Layout, per Look): Now Playing, list rows, the header and most other screens are drawn from layout files in GILB/LAYOUTS/, which GILB's Land's editor makes (move, resize, add). A theme with a layout file of its own name brings that layout with it (a bundle); bundles are also listed in Settings > Display > Look. See docs/LAYOUTS.md.
  • Now Playing: shows the cover tile (the album folder's 112×112 cover112.rgb pixel for pixel, else cover56.rgb at 2x), title, artist and album, format and rate badges, bit rate, progress, and the next track. Tap BACK to switch views:
    • Lyrics: the line being sung, large, with the one before and after. Read from the song's tags (FLAC LYRICS, MP3 and WAV USLT) or a .lrc file of the same name beside it. Timed (LRC) lyrics follow the song; plain lyrics move through it at an even pace. Up to 4 KB of lyrics per song.
    • Up Next: the title, artist and album on the left, the next six songs in the queue on the right.
    • Spectrum: 24 bars, about 170 Hz to 16 kHz, from the audio being heard (25 frames a second), with peak caps.
    • Then the cover again. Not available while USB-C earphones are on (they share the memory the views load into).
  • Keys: each key has one meaning everywhere.
    • VOL+/VOL− move in lists and set the volume on Now Playing.
    • PLAY opens or plays.
      • On Now Playing: tap to pause, 2× for next, 3× for previous, hold for next.
    • On Now Playing (also with the screen off): VOL+ twice then hold seeks forward, VOL− twice then hold seeks back.
    • BACK goes up; hold BACK for Home. PLAY held on a menu goes to Now Playing.
      • On Now Playing: tap BACK to switch views (MENU goes back to the list, as before).
    • MENU switches between Now Playing and the library; hold MENU for Options.
    • A REVERSE_LISTS=1 build swaps the list keys: VOL− moves up, VOL+ down (the releases, both boards). A SWAP_VOLUME=1 build swaps the volume too: VOL− turns it up.
    • Every button and combination (the shortcut bar, key lock, screen off, USB DAC, power-on keys): docs/KEYS.md.
  • Text and themes: Noto Sans in five sizes, with Latin, curly quotes and Devanagari. Japanese, Chinese and Korean text (and Greek and Cyrillic) need the optional file GILB/CJK.BIN on the internal storage (Fusion Pixel 12 px, attached to each release). The Retro look's pixel font has Russian and Ukrainian letters in its own style in the optional GILB/RETRO.BIN (also attached to each release); without it such titles show in the regular font. Built-in themes: Classic, Paper, Night, Contrast and Pink for Modern; LCD, Amber, Green LCD and Mono for Retro. More come as files in GILB/THEMES/<name>.txt (Retro's in GILB/THEMES/RETRO/; GILB's Land makes them with a live preview and switches the player to them after a USB session, through GILB/LOOK.TXT): Settings > Display > Refresh themes reads the folder again, and they are listed under Theme after the built-ins.
  • Fast: keys are sampled every 10 ms on a timer and timed in milliseconds. Each key press repaints only what changed. On the device, a key reaches the screen in about 8 ms (median).

Connections

  • USB disk: internal storage and the microSD card, both read/write (FAT16, FAT32, exFAT; the player writes to the card too: long names, folders, renames, written behind the music like the internal storage: a slow or stuck card never stops the keys).
  • USB DAC: UAC2, bit-perfect 16/24/32-bit at 44.1–192 kHz, with media keys and a choice of DAC power source.
  • USB-C earphones: the player acts as a USB audio host.
  • Bluetooth earphones (the JieLi module):
    • scan, connect, and reconnect after a drop;
    • earphone keys work;
    • the USB DAC can stream to Bluetooth.

Never stuck

  • A power-cut-safe updater keeps two firmware slots.
  • A boot guard and a crash record catch faults.
  • Power on: hold POWER about 1 second; a quick tap (a bump in a pocket) switches it straight back off. Not needed with a cable in.
  • Self-test: Settings > System > Self-test checks the keys, both audio channels, internal storage, the microSD card, the clock, the battery and the Bluetooth module, with a summary.
  • Recovery: hold VOL+ at power-on.
  • USB loader: hold VOL− at power-on.
  • The boot ROM's maskrom is always the last resort, and nothing in GILB touches what it reads at reset.

Status

"Device" means verified on a real unit (ReChord's 512 MB one unless it says 8 GB) and recorded in its own log. "QEMU" means covered by ReChord's emulator test suite, from before this fork; that suite is not published, and GILB doesn't run it. GILB's own changes are tested in the desktop simulator, by the host tests and on the 8 GB players. The full table is in docs/ROADMAP.md.

Area Verified
Boot, clocks, storage (SD NAND / eMMC / microSD, FAT/exFAT) device
Gapless dual-core audio, FLAC (all formats bit-exact in QEMU) device, QEMU
New UI, fonts, gestures, themes device (2026-10-18)
USB disk, USB DAC, power, battery device
Bluetooth earphones, reconnect, routing device
VOP + DMA display path (display=dma), seek (VOL 2x + hold), fast boot device (2026-10-18)
USB-C earphones QEMU
8 GB board: boot, eMMC on the 8-bit bus, playback, its own updater; USB disk at high speed (writes 5.7-5.9 MB/s, reads 8 MB/s) device, 8 GB (2026-11-23)
Lyrics, Up Next and Spectrum views, boot splash, ReplayGain, the clock, the queue kept across power-off device, 8 GB (2026-11-23)
Boot: first screen at 0.48 s, a resumed track playing at 0.6 s; the USB wake in steps (no freeze); the microSD card (exFAT, 4-bit) device, 8 GB (2026-11-23)
Library > Years, the album grid's year (and its Album grid setting), hold-to-boot, the Self-test, the Pink theme and theme files (GILB/THEMES, Refresh themes); the HIFI probe (FLAC block kept, FFT unusable) device, 8 GB (2026-11-24)
Japanese / Chinese / Korean text (CJK.BIN), the Retro look on every screen, layouts, Bluetooth fixed volume device, 8 GB (2026-11-25)
First install through the stock 4.0.0 updater on a player that never had GILB device, 8 GB (2026-11-25)

Both boards. The differences between the 512 MB and 8 GB boards come from comparing the stock firmware of both. They're documented in docs/BOARD_DIFF_512M.md and selected at build time (BOARD=512m | 8g). The factory 8 GB unit runs its eMMC on the 8-bit bus, as stock does; if a wide bus ever fails, the 8 GB build falls back to 1 bit and logs why (see that document). Keep maskrom recovery at hand.

Known limits:

  • 512 MB board: tested by users on their players (the developers have none); Bluetooth on it hasn't been reported on yet.
  • Bluetooth: the JieLi module takes the DAC's analog output and sends SBC; no better codec is possible without replacing the module (docs/BT_DEVICE_NOTES.md).
  • AAC, Vorbis and WMA decode in software: the chip's FFT block can't be read back (docs/HIFI_PLAN.md §4.5).
  • USB-C earphones: tested only in the emulator. It's not known yet whether the player can power them (see below).

Help wanted: does the Echo Mini put out 5 V on USB-C? USB-C earphones, dongle DACs and flash drives need the player to power them. The player was built to receive power over USB-C, so nobody knows yet whether it can also send it (docs/BOARD_DIFF_512M.md, "USB audio out"). If you have the gear, you can check in a minute:

  1. Turn the player on (stock firmware or GILB).
  2. Plug in a USB-C to USB-A OTG adapter, the kind used for a flash drive on a phone. It has to be an OTG adapter or USB-C earphones, not a plain cable: the player only switches power on when it sees one.
  3. Plug a USB power meter, a USB LED lamp or a flash drive with a light into the adapter, or measure the outer two pins of the USB-A socket with a multimeter.

About 5 V or a light means the hardware can do it. Nothing means the firmware doesn't switch it on; the board may still have a way to, so say which firmware you tried. Please open an issue with what you saw (photos of the board near the USB-C port help too).

See docs/ROADMAP.md.

Install

Keep the stock firmware at hand. Flashing modified firmware is at your own risk.

  • Updater: download your board's image (HIFIEC90.IMG for 8 GB, MINIV900.IMG for 512 MB) from the newest release and check its SHA-256 against the release notes. Copy it to the player's root, eject, and confirm on the player. Stock's updater takes it the first time; after that GILB's own does it (it shows the file's SHA-256; PLAY installs). For Japanese, Chinese and Korean text, also copy the release's CJK.BIN to GILB/CJK.BIN on the internal storage; for Cyrillic in the Retro look's pixel font, its RETRO.BIN to GILB/RETRO.BIN.

  • Maskrom:

    1. Unplug USB, press RST with a paperclip, hold every key except power, and plug USB in.
    2. Pad the image to 512-byte sectors and write it with rkdeveloptool wl to both firmware slots, LBA 0 and 0x11000 (both boards, as the boot ROM's loader numbers them).
    3. Read both slots back and compare them.

    Use only ld, td, rid, rfi, rl, wl and rd; never db. See docs/DEBRICK-LINUX.md.

Stock goes back the same way.

Build

export PATH=<arm-gnu-toolchain>/bin:$PATH
make cfw-ap BOARD=8g -j8                      # core A: build/cfw/rechord_ap.elf
make cfw-img BOARD=8g STOCK_IMG=<a stock HIFIEC IMG>  # + core-B codec images and GILB's fonts
# -> build/HIFIEC90.IMG (8 GB board); BOARD=512m -> build/MINIV900.IMG
# STOCK_IMG: a stock image the build packs our fw1 into on the way; none of it is in the update file
# REVERSE_LISTS=1 (cfw-ap, cfw-img, sim): VOL- moves up in lists, VOL+ down (the releases use it)
make host-tests                               # host unit tests
make sim BOARD=8g                             # desktop simulator: build/sim/rechord_sim_8g
python3 tools/gilb_cjkfont.py build fusion-pixel-12px-proportional-ja.bdf CJK.BIN  # optional CJK.BIN
python3 tools/gilb_pixfont.py ext RETRO.BIN   # optional RETRO.BIN: Retro's Cyrillic

The simulator runs the firmware's own UI, library and player code in a window on a PC (Linux or WSL), with your music in a disk image and the sound through the PC: see sim/README.md.

Core A is built with link-time optimisation (LTO) for the code that always stays in memory; LTO=0 turns it off. Switching it, or building on a filesystem with coarse timestamps (exFAT), needs a clean build: rm -rf build/cfw build/coreb.

How it is built

  • Core A (our fw1) runs boot, clocks and power, the UI, storage, USB (mass storage, UAC2 DAC, host), the Bluetooth module, and the core-B feed.
    • It's clocked by power state.
    • Storage writes go through a queue that never stalls the main loop or the audio.
  • Core B runs one decoder image per codec family, loaded from the firmware slot when a track needs it.
    • It decodes into a PCM ring.
    • Core A's DMA streams that ring to I2S.
  • The display:
    • a display list rendered in 16-row bands;
    • dirty rectangles pushed through column windows;
    • the VOP + DMA path by default, behind a trial guard, with stock's bus timing; the GPIO bus writer as the fallback and the display=gpio escape.
  • The mask ROM is the fixed boot ROM. It isn't replaced, and nothing writes what it reads at reset.
firmware/
  startup/   core A start-up, main loop, the app glue (ap_ui.c, ap_bt.c, ap_tick.c, ap_bg.c)
  ui/        the frame, lists, screens, navigation (nav.c, screens.c)
  drivers/   clocks, panel (GPIO / VOP + DMA), text engine and fonts, icons, eMMC/SD, USB
             (MSC, UAC2, host), CS43131, JieLi BT
  services/  config, log, input and gestures, FAT/exFAT, tags, queue, updater, boot guard
  audio/     core A's audio engine, container parsers (MP4, ASF, APE)
  coreb/     core B runtime and decoders
  theme/     theme tokens, the built-in themes, theme files (GILB/THEMES)
docs/        ROADMAP (start here), BT_DEVICE_NOTES, BOARD_DIFF_512M, hardware and RE notes

Testing. ReChord's authors proved their changes in a QEMU machine of the player (strict hardware models, checkers, a milestone suite); that machine is in a separate repository, not published, and GILB doesn't have it. GILB tests each change with the host tests (make host-tests), in the desktop simulator (sim/, which runs the firmware's own UI, library and player code) and on its 8 GB players; Settings > System > Self-test checks a player's hardware.

Support

GILB is free. If it's useful to you, these are the people to thank:

  • Atzkey, creator of RECHO, the first custom firmware for the Echo Mini, which made all of this possible: ko-fi.com/miauk

Credits

GILB stands on three projects, in this order. Each one made the next possible.

RECHO: the first custom firmware for the Echo Mini

RECHO (released earlier as RefCFW) is the first custom firmware for the Echo Mini, written from scratch by its creator, Atzkey (Ko-fi). It proved first what this hardware can do: gapless playback, decoding on the second core, the clock at 200 MHz, a firmware of one's own that installs through the stock updater and back out again. Its source is not public.

ReChord, and so GILB, owe RECHO directly:

  • It was studied closely. ReChord's authors decompiled RECHO 0.9.2 and 0.10.0 and traced them in QEMU to learn how the hardware is driven.
  • Parts of GILB do what RECHO does, rewritten in GILB's own C; those places say "RECHO" in their source comments:
    • the PLL and clock sequence;
    • the I2S and DMA programming;
    • the backlight and power behaviour;
    • the battery reading;
    • the volume-key shortcuts;
    • the settings file's key=value format and its defaults.
  • GILB's update image has RECHO's image's shape. RECHO's was the first image of its kind proven to boot, and ReChord's builds took its outer header as a template. Since 2026-11-25 tools/make_fw1.py writes that header field by field from the container's own format and GILB's own layout (docs/fw1-packing.md §11), so no part of RECHO is in this repository or in GILB's images.

Please support RECHO's creator: https://ko-fi.com/miauk.

ReChord: the from-source firmware GILB forks

  • Bruno Moraga (brnomt/ReChord) started ReChord (from 2026-07): the from-source idea, the decompilation and reverse engineering of the stock firmware (most of tools/ and docs/), and the first firmware's drivers and start-up code that the rest was built on. Ideas from his project's later work are noted in docs/UPSTREAM_IDEAS.md.
  • dragarok (dragarok/ReChord) forked it and wrote the 512 MB line (from 2026-10-14): all of core B (the decoders, the EQ, the HIFI work), and most of core A: the UI, the library, storage, USB, Bluetooth, power and the board port. Where this README says "we", it is mostly dragarok's work, on Bruno's ground.

GILB: this fork

AlanRSV/GILB (from 2026-11; ReChord until it was renamed on 2026-11-24) brings ReChord to the 8 GB board (the storage layout, the 8-bit eMMC bus) and adds ReplayGain, the clock, the queue kept across power-off, Now Playing's Lyrics, Up Next and Spectrum views, the album cover grid, Library > Years, the boot splash, hold-to-boot, the Self-test, the Pink theme and theme files, the Retro look and its pixel font and themes, layouts, Japanese / Chinese / Korean text, Bluetooth's fixed volume, high-speed USB disk, the reversed list keys, the desktop simulator and its own update-image header, and ran the HIFI probe on the device. Written with Claude (Anthropic), as the commits' co-author lines say.

Sources

  • The stock firmware (SNOWSKY / FiiO) is the main source. Its images were disassembled, decompiled and traced in QEMU to learn the boot path and the board differences; the panel, keys, storage, DACs and USB PHY; and all of the Bluetooth support.
  • The Rockchip RKNanoD SDK, the chip datasheets and the FCC filing photos settled what the code didn't.

Fonts and libraries

  • Fonts: Noto Sans (SIL OFL 1.1, firmware/drivers/fonts/OFL.txt); Fusion Pixel by TakWolf for CJK.BIN (SIL OFL 1.1, release/OFL.txt); the Retro look's pixel font PX is GILB's own (tools/gilb_pixfont.py).

  • Decoders:

    • Rockbox (libdemac, libwma, libwmapro)
    • FFmpeg (WMA Lossless)
    • libmad
    • FAAD2
    • Tremor and libogg
    • libopus and opusfile
    • WavPack
    • Apple ALAC (Apache 2.0)
    • dr_flac (public domain or MIT-0)

    Their licenses are in their directories; THIRD_PARTY.md lists each one.

License and disclaimer

GPL-3.0 (see LICENSE); bundled libraries and fonts keep their own licenses (THIRD_PARTY.md). Each release names the commit it was built from: that commit of this repository is its source. GILB, like ReChord, is independent: it is not affiliated with FiiO, SNOWSKY, Rockchip or RECHO's creator. No firmware images (stock or RECHO) are distributed here.

About

Custom firmware for the SNOWSKY (FiiO) Echo Mini. Make covers, themes and playlists with its companion app, Echo Library: https://musicorganizer-production.up.railway.app/ (source: https://github.com/AlanRSV/musicorganizer)

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages