[yocto] Procedure for adding driver in Yocto

Vincent Prince vincent.prince.fr at gmail.com
Mon Oct 16 00:40:40 PDT 2017


Hi,

You have to create your own layer, then create a recipe to add your driver.

I'd suggest you to read
http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#managing-layers
http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#incorporating-out-of-tree-modules

Good luck,
Vincent

2017-10-15 16:13 GMT+02:00 Umamahesh Yelchuruvenkata <umamahesh.y at hcl.com>:
> Hi
>
> I am using wandboard, .bb file in the following path
>
> /yoctoimx-fsl-bsp/sources/meta-freescale-3rdparty/recipes-kernel/kernel-modules
>
> Contains kernel-module-mcc_2.1.01.bb
>
> But how do I edit it to add a new driver.
>
> Please suggest.
>
> Thanks
> Umamahesh
>
> -----Original Message-----
> From: Vincent Prince [mailto:vincent.prince.fr at gmail.com]
> Sent: 11 October 2017 12:54
> To: Umamahesh Yelchuruvenkata <umamahesh.y at hcl.com>
> Cc: yocto at yoctoproject.org
> Subject: Re: [yocto] Procedure for adding driver in Yocto
>
> 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