[yocto] Procedure for adding driver in Yocto

Vincent Prince vincent.prince.fr at gmail.com
Wed Oct 11 00:24:06 PDT 2017


Hi,

If you want to create a kernel module, you can use that kind of recipe

meta-x-bsp/recipes-kernel/kernel-module/kernel-module-modulename.bb:

SUMMARY = "Kernel loadable module"
DESCRIPTION = "This package includes loadable module"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=a04ba2d94725e7270af091f1f1cb6580"

PV .= "+git${SRCPV}"

SRCREV = "e26baba25fa792730d09c6e5334814b3037e7bc7"
SRC_URI = "git://url/modulename.git"

S = "${WORKDIR}/git"

inherit module

KERNEL_MODULE_AUTOLOAD = "modulename"

If it ok for you ?
Best Regards,
Vincent

2017-10-11 7:40 GMT+02:00 Umamahesh Yelchuruvenkata <umamahesh.y at hcl.com>:
> Hi
>
>
>
> I am looking for a procedure how to add an new driver in Yocto Kernel. I
> tried adding an sample char driver by updating Kconfig and makefile of
> respective directory and by default marked as built in by default.
>
>
>
> But I do not see the driver is coming up while kernel is booted.
>
>
>
> Please suggest the procedure.
>
>
>
> Thanks
>
> Umamahesh
>
>
>
> ::DISCLAIMER::
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only.
> E-mail transmission is not guaranteed to be secure or error-free as
> information could be intercepted, corrupted,
> lost, destroyed, arrive late or incomplete, or may contain viruses in
> transmission. The e mail and its contents
> (with or without referred errors) shall therefore not attach any liability
> on the originator or HCL or its affiliates.
> Views or opinions, if any, presented in this email are solely those of the
> author and may not necessarily reflect the
> views or opinions of HCL or its affiliates. Any form of reproduction,
> dissemination, copying, disclosure, modification,
> distribution and / or publication of this message without the prior written
> consent of authorized representative of
> HCL is strictly prohibited. If you have received this email in error please
> delete it and notify the sender immediately.
> Before opening any email and/or attachments, please check them for viruses
> and other defects.
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list