All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] Kernel module compiled but not found
Date: Sun, 13 Oct 2013 16:51:24 +0200	[thread overview]
Message-ID: <20131013145124.GA16563@free.fr> (raw)
In-Reply-To: <525AAE63.3060601@gmail.com>

Marco, All,

On 2013-10-13 16:29 +0200, Marco Trapanese spake thusly:
> Hello,
> I read the official documentation and this tutorial:
> 
> http://blog.willygroup.org/buildroot-aggiungere-modulo-al-kernel.html#fn-729-1
> 
> to add a custom kernel module.
> It seems it is successfully compiled but I cannot find the .ko file in the
> Buildroot tree.
> This is the relevant output:
> 
> >>> sensoray2253 1.2.6 Building
> /usr/bin/make -j5
> HOSTCC="/home/mark/dev/rpiqt5/buildroot-rpi/output/host/usr/bin/ccache
> /usr/bin/gcc" HOSTCFLAGS="" ARCH=arm
> INSTALL_MOD_PATH=/home/mark/dev/rpiqt5/buildroot-rpi/output/target
> CROSS_COMPILE="/home/mark/dev/rpiqt5/buildroot-rpi/output/host/usr/bin/ccache /home/mark/dev/rpiqt5/buildroot-rpi/output/host/usr/bin/arm-buildroot-linux-gnueabi-"
> DEPMOD=/home/mark/dev/rpiqt5/buildroot-rpi/output/host/usr/sbin/depmod -C
> /home/mark/dev/rpiqt5/buildroot-rpi/output/build/linux-custom
> M=/home/mark/dev/rpiqt5/buildroot-rpi/output/build/sensoray2253-1.2.6
> modules
> make[1]: Entering directory
> `/home/mark/dev/rpiqt5/buildroot-rpi/output/build/linux-custom'
>   Building modules, stage 2.
>   MODPOST 0 modules
> make[1]: Leaving directory
> `/home/mark/dev/rpiqt5/buildroot-rpi/output/build/linux-custom'
> >>> sensoray2253 1.2.6 Installing to target
> /usr/bin/make -j5
> HOSTCC="/home/mark/dev/rpiqt5/buildroot-rpi/output/host/usr/bin/ccache
> /usr/bin/gcc" HOSTCFLAGS="" ARCH=arm
> INSTALL_MOD_PATH=/home/mark/dev/rpiqt5/buildroot-rpi/output/target
> CROSS_COMPILE="/home/mark/dev/rpiqt5/buildroot-rpi/output/host/usr/bin/ccache /home/mark/dev/rpiqt5/buildroot-rpi/output/host/usr/bin/arm-buildroot-linux-gnueabi-"
> DEPMOD=/home/mark/dev/rpiqt5/buildroot-rpi/output/host/usr/sbin/depmod -C
> /home/mark/dev/rpiqt5/buildroot-rpi/output/build/linux-custom
> M=/home/mark/dev/rpiqt5/buildroot-rpi/output/build/sensoray2253-1.2.6
> modules_install

You're missing INSTALL_MOD_PATH=$(TARGET_DIR) on this command line
(the make line for 'MYKMOD_INSTALL_TARGET_CMDS' ).

Regards,
Yann E. MORIN.

> make[1]: Entering directory
> `/home/mark/dev/rpiqt5/buildroot-rpi/output/build/linux-custom'
>   DEPMOD  3.9.11
> make[1]: Leaving directory
> `/home/mark/dev/rpiqt5/buildroot-rpi/output/build/linux-custom'
> mkdir -p /home/mark/dev/rpiqt5/buildroot-rpi/output/target/etc
> echo "rpi" > /home/mark/dev/rpiqt5/buildroot-rpi/output/target/etc/hostname
> 
> 
> As you can see, there are no errors but I'm not sure the module is correctly
> installed!
> According to the tutorial I should find it in:
> 
> buildroot_folder/output/target/lib/modules/kernel_version/extra/
> 
> but mine is empty.
> 
> How investigate further?
> Thanks
> Mark
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2013-10-13 14:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-13 14:29 [Buildroot] Kernel module compiled but not found Marco Trapanese
2013-10-13 14:51 ` Yann E. MORIN [this message]
2013-10-13 15:02   ` Marco Trapanese
2013-10-13 15:05     ` Thomas Petazzoni
2013-10-13 15:19       ` Marco Trapanese
2013-10-13 21:12         ` Arnout Vandecappelle
2013-10-14  7:58           ` Marco Trapanese
2013-10-13 15:57       ` Yann E. MORIN
2013-10-13 16:53     ` Sagaert Johan
2013-10-13 17:05       ` Marco Trapanese
2013-10-13 15:56 ` Yann E. MORIN
2013-10-13 16:02   ` Marco Trapanese
2013-10-13 20:11 ` Ciarán Rehill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131013145124.GA16563@free.fr \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.