[Buildroot] how can i implement my kernel module and debug it
Andreas Ziegler
br015 at umbiko.net
Tue Oct 19 05:47:34 UTC 2021
Hi Esaïe
<appended Buildroot list>
On 2021-10-18 23:19, Esaïe Ledoux NJONGSSI KOUAM wrote:
> my kernel module works very well ,
>
> in qemu , i have type lsmod , but nothing , doesn't it means that
> linux kernel image doesn't build ??
<cut>
With the original config files, the module will not be built. Once it
gets built, the missing modules_install may prevent copying it into
/lib/modules in the target.
To see which steps were executed by Buildroot, run
$ grep kernel-module build/build-time.log
This file contains timestamps of all tasks executed by the Buildroot
environment.
> i have make something like you have said , but the problem still occur
-- Make sure your configuration is visible to Buildroot. You must be
able to select it in the menu editor (make nconfig).
-- Build your module separately by calling 'make kernel-module-rebuild'
and analyze the output. You should get headings for the separate build
steps (downloading, extracting, patching, configuring, building,
installing). Some sections may be missing or empty, but at least
'building/installing' must show output from your module. You might also
run build steps separately, until you find the one that fails; see [4]
-- Verify that the directory build/kernel-module exists and contains the
expected files.
-- Check target/lib/modules/${BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE} to
see if your module is included.
Kind regards,
Andreas
[4] https://buildroot.org/downloads/manual/manual.html#pkg-build-steps
More information about the buildroot
mailing list