[meta-freescale] Problem generating rootfs with out of tree modules

ting.liu at freescale.com ting.liu at freescale.com
Wed Apr 15 22:46:00 PDT 2015


Seems that the root cause is that: the content under "${base_libdir}/modules/” was packaged into dahdi-tools. So kernel-module-dahdi had nothing, then the rpm was not generated.

-Ting

From: meta-freescale-bounces at yoctoproject.org [mailto:meta-freescale-bounces at yoctoproject.org] On Behalf Of Doug Bailey
Sent: Thursday, April 16, 2015 6:39 AM
To: meta-freescale at yoctoproject.org
Subject: Re: [meta-freescale] Problem generating rootfs with out of tree modules

The image file that I have built is:
============================================
## Dbailey first attempt at building a custom image

require ${FILE_DIRNAME}/../../meta-fsl-networking/images/fsl-image-full.bb<http://fsl-image-full.bb>

IMAGE_INSTALL += "dahdi-tools "



The dahdi linux recipe (which is where the modules in the error message are built) is as follows:
============================================
DESCRIPTION = "Dahdi Linux Out of Tree Driver Build"
HOMEPAGE = "http://www.asterisk.org"
SECTION = "dahdi-firmware"
LICENSE = "GPLv2"

PR = "r0"
RDEPENDS_${PN} = "kernel (${KERNEL_VERSION})"
DEPENDS = "virtual/kernel"
RRECOMMENDS_${PN} = "dahdi-linux"

# those firmware images are normally downloaded as part of the 'make'
# process of dahdi-linux.  In the context of OE, we want to list them
# here so they are part of the 'downloads' directory and thus don't need
# to be downloaded all the time.

SRC_URI = "http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-${PV}.tar.gz;name=main<http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-$%7bPV%7d.tar.gz;name=main> "

SRC_URI += "http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-hx8-2.06.tar.gz;name=hx8"
SRC_URI += "http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-064-1.05.01.tar.gz;name=6114-064"
SRC_URI += "http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-128-1.05.01.tar.gz;name=6114-128"
SRC_URI += "http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-tc400m-MR6.12.tar.gz;name=tcm400"
SRC_URI += "http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-vpmadt032-1.07.tar.gz;name=vpmadt032"
SRC_URI += "http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-vpmoct032-1.11.0.tar.gz;name=vpmoct032"

SRC_URI[main.md5sum] = "6ccb1bf79007ace9bc6d17fe1354bc21"
SRC_URI[main.sha256sum] = "94c532e190fc6372f9731df71f8c590fc6f6f184d5394339ce892ac6788843aa"
SRC_URI[hx8.md5sum] = "a7f3886942bb3e9fed349a41b3390c9f"
SRC_URI[hx8.sha256sum] = "449ab3fd03d55d808e999efb7677cd04de202b92c9fcb039539a7e48a39a80f5"
SRC_URI[6114-064.md5sum] = "88db9b7a07d8392736171b1b3e6bcc66"
SRC_URI[6114-064.sha256sum] = "56bac1f2024c76ecf9b6f40992eeea29a1fbee676bb2a37a058179bacfbb1c91"
SRC_URI[6114-128.md5sum] = "c1f1a18d3e20d283f42c71e580a64b5a"
SRC_URI[6114-128.sha256sum] = "e1146749d205c41603b9b76852c3f8104dac233d0025d700db24504d10c99775"
SRC_URI[tcm400.md5sum] = "2ea860bb8a9d8ede2858b9557b74ee3c"
SRC_URI[tcm400.sha256sum] = "11dd8d009809e41fc9a3a36766f59ff73d29075eede5b8724331d9a6e5259774"
SRC_URI[vpmadt032.md5sum] = "e1c7231d6225ac999cb18f4e858f66b6"
SRC_URI[vpmadt032.sha256sum] = "f566cc82203bc3a49f4850ac08dec613d1a2eeda437482e1d0c2da1e9e8bb68e"
SRC_URI[vpmoct032.md5sum] = "d26d2dd049e88adf55923a5023208f20"
SRC_URI[vpmoct032.sha256sum] = "ba050ccbdd31d8b2ac682ad559f2122250c75473c079ef082a758691db705064"

### Apply local patch file
SRC_URI += "file://oct612x-user.c<file:///\\oct612x-user.c>"

INC_PR="r1"

LIC_FILES_CHKSUM = "file://LICENSE;md5=ea5bed2f60d357618ca161ad539f7c0a<file:///\\LICENSE;md5=ea5bed2f60d357618ca161ad539f7c0a>"

inherit module

do_configure() {
          # make sure the extracted firmware.bin are where Makefile expects
          #mv ../dahdi-fw-*.bin ../zaptel-fw-*.bin drivers/dahdi/firmware/
          #cp ${DL_DIR}/dahdi-fwload-*.tar.gz drivers/dahdi/firmware/
          #cp ${DL_DIR}/zaptel-fw-*.tar.gz drivers/dahdi/firmware/
          cp ${DL_DIR}/dahdi-fw-*.tar.gz drivers/dahdi/firmware/

          # Enable the mirror for pcap..
        sed -i s,"\/\* #define CONFIG_DAHDI_MIRROR \*\/","#define CONFIG_DAHDI_MIRROR", ${S}/include/dahdi/dahdi_config.h

          echo "Overlay full patch files"
          if [ -f ${WORKDIR}/oct612x-user.c ]; then
                      echo "Moving oct612x-user.c to build"
                      mv ${WORKDIR}/oct612x-user.c ${S}/drivers/dahdi/oct612x/
          fi

}

do_compile () {
          do_make_scripts
          unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
          oe_runmake KSRC=${STAGING_KERNEL_DIR}   \
                        KVERS=${KERNEL_VERSION}    \
                        CC="${KERNEL_CC}" LD="${KERNEL_LD}" \
                        AR="${KERNEL_AR}" \
                        ${MAKE_TARGETS}
}

do_install () {
          unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
          oe_runmake DEPMOD=echo DESTDIR="${D}" \
                    KSRC=${STAGING_KERNEL_DIR} \
                        KVERS=${KERNEL_VERSION}    \
                    CC="${KERNEL_CC}" LD="${KERNEL_LD}" \
                    install
}

FILES_${PN} = "${base_libdir}/modules/ ${sysconfdir}/udev/rules.d ${base_libdir}/firmware ${datadir}/dahdi"

PACKAGES =+ "dahdi-linux"
PACKAGE_ARCH_dahdi-linux = "all"

RPROVIDES_${PN} = "dahdi"



On Wed, Apr 15, 2015 at 5:15 PM, Otavio Salvador <otavio at ossystems.com.br<mailto:otavio at ossystems.com.br>> wrote:
Hello Doug,

On Wed, Apr 15, 2015 at 7:10 PM, Doug Bailey <dbailey at digium.com<mailto:dbailey at digium.com>> wrote:
> I am using the 2.7 Freescale Yocto SDK to build an image for a ls1021a-twr
> board.  Being a newbie to this process, I need some help in trying to
> understand what is occurring on my builds.

What you have added to the local.conf/image?

--
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20150416/78c488b0/attachment-0001.html>


More information about the meta-freescale mailing list