---
title: "Discussion on \"Writing and Inserting a 'Hello World' Kernel Module for the Beaglebone Black (Buildroot)\" | Hashnode"
description: "Discussion on \"Writing and Inserting a 'Hello World' Kernel Module for the Beaglebone Black (Buildroot)\". Writing and inserting a hello world kernel module"
url: "https://hashnode.com/posts/writing-and-inserting-a-hello-world-kernel-module-for-the-beaglebone-black-buildroot/641746bce12f7d561efd38e3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Writing and Inserting a 'Hello World' Kernel Module for the Beaglebone Black (Buildroot)](https://blog.billvanleeuwen.ca/writing-and-inserting-a-hello-world-kernel-module-for-the-beaglebone-black-buildroot?utm_source=hashnode&utm_medium=feed)

Writing and inserting a hello world kernel module

Mar 19, 2023 · 4 min read · blog.billvanleeuwen.ca  
Updated Apr 14, 2023  
Read the article

-   [#beaglebone-black](https://hashnode.com/tag/beaglebone-black)
-   [#embedded-linux](https://hashnode.com/tag/embedded-linux)
-   [#linux-kernel](https://hashnode.com/tag/linux-kernel)

## Written by

[Bill Van Leeuwen](https://hashnode.com/@billvanleeuwen424)

@billvanleeuwen424

  
[View profile](https://hashnode.com/@billvanleeuwen424)

## Responses 2

Markdown supported · ⌘↵ to post

[Tommy Lee](https://hashnode.com/@tclee)

[Jun 10, 2025](https://hashnode.com/posts/writing-and-inserting-a-hello-world-kernel-module-for-the-beaglebone-black-buildroot/641746bce12f7d561efd38e3/comment/6848955818f84fa9d0f12f02)

FYI, using the same BKM (Best Known Method) I succeeded in running my ioctl.ko on my rpi3mb platform.

My next move is to develop an IOCTL app to very my IOCTL kernel module.

[Tommy Lee](https://hashnode.com/@tclee)

[Jun 9, 2025](https://hashnode.com/posts/writing-and-inserting-a-hello-world-kernel-module-for-the-beaglebone-black-buildroot/641746bce12f7d561efd38e3/comment/6847241b9f8ad6a71df4444e)

Your building steps work for me. I have been looking for such solutions for a while; yours is the simplest one. Thanks.

Now I am encountering an insmod problem:

# insmod ./hell0\_world.ko

ERROR: could not load module ./hell0\_world.ko: No such file or directory

I am using buildroot master branch in my ubuntu host. My KDIR string is  
/home/tclee/buildroot/output/build/linux-custom

tclee@tclee-Latitude-E6230:~/buildroot/output/build/linux-custom$ make kernelversion 6.12.20

My rpi3mb target is running a different kernel version:

Linux buildroot 6.12.20-v7 #1 SMP Tue Jun 3 20:03:35 PDT 2025 armv7l GNU/Linux

I am wondering if the kernel version difference is the cause of this failure.

I am resolving this problem; your comment is welcome.

[Tommy Lee](https://hashnode.com/@tclee)

[Jun 9, 2025](https://hashnode.com/posts/writing-and-inserting-a-hello-world-kernel-module-for-the-beaglebone-black-buildroot/641746bce12f7d561efd38e3/comment/6847241b9f8ad6a71df4444e#reply-684748e34384720b1bcf5b8c)

I did not change my setting. After lunch I tried the steps again. It surprisingly works:

The rpi3mb console log shows:

\[427889.087724\] Hello World!  
\[427915.237325\] Goodbye World

My next move is the replacement of hello\_work.c with my ioctl.ko.

[Bill Van Leeuwen](https://hashnode.com/@billvanleeuwen424)

[Jul 3, 2025](https://hashnode.com/posts/writing-and-inserting-a-hello-world-kernel-module-for-the-beaglebone-black-buildroot/641746bce12f7d561efd38e3/comment/6847241b9f8ad6a71df4444e#reply-6866d76bd5e27b73bad7a04b)

[Tommy Lee](https://hashnode.com/@tclee) Hi Tommy, I'm happy that these instructions worked out for you! I'm sorry I was so slow to respond. I do not monitor my blog often.

Thanks for the interaction :) I hope the best for you in the future!
