1st Photo: my Music app (Reintone) ported to Linux, build on GTK3.
2nd Photo: Linux kernel booting on earlier dev phase
3rd Photo: my Music app (Reintone) on iOS 6.
I threw money and burn tokens of 3 AI models (Gemini, Claude, Codex) to build me a native Linux port targetting (only) iPod Touch 4G (Apple A4/N81AP), based on u/_spaceboy1999 n72-linux groundwork.
While n72-linux built to be a full Linux system based on Alpine, mine is designed to be a dedicated DAP firmware for MY iPod Touch 4, bundling my own music player for iOS made by yelling at Claude and Codex constantly for 2 months.
Currently Working:
- Native Linux (customized Linux 7.3.6 based on n72-linux) on the Apple A4 (800 MHz Cortex-A8, 256 MB RAM).
- Native ALSA audio driver with CDMA, I²S and CS42L59 codec support, including 16-bit and 24-bit PCM at 44.1/48 kHz.
- Read-only native NAND access through H2FMI, including Apple's VSVFL/YAFTL translation layers, encryption and HFS+ filesystem support. I've successfully read music directly from the original iOS filesystem and verified its integrity.
- Native N1 multitouch support.
- Physical buttons, backlight control, battery telemetry and RTC.
- USB Ethernet, remote shell and RAM-only kernel replacement through kexec.
- SimpleDRM and a full Wayland environment using labwc, GTK3 and pixman at the native Retina resolution of 640×960.
- MPRIS media controls, D-Bus, notifications and a custom lightweight status bar.
- BusyBox-based userspace with glibc and a compressed SquashFS application runtime.
- A working CLI environment with Bash, Vim, tmux, htop, Dropbear SSH, curl, rsync, jq, strace and ALSA utilities.
As a music player, it features:
- FLAC, ALAC, MP3, AAC, Opus, Vorbis, WAV, AIFF, DSD and various other audio formats.
- Bit-perfect digital playback through Straight Wire mode, with verified 16-bit and 24-bit software output.
- Custom high-quality sample-rate conversion using halfband and Kaiser-windowed polyphase sinc filters.
- Handwritten ARM NEON-optimized DSP.
- Curve-based equalizer and separate AutoEQ headphone correction.
- ReplayGain and noise-shaped dither.
- Partitioned FFT convolution with impulse-response support.
- Dynamic bass compensation, tube simulation, spectral enhancement, crossfeed and virtual room effects.
- Gapless playback, equal-power crossfade and look-ahead limiting.
- Folder-based music library, playlists, synchronized lyrics, artwork, listening statistics and saved playback sessions.
- Weighted shuffle that prioritizes familiar but neglected songs.
All the codes for DSP, music playback and stuff are shared with iOS version and Linux GTK3 version.
As a system, i designed it to be power efficient, system resilient, and stable as possible without compromising audio quality (because its supposed to be a DAP, duh).
currently its implements:
- Runtime power management for NAND, I²C and I²S peripherals.
- Dynamic audio-device release, allowing the codec and I²S clocks to power down when playback is paused.
- Screen-aware audio buffering to reduce DMA interrupts.
- Suppression of unnecessary rendering, visualizers and touchscreen activity while the display is off.
- Event-driven system services and application resource leases.
- 128 MiB LZ4 ZRAM swap.
- Automatic process supervision, crash recovery and graphical frontend fallback.
- Memory-pressure protection for essential system services.
- Bounded logging and RAM-based playback checkpoints.
- Suspend-to-idle with physical Home/Power button wakeup, currently tested manually.
currently it doesnt support writable NAND, package manager, untethered boot, wireless connectivity, GPU acceleration (i hope u/pljackass success on working on the GPU so i can yoink their driver) and stuff. but it still growing, i have more than 5 full reset accross the AI that reset before 20 Dec so i have more opportunities to yell at the clankers.
Huge thanks for u/_spaceboy1999 and their n72-linux project, also OpeniBoot/iDroid and freemyipod dev for their research. also Claude, Gemini, and Codex for taking my bullshit, raw. mmm.
i dont have any intention to share my work nor the product. i just want to show it off.