iteration
I wanted to get the PCB manufacturing going before iterating on the enclosure, because it seems to be a much more complex, and hence slower, manufacturing process. In the meantime, we can get a new revision on the enclosure and get started on the firmware. Hopefully we’ll have enough to stitch together a first whole prototype that actually has enclosure, hardware, firmware in a couple weeks.
Until then, iteration on the enclosure. I’ll try stainless steel next time around. With stainless steel standoffs to match the color. I’ll try a sample pattern to get a sense of how laser engraving and silkscreen looks like. Silkscreen is quoted as double, so I really hope laser engraving is good enough. Also, this time we’ll have holes tapped in the factory for the standoffs that act as worker supports. This could be pretty handy, as you could simply thread them in from above, without worrying about a matching nut underneath. This allows us to essentially fill up both front and back, no openings or vents which might also help with strength under laptops. The vent went on the bottom plate, outside the PCB’s pocket. Also ramped up the threaded cubes to M5.
The port cut-outs are an honest attempt at the real deal this time, not just random attempts. Ideally the enclosure cutouts will neatly match the PCB. But it seems insane to me that figuring out exact orientation and positioning of parts is not a standardized, solved problem. I would’ve expected things like buildup geometry or copper pours to be complex, but they’re easy. Instead, we can’t agree on how to encode part orientation and footprints have random offsets. How can electrical engineering be so poorly standardized? Anyway, someone on JLCPCB’s end manually repositioned everything and it seemed fine, but it’s still insane so me that this is a real problem.
The new enclosure is also rounder, curious how it comes across as, maybe as more approachable / playful. I’ve also tried brushing as a finish on one of the side plates, just to get a sample of available textures. Stainless steel and aluminum each come in several formulations. I’ve opted for one that’s stronger, cheaper, more scratch-resistant, but less resistant to humidity, the idea being that it sits in your living room or something. The whole solar panel and sub-GHz radio modules might warrant a dedicated “off-grid” version with proper ratings and outdoor rated materials.
buildroot
What we can also do while waiting for the circuit board and now the enclosure is get started on the software side of things. Remember that we have a very tight 64MB of RAM coupled with a single-core RISC-V processor. It’s probably close to the floor of being able to run Linux, but we need that to fill in solid drivers for USB high-speed, Ethernet, etc.
An approach that has been successful on boards with this SoC before is to build an extremely lean Linux distro that includes exactly what’s absolutely necessary here. There’s Buildroot, Yocto, and OpenWRT that can help with that. Buildroot seems to be the leanest and simplest of the bunch, and has some promising precedents against this SoC. Yocto has some Docker-like stage-by-stage building to reduce build times, but seems more difficult. OpenWRT I’ve only ever used for turning a computer into a router, and is very focused on that sort of stuff. So Buildroot it is.
Getting an OS image that we can have the SoC boot off of boils down to figuring out a couple hundred perture flags that should either be turned on or off relative to a reference. Fortunately, we have existing references to describe the SoC itself, based on architecture and features. For the board level, we can riff on a related board that I’ve also order for testing in case the first PCB doesn’t work properly. It’s called Mango Pi. At this board level, we need to describe how we’ve wired the SoC, what pins we’re using for what. Then there’s the Linux kernel and packages level essentially, where we want certain packages bundled in.
This whole configuration stage was quite frustrating because it relied on obscure option names whose impacts interacted with each other. I ended up using LLMs more than I’d have wanted, but I landed on a pretty fun setup with OpenCode in Zed, which somehow has some free quota on DeepSeek and GLM models. Anyway, we’ve got an image that seems to successfully build with what seem like appropriate features toggled, and which seems to boot and report the expected dependencies in an emulated RISC-V VM. We still don’t know how well it fits our SoC and board just yet, but it’s a start.

iroh
Ok, so we’re still waiting on the PCB and the enclosure. We’ve got a roll-your-own embedded linux distro that seems roughly in the right direction. So I started thinking about low-level components of the actual userspace app that will need to run in this environment in a way that integrates easily with both workers and client devices used to tap into the services running on little cloud.
Very early on in the build log, I was quite intrigued by Yggdrasil as VPN technology that is arguably as decentralized as possible. There are no dedicated coordination servers, and instead nodes figure their own address, gossip about other peers with the few of them they encounter to figure out discovery. And it’s mostly IPV6 and the standard internet stack. But, the project describes itself as alpha research stage, the Rust version is effectively pushed by one person, it’s unclear how strong its NAT traversal is, and a few other quirks that made me reluctant to rely on it for the networking component.
I found another very interesting tool, however. It’s called iroh, and I actually attended a talk about it before, but only now have I connected the dots that it can fill the exact missing slot I had for the solution. It effectively handles peer-to-peer connections with WireGuard-like features, but it has a full-blooded concept of “home relays” for orienting nodes and stepping in when direct peer-to-peer is not possible. It’s Rust native, and the developer experience part of it seems superb. It’s open source and fully self-hostable, but they also support themselves through this managed offering that seems to actually be used in practice. They have some free quote to make it painless to get started. It has helpers for key protocols, like for moving blobs of data, gossiping messages, etc. Extremely interesting all around.

tauri
Another thing I started revisiting is the approach to user-facing UI. For a solid while, I’ve been convinced that Rust’s egui is the way. It shares the same Rust ecosystem as what we must implement for running things on little cloud itself, and is quite lean. However, it looks gimmicky and hacky by default.
I tried throwing LLMs at the problem in the following ways. First, try to reproduce the shadcn/ui design system in the egui demo app by adjusting global styling only. This definitely gave a veneer of modern UI feeling for like a second, but then you notice all defects reliably. Then I tried zooming in on one component and have it reproduce it perfectly. This did work for the most part, and could plausibly be scaled to the full component library. But it feels like you need to have it grind at the problem iteratively to visually compare, you’d be responsible for a shadcn/ui egui port essentially, and it’s just an 80/20 of parity. There are a bunch of subtle thoughtful choices in these design systems that I can’t help but notice. I want the UI to be beautiful and egui can’t offer this without annoying gymnastics.
As with the story behind independent host and device ports, the way out of the deadlock is to relax constraints. little cloud could just send over a self-contained preconfigured bundle, it doesn’t matter if it’s not Rust. But also, we don’t really need the client UI to be confined to a website, it’s okay for them to install an app. Especially on mobile this could be a considerable UX improvement anyay, plus it makes it easier to tap into local USB / network / security capabilities across client devices. Yes, we need bits of Rust for iroh to be bundled in, but we’re not restricted to Rust for UI/UX anymore.
And so I seriously considered Tauri, coupled with the original shadcn/ui design system on top of boring React for UI/UX, and adding in little bits of Rust and device API for iroh and other lower-level shenanigans. On the UI/UX side, this solves the earlier problem of how to get shadcn/ui on egui by removing the problem entirely. The best way of solving a problem is backtracking and removing the problem entirely. This drastically reduces our maintainability burden from auxiliary stuff outside the app’s logic proper. Gives as per-platform app bundling and signing, too. Plus pretty ergonomic device APIs besides the openness for arbitrary Rust.


