r/qnap • u/3DNebGuy • 7h ago
Replaced QTS on my QNAP TS-328 with Debian 12 on a mainline Linux 6.18 kernel
My TS-328 (Realtek RTD1296, 3 bays) was on QTS, and I didn't want to keep running a vendor firmware on a box I own. So I ported a current mainline kernel to it and put plain Debian 12 on the internal eMMC.
Repo: https://github.com/HuskerMinion/ts328-unchained
What works
- All 3 bays (including bay 3, which hangs off a PCIe SATA controller), mdadm RAID
- Both gigabit ports (SMB multichannel gets about 100 MB/s writes)
- USB 3.0, the front buttons, LEDs, buzzer and fan control
- CPU scaling 300 MHz to 1.4 GHz, thermal sensor, hardware watchdog
- Clean reboot and real power-off
- Spoken prompts through the built-in speaker (boot, shutdown, RAID events)
- Normal Debian on top: Samba, Podman, Cockpit, AppArmor, unattended security updates
How it installs
- U-Boot in SPI flash is never touched.
- The kernel goes on the same eMMC boot partition U-Boot already reads, and Debian on a new partition.
- Holding the USB Copy button at power-on still boots a rescue stick, so you can always get back in.
- The guide starts with a full eMMC and SPI backup, and has steps to go back to QTS.
Caveats, honestly
- Only tested on my own TS-328. Other RTD129x models (TS-128A, TS-228A) are close, but I haven't tried them.
- Your QTS data volumes can't be imported, so copy your data off first.
- The audio firmware is Realtek's and isn't redistributed: you copy it from your own box.
- It's 40 kernel patches on top of 6.18.64 and isn't upstream. Building it yourself takes a Linux PC and about an hour.
- It's not a turnkey NAS OS: you get a Debian server and set up shares yourself.
The RTD129x groundwork comes from Andreas Färber's earlier mainline work. Everything is GPL-2.0.

