<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>QEMU on Rishav's Digital Garden</title><link>https://blog.rishavs.in/tags/qemu/</link><description>Recent content in QEMU on Rishav's Digital Garden</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 08 Dec 2025 12:06:00 +0000</lastBuildDate><atom:link href="https://blog.rishavs.in/tags/qemu/index.xml" rel="self" type="application/rss+xml"/><item><title>Move KO inside QEMU Environment using SSH</title><link>https://blog.rishavs.in/posts/move-ko-inside-qemu-environment-using-ssh/</link><pubDate>Mon, 08 Dec 2025 12:06:00 +0000</pubDate><guid>https://blog.rishavs.in/posts/move-ko-inside-qemu-environment-using-ssh/</guid><description>&lt;blockquote>
&lt;p>The most powerful tool you can have is the ability to move information freely.&lt;/p>&lt;/blockquote>
&lt;p>Efficiently transferring files between your host machine and a QEMU‑emulated Buildroot system becomes essential when testing kernel modules, applications, or firmware artifacts. This guide explains how to enable SSH inside Buildroot, verify connectivity, and use scp to move files seamlessly from host to guest.&lt;/p>
&lt;h2 id="prerequisite">Prerequisite&lt;/h2>
&lt;p>Before proceeding, ensure your Buildroot filesystem includes the OpenSSH server. Inside Buildroot, enable:&lt;/p></description></item><item><title>Make Simple Kernel Module (.ko)</title><link>https://blog.rishavs.in/posts/make-simple-kernel-module-ko/</link><pubDate>Tue, 25 Nov 2025 23:34:00 +0000</pubDate><guid>https://blog.rishavs.in/posts/make-simple-kernel-module-ko/</guid><description>&lt;h2 id="1-overview">1. Overview&lt;/h2>
&lt;p>A kernel module provides a way to extend kernel functionality without rebuilding the entire kernel. Using the Buildroot toolchain ensures the module is ABI‑compatible with the kernel generated during your Buildroot build. QEMU then offers a convenient emulation environment to test modules without hardware.&lt;/p>
&lt;p>Linux kernel modules are dynamically loadable pieces of code that extend the functionality of the kernel without requiring a reboot or recompilation. They are widely used for device drivers, filesystems, and various kernel extensions.&lt;/p></description></item><item><title>Buildroot on QEMU</title><link>https://blog.rishavs.in/posts/buildroot-on-qemu/</link><pubDate>Tue, 25 Nov 2025 19:07:00 +0000</pubDate><guid>https://blog.rishavs.in/posts/buildroot-on-qemu/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>Buildroot is a powerful tool that automates building cross‑compilers, kernel images, bootloaders, root filesystems, and entire minimal Linux environments. Combined with QEMU, it provides a fast and fully emulated setup without needing physical hardware.&lt;/p>
&lt;h2 id="steps">Steps&lt;/h2>
&lt;h3 id="0-dependencies">0. Dependencies&lt;/h3>
&lt;p>Before building Buildroot, ensure the following packages are installed on your host system:&lt;/p>
&lt;p>&lt;strong>For Debian/Ubuntu:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>sudo apt install build-essential git wget cpio unzip rsync bc python3 &lt;span style="color:#ae81ff">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#ae81ff">&lt;/span> qemu-system-arm qemu-system-misc qemu-utils flex bison libssl-dev
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>For Fedora:&lt;/strong>&lt;/p></description></item></channel></rss>