Part Number: TDA4VM
Dear TI,
After updating the Device trees for Root- Complex and Endpoint side SDK I tried to run the following commands with a Script -
#!/bin/bash
###################################################################################
############## Script to run the TI demo application for PCIe SOC to SOC ##########
###################################################################################
######################################
Configure_PCI_EndPoint(){
cd /sys/kernel/config/pci_ep/
}
######################################
Function1_Bind_to_Controller(){
mkdir functions/pci_epf_test/func1
echo 0x104c > functions/pci_epf_test/func1/vendorid
echo 0xb00d > functions/pci_epf_test/func1/deviceid
echo 2 > functions/pci_epf_test/func1/msi_interrupts
echo 2 > functions/pci_epf_test/func1/msix_interrupts
ln -s functions/pci_epf_test/func1 controllers/2910000.pcie-ep/
}
##########################################
Function2_Bind_to_Controller(){
mkdir functions/pci_epf_test/func2
echo 0x104c > functions/pci_epf_test/func2/vendorid
echo 0xb00d > functions/pci_epf_test/func2/deviceid
echo 2 > functions/pci_epf_test/func2/msi_interrupts
echo 2 > functions/pci_epf_test/func2/msix_interrupts
ln -s functions/pci_epf_test/func2 controllers/2910000.pcie-ep/
}
##########################################
Function3_Bind_to_Controller(){
mkdir functions/pci_epf_test/func3
echo 0x104c > functions/pci_epf_test/func3/vendorid
echo 0xb00d > functions/pci_epf_test/func3/deviceid
echo 2 > functions/pci_epf_test/func3/msi_interrupts
echo 2 > functions/pci_epf_test/func3/msix_interrupts
ln -s functions/pci_epf_test/func3 controllers/2910000.pcie-ep/
}
##########################################
Function4_Bind_to_Controller(){
mkdir functions/pci_epf_test/func4
echo 0x104c > functions/pci_epf_test/func4/vendorid
echo 0xb00d > functions/pci_epf_test/func4/deviceid
echo 2 > functions/pci_epf_test/func4/msi_interrupts
echo 2 > functions/pci_epf_test/func4/msix_interrupts
ln -s functions/pci_epf_test/func4 controllers/2910000.pcie-ep/
}
##########################################
Function5_Bind_to_Controller(){
mkdir functions/pci_epf_test/func5
echo 0x104c > functions/pci_epf_test/func5/vendorid
echo 0xb00d > functions/pci_epf_test/func5/deviceid
echo 2 > functions/pci_epf_test/func5/msi_interrupts
echo 2 > functions/pci_epf_test/func5/msix_interrupts
ln -s functions/pci_epf_test/func5 controllers/2910000.pcie-ep/
}
###############################################
Function6_Bind_to_Controller(){
mkdir functions/pci_epf_test/func6
echo 0x104c > functions/pci_epf_test/func6/vendorid
echo 0xb00d > functions/pci_epf_test/func6/deviceid
echo 2 > functions/pci_epf_test/func6/msi_interrupts
echo 2 > functions/pci_epf_test/func6/msix_interrupts
ln -s functions/pci_epf_test/func6 controllers/2910000.pcie-ep/
}
Configure_PCI_EndPoint
Function1_Bind_to_Controller
Function2_Bind_to_Controller
Function3_Bind_to_Controller
Function4_Bind_to_Controller
Function5_Bind_to_Controller
Function6_Bind_to_Controller
I have following Error when i Grep dmesg
. Can you please have a look what is missing at the moment ?
