[yocto] Kernel driver backports

Khem Raj raj.khem at gmail.com
Sun Aug 16 00:56:47 PDT 2015


> On Jun 23, 2015, at 4:00 PM, Darcy Watkins <dwatkins at sierrawireless.com> wrote:
> 
> Hello,
> 
> I am attempting to build kernel driver backports 3.18.1-1 to backport newer drivers into older kernels (3.4 for i586 and 3.12 for armv7).  This is in poky 1.6 (daisy).
> 
> I have everything building OK, and they seem to work OK on the target, BUT the tasks that split the packages up will name the kernel-module-XXX sub-packages the same as those originally built in the kernel.  Even though the package version from backports has the backports version (different from the kernel version), this still results in a QA warning – attempt to install files into a shared area when they already exist (which I believe is a QA fatal error in newer version of yocto).

this does mean that there are some package conflicts between kernel and back ported module recipes. You need to figure the conflicting files and may be delete them from one or the other. If the .ko with same name is going into a different directory thats totally fine and packager will not flag that. Its a valid case. But your problems are arising elsewhere
so look at the image/ directory of both kernel and back port modules built trees after the build is done for both and see where he conflict lies. You can also try to use build history
for helping out here.

> 
> The modules as shipped from kernel wind up under /lib/modules/…/kernel/drivers/…
> 
> The modules as shipped from backports wind up under /lib/modules/…/updates/drivers/…
> 
> So there is actually no real issue present.  They can both be installed on the target.
> 
> I think that the solution would be to override the sub-package naming such that instead of…
> 
> kernel-module-ath9k-hw-3.12… .rpm  …and…
> kernel-module-ath9k-hw-3.18.1-1… .rpm
> 
> …have something like…
> 
> kernel-module-ath9k-hw-3.12… .rpm  …and…
> backports-kernel-module-ath9k-hw-3.18.1-1… .rpm
> 
> Then there should be no QA issue and since the files are at different locations on the target system, there shouldn’t be any conflict there either.
> 
> Anyone know how to override the package splitter for kernel modules to use a different prefix? … or do I need to derive a new bbclass?
> 
> I tried setting KERNEL_MODULES_META_PACKAGE to something different, but that seems to have no effect.
> 
> 
> 
> Regards,
> 
> Darcy
> 
> Darcy Watkins ::  Staff Engineer, Firmware
> 
> SIERRA WIRELESS
> Direct  +1 604 233 7989   ::  Fax  +1 604 231 1109  ::  Main  +1 604 231 1100
> 13811 Wireless Way  :: Richmond, BC Canada V6V 3A4
> [P2]
> dwatkins at sierrawireless.com <mailto:dwatkins at sierrawireless.com> :: www.sierrawireless.com <http://www.sierrawireless.com/> :: www.inmotiontechnology.com <http://www.inmotiontechnology.com/>
> 
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org <mailto:yocto at yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150816/e78e6ddc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150816/e78e6ddc/attachment.pgp>


More information about the yocto mailing list