Skip to contentSkip to conversation

Compile kernel module within buildroot package

Buildroot Arthur LAMBERT 3 participants 7 messages Nov 19, 2015 – Dec 9, 2015

lore
Share & tools
lore
#0 lore raw

Hi all,

I am currently using the 2015.08 version of buildroot. Kernel module compilation is broken :

[arthur] make lttng-modules-rebuild
rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_staging_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_target_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_images_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_host_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_built

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

lttng-modules 2.6.0 Building
lttng-modules 2.6.0 Building kernel module(s)

grep: /.config: No such file or directory

I found a fix here : http://lists.busybox.net/pipermail/buildroot/2015-September/138543.html

next try after applying the fix :

[arthur] make lttng-modules-rebuild
rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_staging_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_target_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_images_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_host_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_built

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

lttng-modules 2.6.0 Building
lttng-modules 2.6.0 Building kernel module(s)

PATH="/home/arthur/work/buildroot/2015_08/output/host/bin:/home/arthur/work/buildroot/2015_08/output/host/sbin:/home/arthur/work/buildroot/2015_08/output/host/usr/bin:/home/arthur/work/buildroot/2015_08/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/gnat/bin:/home/g179168/middleware/tools/bin/" BR_BINARIES_DIR=/home/arthur/work/buildroot/2015_08/output/images /usr/bin/make -j9 -C /home/arthur/work/buildroot/2015_08/output/build/linux-dreem_v2 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm INSTALL_MOD_PATH=/home/arthur/work/buildroot/2015_08/output/target CROSS_COMPILE=" /home/arthur/work/buildroot/2015_08/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-" DEPMOD=/home/arthur/work/buildroot/2015_08/output/host/sbin/depmod PWD=/home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/. M=/home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/. modules
Building modules, stage 2.
MODPOST 0 modules

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

lttng-modules 2.6.0 Installing to target
lttng-modules 2.6.0 Installing kernel module(s)

PATH="/home/arthur/work/buildroot/2015_08/output/host/bin:/home/arthur/work/buildroot/2015_08/output/host/sbin:/home/arthur/work/buildroot/2015_08/output/host/usr/bin:/home/arthur/work/buildroot/2015_08/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/gnat/bin:/home/g179168/middleware/tools/bin/" BR_BINARIES_DIR=/home/arthur/work/buildroot/2015_08/output/images /usr/bin/make -j9 -C /home/arthur/work/buildroot/2015_08/output/build/linux-dreem_v2 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm INSTALL_MOD_PATH=/home/arthur/work/buildroot/2015_08/output/target CROSS_COMPILE=" /home/arthur/work/buildroot/2015_08/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-" DEPMOD=/home/arthur/work/buildroot/2015_08/output/host/sbin/depmod PWD=/home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/. M=/home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/. modules_install
DEPMOD 3.14.28

Nothing seems to be compile :

[arthur] find output/build/lttng-modules-2.6.0/ -name "*.ko" => no result

Do I miss something ?
Same result with master branch.

Thanks,
Arthur.

#1 lore raw

Hi,

No one for this problem ?

Thanks,
Arthur.

2015-11-19 19:36 GMT+01:00 Arthur LAMBERT <[email protected]>:

Quoted 47 lines

Hi all,

I am currently using the 2015.08 version of buildroot. Kernel module compilation is broken :

[arthur] make lttng-modules-rebuild
rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_staging_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_target_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_images_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_host_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_built

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

lttng-modules 2.6.0 Building
lttng-modules 2.6.0 Building kernel module(s)

grep: /.config: No such file or directory

I found a fix here : http://lists.busybox.net/pipermail/buildroot/2015-September/138543.html

next try after applying the fix :

[arthur] make lttng-modules-rebuild
rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_staging_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_target_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_images_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_host_installed rm -f /home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/.stamp_built

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

lttng-modules 2.6.0 Building
lttng-modules 2.6.0 Building kernel module(s)

PATH="/home/arthur/work/buildroot/2015_08/output/host/bin:/home/arthur/work/buildroot/2015_08/output/host/sbin:/home/arthur/work/buildroot/2015_08/output/host/usr/bin:/home/arthur/work/buildroot/2015_08/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/gnat/bin:/home/g179168/middleware/tools/bin/" BR_BINARIES_DIR=/home/arthur/work/buildroot/2015_08/output/images /usr/bin/make -j9 -C /home/arthur/work/buildroot/2015_08/output/build/linux-dreem_v2 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm INSTALL_MOD_PATH=/home/arthur/work/buildroot/2015_08/output/target CROSS_COMPILE=" /home/arthur/work/buildroot/2015_08/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-" DEPMOD=/home/arthur/work/buildroot/2015_08/output/host/sbin/depmod PWD=/home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/. M=/home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/. modules
Building modules, stage 2.
MODPOST 0 modules

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

lttng-modules 2.6.0 Installing to target
lttng-modules 2.6.0 Installing kernel module(s)

PATH="/home/arthur/work/buildroot/2015_08/output/host/bin:/home/arthur/work/buildroot/2015_08/output/host/sbin:/home/arthur/work/buildroot/2015_08/output/host/usr/bin:/home/arthur/work/buildroot/2015_08/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/gnat/bin:/home/g179168/middleware/tools/bin/" BR_BINARIES_DIR=/home/arthur/work/buildroot/2015_08/output/images /usr/bin/make -j9 -C /home/arthur/work/buildroot/2015_08/output/build/linux-dreem_v2 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm INSTALL_MOD_PATH=/home/arthur/work/buildroot/2015_08/output/target CROSS_COMPILE=" /home/arthur/work/buildroot/2015_08/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-" DEPMOD=/home/arthur/work/buildroot/2015_08/output/host/sbin/depmod PWD=/home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/. M=/home/arthur/work/buildroot/2015_08/output/build/lttng-modules-2.6.0/. modules_install
DEPMOD 3.14.28

Nothing seems to be compile :

[arthur] find output/build/lttng-modules-2.6.0/ -name "*.ko" => no result

Do I miss something ?
Same result with master branch.

Thanks,
Arthur.

Signature · 1 line
- Arthur LAMBERT
#2 lore raw
In reply to Arthur LAMBERT

Dear Arthur LAMBERT,

Quoted 2 lines · Arthur LAMBERT

I am currently using the 2015.08 version of buildroot. Kernel module compilation is broken :

This problem has been fixed in 2015.08.1, you should upgrade to this version (which has just three commits on top of 2015.08), or alternatively backport

http://git.buildroot.net/buildroot/commit/?h=2015.08.x&id=16768877e324f6e3e1291613ae5db9af0da5a2bf

I was able to reproduce your problem on 2015.08, and with just this commit applied, lttng-modules could be built successfully.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

Le Monday 30 Nov 2015 ? 17:24:58 (+0100), Thomas Petazzoni a ?crit :

Quoted 2 lines

Dear Arthur LAMBERT,

Hi Thomas,

Quoted 5 lines · Arthur LAMBERT
Quoted 3 lines

I am currently using the 2015.08 version of buildroot. Kernel module compilation is broken :

Quoted 8 lines

This problem has been fixed in 2015.08.1, you should upgrade to this version (which has just three commits on top of 2015.08), or alternatively backport

http://git.buildroot.net/buildroot/commit/?h=2015.08.x&id=16768877e324f6e3e1291613ae5db9af0da5a2bf

I was able to reproduce your problem on 2015.08, and with just this commit applied, lttng-modules could be built successfully.

I already found this patch. The compilation issue is fixed thanks to this commit. But I am always not able to get a ko file at the end of the compilation process. Even with the master branch.

Process to run the test :

* git checkout 2015.08.1
* git checkout -f
* make distclean
* make wandboard_defconfig (I am using this defconfig for my test)
* enable lttng-modules through make menuconfig
* make lttng-modules

Check ko file in output/target, output/builf/lttng-modules-X, output/build/linux-X
=> no lttng kernel module file found.

The compilation seems to work without error. But in fact nothing is compiled at the end of the process.

Quoted 8 lines

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

Arthur.

#4 lore raw

Dear Arthur LAMBERT,

Am 01.12.2015 um 09:49 schrieb Arthur LAMBERT:

Quoted 15 lines

Le Monday 30 Nov 2015 ? 17:24:58 (+0100), Thomas Petazzoni a ?crit :

Quoted 2 lines

Dear Arthur LAMBERT,

Hi Thomas,

Quoted 9 lines · Arthur LAMBERT
Quoted 3 lines

I am currently using the 2015.08 version of buildroot. Kernel module compilation is broken :

This problem has been fixed in 2015.08.1, you should upgrade to this version (which has just three commits on top of 2015.08), or alternatively backport

Quoted 8 lines
Quoted 4 lines

http://git.buildroot.net/buildroot/commit/?h=2015.08.x&id=16768877e324f6e3e1291613ae5db9af0da5a2bf

I was able to reproduce your problem on 2015.08, and with just this commit applied, lttng-modules could be built successfully.

I already found this patch. The compilation issue is fixed thanks to this commit. But I am always not able to get a ko file at the end of the compilation process. Even with the master branch.

You need to enable tracing in the kernel configuration in order for lttng to be able to produce the kernel modules. See the help text of the lttng-modules package for further details.

Quoted 10 lines

Process to run the test :

* git checkout 2015.08.1
* git checkout -f
* make distclean
* make wandboard_defconfig (I am using this defconfig for my test)
* enable lttng-modules through make menuconfig
* make lttng-modules

Quoted 2 lines

Check ko file in output/target, output/builf/lttng-modules-X, output/build/linux-X
=> no lttng kernel module file found.

They will show up in output/target/lib/modules/3.14.28_1.0.0_ga-wandboard/extra/

With kind regards

Stefan Peter

#5 lore raw
In reply to Thomas Petazzoni

Hi,

By the way the compilation of other module using kernel module seems to work perfectly. I reproduce the issue only with lttng modules in fact...

Do you reproduce the same issue with lttng modules ?

Arthur.

#6 lore raw
In reply to Thomas Petazzoni

Hi Stefan,

Sorry for the delay of my answer. I did not get the notification on your answer. In fact you right... Everything is working great after applying the fix... Just need to add CONFIG_TRACEPOINTS in kernel config.

Thanks again !
Arthur.