Repository navigation
Echo Dot 5th gen, 2022 (cannoli) #610
Replies: 24 comments 4 replies
|
Thanks for the pointer! Supporting a new device is a big step (kernel, audio, mics, LEDs, an installer), so it isn't something I'm taking on right now. If someone gets a Linux of their own running on a cannoli, I'd be glad to hear how it went. |
|
I spent some time looking at how cannoli lines up with the existing TECHO5 and TECHO5 Dot work, and I wanted to share what I found. You're right that this is a full port rather than a rebuild, but after going through the hardware it looks more approachable than I first assumed. The hardware comes from Brian Dorey's teardown of the 5th gen Dot. The SoC is an MT8519BAAV (Amazon's AZ2), which is the awkward part: there's no public documentation and no mainline device tree, and it's newer than anything TECHO5 runs today. Storage is Micron NAND, not eMMC, and that's the other thing that stands out, because the whole slot setup, slotctl, the ext4 directories on a partition, dd-ing boot images, the rescue initramfs, assumes eMMC block devices and would need rework for UBI volumes. RAM is 512 MB, which is fine; the Dot already runs in about 445 MB with Bluetooth up. Wi-Fi and Bluetooth are on an MT7653BSN over SDIO, and that's the piece of good news, because it's the same MT7663/MT7668 family TECHO5 already drives. The Wi-Fi chip is the other thing that moves this from a guess to something more concrete. MT7653BSN is SDIO and the same generation as the MT7663S/MT7668S, which is exactly the class the Dots load today as vendor modules with insmod and firmware_class.path. So the same approach very likely carries over, and there's none of the mainline dead-end the old MT7668 had, where there was no mainline Wi-Fi driver at all. And echod itself should port over cleanly, it's mostly Go on top of ALSA and ESPHome, the device-specific layer is small, and since this is a no-screen device the entire display and touch layer drops out. The thing I'd want to try first, before assuming any of this needs a full kernel rebuild, is the path donut and cupcake already take: keep the unit's own stock kernel and don't build one at all. On the Dot 3 the image carries the stock kernel, lifts Amazon's wlan_mt76x8_sdio module straight off the unit's own system partition (the binary is never published, each unit adopts its own on first boot), and only builds the missing pieces from source. The stock kernel there has no Bluetooth stack, so TECHO5 builds bluetooth.ko, hci_vhci.ko and cmac.ko out of tree, and that works only because the kernel checks nothing but a module's version string, so same-version modules built from a matching source tree load into it. That's the whole trick, and it sidesteps needing Amazon's exact build artifacts. If cannoli behaves the same way, the first attempt is: boot its stock kernel under Alpine, pull its MT7653 Wi-Fi module off system, load it, and build out whatever BT bits the kernel lacks, no MT8519 GPL hunt required. What's genuinely unknown is whether that trick survives a newer SoC. Two things decide it. One, does cannoli's stock kernel boot a non-Android (Alpine) userspace at all, firebreak already boots that kernel for TWRP and Fire OS, so the kernel runs; the open question is Alpine on top of it. Two, is module loading still open. The donut path leans entirely on a 4.4 kernel that only checks the version string; a newer MT8519 kernel could have MODVERSIONS, module signing or lockdown turned on, and then foreign-built BT modules won't load without the real build artifacts, which puts you right back at needing Amazon's GPL source. That single question, open module loading vs. locked, is what separates the light path from the heavy one. The rest is real work but not mysterious. There's the NAND/UBI slot story, which is genuinely new ground for the project; the usual M0 legwork of mapping audio, mics, buttons and the single bottom LED (the cupcake approach of folding ring states into one LED fits here); and teaching the installer to speak firebreak's bundle/UBI world instead of the amonet/TWRP dd path. Expect per-device quirks along the way too, the Dot 3, for instance, needed a one-line wpa_supplicant patch before it would finish a Wi-Fi handshake. |
|
Thanks, this is a really useful write-up, and you're right that the Dot route (stock kernel, the unit's own Wi-Fi module, out-of-tree Bluetooth) is the one to try first rather than a kernel build. A few of the open questions can be answered from cannoli's own kernel config, which echo-dot-assist publishes (
One correction: the 5th gen has a 12-LED RGB ring, not a single LED, and its controller lives in the SCP coprocessor firmware (stock reaches it through Since my last reply I've picked up a used unit (see #618), so I'll take a look once it arrives, starting with the stock kernel under Alpine and microphone capture. No promises beyond that yet. |
|
Thanks, that config settles most of the open questions in one go, and it's encouraging. MODVERSIONS being on rather than signing or lockdown is about the best version of "checked" you could hope for. The echo-dot-assist trick of lifting the checksums out of boot.img and patching the one struct module offset where Amazon diverges from kernel.org 5.4.86 is a great pointer. I agree the real question is how far that struct layout drifts once you're pulling in something as large as bluetooth.ko, with all the symbols the BT core touches, rather than one small module, that's either a couple more offsets or a long tail, and there's probably no way to know which until someone tries it. Good to know on the rest too. CONFIG_BT off with cmac built in and stock Bluetooth over /dev/stpbt is the same shape as the Dot's bridge, so btbridge should at least feel familiar once the modules load, and armv7 userspace lines up with the existing builds. Thanks for the LED correction, a 12-LED RGB ring living in SCP firmware and reached through ledcontroller is a very different problem from a single GPIO LED, and "drive it without Fire OS" sounds like the kind of unknown that could stay unknown for a while. The HiFi5 DSP in the capture path is the one I'd worry about most, though: if stock only records through Amazon's mixer, plain ALSA capture not working would undercut the whole voice-satellite point, so I agree that's the first thing worth testing. On my side I've picked up a couple of units as well, so I'll be poking at the same things. I don't have your depth on the kernel internals, but if anything useful turns up (stock kernel under Alpine, the module checksum side, mic capture) I'll of course keep it all posted here in the discussion. It's genuinely exciting to follow this come together, and glad you grabbed a unit. Looking forward to whatever the mic capture test shows. |
|
Good afternoon; I’m sharing this in case it’s useful. Big disclaimer up front: I am not a developer and I have not touched a real Echo Dot 5. Everything below comes from automated static + emulated analysis of the OTA package only, done by two LLMs (GLM for the heavy lifting, Claude for independent verification). I am just dropping this here as a possibly-useful dump — treat it as a note file, not as a claim. If any of it is wrong or already known, please disregard. If a single piece of it saves someone five minutes, it was worth posting. What was done
Again: nothing here was checked on real hardware. It's all what the OTA bytes say. OTA under analysis
Format (independently confirmed)
Kernel (relevant to module loading)
Hardware (from the 5 DTBs embedded in the boot FIT)
Audio / DSP (the painful bit for a port)
LED ring — potentially useful findingBecause Two possible port strategies for the ring (I don't know which works — this is just what the OTA suggests): a) Reuse the AMF/tinysys stack. Transport is b) Re-enable The mute LED is simpler — PWM channel 2 of Security / firebreak-relevant
Storage / install path
Attached:
|
|
Quick update from my side since I've now actually got the firebreak + echo-dot-assist route running end to end on a factory-fresh 2022 cannoli, and some of what I learned might be useful if someone takes a serious run at a techo5 port. First, on the storage situation: it really is NAND/UBI, and that shapes a lot of what you can and can't do during install. The system partition is ~125 MB, and TWRP's tmpfs is small enough that you can't just stage a push image and a verification copy at the same time without OOM-ing. I had to patch firebreak's Second, the firmware-generation split matters more than I thought. Devices shipped with the 2022 launch firmware won't accept writes from firebreak until a set of nine volumes ( Third, on the kernel and module question @HuskerMinion raised: I can confirm that the stock kernel does accept out-of-tree modules on 8349. The echo-dot-assist port works by loading a userspace daemon plus a Magisk module, so the module loading path is alive. CONFIG_BT being off in-kernel is annoying but not fatal if you're willing to build out-of-tree; the MT7653BSN is well-supported by One practical note for anyone acquiring a unit: the preloader USB enumeration window is under a second, and usbipd-win can't attach fast enough firebreak unlock has to run natively on Windows (or native Linux on bare metal), not from a WSL2 guest. Took me a while to figure that one out. And if the port ever moves forward I'd be glad to test images on my unit. |
|
Thanks, both of you — this is a really useful set of notes for anyone looking at cannoli. The NAND and tmpfs budget during install, the firmware generation that has to come first, the ring staying dark on the launch firmware until those partitions are updated, and the DSP path for the microphones are exactly the things a port would trip over. A cannoli port isn't something I'm starting now, as it's a big job, but I'll keep this thread as the place for notes, and I'll take you up on testing images if one gets going. For questions about unlocking, the XDA developers' thread is the best place. |
|
Alright, now that the flashed unit was sitting here anyway I ran a proper hardware dump on it (script attached as First the CPU question that was a bit ambiguous: On the chip: Wi-Fi is MT7663 (I think the MT7653BSN label is the package name but the DT compat is The HiFi5 DSP story turned out more interesting than I expected. There are two blobs in Serial console: A couple of smaller items for the record. Attached: hwdump-cannoli.sh |
|
https://community.home-assistant.io/t/de-amazonizing-an-echo-dot-5th-generation-for-use-as-a-wyoming-satellite-and-multiroom-speaker-in-home-assistant/726094/15 |
|
Quick update since my last post, a few things cleared up and two blockers are gone. UART is up. Pin 1 RX, Pin 2 TX at 921600 8N1, as suspected. Preloader comes straight after power-on, DRAM calibration, PMIC init, all readable. One thing worth passing on: the Full UBI backup is done — all 17 volumes off CPLD — I was wrong first time. And the big one: Amazon actually publishes the GPL source. One more small useful find from the DT: Next steps from my side, in order:
Mic-wise the DSP path through |
|
Thanks for writing all this up. The UART pins and speed, the wrong earlycon address and the two blockers out of the way will save a lot of time. Mine hasn't arrived yet, so everything you post here helps; I'll follow along and add what I find once it's on the bench. |
|
Big update: TECHO5 Linux boots on my cannoli from slot B, with the ring, buttons, mute, speaker, all three microphones, Wi-Fi and SSH working. Fire OS stays untouched in slot A the whole time, so any power-on without Volume-Up still boots it. I put everything into forks with the newest source, on a branch called
Here is what I learned on the way. Booting our own initramfs from slot BThe image is the unit's own stock Two things the plan in my last post got wrong:
The rescue init is Alpine 3.24 with static busybox. It brings up root shells on the UART and on a USB ACM gadget (configfs, shows up as a COM port), mounts userdata (UBIFS) and keeps its logs there. The MediaTek watchdog gets kicked by the kernel itself, and the unit stays up. Wi-FiThe stock modules load fine ( Why the ring and audio were missing, and the fixOn the first boots So I wrote a tiny module, Ring, speaker, microphones
Everything else echod sees
A few small things that cost me time:
Still to do
I'm putting a lot of hours into this right now, and I think we'll have cannoli working in the next few days. |
|
That's a big step, and thanks for writing it all down and putting the work on branches. Mine still hasn't arrived. Once it does, I'll go through your |
|
Quick follow-up, since most of the "still to do" list from my last post is done now. The Dot 5 runs TECHO5 as a normal device. There is a real root filesystem slot on userdata, in the same layout as the Dot 3 (slotctl, a trial boot and a fallback to the rescue if the slot never reports healthy), and the slot-B ramdisk switches into it. echod starts at boot and Home Assistant picks the Dot up as an ESPHome device. Voice with Home Assistant works on it, and Music Assistant plays to it over Sendspin. Rootfs updates go over SSH with Getting a unit there is one command now. Bluetooth is up too. The last thing was the sound. Until today the Dot 5 played completely untuned, and it sounded flat next to a stock unit. Its chain turned out to be a different design from the Dot 3's. I also looked at ultrasound presence detection (USPD), because the limiter config has a USPD throttling table. Fire OS does it on cannoli: there is an The second thing missing is the beamforming. Haven't looked at it for now. Everything is on the |
|
This is great work, and thanks for writing every step down, especially the sound chain and how you keep Amazon's audio files out of the image. Please don't wait for my unit: open the PRs as drafts now, one on techo5 and one on techo5-dot, and review can start on the code while mine is on its way. One request: could |
|
Done :) |
|
I already have my unit here, factory-sealed from Amazon. Tomorrow I'm taking it to a technician to get the wires soldered since I don't have any soldering experience. If I can help out by testing anything, let me know! |
|
A longer update on what happened since the PRs went up. The device support is in #699 (and the matching techo5-dot PR). Two follow-ups sit on my fork and will come as separate PRs once #699 is in: Smaller things since then. Most of these came out of the review on #699.
Echo reference, measured. Motion by ultrasound. I went back to USPD after all, and it's in #699 as Wake words over music (
Beamforming (
|
Second cannoli unit: factory 2022 Dot 5 → TECHO5 on slot B, working (install assisted by Claude)Hi! Another Echo Dot 5th gen report, from a factory unit still on the 2022 launch firmware. It now runs TECHO5 Linux from slot B, healthy, and Home Assistant sees it over ESPHome. Thanks @HuskerMinion and @Gamer92000 for all of this. Full disclosure: I did the install with Claude (Anthropic's AI assistant, through Claude Code) driving the host side. It read the guides and the scripts, ran the builds, checked every hash, and stopped me before each irreversible step. I did the soldering and the physical steps (power, buttons, typing yes / UPGRADE). I'm posting the problems we hit because some of them look like they could trip up the next person, especially on a newer distro. Unit and host
|
-- | --
Unit | Echo Dot 5th gen (C2N6L4), cannoli, never set up, kept off Wi-Fi throughout
State at start | antirback_tee_version: 2, antirback_lk_version: 1 (factory 2022 firmware)
USB | D+, D−, GND soldered to the 3×3 pads, 5 V left off, powered from the 15 V adapter
Host | Ubuntu 26.04.1 LTS, x86-64, kernel 7.0, Python 3.14, qemu-arm 10.2.1, native (no WSL)
Checkouts | firebreak c0ad855, cannoli-os-builder 67c0197, twrp_device_amazon_cannoli ec32d6e, techo5 40bd128, techo5-dot ef65863
Bundle | built without --port, "adb": "keyless"
Amazon GPL | Echo_Dot_5th_Gen_src-6.5.7.1-20251027 + full 6.5.5.5-20221208 as FILL
Result
Problems we hit (and what fixed them)1. TWRP build on Ubuntu 26.04: no /usr/bin/python. Several prebuilt toolchain wrappers in the synced tree are Python 2 scripts with an absolute shebang. build.sh builds Python 2.7 and puts it on PATH, but these wrappers never look there:
The first failure is bad interpreter at about 24 %. The as one only shows as clang.real: error: unable to execute command: posix_spawn failed at about 83 % (boringssl libcrypto_no_clang). Changing those shebangs to #!/usr/bin/env python2.7 fixed it. verify_sources.py only checks HEADs, so it doesn't mind. Maybe build.sh could patch these, or drop a python → python2.7 shim into the host-compat bin dir. 2. Not a bug, but it cost us a while: magiskpolicy32 under qemu "hangs". Run by hand, qemu-arm -L <system> magiskpolicy32 … (and even toybox) blocks forever on a futex, with both qemu 10.2 and 8.2. The cause is bionic 32-bit storing the mutex owner TID in 16 bits: on a host whose PIDs pass 65535 (pid_max 4194304 here), a recursive lock looks foreign. cannoli-os-builder already runs it under unshare --pid, so the real build is fine. A comment there might save someone else the same confusion. 3. Stock factory Fire OS doesn't show on adb at all. It's not even unauthorized. Only the 0e8d:2000 preloader blips at power-on. So install-cannoli.py stops at step 1 ("adb does not see …") before it can run firebreak. Running firebreak unlock --device cannoli directly works, since it doesn't need adb. As expected it put TWRP in B and stopped with Unsupported firmware prerequisite: mcupm_a. From TWRP the installer sees the unit. 4. install-cannoli.py can't run firebreak's writes non-interactively. run_firebreak() pipes firebreak's stdout, and firebreak's confirm() requires stdin and stdout to be TTYs. So cannoli-upgrade and unlock would fail with "this input is not a terminal … Pass --force" right after the installer's own UPGRADE question. Nothing gets written, but the run stops halfway. firebreak's power prompts (input() without a newline) also wouldn't show through the line-buffered pipe. What we did:
Maybe the installer could run firebreak attached to the terminal, or pass --force once its own confirmation was given. 5. cannoli-kernel.sh fails under a non-C locale on Ubuntu 26.04. In cannoli_tree, comm failed with "archivo 1 no está en orden ordenado" ("file 1 is not in sorted order"). Ubuntu 26.04 ships the Rust coreutils: with es_ES.UTF-8, sort collates by locale while comm compares bytes. With LC_ALL=C it went through. Exporting LC_ALL=C in the script would avoid it. 6. Host packages not in the docs' apt lines: pkgconf (build-wpa-supplicant.sh calls /usr/bin/pkg-config by full path), plus libelf-dev and lz4 for the kernel tree, to be safe. 7. Amazon's source page. In the Spanish version of amazon.com/echonotices, the Dot 5 list stopped at 6.5.6.4. The 6.5.7.1-20251027 drop only showed in the English listing (…&language=en_US). 8. Ctrl-C during the first-boot wait leaves the USB console stuck. I hit Ctrl-C at "first boot of slot B", which was my mistake: the unit had already booted fine. The interrupted command stayed half-typed on the console (ash showing its > continuation prompt), and every later console query returned nothing. Sending a single ^C to the port fixed it. Maybe console_exchange could send \x03 before its marker line. 9. After failed associations, no DHCP client until techo5-net restart. My router had a MAC filter (on purpose, while the unit was still on stock). With the MAC blocked, the AP rejected open-system auth immediately with status_code=33. That's easy to mistake for a wrong password; a temporary random MAC associated fine, which confirmed it. Once I allowed the MAC, wpa_supplicant associated (COMPLETED), but no udhcpc was running and wlan0 had no address. techo5-net restart got a lease at once. Maybe techo5-net (or boot.sh) could keep retrying the lease after a late association. 10. Small things:
Happy to test anything on this unit: logs, a build, a change to the boot selection. It's soldered and has full backups (m0 from the factory state, plus firebreak's own). |
|
Hey, I added support for cannoli to pinna and filed a PR to cannoli-os-builder to boot unsigned FITs: Gamer92000/cannoli-os-builder#1 |
|
Hi, I also got techo running on a cannoli, but mine uses a different audio A/D converter, a AKM AK5704 instead of the TI TLV320ADC5140. Working on getting it running. |
|
Quick status update: I now have four Dot 5s running TECHO5, one per room (kitchen, living room, bedroom, bathroom). Two were Amazon refurbished, two were bought used from the same seller. I expected four identical installs. It turned out none of the four units has the same parts inside, and almost every one tripped over something different. Here's what happened, in case it saves someone else an evening. What each unit came with
Things that went wrong
What worked exactly as documented To be fair, a lot did. The state table, the first unlock stopping at Home Assistant side All four now run as voice satellites, each assigned to its room, so "turn on the light" acts on the room of the Dot that heard it. The alarm/timer/reminder blueprints work on all four. House announcements (doorbell, water leak and so on) go to all four Dots as a Sendspin group when nothing is playing, and they start in sync, within roughly 240 ms of buffer on each. When music is playing, they go out as Music Assistant announcements per player instead, which ducks the music but isn't sample-accurate. One thing I noticed: I turned off auto-update for the Dots for now. An official release would replace the TAS2764 build and the bathroom would go silent again until that fix is upstream. Next Most of the fixes are up as PRs now:
If anyone else has a Dot 5 that boots without a sound card, or a build number that isn't in the list, I'd love to hear which chips |
|
My unit finally arrived, and it's now running TECHO5 only, with no Fire OS left on it. Thanks to everyone in this thread. Your notes made this a lot shorter than it would have been. The unit: a 2022 launch-firmware Dot 5 with an AK5704 mic ADC, an LP5036 ring and a TI TAS2764 amp, the same amp @Gurkengewuerz found. Unlock and root: firebreak's current
TECHO5 and the TAS2764: TECHO5 only and updates: I also went a step further than slot B (
|

Uh oh!
There was an error while loading. Please reload this page.
Hey!
Just wanna let you know the other projects found a way into C2N6L4 using CVE-2026-46728
Maybe this is also something for techo5. 😉
All reactions