AnsweredAssumed Answered

Installing Built Drivers on Yocto Image?

Question asked by Paul DeMetrotion on May 31, 2016
Latest reply on Jun 22, 2016 by madisox

I have prebuilt some drivers for a RedPine wireless device and need to put the drivers and scripts onto a Linux image. I have created the following rs9113_1.0.0.bb recipe but I get errors when trying to copy the drivers. I do not get these errors with the scripts. Any ideas what I am doing wrong??

 

rs9113_1.0.0.bb:

DESCRIPTION = "Install of rs9113 drivers and scripts"

 

LICENSE = "MIT"

LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \

                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

 

kmoddir = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/redpine"

 

FILESEXTRAPATHS_prepend := "${THISDIR}:"

 

SRC_URI_append = " \

    file://onebox_common_gpl.ko \

    file://onebox_gpl.ko \

    file://onebox_nongpl.ko \

    file://onebox_wlan_gpl.ko \

    file://onebox_wlan_nongpl.ko \

    file://wlan.ko \

    file://wlan_wep.ko \

    file://wlan_ccmp.ko \

    file://wlan_tkip.ko \

    file://wlan_acl.ko \

    file://wlan_scan_sta.ko \

    file://wlan_xauth.ko \

    file://wlan_enable.sh \

    file://wlan_disable.sh \

"

 

do_install_append() {

    install -d ${D}${kmoddir}

    install -m 0755 ${WORKDIR}/onebox_common_gpl.ko ${D}${kmoddir}

    install -m 0755 ${WORKDIR}/onebox_gpl.ko ${D}${kmoddir}

    install -m 0755 ${WORKDIR}/onebox_nongpl.ko ${D}${kmoddir}

    install -m 0755 ${WORKDIR}/onebox_wlan_gpl.ko ${D}${kmoddir}

    install -m 0755 ${WORKDIR}/onebox_wlan_nongpl.ko ${D}${kmoddir}

    install -m 0755 ${WORKDIR}/wlan.ko ${D}${kmoddir}

    install -m 0755 ${WORKDIR}/wlan_wep.ko ${D}${kmoddir}

    install -m 0755 ${WORKDIR}/wlan_ccmp.ko ${D}${kmoddir}

    install -m 0755 ${WORKDIR}/wlan_tkip.ko ${D}${kmoddir}

    install -m 0755 ${WORKDIR}/wlan_acl.ko ${D}${kmoddir}

    install -m 0755 ${WORKDIR}/wlan_scan_sta.ko ${D}${kmoddir}

    install -m 0755 ${WORKDIR}/wlan_xauth.ko ${D}${kmoddir}

    install -d ${D}/etc/redpine

    install -m 0755 ${WORKDIR}/wlan_enable.sh ${D}/etc/redpine

    install -m 0755 ${WORKDIR}/wlan_disable.sh ${D}/etc/redpine

}

 

FILES_${PN}_append += " \

    ${D}${kmoddir}/onebox_common_gpl.ko \

    ${D}${kmoddir}/onebox_gpl.ko \

    ${D}${kmoddir}/onebox_nongpl.ko \

    ${D}${kmoddir}/onebox_wlan_gpl.ko \

    ${D}${kmoddir}/onebox_wlan_nongpl.ko \

    ${D}${kmoddir}/wlan.ko \

    ${D}${kmoddir}/wlan_wep.ko \

    ${D}${kmoddir}/wlan_ccmp.ko \

    ${D}${kmoddir}/wlan_tkip.ko \

    ${D}${kmoddir}/wlan_acl.ko \

    ${D}${kmoddir}/wlan_scan_sta.ko \

    ${D}${kmoddir}/wlan_xauth.ko \

    ${D}/etc/redpine/wlan_enable.sh \

    ${D}/etc/redpine/wlan_disable.sh \

"

 

Build Errors:

ERROR: QA Issue: rs9113: Files/directories were installed but not shipped

  /lib

  /lib/modules

  /lib/modules/kernel

  /lib/modules/kernel/drivers

  /lib/modules/kernel/drivers/net

  /lib/modules/kernel/drivers/net/wireless

  /lib/modules/kernel/drivers/net/wireless/redpine

  /lib/modules/kernel/drivers/net/wireless/redpine/wlan.ko

  /lib/modules/kernel/drivers/net/wireless/redpine/wlan_ccmp.ko

  /lib/modules/kernel/drivers/net/wireless/redpine/onebox_common_gpl.ko

  /lib/modules/kernel/drivers/net/wireless/redpine/wlan_tkip.ko

  /lib/modules/kernel/drivers/net/wireless/redpine/wlan_wep.ko

  /lib/modules/kernel/drivers/net/wireless/redpine/wlan_scan_sta.ko

  /lib/modules/kernel/drivers/net/wireless/redpine/wlan_acl.ko

  /lib/modules/kernel/drivers/net/wireless/redpine/onebox_wlan_nongpl.ko

  /lib/modules/kernel/drivers/net/wireless/redpine/onebox_wlan_gpl.ko

  /lib/modules/kernel/drivers/net/wireless/redpine/wlan_xauth.ko

  /lib/modules/kernel/drivers/net/wireless/redpine/onebox_gpl.ko

  /lib/modules/kernel/drivers/net/wireless/redpine/onebox_nongpl.ko [installed-vs-shipped]

Outcomes