---
title: "Comment by Tommy Lee on \"Writing and Inserting a 'Hello World' Kernel Module for the Beaglebone Black (Buildroot)\" | Hashnode"
description: "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:"
url: "https://hashnode.com/posts/writing-and-inserting-a-hello-world-kernel-module-for-the-beaglebone-black-buildroot/641746bce12f7d561efd38e3/comment/6847241b9f8ad6a71df4444e"
---

[Discussion](https://hashnode.com/posts/writing-and-inserting-a-hello-world-kernel-module-for-the-beaglebone-black-buildroot/641746bce12f7d561efd38e3)

Comment [Writing and Inserting a 'Hello World' Kernel Module for the Beaglebone Black (Buildroot)](https://hashnode.com/posts/writing-and-inserting-a-hello-world-kernel-module-for-the-beaglebone-black-buildroot/641746bce12f7d561efd38e3)

[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!
