This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How can we connect DM8168 & C6678 EVM via PCIe using Desktop Linux SDK

Hi below some steps in order to connect DM8168 with a C6678 EVM

1. User needs to update few package for Arm and update make files wherever they are linked.  See attached Makefile for reference ( Original  ~\$DESKTOP_DEMOS\demos\dsp_utils\Makefile)

a. Remove below options in makefile at linking  command and add Libraries compiled for Arm.
-lpciaccess -lbfd

b. Add below libs in make file. See below instruction for download link and cross compile instructions.
~LIB_PATH/libpciaccess.a  ~LIB_PATH/libbfd.a  ~LIB_PATH /libiberty.a

c. For pciaccess , download version 0.12.902-1 (or newer)  from http://libpciaccess.sourcearchive.com/

d. For libbfd and libiberty, download binutils-2.23.2 version  from http://binutils.sourcearchive.com/

e. Cross compile from their  base directory and install these libraries at some temporary directory. Use below commands to cross compile.
i. libPCIeAccess
./configure --host=$RDK_INSTALL_PATH/ti_tools/cgt_a8/arm-2009q1/bin/arm-none-linux-gnueabi --prefix=$LIB_INSTALL_DIRECTORY --exec-prefix=$LIB_INSTALL_DIRECTORY  CC=$RDK_INSTALL_PATH /ti_tools/cgt_a8/arm-2009q1/bin/arm-none-linux-gnueabi-gcc
make
make install
ii. BinUtils Libs
./configure --host=$RDK_INSTALL_PATH/ti_tools/cgt_a8/arm-2009q1/bin/arm-none-linux-gnueabi –prefix=$LIB_INSTALL_DIRECTORY --target=arm-none-linux-gnueabi --enable-install-libbfd --enable-target-programming
make
make install

f. Once cross compiled and installed, library can be found in $LIB_INSTALL_DIRECTORY path. User needs to use these library for compiling Desktop demos.

2. Cross compile Desktop demos using ARM compiler tool chain that comes with RDK release.

a. They can download latest desktop Demo Release (Desktop-linux-sdk_01_00_02_00). Update below variable in top level Makefile of Desktop demos.
TOOLCHAIN_PREFIX:= ~/ti_tools/cgt_a8/arm-2009q1/bin/arm-none-linux-gnueabi-

3. Desktop demos need few packages in Remote File System (RFS) folder; follow below instruction to install packages in RFS.

a. IPK Install instruction: dpkg -x IPK_NAME.ipk  <rfs base directory>

b. PCIe Utils:      http://feeds.angstrom-distribution.org/feeds/2011.03/ipk/glibc/armv7a/base/pciutils_3.1.2-r6.6_armv7a.ipk     It would enable lscpi command and lspci –n would list Shannon evem detected over PCIe

c. Desktop Demos need Sudo permission for some scripts to run. For that install below packages.
i. Libpam   : http://feeds.angstrom-distribution.org/feeds/2011.03/ipk/glibc/armv7a/base/libpam_1.1.1-r2.6_armv7a.ipk
ii. Sudo IPK: http://www.angstrom-distribution.org/feeds/2011.03/ipk/glibc/armv7a/base/sudo-dev_1.7.2p1-r3.5_armv7a.ipk

d. Change the access info of /etc/sudoers binary to 440 in rfs. User might have to change Group and Owner info as well.

e. While running  install_cme em_autoload.sh script, if permission deny to create directory comes then manually create  directories in the  ~/rfs/lib/modules/2.6.37+/kernel/drivers/cmem path.  

4. Export file system as no_root_squash, it gives permission in RFS  to modify files as root. After updating exportfs file run /usr/sbin/exportfs -a  as root. See example below
~/RFS_BASE_PATH/rfs_816x *(rw,sync,no_subtree_check,no_root_squash)

 

6443.Makefile_reference

Thanks,

Paula