All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Compile kernel module within buildroot package
@ 2015-11-19 18:36 Arthur LAMBERT
  2015-11-30 13:45 ` Arthur Lambert
  2015-11-30 16:24 ` Thomas Petazzoni
  0 siblings, 2 replies; 7+ messages in thread
From: Arthur LAMBERT @ 2015-11-19 18:36 UTC (permalink / raw)
  To: buildroot

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
>>> 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
>>> 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
>>> 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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] Compile kernel module within buildroot package
  2015-11-19 18:36 [Buildroot] Compile kernel module within buildroot package Arthur LAMBERT
@ 2015-11-30 13:45 ` Arthur Lambert
  2015-11-30 16:24 ` Thomas Petazzoni
  1 sibling, 0 replies; 7+ messages in thread
From: Arthur Lambert @ 2015-11-30 13:45 UTC (permalink / raw)
  To: buildroot

Hi,

No one for this problem ?

Thanks,
Arthur.

2015-11-19 19:36 GMT+01:00 Arthur LAMBERT <lambertarthur22@gmail.com>:
> 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
>>>> 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
>>>> 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
>>>> 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.
>



-- 
- Arthur LAMBERT

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] Compile kernel module within buildroot package
  2015-11-19 18:36 [Buildroot] Compile kernel module within buildroot package Arthur LAMBERT
  2015-11-30 13:45 ` Arthur Lambert
@ 2015-11-30 16:24 ` Thomas Petazzoni
  2015-12-01  8:49   ` Arthur LAMBERT
                     ` (2 more replies)
  1 sibling, 3 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2015-11-30 16:24 UTC (permalink / raw)
  To: buildroot

Dear Arthur LAMBERT,

On Thu, 19 Nov 2015 19:36:53 +0100, Arthur LAMBERT wrote:

> 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
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] Compile kernel module within buildroot package
  2015-11-30 16:24 ` Thomas Petazzoni
@ 2015-12-01  8:49   ` Arthur LAMBERT
  2015-12-01 11:41     ` Stefan Peter
  2015-12-02 14:35   ` Arthur LAMBERT
  2015-12-09 11:50   ` Arthur LAMBERT
  2 siblings, 1 reply; 7+ messages in thread
From: Arthur LAMBERT @ 2015-12-01  8:49 UTC (permalink / raw)
  To: buildroot

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

Hi Thomas,

> On Thu, 19 Nov 2015 19:36:53 +0100, Arthur LAMBERT wrote:
> 
> > 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.

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.

> 
> Best regards,
> 
> Thomas
> -- 
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com

Arthur.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] Compile kernel module within buildroot package
  2015-12-01  8:49   ` Arthur LAMBERT
@ 2015-12-01 11:41     ` Stefan Peter
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Peter @ 2015-12-01 11:41 UTC (permalink / raw)
  To: buildroot

Dear Arthur LAMBERT,

Am 01.12.2015 um 09:49 schrieb Arthur LAMBERT:
> Le Monday 30 Nov 2015 ? 17:24:58 (+0100), Thomas Petazzoni a ?crit :
>> Dear Arthur LAMBERT,
>>
> 
> Hi Thomas,
> 
>> On Thu, 19 Nov 2015 19:36:53 +0100, Arthur LAMBERT wrote:
>>
>>> 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.
> 
> 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.

> 
> 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.

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

With kind regards

Stefan Peter

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] Compile kernel module within buildroot package
  2015-11-30 16:24 ` Thomas Petazzoni
  2015-12-01  8:49   ` Arthur LAMBERT
@ 2015-12-02 14:35   ` Arthur LAMBERT
  2015-12-09 11:50   ` Arthur LAMBERT
  2 siblings, 0 replies; 7+ messages in thread
From: Arthur LAMBERT @ 2015-12-02 14:35 UTC (permalink / raw)
  To: buildroot

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] Compile kernel module within buildroot package
  2015-11-30 16:24 ` Thomas Petazzoni
  2015-12-01  8:49   ` Arthur LAMBERT
  2015-12-02 14:35   ` Arthur LAMBERT
@ 2015-12-09 11:50   ` Arthur LAMBERT
  2 siblings, 0 replies; 7+ messages in thread
From: Arthur LAMBERT @ 2015-12-09 11:50 UTC (permalink / raw)
  To: buildroot

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-12-09 11:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-19 18:36 [Buildroot] Compile kernel module within buildroot package Arthur LAMBERT
2015-11-30 13:45 ` Arthur Lambert
2015-11-30 16:24 ` Thomas Petazzoni
2015-12-01  8:49   ` Arthur LAMBERT
2015-12-01 11:41     ` Stefan Peter
2015-12-02 14:35   ` Arthur LAMBERT
2015-12-09 11:50   ` Arthur LAMBERT

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.