嵌入式开发者社区

标题: 基于AM57x的IPC例程开发手册 [打印本页]

作者: tang2018    时间: 2018-10-24 15:08
标题: 基于AM57x的IPC例程开发手册
按照3-2-2基于AM57x的IPC例程开发手册,出现以下错误,与官方给的例程不一致,环境也是按照例程做的。make -j 8 && make install
之后没有出现install这个文件夹,出现了一堆错误,请问出现这些问题的原因?

tronlong@tronlong-virtual-machine:~/AM57xx/rtos_examples/tl-gatemap-mutex-access$ make clean
make -C dsp1 clean
make[1]: Entering directory `/home/tronlong/AM57xx/rtos_examples/tl-gatemap-mutex-access/dsp1'
rm -rf bin
make[1]: Leaving directory `/home/tronlong/AM57xx/rtos_examples/tl-gatemap-mutex-access/dsp1'
make -C host clean
make[1]: Entering directory `/home/tronlong/AM57xx/rtos_examples/tl-gatemap-mutex-access/host'
rm -rf bin
make[1]: Leaving directory `/home/tronlong/AM57xx/rtos_examples/tl-gatemap-mutex-access/host'
rm -rf install
tronlong@tronlong-virtual-machine:~/AM57xx/rtos_examples/tl-gatemap-mutex-access$ make -j 8 && make install
#
#
# Making dsp1 ...
# Making host ...
make -C dsp1 PROCLIST="dsp1 host"
make -C host PROCLIST="dsp1 host"
make[1]: Entering directory `/home/tronlong/AM57xx/rtos_examples/tl-gatemap-mutex-access/dsp1'
make PROFILE=debug PROCLIST="dsp1 host" server_dsp1.x
make[1]: Entering directory `/home/tronlong/AM57xx/rtos_examples/tl-gatemap-mutex-access/host'
#
# Making all ...
make PROFILE=debug app_host
make[2]: Entering directory `/home/tronlong/AM57xx/rtos_examples/tl-gatemap-mutex-access/dsp1'
#
# Making bin/debug/configuro/.config ...
/xs --xdcpath="/packages;/packages;/packages" \
            xdc.tools.configuro -o bin/debug/configuro \
            -t ti.targets.elf.C66 \
            -c  \
            -p ti.platforms.evmDRA7XX:dsp1 \
            -b ../shared/config.bld -r debug \
            Dsp1.cfg
make[2]: Entering directory `/home/tronlong/AM57xx/rtos_examples/tl-gatemap-mutex-access/host'
/bin/sh: 1: /xs: not found
#
make[2]: *** make[2]: No rule to make target `/linux/src/transport/.libs/libtitransportrpmsg.a', needed by `bin/debug/app_host'*** [bin/debug/configuro/.config] Error 127
.  Stop.
make[2]: *** Waiting for unfinished jobs....make[2]: Leaving directory `/home/tronlong/AM57xx/rtos_examples/tl-gatemap-mutex-access/dsp1'
#
# Making bin/debug/obj/main_host.ov7A ...
/home/tronlong/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -c -MD -MF bin/debug/obj/main_host.ov7A.dep -D_REENTRANT -Wall -ffloat-store -fPIC -Wunused -Dfar= -ggdb -D DEBUG -I. -I.. -I /linux/include -I /packages -I /home/tronlong/AM57xx/rtos_examples/ludev/include -o bin/debug/obj/main_host.ov7A main_host.c
# Making bin/debug/obj/GateMPApp.ov7A ...
make[1]: *** [debug] Error 2
make[1]: Leaving directory `/home/tronlong/AM57xx/rtos_examples/tl-gatemap-mutex-access/dsp1'
/home/tronlong/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -c -MD -MF bin/debug/obj/GateMPApp.ov7A.dep -D_REENTRANT -Wall -ffloat-store -fPIC -Wunused -Dfar= -ggdb -D DEBUG -I. -I.. -I /linux/include -I /packages -I /home/tronlong/AM57xx/rtos_examples/ludev/include -o bin/debug/obj/GateMPApp.ov7A GateMPApp.c
make: *** [dsp1] Error 2
make: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/tronlong/AM57xx/rtos_examples/tl-gatemap-mutex-access/host'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/tronlong/AM57xx/rtos_examples/tl-gatemap-mutex-access/host'
make: *** [host] Error 2
tronlong@tronlong-virtual-machine:~/AM57xx/rtos_examples/tl-gatemap-mutex-access$ ls
dsp1  host  makefile  products.mak  readme.txt  shared
tronlong@tronlong-virtual-machine:~/AM57xx/rtos_examples/tl-gatemap-mutex-access$

[attach]4143[/attach]








作者: czs----Tronlong    时间: 2018-10-24 16:28
您好,

       您这个错误是因为products.mak文件的交叉编译链配置有误,请仔细核对products.mak文件的路径配置,可以使用vimdiff对比其他例程的products.mak文件。




作者: tang2018    时间: 2018-10-24 16:41
czs----Tronlong 发表于 2018-10-24 16:28
您好,

       您这个错误是因为products.mak文件的交叉编译链配置有误,请仔细核对products.mak文件的路 ...

您好,与其他例程的products.mak对比,是哪些例程呢?
作者: tang2018    时间: 2018-10-24 16:56
czs----Tronlong 发表于 2018-10-24 16:28
您好,

       您这个错误是因为products.mak文件的交叉编译链配置有误,请仔细核对products.mak文件的路 ...

您好,下面是ipc的products.mak的内容,跟例程中需要改动的一致啊
#
#   Copyright (c) 2012-2015 Texas Instruments Incorporated - http://www.ti.com
#
#   Redistribution and use in source and binary forms, with or without
#   modification, are permitted provided that the following conditions
#   are met:
#
#   *  Redistributions of source code must retain the above copyright
#      notice, this list of conditions and the following disclaimer.
#
#   *  Redistributions in binary form must reproduce the above copyright
#      notice, this list of conditions and the following disclaimer in the
#      documentation and/or other materials provided with the distribution.
#
#   *  Neither the name of Texas Instruments Incorporated nor the names of
#      its contributors may be used to endorse or promote products derived
#      from this software without specific prior written permission.
#
#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
#   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
#   THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
#   PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
#   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
#   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#   OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
#   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#  ======== products.mak ========
#

# Note that these variables can be explicitly set here or on the command line.
# If you want to use variables in the environment, see the GNU make manual's
# -e option:  http://www.gnu.org/software/make/manual/make.html#Environment

# Optional: recommended to install all dependent components in one folder.
#
DEPOT = _your_depot_folder_

# Platform to build for
#   Supported platforms (choose one):
#       OMAPL138, OMAP54XX, DRA7XX, 66AK2G, 66AK2E, TCI6630, TCI6636, TCI6638,
#       TDA3XX
#
# Note, this is used for Linux, QNX and BIOS builds
#
PLATFORM =DRA7XX

# Destination when installing the built binaries
#
# Note, this is used for Linux (if you use ipc-linux.mak to run the
# configure command), QNX and BIOS.
#
DESTDIR =


#################### IPC Linux ####################

# Set up required cross compiler path for IPC Linux configuration and build
#
TOOLCHAIN_LONGNAME = arm-linux-gnueabihf
TOOLCHAIN_INSTALL_DIR = /home/tronlong/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr

TOOLCHAIN_PREFIX = $(TOOLCHAIN_INSTALL_DIR)/bin/$(TOOLCHAIN_LONGNAME)-

# Path to Linux Kernel - needed to build the IPC user libraries
#
KERNEL_INSTALL_DIR =/home/tronlong/AM57xx/kernel/Linux-RT-4.9.65/

# Optional: Specify the Address Family for RPMSG. This value is specified
# either from the Linux kernel specified by KERNEL_INSTALL_DIR above, or
# the make variable AF_RPMSG below. Do not use both.
#
AF_RPMSG =

# Optional: Path to DRM Library
#
DRM_PREFIX =

# Optional: Path to TI Linux Utils product
#
CMEM_INSTALL_DIR =


#################### IPC QNX ####################

# Path to QNX tools installation
#
QNX_INSTALL_DIR =

# Optional: Any additional compile options
#
QNX_CFLAGS =

#################### IPC Bios ####################

# Path to required dependencies for IPC BIOS builds
#
XDC_INSTALL_DIR = ${XDC_INSTALL_PATH}
BIOS_INSTALL_DIR = ${BIOS_INSTALL_PATH}

# Do you want to build SMP-enabled libraries (if supported for your target)?
# Set to either 0 (disabled) or 1 (enabled)
#
BIOS_SMPENABLED=1

# Path to various cgtools
#
ti.targets.elf.C64P =
ti.targets.elf.C64P_big_endian =
ti.targets.elf.C64T =
ti.targets.elf.C66 =${C6X_GEN_INSTALL_PATH}
ti.targets.elf.C66_big_endian =
ti.targets.elf.C674 =

ti.targets.arm.elf.Arm9 =
ti.targets.arm.elf.A8F =
ti.targets.arm.elf.A8Fnv =
ti.targets.arm.elf.M3 =
ti.targets.arm.elf.M4 =${TOOLCHAIN_PATH_M4}
ti.targets.arm.elf.M4F =

ti.targets.arp32.elf.ARP32 =
ti.targets.arp32.elf.ARP32_far =

gnu.targets.arm.A8F =
gnu.targets.arm.A15F =${TOOLCHAIN_PATH_A15}





欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4