OpenWrt port for the Fon Fonera Hub FON2415, also known as the Gramofon — a cloud music streamer whose original cloud infrastructure has been defunct for years. This project gives the device a new life as a standalone audio player.
Status July 2026: audio works. An ALSA/ASoC driver has been written for the AR9341 I2S controller and the AK4430ET DAC; music plays back cleanly via the 3.5mm jack (aplay -D hw:0,0).
| Component | Specification |
|---|---|
| CPU | Atheros AR9341 @ 535MHz (MIPS 74Kc) |
| RAM | 64MB DDR2 |
| Flash | 16MB SPI NOR (MXIC MX25L128) |
| WiFi | 2.4GHz 802.11b/g/n (integrated) |
| Ethernet | 2 ports via Bi-TEK FM-1024LLF switch |
| Audio DAC | AKM AK4430ET (3.5mm jack) |
| UART | J2 header, 115200 8N1, 3.3V TTL |
| Board name | Fonera HUB FON2415 (internal, U-Boot) |
| Partition | Offset | Size | Contents |
|---|---|---|---|
| u-boot | 0x000000 | 128KB | Bootloader — do not overwrite |
| firmware | 0x020000 | 15.75MB | Kernel + rootfs (target area) |
| fon_data | 0xfe0000 | 64KB | Fon-specific data |
| art | 0xff0000 | 64KB | WiFi calibration — NEVER overwrite |
Go to Actions, click the latest successful build, and download the fon2415-openwrt-image artifact.
Connect via UART (J2 header, 115200 8N1), interrupt the boot within 1 second.
# Set up networking
setenv ipaddr 192.168.1.200
setenv serverip 192.168.1.10 # IP of your TFTP server
# Test
ping 192.168.1.10
# Flash (expects fon2415.image on the TFTP server)
run lf
# Reboot
reset
Place fon2415.image (the factory build) in your TFTP directory:
cp fon2415.image /var/lib/tftpboot/
sudo systemctl start tftpd-hpaAfter reboot: http://192.168.1.1 — LuCI web interface, empty password.
The audio driver lives in package/ath79-audio/ and consists of two kernel modules:
ath79-i2s.ko— platform driver for the AR9341 stereo/I2S controller: MBOX DMA, audio PLL (fractional-N), and clock configuration.ak4430et.ko— codec driver for the AKM AK4430ET DAC (clock slave, no register interface).
| Property | Value |
|---|---|
| ALSA device | hw:0,0 (playback, stereo) |
| Formats | S16_LE, S16_BE, S32_BE |
| Sample rates | 22.05 – 96 kHz (32 / 44.1 / 48 kHz electrically verified) |
| Clocks | MCLK = 512fs (GPIO14), BICK = 64fs (GPIO13), LRCK = fs (GPIO12), SDTO = GPIO15 |
Playback:
aplay -D hw:0,0 music.wav # 48 kHz, S16_LE, stereoThe AK4430 requires a bit clock of at least 48fs. The AR9341 defaults to 32fs for 16-bit data; the I2S_WORD_SIZE bit in STEREO_CONFIG must therefore also be set for S8/S16, so that BICK runs at 64fs. Without that setting, the DAC only produces a harsh 6 kHz drone. See gramofon_logboek.md for the full investigation log.
- RAM: 64 MB (≈ 56 MB usable).
/tmpis tmpfs; keep audio files there ≤ 12 MB, otherwise an OOM crash follows. - Streaming over ssh (
... | ssh aplay -) stutters: dropbear encryption is too heavy for the 535 MHz MIPS core. Copy files to/tmpbeforehand, or use an unencrypted transport. - S24 and S32_LE formats are deliberately not advertised: the 24-bit FIFO path can hang the device, and
PCM_SWAPbyte-swaps per 16-bit half-word (garbles 32-bit LE).
git clone https://github.com/letatcest/gramofon-openwrt
cd gramofon-openwrt
chmod +x build_openwrt.sh
./build_openwrt.shBuilds against OpenWrt v24.10.6 (latest stable). Takes 30–90 minutes on the first run.
- Hardware identified
- UART/U-Boot access
- DTS file created
- GitHub Actions build pipeline
- Build verified successful (OpenWrt 24.10.6, kernel 6.6.127)
- Flashed and tested — OpenWrt boots, Ethernet works
- Audio (AK4430ET) working — clean music playback, linearity and PLL switching (32/44.1/48 kHz) verified (2026-07-15)
- GPIO12 reset-button bug fixed structurally — the button was wired to GPIO12 (LRCK), causing an interrupt storm during playback; removed from the DTS and verified absent from the compiled DTB. LED GPIO numbers (candidates GPIO 0-3) are still unverified on hardware.
- Verify Ethernet PHY/switch configuration (AR9341 + Atheros S27) — works in practice over eth1 (used extensively for SSH and streaming), but the switch/PHY setup itself has never been verified at the register level.
- Trap the S24 hang bug in the FIFO path — currently only avoided indirectly: the codec driver's format list excludes S24, and ALSA's cpu/codec format intersection keeps it from being selected. The platform driver itself still has no explicit guard against it.
- Updated DTS image flashed (GPIO12 fix, plus a later fix for a trigger(START) busy-loop that could freeze the CPU) — diagnostic module parameters (
mux_set,dump_gpio,measure_freq,force_gpio_level,force_gpio_mask,force_gpio_unmux_mask) are still present and have not been cleaned up. - Streaming from a phone — achieved, but not via generic DLNA/UPnP apps: those (BubbleUPnP, Hi-Fi Cast, via upmpdcli) overwhelm the 56 MB of RAM and repeatedly crash. The working setup is mpd alone, controlled from a native MPD client (e.g. M.A.L.P. on Android) to play internet radio streams. AirPlay was considered (via librespot/shairport-sync) but its own RAM footprint and MIPS soft-float toolchain support make it unlikely to fare any better.
- WiFi is currently disabled (module blacklisted at boot) to free up RAM headroom for streaming; the device is wired-Ethernet-only
Do you have a Gramofon and want to help test? Issues and pull requests are welcome. In particular, the GPIO numbers for the LEDs and the exact Ethernet PHY configuration have not yet been verified on hardware.