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.

TMDXEVM6678L board error with PCIe in Ubuntu12.04

Other Parts Discussed in Thread: TMS320C6678

Hi,

  I plugged my board in the PCIe slot and ran the demonstration application on it using Desktop Linux SDK, following this link: http://processors.wiki.ti.com/index.php/Desktop-linux-sdk_01.00.00_Getting_Started_Guide. under linux kernel 3.2.0.25. I installed the cmem and setup udev for the permission to the DSP successfully, but after that I met an error when I tried to download the DSP image using ./init_dsps.sh 1000. The error said "dnldmgr_load_image: load image error Overriding image entry point with input 860000ERROR: Download image failed", and there were also some error which has the same feature before this error, saying "pciedrv: Error in ti667x_ep_setup_bar, ib trans num x!, ret = x".

   Does anyone know what is this issue about? I'm not sure if the problem is clear, I'll post more information if needed.

  Thanks.

Jie

  • Jie,

    What is the platform you used in the test? Is a 6678 EVM or 8681 or 8682 card? Does the Linux machine has sufficient memory for PCIE request? Can you check from Linux machine with "lspci", how the BAR was allocated to this card? Some console logs would help!

    Regards, Eric 

  • Hi Eric,

      Thanks for your reply. I used 6678 EVM with a letter 'L' , it's TMDXEVM6678L, the chip is TMS320C6678 8-core DSP. What do you mean the linux machine has sufficient memroy for PCIE request, I allocated 520M contiguous memory by using ./install_grub.sh and autoload it by installing cmem, I don't know if that's sufficient. By checking "lspci", the EVM is listed as "01:00.0 Multimedia controller: Texas Instruments Device b005 (rev 01)", by checking "lspci -n", the EVM is listed as "01:00.0 0480: 104c:b005 (rev 01)", the 104c is the VENDER_ID. The whole error log would be like this:

    pciedrv: Error in ti667x_ep_init_bar, ib trans num 0!, ret = -2
    pciedrv: Found: IB_BAR = FFFFFFFF, IB_START_LO = FFFFFFFF, IB_START_HI = FFFFFFFF
    pciedrv: Expected: IB_BAR = 00000001, IB_START_LO = F1500000, IB_START_HI = 00000 000.
    pciedrv: Error in ti667x_ep_setup_bar, ib trans num 0!, ret = -1
    pciedrv: Found: IB_BAR = FFFFFFFF, IB_OFFSET = FFFFFFFF.
    pciedrv: Expected: IB_BAR = 00000001, IB_OFFSET = 10800000.
    pciedrv: Error in ti667x_ep_init_bar, ib trans num 1!, ret = -2
    pciedrv: Found: IB_BAR = FFFFFFFF, IB_START_LO = FFFFFFFF, IB_START_HI = FFFFFFFF
    pciedrv: Expected: IB_BAR = 00000002, IB_START_LO = F1000000, IB_START_HI = 00000 000.
    pciedrv: Error in ti667x_ep_init_bar, ib trans num 2!, ret = -2
    pciedrv: Found: IB_BAR = FFFFFFFF, IB_START_LO = FFFFFFFF, IB_START_HI = FFFFFFFF
    pciedrv: Expected: IB_BAR = 00000003, IB_START_LO = F0000000, IB_START_HI = 00000 000.
    pciedrv: Error in ti667x_ep_setup_bar, ib trans num 2!, ret = -1
    pciedrv: Found: IB_BAR = FFFFFFFF, IB_OFFSET = FFFFFFFF.
    pciedrv: Expected: IB_BAR = 00000003, IB_OFFSET = 80000000.
    pciedrv: Error in ti667x_ep_init_bar, ib trans num 3!, ret = -2
    pciedrv: Found: IB_BAR = FFFFFFFF, IB_START_LO = FFFFFFFF, IB_START_HI = FFFFFFFF
    pciedrv: Expected: IB_BAR = 00000004, IB_START_LO = F1590000, IB_START_HI = 00000 000.
    Number of devices: 1
    ./init_dsps.sh: 23: [: Illegal number: c01
    ./init_dsps.sh: 27: [: Illegal number: c01
    Device: 0 : evmc6678l
    pciedrv: Error in ti667x_ep_init_bar, ib trans num 0!, ret = -2
    pciedrv: Found: IB_BAR = FFFFFFFF, IB_START_LO = FFFFFFFF, IB_START_HI = FFFFFFFF
    pciedrv: Expected: IB_BAR = 00000001, IB_START_LO = F1500000, IB_START_HI = 00000 000.
    pciedrv: Error in ti667x_ep_setup_bar, ib trans num 0!, ret = -1
    pciedrv: Found: IB_BAR = FFFFFFFF, IB_OFFSET = FFFFFFFF.
    pciedrv: Expected: IB_BAR = 00000001, IB_OFFSET = 10800000.
    pciedrv: Error in ti667x_ep_init_bar, ib trans num 1!, ret = -2
    pciedrv: Found: IB_BAR = FFFFFFFF, IB_START_LO = FFFFFFFF, IB_START_HI = FFFFFFFF
    pciedrv: Expected: IB_BAR = 00000002, IB_START_LO = F1000000, IB_START_HI = 00000 000.
    pciedrv: Error in ti667x_ep_init_bar, ib trans num 2!, ret = -2
    pciedrv: Found: IB_BAR = FFFFFFFF, IB_START_LO = FFFFFFFF, IB_START_HI = FFFFFFFF
    pciedrv: Expected: IB_BAR = 00000003, IB_START_LO = F0000000, IB_START_HI = 00000 000.
    pciedrv: Error in ti667x_ep_setup_bar, ib trans num 2!, ret = -1
    pciedrv: Found: IB_BAR = FFFFFFFF, IB_OFFSET = FFFFFFFF.
    pciedrv: Expected: IB_BAR = 00000003, IB_OFFSET = 80000000.
    pciedrv: Error in ti667x_ep_init_bar, ib trans num 3!, ret = -2
    pciedrv: Found: IB_BAR = FFFFFFFF, IB_START_LO = FFFFFFFF, IB_START_HI = FFFFFFFF
    pciedrv: Expected: IB_BAR = 00000004, IB_START_LO = F1590000, IB_START_HI = 00000 000.

    boot config file initcfg_1000.txt
    DSP boot config addr 0x86ff00
    DSP boot config size in bytes 8
    Boot config words: 0xbabeface,
    Boot config words: 0x14,
    pciedrv: Error in ti667x_ep_setup_bar, ib trans num 0!, ret = -1
    pciedrv: Found: IB_BAR = FFFFFFFF, IB_OFFSET = FFFFFFFF.
    pciedrv: Expected: IB_BAR = 00000001, IB_OFFSET = 10800000.
    pciedrv: ERROR: pciedrv_dsp_write: Setup Bar register fail

    ERROR:dnldmgr_load_image: Load image error Overriding image entry point with inpu t 860000ERROR: Download image failed.

    Thanks,

    Jie