Trying to integrate meta-telephony on p2020 rdb board.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Trying to integrate meta-telephony on p2020 rdb board.

1,247 Views
mohitduggal
Contributor II

usiing Hob trying add telephony to fsl-image-core with yocto 1.7 sdk and getting following errors:

DEBUG: Executing shell function do_compile

NOTE: make -j 6 -e MAKEFLAGS= KSRC= KERNEL_PATH=/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/p2020rdb/usr/src/kernel KERNEL_SRC=/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/p2020rdb/usr/src/kernel KERNEL_VERSION=3.12.19-rt30-QorIQ-SDK-V1.7+g6619b8b CC=powerpc-fsl-linux-gnuspe-gcc  LD=powerpc-fsl-linux-gnuspe-ld.bfd  AR=powerpc-fsl-linux-gnuspe-ar

make -C drivers/dahdi/firmware firmware-loaders

make[1]: Entering directory `/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/work/p2020rdb-fsl-linux-gnuspe/dahdi-linux/2.10.2-r0/dahdi-linux-2.10.2/drivers/dahdi/firmware'

make[1]: Leaving directory `/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/work/p2020rdb-fsl-linux-gnuspe/dahdi-linux/2.10.2-r0/dahdi-linux-2.10.2/drivers/dahdi/firmware'

You do not appear to have the sources for the 3.13.0-24-generic kernel installed.

make: *** [modules] Error 1

ERROR: oe_runmake failed

WARNING: exit code 1 from a shell command.

ERROR: Function failed: do_compile (log file is located at /home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/work/p2020rdb-fsl-linux-gnuspe/dahdi-linux/2.10.2-r0/temp/log.do_compile.3609)

DEBUG: SITE files ['endian-big', 'bit-32', 'powerpc-common', 'common-linux', 'common-glibc', 'powerpc-linux', 'powerpc32-linux', 'powerpc-linux-gnuspe', 'common']
DEBUG: Executing shell function do_compile
NOTE: make -j 6
   [CC] res_calendar_ews.c -> res_calendar_ews.o
   [CC] res_clialiases.c -> res_clialiases.o
   [CC] res_clioriginate.c -> res_clioriginate.o
   [CC] res_config_sqlite3.c -> res_config_sqlite3.o
   [CC] res_convert.c -> res_convert.o
res_calendar_ews.c:32:24: fatal error: ne_request.h: No such file or directory
#include <ne_request.h> !
                        ^
compilation terminated.
make[1]: *** [res_calendar_ews.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [res] Error 2
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at /home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/work/ppce500v2-fsl-linux-gnuspe/asterisk/13.5.0-r0/temp/log.do_compile.3610

6 Replies

732 Views
yipingwang
NXP TechSupport
NXP TechSupport

In addition, I didn't find any problem to build the package asterisk, if your problem remains, please feel free to let me know.

Thanks,

Yiping

0 Kudos

732 Views
mohitduggal
Contributor II

Re-building again resolved my issue.

But i was trying to Open Vox  PCie card on the p2020 board but it is not detecting the card. dahdi drivers are installed. but dahdi_hardware does not find that card.

When i run lspci -v the following output comes :

0000:00:00.0 PCI bridge: Freescale Semiconductor Inc P2020E (rev 21) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Memory at <ignored> (32-bit, non-prefetchable)
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 00000000-00000fff
        Memory behind bridge: a0000000-bfffffff
        Capabilities: [44] Power Management version 2
        Capabilities: [4c] Express Root Port (Slot-), MSI 00
        Capabilities: [100] Advanced Error Reporting
lspci: Unable to load libkmod resources: error -12

0000:01:00.0 Mass storage controller: Silicon Image, Inc. SiI 3132 Serial ATA Raid II Controller (rev 01)
        Subsystem: Silicon Image, Inc. SiI 3132 Serial ATA Raid II Controller
        Flags: bus master, fast devsel, latency 0, IRQ 24
        Memory at a0000000 (64-bit, non-prefetchable) [size=128]
        Memory at a0004000 (64-bit, non-prefetchable) [size=16K]
        I/O ports at 1000 [size=128]
        [virtual] Expansion ROM at a0080000 [disabled] [size=512K]
        Capabilities: [54] Power Management version 2
        Capabilities: [5c] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Legacy Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Kernel driver in use: sata_sil24

0001:02:00.0 PCI bridge: Freescale Semiconductor Inc P2020E (rev 21) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Memory at <ignored> (32-bit, non-prefetchable)
        Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
        I/O behind bridge: 00000000-00000fff
        Memory behind bridge: 80000000-9fffffff
        Capabilities: [44] Power Management version 2
        Capabilities: [4c] Express Root Port (Slot-), MSI 00
        Capabilities: [100] Advanced Error Reporting

A quick response will be highly appreciated.

0 Kudos

732 Views
yipingwang
NXP TechSupport
NXP TechSupport

I just downloaded meta-telephony recipes from GitHub - sysmocom/meta-telephony  and integrated them  into SDK 1.7, I also reproduced your problem with building dahdi-linux, this is because the variable "STAGING_KERNEL_BUILDDIR" in the recipe meta-telephony-master/recipes-isdn/dahdi-linux/dahdi-linux_2.10.2.b is not compatible with SDK 1.7, which causes the compiler uses the Kernel source on your local build PC rather than from the Yocto build environment, so you found the error "You do not appear to have the sources for the 3.13.0-24-generic kernel installed."

Please modify the variable "STAGING_KERNEL_BUILDDIR" as "STAGING_KERNEL_DIR" in meta-telephony-master/recipes-isdn/dahdi-linux/dahdi-linux_2.10.2.bb, then rebuild the package dahdi-linux.

Except the above error, I didn't find other error for building the whole task-telephony-all task.

Thanks,

Yiping

732 Views
mohitduggal
Contributor II

Thanks Yiping ,

it solved dahdi linux issues :" just for my understanding this changes hernel source path from buid dir to main source dir ? am ia correct it is getting from where ?

but i am getting the following error while compiling asterisk :

DEBUG: SITE files ['endian-big', 'bit-32', 'powerpc-common', 'common-linux', 'common-glibc', 'powerpc-linux', 'powerpc32-linux', 'powerpc-linux-gnuspe', 'common']

DEBUG: Executing shell function do_compile

NOTE: make -j 6

   [CC] res_calendar_ews.c -> res_calendar_ews.o

   [LD] res_format_attr_celt.o -> res_format_attr_celt.so

   [LD] res_format_attr_h263.o -> res_format_attr_h263.so

   [LD] res_format_attr_h264.o -> res_format_attr_h264.so

res_calendar_ews.c:32:24: fatal error: ne_request.h: No such file or directory

#include <ne_request.h>

                        ^

compilation terminated.

make[1]: *** [res_calendar_ews.o] Error 1

make[1]: *** Waiting for unfinished jobs....

make: *** [res] Error 2

make: *** Waiting for unfinished jobs....

ERROR: oe_runmake failed

WARNING: exit code 1 from a shell command.

ERROR: Function failed: do_compile (log file is located at /home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/work/ppce500v2-fsl-linux-gnuspe/asterisk/13.5.0-r0/temp/log.do_compile.8807)

Please help me to resolve this too.

thanks in advance

rgds,

mohit

0 Kudos

732 Views
mohitduggal
Contributor II

Hi Yiping,

I resolved the above issue by adding neon package along with asterisk but still i am getting the following issue :

DEBUG: SITE files ['endian-big', 'bit-32', 'powerpc-common', 'common-linux', 'common-glibc', 'powerpc-linux', 'powerpc32-linux', 'powerpc-linux-gnuspe', 'common']

DEBUG: Executing shell function do_compile

NOTE: make -j 6

CC="cc" CXX="powerpc-fsl-linux-gnuspe-g++  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/p2020rdb" LD="" AR="" RANLIB="" CFLAGS="-isystem/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/i686-linux/usr/include -O2 -pipe" LDFLAGS="-L/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/i686-linux/usr/lib -L/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/i686-linux/lib -Wl,-rpath-link,/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath-link,/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/i686-linux/lib -Wl,-rpath,/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath,/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/i686-linux/lib -Wl,-O1" make -C menuselect CONFIGURE_SILENT="--silent" menuselect

make[1]: Entering directory `/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/work/ppce500v2-fsl-linux-gnuspe/asterisk/13.5.0-r0/asterisk-13.5.0/menuselect'

gcc -L/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/i686-linux/usr/lib -L/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/i686-linux/lib -Wl,-rpath-link,/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath-link,/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/i686-linux/lib -Wl,-rpath,/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/i686-linux/usr/lib -Wl,-rpath,/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/sysroots/i686-linux/lib -Wl,-O1 -o menuselect menuselect.o strcompat.o menuselect_stub.o -lxml2

/usr/bin/ld: cannot find -lxml2

collect2: error: ld returned 1 exit status

make[1]: *** [menuselect] Error 1

make[1]: Leaving directory `/home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/work/ppce500v2-fsl-linux-gnuspe/asterisk/13.5.0-r0/asterisk-13.5.0/menuselect'

make: *** [menuselect/menuselect] Error 2

ERROR: oe_runmake failed

WARNING: exit code 1 from a shell command.

ERROR: Function failed: do_compile (log file is located at /home/tasl-emb/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p2020rdb_release/tmp/work/ppce500v2-fsl-linux-gnuspe/asterisk/13.5.0-r0/temp/log.do_compile.10568)

libxml package is installed and included still i am getting this issue .

Please advise on the solution.

  Thanks ,

Mohit

0 Kudos

732 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Mohit,

Please build the package "libxml2" first, then rebuild asterisk.

$ bitbake libxml2

$ bitbake asterisk -c cleansstate

$ bitbake asterisk


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos