{"@attributes":{"version":"2.0"},"channel":{"title":"Uros Popovic","link":"https:\/\/popovicu.com\/","description":"Personal site of Uros Popovic - tech blogging on systems and software.","managingEditor":"public@popovicu.com (Uros Popovic)","lastBuildDate":"Mon, 23 Nov 2026 20:00:00 +0000","item":[{"title":"Build like a Google engineer: modern Bazel with modules, Go and Typst","link":"https:\/\/popovicu.com\/posts\/build-like-a-google-engineer-modern-bazel\/","guid":"https:\/\/popovicu.com\/posts\/build-like-a-google-engineer-modern-bazel\/","description":"A hands-on guide to modern Bazel with the module system: pinned toolchains, third-party Go libraries, images rendered with Typst, a custom rule backed by a Go tool, and a Go server with everything embedded, all built with one command.","pubDate":"Mon, 23 Nov 2026 20:00:00 +0000"},{"title":"Building a static website with Bazel","link":"https:\/\/popovicu.com\/posts\/static-website-with-bazel-pageforge\/","guid":"https:\/\/popovicu.com\/posts\/static-website-with-bazel-pageforge\/","description":"Build a complete static website with a single Bazel command using Pageforge: templates, Markdown posts, listings, tags, static files, a local dev server, and a zip ready for Cloudflare Pages.","pubDate":"Sun, 22 Nov 2026 20:00:00 +0000"},{"title":"Writing your first compiler","link":"https:\/\/popovicu.com\/posts\/writing-your-first-compiler\/","guid":"https:\/\/popovicu.com\/posts\/writing-your-first-compiler\/","description":"Build your first compiler with minimal, high-level, modern code. With only a few files of Go and C code, we can set up a workflow that dynamically fetches everything needed, including the LLVM library itself, and builds a portable compiler. This is a modern stack, it's reproducible, and you do not need to read dozens of pages to get started.","pubDate":"Sun, 18 Jan 2026 21:30:00 +0000"},{"title":"How to use Linux vsock for fast VM communication","link":"https:\/\/popovicu.com\/posts\/how-to-use-linux-vsock-for-fast-vm-communication\/","guid":"https:\/\/popovicu.com\/posts\/how-to-use-linux-vsock-for-fast-vm-communication\/","description":"Discover how to bypass the network stack for Host-to-VM communication using Linux Virtual Sockets (AF_VSOCK). This article details how to use these sockets to build a high-performance gRPC service in C++ that communicates directly over the hypervisor bus, avoiding TCP\/IP overhead entirely.","pubDate":"Thu, 27 Nov 2025 16:30:00 +0000"},{"title":"How to reverse engineer USB HID on Linux","link":"https:\/\/popovicu.com\/posts\/how-to-reverse-engineer-usb-hid-on-linux\/","guid":"https:\/\/popovicu.com\/posts\/how-to-reverse-engineer-usb-hid-on-linux\/","description":"Discover how Linux exposes raw USB device data, even without a driver. This article details how to use \/dev\/hidraw and the HID report descriptor to reverse-engineer and read real-time data from a UPS.","pubDate":"Sat, 08 Nov 2025 15:30:00 +0000"},{"title":"How KVM and QEMU run VMs in Linux","link":"https:\/\/popovicu.com\/posts\/how-kvm-and-qemu-run-vms-in-linux\/","guid":"https:\/\/popovicu.com\/posts\/how-kvm-and-qemu-run-vms-in-linux\/","description":"Learn the distinct roles of QEMU and KVM in Linux virtualization. This article explains how they complement each other to run virtual machines at near-native speed.","pubDate":"Sun, 02 Nov 2025 16:30:00 +0000"},{"title":"PC cooler control with a $2 microcontroller, no development board","link":"https:\/\/popovicu.com\/posts\/pc-cooler-control-with-2-dollar-microcontroller-no-development-board\/","guid":"https:\/\/popovicu.com\/posts\/pc-cooler-control-with-2-dollar-microcontroller-no-development-board\/","description":"Walkthrough for a small embedded system based on ATmega328p which controls a PC cooler fan. The focus of this experiment is on using only open-source CLI software tooling for the solution. Additionally, no development boards were used, just the bare microcontroller, which should be helpful in transitioning to building your own boards.","pubDate":"Sat, 04 Oct 2025 14:30:00 +0000"},{"title":"Writing an operating system kernel from scratch","link":"https:\/\/popovicu.com\/posts\/writing-an-operating-system-kernel-from-scratch\/","guid":"https:\/\/popovicu.com\/posts\/writing-an-operating-system-kernel-from-scratch\/","description":"Exploring a minimal implementation of a time-sharing kernel on RISC-V, implemented in Zig, on top of OpenSBI.","pubDate":"Sat, 13 Sep 2025 16:30:00 +0000"},{"title":"Custom CPU simulation and testing","link":"https:\/\/popovicu.com\/posts\/custom-cpu-simulation-and-testing\/","guid":"https:\/\/popovicu.com\/posts\/custom-cpu-simulation-and-testing\/","description":"Walkthrough for how the Mrav CPU project handles RTL simulation and other testing aspects.","pubDate":"Sun, 07 Sep 2025 17:30:00 +0000"},{"title":"Running Go tools in a browser","link":"https:\/\/popovicu.com\/posts\/running-go-tools-in-browser\/","guid":"https:\/\/popovicu.com\/posts\/running-go-tools-in-browser\/","description":"Quick overview of how Go tools for the Mrav custom CPU are run inside a browser by leveraging WASM. The project is built with Bazel using Go rules.","pubDate":"Sat, 06 Sep 2025 17:30:00 +0000"},{"title":"RTL generation for custom CPU Mrav","link":"https:\/\/popovicu.com\/posts\/rtl-generation-for-custom-cpu-mrav\/","guid":"https:\/\/popovicu.com\/posts\/rtl-generation-for-custom-cpu-mrav\/","description":"Overview of how SystemVerilog RTL code is generated in the build flow for the Mrav custom CPU core.","pubDate":"Sat, 23 Aug 2025 17:30:00 +0000"},{"title":"Mrav custom CPU software tooling","link":"https:\/\/popovicu.com\/posts\/mrav-custom-cpu-software-tooling\/","guid":"https:\/\/popovicu.com\/posts\/mrav-custom-cpu-software-tooling\/","description":"Deep-dive into software tooling for a custom CPU platform Mrav.","pubDate":"Sat, 16 Aug 2025 17:30:00 +0000"},{"title":"Embedded bare-metal C with Bazel and AVR","link":"https:\/\/popovicu.com\/posts\/embedded-c-bazel-avr\/","guid":"https:\/\/popovicu.com\/posts\/embedded-c-bazel-avr\/","description":"Practical example of using Bazel to build an embedded C program, bare-metal. Concrete example with AVR ATmega328p.","pubDate":"Fri, 15 Aug 2025 02:00:00 +0000"},{"title":"Creating an assembler for a custom CPU","link":"https:\/\/popovicu.com\/posts\/assembler-for-custom-cpu\/","guid":"https:\/\/popovicu.com\/posts\/assembler-for-custom-cpu\/","description":"Explainer for how Mrav CPU assembler was created. Shortest path towards a small, working assembler for a custom ISA.","pubDate":"Sun, 10 Aug 2025 19:15:00 +0000"},{"title":"Making a custom CPU","link":"https:\/\/popovicu.com\/posts\/making-a-custom-cpu-mrav\/","guid":"https:\/\/popovicu.com\/posts\/making-a-custom-cpu-mrav\/","description":"First part of the series explaining the development of a custom CPU called Mrav and the tooling for it. Lessons learned from working on Google TPU chips.","pubDate":"Sat, 02 Aug 2025 22:00:00 +0000"},{"title":"Simple Lua integration in Go","link":"https:\/\/popovicu.com\/posts\/simple-lua-integration-in-go\/","guid":"https:\/\/popovicu.com\/posts\/simple-lua-integration-in-go\/","description":"Learn how to use Bazel to easily integrate (with a single command) mainline Lua in Go and potentially other languages (e.g. embedded C programs).","pubDate":"Sun, 20 Jul 2025 20:30:00 +0000"},{"title":"Cross-compiling C and Go via cgo with Bazel","link":"https:\/\/popovicu.com\/posts\/cross-compile-cgo-bazel\/","guid":"https:\/\/popovicu.com\/posts\/cross-compile-cgo-bazel\/","description":"Walkthrough for cross compiling a mixed C and Go binary for another platform using cgo and Bazel. Example is done with x86_64\/Linux compiling for RISC-V\/Linux.","pubDate":"Sat, 31 May 2025 17:15:00 +0000"},{"title":"Linux VM without VM software - User Mode Linux","link":"https:\/\/popovicu.com\/posts\/linux-vm-without-vm-software-user-mode\/","guid":"https:\/\/popovicu.com\/posts\/linux-vm-without-vm-software-user-mode\/","description":"Quick demonstration of using User Mode Linux (UML) to run a Linux VM inside Linux's userspace, without additional VM software or even root permissions","pubDate":"Sat, 24 May 2025 19:15:00 +0000"},{"title":"Machines build machines - AI creates a bootable VM","link":"https:\/\/popovicu.com\/posts\/ai-creates-bootable-vm\/","guid":"https:\/\/popovicu.com\/posts\/ai-creates-bootable-vm\/","description":"See how AI is pushing the boundaries of computer engineering. I'm sharing my journey driving AI to build a functional RISC-V 32-bit VM simulation, reaching the milestone of booting OpenSBI. Discover the process behind this AI-assisted journey and what's next on the path to a fully bootable Linux kernel and potentially an FPGA implementation.","pubDate":"Sat, 17 May 2025 17:00:00 +0000"},{"title":"Bare metal JavaScript on RISC-V","link":"https:\/\/popovicu.com\/posts\/bare-metal-javascript-riscv\/","guid":"https:\/\/popovicu.com\/posts\/bare-metal-javascript-riscv\/","description":"Explore how to run JavaScript directly on bare metal, like microcontrollers. This post shows you how to get JavaScript code executing on embedded hardware without an operating system, opening up new ways to program these chips. The example is done on a RISC-V VM.","pubDate":"Thu, 15 May 2025 05:00:00 +0000"},{"title":"Bare metal printf - C standard library without OS","link":"https:\/\/popovicu.com\/posts\/bare-metal-printf\/","guid":"https:\/\/popovicu.com\/posts\/bare-metal-printf\/","description":"Guide to implementing a C standard library for bare metal hardware using Newlib, enabling powerful functions like printf and malloc without relying on an operating system. This step-by-step guide demonstrates how to configure and integrate Newlib on RISC-V architecture, showing you how to redirect standard I\/O through UART for embedded systems development.","pubDate":"Sat, 26 Apr 2025 19:00:00 +0000"},{"title":"Making my first embedded Linux system","link":"https:\/\/popovicu.com\/posts\/making-my-first-embedded-linux-system\/","guid":"https:\/\/popovicu.com\/posts\/making-my-first-embedded-linux-system\/","description":"End-to-end documentation of a journey from no PCB experience to fabricating my own Linux-ready system that can boot the latest mainline kernel. This article is the recommended reading for someone building their first embedded Linux board. F1C100s SoC is used for this sample board.","pubDate":"Sat, 15 Jun 2024 18:00:00 +0000"},{"title":"Make your own USB storage device using embedded Linux","link":"https:\/\/popovicu.com\/posts\/make-your-own-usb-storage-embedded-linux\/","guid":"https:\/\/popovicu.com\/posts\/make-your-own-usb-storage-embedded-linux\/","description":"A guide on using embedded Linux to implement common USB devices, in this case, mass storage device. We'll use mainline Linux on Raspberry Pi Zero, and with 10-15 lines of shell scripting, we'll turn a Raspberry Pi into a flash drive.","pubDate":"Sun, 09 Jun 2024 16:00:00 +0000"},{"title":"Making USB devices - end to end guide to your first gadget","link":"https:\/\/popovicu.com\/posts\/making-usb-devices\/","guid":"https:\/\/popovicu.com\/posts\/making-usb-devices\/","description":"Introduction to implementing USB devices. Minimal overview of hardware and software with an example with STM32 microcontroller. Also contains an index to very detailed guides for more information.","pubDate":"Sat, 01 Jun 2024 16:00:00 +0000"},{"title":"OCI containers with Bazel in one command","link":"https:\/\/popovicu.com\/posts\/containers-bazel-one-command\/","guid":"https:\/\/popovicu.com\/posts\/containers-bazel-one-command\/","description":"Guide on building and running OCI containers using Bazel with one command. Bazel builds your software, packages the layers and builds the tarballs that can be imported by something like Docker to run your workloads.","pubDate":"Sat, 27 Apr 2024 16:30:00 +0000"},{"title":"Easy to build and deploy Go servers with no tooling and external dependencies","link":"https:\/\/popovicu.com\/posts\/easy-to-build-and-deploy-go-servers\/","guid":"https:\/\/popovicu.com\/posts\/easy-to-build-and-deploy-go-servers\/","description":"Quick introduction to building HTTP servers in Go without having any tooling set up and requiring no external dependencies. Bazel is the preferred build system for this exercise. Cross compiling to other platforms is also briefly covered.","pubDate":"Sat, 20 Apr 2024 18:30:00 +0000"},{"title":"Go gRPC servers with Bazel in one command","link":"https:\/\/popovicu.com\/posts\/go-grpc-servers-with-bazel\/","guid":"https:\/\/popovicu.com\/posts\/go-grpc-servers-with-bazel\/","description":"In-depth guide on building gRPC servers in Go programming language using Bazel. The end result is a single command that builds the proto definitions and links them into the server business logic. Includes the modern Bazel module mechanism for dependencies.","pubDate":"Sat, 20 Apr 2024 18:30:00 +0000"},{"title":"How files in Linux work","link":"https:\/\/popovicu.com\/posts\/how-files-in-linux-work\/","guid":"https:\/\/popovicu.com\/posts\/how-files-in-linux-work\/","description":"Learn the high-level concepts behind files and filesystems in Linux. This article explains both disk-based filesystems and filesystem as an API to the kernel.","pubDate":"Sat, 13 Apr 2024 19:15:00 +0000"},{"title":"Run mainline Linux on $5 dollar hardware","link":"https:\/\/popovicu.com\/posts\/run-mainline-linux-on-5-dollar-hardware\/","guid":"https:\/\/popovicu.com\/posts\/run-mainline-linux-on-5-dollar-hardware\/","description":"Learn how to make a Linux-capable embedded system for less than $5 dollars. Includes an in-depth analysis of how to build and deploy U-boot, with emphasis on the modern U-boot FIT images.","pubDate":"Sat, 06 Apr 2024 18:30:00 +0000"},{"title":"<50 lines of code for a custom generative AI flow in Google Slides with Google Gemini","link":"https:\/\/popovicu.com\/posts\/50-lines-of-code-for-custom-generative-ai-in-google-slides\/","guid":"https:\/\/popovicu.com\/posts\/50-lines-of-code-for-custom-generative-ai-in-google-slides\/","description":"Learn how to add custom AI flows to your Google Slides work through Gemini API. Also applicable to other Google apps.","pubDate":"Sun, 28 Jan 2024 04:00:00 +0000"},{"title":"Making a mini computer from scratch with Raspberry Pi and Linux","link":"https:\/\/popovicu.com\/posts\/making-a-mini-computer-from-scratch-with-raspberry-pi-and-linux\/","guid":"https:\/\/popovicu.com\/posts\/making-a-mini-computer-from-scratch-with-raspberry-pi-and-linux\/","description":"Learn how to utilize Raspberry Pi and Linux kernel to make your own custom mini computer from scratch, capable of interacting with the user through a keyboard and a screen.","pubDate":"Sun, 10 Dec 2023 01:00:00 +0000"},{"title":"Cross compiling C and C++ with Bazel","link":"https:\/\/popovicu.com\/posts\/cross-compiling-c-with-bazel\/","guid":"https:\/\/popovicu.com\/posts\/cross-compiling-c-with-bazel\/","description":"Learn how to utilize Bazel's toolchains and platforms to cross-compile C and C++ for another architecture and OS. The example used is cross-compiling for a bare-metal RISC-V machine.","pubDate":"Tue, 17 Oct 2023 00:30:00 +0000"},{"title":"Take full control of Raspberry Pi! 10 MB mainline Linux image for embedded","link":"https:\/\/popovicu.com\/posts\/10-mb-raspberry-pi-mainline-linux-image-for-embedded\/","guid":"https:\/\/popovicu.com\/posts\/10-mb-raspberry-pi-mainline-linux-image-for-embedded\/","description":"A guide on building a Raspberry Pi image from scratch using the latest mainline kernel for embedded purposes. Only a few manually built files are involved along with the Linux GPIO drivers to achieve LED flashing.","pubDate":"Sun, 15 Oct 2023 16:00:00 +0000"},{"title":"Building multiplatform Linux initramfs with one command in Bazel","link":"https:\/\/popovicu.com\/posts\/building-multiplatform-linux-initramfs-with-one-command-in-bazel\/","guid":"https:\/\/popovicu.com\/posts\/building-multiplatform-linux-initramfs-with-one-command-in-bazel\/","description":"A guide on building working initramfs images for Linux for any platform with minimal effort. The build is hermetic and assumes no tooling installed on the developer's machine (even Bazel doesn't have to be installed)","pubDate":"Thu, 12 Oct 2023 23:39:00 +0000"},{"title":"Build all software in one command with Bazel","link":"https:\/\/popovicu.com\/posts\/build-all-software-in-one-command-with-bazel\/","guid":"https:\/\/popovicu.com\/posts\/build-all-software-in-one-command-with-bazel\/","description":"An in-depth guide on how to use Bazel, including writing custom rules to automate any build\/run software flow. The example combines fetching remote tools, running a multi-language build and building complex binaries.","pubDate":"Wed, 11 Oct 2023 18:15:00 +0000"},{"title":"RISC-V interrupts with a timer example","link":"https:\/\/popovicu.com\/posts\/risc-v-interrupts-with-timer-example\/","guid":"https:\/\/popovicu.com\/posts\/risc-v-interrupts-with-timer-example\/","description":"A detailed example of RISC-V interrupts in C through OpenSBI timer infrastructure.","pubDate":"Mon, 09 Oct 2023 21:20:00 +0000"},{"title":"Bare Metal Rust on RISC-V With Dynamic Memory","link":"https:\/\/popovicu.com\/posts\/bare-metal-rust-risc-v-with-dynamic-memory\/","guid":"https:\/\/popovicu.com\/posts\/bare-metal-rust-risc-v-with-dynamic-memory\/","description":"A bare metal example of Rust programming on RISC-V. Includes a proof of concept for dynamic memory allocation.","pubDate":"Thu, 05 Oct 2023 02:30:00 +0000"},{"title":"789 KB Linux Without MMU on RISC-V","link":"https:\/\/popovicu.com\/posts\/789-kb-linux-without-mmu-riscv\/","guid":"https:\/\/popovicu.com\/posts\/789-kb-linux-without-mmu-riscv\/","description":"A guide on building a tiny Linux (only 789 KB) that requires no MMU and deploying it on a RISC-V system, with custom userspace code.","pubDate":"Wed, 04 Oct 2023 17:00:00 +0000"},{"title":"Making a micro Linux distro","link":"https:\/\/popovicu.com\/posts\/making-a-micro-linux-distro\/","guid":"https:\/\/popovicu.com\/posts\/making-a-micro-linux-distro\/","description":"A guide on building a simple Linux distribution from scratch. Detailed guide on building the kernel and the init process. Finally, a little distribution is built with u-root that is capable of connecting to the Internet.","pubDate":"Fri, 22 Sep 2023 02:30:00 +0000"},{"title":"RISC-V SBI and the full boot process","link":"https:\/\/popovicu.com\/posts\/risc-v-sbi-and-full-boot-process\/","guid":"https:\/\/popovicu.com\/posts\/risc-v-sbi-and-full-boot-process\/","description":"Detailed explanation on how RISC-V boot process works and what role SBI has in the RISC-V software stack. Concrete example with OpenSBI.","pubDate":"Sun, 10 Sep 2023 04:00:00 +0000"},{"title":"Bare metal programming with RISC-V guide","link":"https:\/\/popovicu.com\/posts\/bare-metal-programming-risc-v\/","guid":"https:\/\/popovicu.com\/posts\/bare-metal-programming-risc-v\/","description":"Guide on coding a bare metal program with UART output for RISC-V and running the emulation with QEMU. Brief overview of the RISC-V boot process.","pubDate":"Sat, 09 Sep 2023 19:05:00 +0000"}]}}