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.
Hi,
I'm trying to implement a pcie based video demo : processors.wiki.ti.com/.../MCSDK_VIDEO_2.1_PCIE_Demo_Guide; based on H.264 HP encoding.
I'm getting stuck at this point..
Prepare the EVM
Since I'm using a single C6678 EVM with AMC to PCIe Adapter Card (i.e., TMDSEVM6678L with TMDXEVMPCI), please follow the instructions below to set up the hardware, and then proceed to the next chapter.
Should I follow both steps 1 and 2, or just step 2 to setup hardware?
If I follow just the step 2, and proceed,
After ./initi_dsp.sh 1000,
Number of devices: 1
./init_dsps.sh: 23: [: Illegal number: c01
./init_dsps.sh: 27: [: Illegal number: c01
Device: 0 : evmc6678l
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,
Overriding image entry point with input 860000 Download image success !
After ./reset_dsp.sh 1000
Num of devices 1
" ERROR: Reset code is not working : Timedout
Dsp 0: DSP Reset Fail !
Number of devices: 1
./init_dsps.sh: 23: [: Illegal number: c01
./init_dsps.sh: 27: [: Illegal number: c01
Device: 0 : evmc6678l
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,
Overriding image entry point with input 860000 Download image success !
After ./dnld_dsp.sh 1
boot config file ./bootcfg/bootcfg_0.txt
DSP boot config addr 0x800000
DSP boot config size in bytes 20
Boot config words: 0xbabeface,
Boot config words: 0x0,
Boot config words: 0x3,
Boot config words: 0x12345678,
Boot config words: 0x90abcdef,
Overriding image entry point with input c000000 Download image success !
After ./demoSave2File.sh
Number of Channels supported : 1
checkHostBufReqs() Complete.
Channel 1 Configuration:
Channel . ..... 1
Algorithm ..... H264HPENC
Width ......... 1920
Height ........ 1080
Verbosity ..... 0
Team 1 ........ 0 1 2 3
Node Mapping:
1 1 1 1 0 0 0 0
[DEBUG] openDevices() : There are a total of 1 devices discovered in the system.
[DEBUG] initDevices() : Opening cmem driver...
[DEBUG] initDevices() : cmem driver opened.
[DEBUG] initDevices() : Allocating contiguous memory for static mapping...
[DEBUG] initDevices() : Static global memory allocated.
[DEBUG] initDevices() : Reserving shared memory range for static global memory...
[DEBUG] initDevices() : Static global memory range allocated for Dev 0, Memrage: 0x60000000
[DEBUG] initDevice() : Mapping x86 contiguous memory for channel 1 to static global memory on device #0...
[DEBUG] initDevices() : Global IO memory range allocated for Dev 0, Memrage: 0x63000000
[DEBUG] initDevices() : Shared static global memory starts at 0x60000000.
[DEBUG] initDevices() : Shared input starts at 0x63000000.
initDevices() Complete.
[DEBUG] createBufferPools() : Allocating contiguous memory...
[DEBUG] createBufferPools() : 32 Input and 80 Output Buffers.
[DEBUG] createBufferPools() : Contiguous memory allocated.
[DEBUG] createBufferPools() : Input buffer pool created.
[DEBUG] createBufferPools() : Output buffer pool created.
[DEBUG] DeviceIOCreateNode(0,0) : TX mailbox handle allocated.
[DEBUG] DeviceIOCreateNode(0,0) : TX Mailbox created.
Then it hangs over here..
Thank you.
OS- Linux Ubuntu 14.04 64 bit
desktop-linux-sdk_01_00_00_07
bios mcsdk_2_01_02_05
mcsdk_video_2_1_0_8
Hi Mrudula,
1) You don't need to connect the board to a PCIe slot for IBL flash. Please connect the board with its 12V adapter and connect CCS via USB Jtag.
2) I don't think CCS5 is totally required.. but it is always good (simpler) to use the same version that was used for testing and documenting wiki pages. I think CCS6 should be fine as well.
thank you,
Paula
Hi Mrudula,
Could you please check you use the right IBL file endianness?
http://processors.wiki.ti.com/index.php/File:I2crom_0x51_c6678_le.zip is for little endian only, address 0x80000000 vs. 0x0C000000...
Thank you,
Paula
Hi,
Have you using below wiki link IBL binary to flash to EEPROM?
I have flashed the same IBL binary on my EVM. It is working fine. See my console window log
[C66xx_0] EEPROM Writer Utility Version 01.00.00.05
Writing 52072 bytes from DSP memory address 0x0c000000 to EEPROM bus address 0x0051 starting from device address 0x0000 ...
Reading 52072 bytes from EEPROM bus address 0x0051 to DSP memory address 0x0c010000 starting from device address 0x0000 ...
Verifying data read ...
EEPROM programming completed successfully
But you mentioned the on your previous post "C66xx_0] EEPROM Writer Utility Version 01.00.00.05[C66xx_0] [C66xx_0] Writing 52207 bytes from DSP memory address 0x0c000000 ..." Have you using the same file means, how the byte count is different for you and me.
Thanks,
Hi Ganapathi,
I tried to verify using the above steps. It doesn't print the IBL print on the terminal.
I'm guessing the IBL is NOT flashed properly, even though it shows successful.
I wanted to verify few steps in the IBL flash from the document processors.wiki.ti.com/.../BIOS_MCSDK_2.0_User_Guide.
In step 3, it says load the "appropriate config file" and corresponding GEL file..
Where do I find the appropriate config file for EVMC6678? I'm using Linux Ubuntu 14.04
I have used ti/mcsdk_2_01_02_05/tools/program_evm/configs/evm6678l/evm6678l-linuxhost.ccxml. Is it correct?
When I do that, I do get an error saying "No source available for "0x20b01154" when I connect the target.
But If I ignore and proceed further steps,
Memory Browser shows at 0x0C000000 00000000 00000018 000000FF
console says " Writing 52072 bytes from DSP memory address 0x0c000000 to EEPROM bus address 0x0051 starting from device address 0x0000 ...
Reading 52072 bytes from EEPROM bus address 0x0051 to DSP memory address 0x0c010000 starting from device address 0x0000 ...
Verifying data read ...
EEPROM programming completed successfully"
But there is an SW breakpoint at abort() at exit.c:109 0x0086F3C0 (abort does not contain frame information)
Can't find a source file at "/tmp/TI_MKLIBlwBz8I/SRC/exit.c"
Locate the file or edit the source lookup path to include its location.
What am I doing wrong?
Thank you,
Mrudula.
Hi, FYI, MCSDK video is always paired with a particular version of MCSDK bios.
For example for latest MCSDK video 2.2.045 we need MCSDK BIOS 2.1.2.6
Thank you,
Paula
Hi ,
I tried with an updated versions of all.
but it still cannot enumerate the pcie device.
I'm using Ubuntu 14.04 64-bit. Is it something to do with it? But earlier it was detecting it...
Thanks,
Mrudula.
Mrudula, I created an IBL bin using MCSDK BIOS 2.1.2.6 (attached) with increased BAR size.
New BAR sizes are:
PCIE_BAR1 =4M
PCIE_BAR2 =4M
PCIE_BAR3 =8M
PCIE_BAR4 =32M
I haven't tested Linux Desktop SDK + MCSDK video with Ubuntu 14.04 64bit. All testing have been done on Ubuntu 12.04 LTS. Wondering if you can give a try to this Ubuntu version in order to be safe.
Also I was wondering if you have a PC with >4 GB in order to reserve CMEM memory for video demos
Thank you,
Paula
Hi Paula,
So I flashed using the above file. It said writing 51912 bytes ...Still the PC doesn't recognize the TI card. I tested with Ubuntu 14.04 64 bit.
Yes PC has memory greater than 4GB.
I guess I have to with 12.04. Just wondering, Will it be able to function if I install 12.04 in a virtual machine?
Thanks,
Mrudula
Hi Paula,
The board is being recognized now after the IBL flash. Thank you.
But the main topic problem still remains.
I'm trying to encode HEVC encoder using the above document. After following each step, The console hangs after the same step as mentioned in the main topic question. ( ....... [DEBUG] DeviceIOCreateNode(0,0) : TX Mailbox created.)
Also, I have mcsdk video 2.2.45 and HOST_MANAGED_MEM : origin = 0x83C00000, length = 0x01200000 , not 0x02000000 as mentioned in the document. How do I change this?
Thank you,
Mrudula
Hi Paula,
So I installed Ubuntu 12.04 and tried to run the HEVC demo.
In the last step, ./demoSave2File.sh, it starts encoding but kind of stops here
.
[1438115322.693514976] (DEBUG) DeviceIOTxThread(0) : Finished with message #3.
[1438115322.710269651] (DEBUG) FileReaderThread(H265 Encode) : Read 1382400 bytes in 18632943 ns.
[1438115322.710297497] (DEBUG) FileReaderThread(H265 Encode) : Iter = 0, Clip = ../testVecs/input/airshow_p1280x720.yuv, Frame = 3 / 5, Size = 1382400
I believe it started encoding 3 frames out of 5.. and it hangs again!
Thank you,
Mrudula.
Hi Paula,
Please do find the attachemnt.
Mrudula
checkHostBufReqs() Complete. Demo Configuration: Verbosity ..... 2 Channel 1 Configuration: Channel . ..... H265 Encode Width ......... 1280 Height ........ 720 Algorithm ..... HEVCENC Team 1 ........ 0 1 2 3 4 5 6 7 Node Mapping: 1 1 1 1 1 1 1 1 [1438357093.640204457] (DEBUG) openDevices() : There are a total of 1 devices discovered in the system. [1438357093.640209021] (DEBUG) device2deviceMapping() : Device 0 does not need to map to another device. Reserving PCIe memory range. [1438357093.640212854] (DEBUG) device2deviceMapping() : Memory range reserved for Dev 0, Memrage: 0x60000000, Size: 0x01800000 [1438357093.640215264] (DEBUG) device2deviceMapping() : Memory range reserved for Dev 0, Memrage: 0x61800000, Size: 0x01800000 [1438357093.640217468] (DEBUG) initDevices() : Opening cmem driver... [1438357093.640225886] (DEBUG) initDevices() : cmem driver opened. [1438357093.640235374] (DEBUG) initDevices() : Allocating contiguous memory for static mapping... [1438357093.640270176] (DEBUG) initDevices() : Static global memory allocated. [1438357093.641843654] (DEBUG) initDevices() : Reserving shared memory range for static global memory... [1438357093.641851067] (DEBUG) initDevices() : Static global memory range allocated for Dev 0, Memrage: 0x62800000 [1438357093.641853655] (DEBUG) initDevice() : Mapping x86 contiguous memory to static global memory on device #0... [1438357093.641856556] (DEBUG) initDevices() : Global IO memory range allocated for Dev 0, Memrage: 0x63800000 [1438357093.641858699] (DEBUG) initDevices() : Shared static global memory starts at 0x62800000. [1438357093.641860640] (DEBUG) initDevices() : Shared input starts at 0x63800000. initDevices() Complete. [1438357093.641865215] (DEBUG) createBufferPools() : Demo will use 2 CMEM buffers for input, 8 CMEM buffers for output. [1438357093.641867547] (DEBUG) createBufferPools() : Actual CMEM buffer size 0x160000 AlignedToNext2Power 0x200000 [1438357093.641869771] (DEBUG) createBufferPools() : Demo needs CMEM buffers of size 0x200000 Bytes. Max size is of Channel-0 [1438357093.641871849] (DEBUG) createBufferPools() : Actual CMEM buffer size 0x160000 AlignedToNext2Power 0x200000 [1438357093.641873730] (DEBUG) createBufferPools() : Demo needs CMEM buffers of size 0x200000 Bytes. Max size is of Channel-0 [1438357093.641875920] (DEBUG) createBufferPools() : Allocating contiguous memory... [1438357093.641877776] (DEBUG) createBufferPools() : 2 Input and 8 Output Buffers. [1438357093.641901199] (DEBUG) createBufferPools() : Input Contiguous memory allocated. [1438357093.641909792] (DEBUG) createBufferPools() : Input buffer pool created. [1438357093.641970642] (DEBUG) createBufferPools() : Output Contiguous memory allocated. [1438357093.641973347] (DEBUG) createBufferPools() : Output buffer pool created. createBufferPools() Complete. [1438357093.641995915] (DEBUG) DeviceIOCreateNode(0,0) : TX mailbox handle allocated. [1438357093.641999033] (DEBUG) DeviceIOCreateNode(0,0) : TX Mailbox created. [1438357093.642003166] (DEBUG) DeviceIOCreateNode(0,0) : Opened Tx mailbox. [1438357093.642014857] (DEBUG) DeviceIOCreateNode(0,0) : RX mailbox handle allocated. [1438357093.642019633] (DEBUG) DeviceIOCreateNode(0,0) : RX Mailbox created. [1438357093.642022765] (DEBUG) DeviceIOCreateNode(0,0) : Opened Rx mailbox. [1438357093.642033365] (DEBUG) DeviceIOCreateNode(0,1) : TX mailbox handle allocated. [1438357093.642035272] (DEBUG) DeviceIOCreateNode(0,1) : TX Mailbox created. [1438357093.642038736] (DEBUG) DeviceIOCreateNode(0,1) : Opened Tx mailbox. [1438357093.642051392] (DEBUG) DeviceIOCreateNode(0,1) : RX mailbox handle allocated. [1438357093.642055807] (DEBUG) DeviceIOCreateNode(0,1) : RX Mailbox created. [1438357093.642058773] (DEBUG) DeviceIOCreateNode(0,1) : Opened Rx mailbox. [1438357093.642071317] (DEBUG) DeviceIOCreateNode(0,2) : TX mailbox handle allocated. [1438357093.642073329] (DEBUG) DeviceIOCreateNode(0,2) : TX Mailbox created. [1438357093.642076739] (DEBUG) DeviceIOCreateNode(0,2) : Opened Tx mailbox. [1438357093.642091620] (DEBUG) DeviceIOCreateNode(0,2) : RX mailbox handle allocated. [1438357093.642096203] (DEBUG) DeviceIOCreateNode(0,2) : RX Mailbox created. [1438357093.642099235] (DEBUG) DeviceIOCreateNode(0,2) : Opened Rx mailbox. [1438357093.642110158] (DEBUG) DeviceIOCreateNode(0,3) : TX mailbox handle allocated. [1438357093.642112209] (DEBUG) DeviceIOCreateNode(0,3) : TX Mailbox created. [1438357093.642115671] (DEBUG) DeviceIOCreateNode(0,3) : Opened Tx mailbox. [1438357093.642126390] (DEBUG) DeviceIOCreateNode(0,3) : RX mailbox handle allocated. [1438357093.642130631] (DEBUG) DeviceIOCreateNode(0,3) : RX Mailbox created. [1438357093.642133611] (DEBUG) DeviceIOCreateNode(0,3) : Opened Rx mailbox. [1438357093.642144655] (DEBUG) DeviceIOCreateNode(0,4) : TX mailbox handle allocated. [1438357093.642146527] (DEBUG) DeviceIOCreateNode(0,4) : TX Mailbox created. [1438357093.642149950] (DEBUG) DeviceIOCreateNode(0,4) : Opened Tx mailbox. [1438357093.642162113] (DEBUG) DeviceIOCreateNode(0,4) : RX mailbox handle allocated. [1438357093.642166607] (DEBUG) DeviceIOCreateNode(0,4) : RX Mailbox created. [1438357093.642169604] (DEBUG) DeviceIOCreateNode(0,4) : Opened Rx mailbox. [1438357093.642179779] (DEBUG) DeviceIOCreateNode(0,5) : TX mailbox handle allocated. [1438357093.642181680] (DEBUG) DeviceIOCreateNode(0,5) : TX Mailbox created. [1438357093.642185064] (DEBUG) DeviceIOCreateNode(0,5) : Opened Tx mailbox. [1438357093.642196893] (DEBUG) DeviceIOCreateNode(0,5) : RX mailbox handle allocated. [1438357093.642201604] (DEBUG) DeviceIOCreateNode(0,5) : RX Mailbox created. [1438357093.642204625] (DEBUG) DeviceIOCreateNode(0,5) : Opened Rx mailbox. [1438357093.642233633] (DEBUG) DeviceIOCreateNode(0,6) : TX mailbox handle allocated. [1438357093.642238175] (DEBUG) DeviceIOCreateNode(0,6) : TX Mailbox created. [1438357093.642242770] (DEBUG) DeviceIOCreateNode(0,6) : Opened Tx mailbox. [1438357093.642256517] (DEBUG) DeviceIOCreateNode(0,6) : RX mailbox handle allocated. [1438357093.642262273] (DEBUG) DeviceIOCreateNode(0,6) : RX Mailbox created. [1438357093.642277419] (DEBUG) DeviceIOCreateNode(0,6) : Opened Rx mailbox. [1438357093.642294718] (DEBUG) DeviceIOCreateNode(0,7) : TX mailbox handle allocated. [1438357093.642297958] (DEBUG) DeviceIOCreateNode(0,7) : TX Mailbox created. [1438357093.642302638] (DEBUG) DeviceIOCreateNode(0,7) : Opened Tx mailbox. [1438357093.642316580] (DEBUG) DeviceIOCreateNode(0,7) : RX mailbox handle allocated. [1438357093.642322330] (DEBUG) DeviceIOCreateNode(0,7) : RX Mailbox created. [1438357093.642326945] (DEBUG) DeviceIOCreateNode(0,7) : Opened Rx mailbox. createDeviceIO(0) Complete. [1438357093.642442734] (DEBUG) DeviceIOTxThread(0) : Hello! ThreadID = 0x7E28D700 [1438357093.642453330] (DEBUG) DeviceIORxThread(0) : Hello! ThreadID = 0x7DA8C700 [1438357093.642479452] (DEBUG) sendDeviceConfig(H265 Encode:HEVCENC) : codecName = HEVCENC nCores = 8 coreTeamMapping = 0 1 2 3 4 5 6 7 -1 channelId = 0 #StaticParams - IVIDENC2_Params static_param0 = 836 # IVIDEND2_Params :: size static_param1 = 4 # IVIDEND2_Params :: encodingPreset static_param2 = 2 # IVIDEND2_Params :: rateControlPreset static_param3 = 720 # IVIDEND2_Params :: MaxHeight static_param4 = 1280 # IVIDEND2_Params :: MaxWidth static_param5 = 1 # IVIDEND2_Params :: dataEndianness static_param6 = 1 # IVIDEND2_Params :: MaxInterFrameInterval static_param7 = 20000000 # IVIDE[1438357093.642615241] (DEBUG) DeviceIOTxThread(0) : Received pipe message for node 0. [1438357093.642687250] (DEBUG) DeviceIOTxThread(0) : Allocated buffer for the configuration of node #0! [1438357093.642810562] (DEBUG) DeviceIOTxThread(0) : Configuration written to 0x84C00000 for node #0. [1438357093.642822996] (DEBUG) DeviceIOTxThread(0) : Message sent to DSP mailbox. [1438357093.642825154] (DEBUG) DeviceIOTxThread(0) : Finished with message #-1487406992. [1438357093.642830756] (DEBUG) DeviceIOTxThread(0) : Received pipe message for node 1. [1438357093.642836995] (DEBUG) DeviceIOTxThread(0) : Allocated buffer for the configuration of node #1! [1438357093.642946378] (DEBUG) DeviceIOTxThread(0) : Configuration written to 0x84E00000 for node #1. [1438357093.642952155] (DEBUG) DeviceIOTxThread(0) : Message sent to DSP mailbox. [1438357093.642954000] (DEBUG) DeviceIOTxThread(0) : Finished with message #-1487406992. [1438357093.642957088] (DEBUG) DeviceIOTxThread(0) : Received pipe message for node 2. [1438357093.642962836] (DEBUG) DeviceIOTxThread(0) : Allocated buffer for the configuration of node #2! [1438357093.643073017] (DEBUG) DeviceIOTxThread(0) : Configuration written to 0x85000000 for node #2. [1438357093.643081480] (DEBUG) DeviceIOTxThread(0) : Message sent to DSP mailbox. [1438357093.643084024] (DEBUG) DeviceIOTxThread(0) : Finished with message #-1487406992. [1438357093.643088447] (DEBUG) DeviceIOTxThread(0) : Received pipe message for node 3. [1438357093.643096480] (DEBUG) DeviceIOTxThread(0) : Allocated buffer for the configuration of node #3! [1438357093.643206791] (DEBUG) DeviceIOTxThread(0) : Configuration written to 0x85200000 for node #3. [1438357093.643215504] (DEBUG) DeviceIOTxThread(0) : Message sent to DSP mailbox. [1438357093.643218083] (DEBUG) DeviceIOTxThread(0) : Finished with message #-1487406992. [1438357093.643222361] (DEBUG) DeviceIOTxThread(0) : Received pipe message for node 4. [1438357093.643231191] (DEBUG) DeviceIOTxThread(0) : Allocated buffer for the configuration of node #4! [1438357093.643341100] (DEBUG) DeviceIOTxThread(0) : Configuration written to 0x85400000 for node #4. [1438357093.643350000] (DEBUG) DeviceIOTxThread(0) : Message sent to DSP mailbox. [1438357093.643353001] (DEBUG) DeviceIOTxThread(0) : Finished with message #-1487406992. [1438357093.643357533] (DEBUG) DeviceIOTxThread(0) : Received pipe message for node 5. [1438357093.643366568] (DEBUG) DeviceIOTxThread(0) : Allocated buffer for the configuration of node #5! sendDeviceConfig(0) Complete. createOutputPipe(0) Complete. createReorder(0) Complete. [1438357093.643409952] (DEBUG) createScheduler(H265 Encode:HEVCENC) : Master: 0,0 [1438357093.643412903] (DEBUG) createScheduler(H265 Encode:HEVCENC) : Slave 0 : 0,1 [1438357093.643415266] (DEBUG) createScheduler(H265 Encode:HEVCENC) : Slave 1 : 0,2 [1438357093.643417444] (DEBUG) createScheduler(H265 Encode:HEVCENC) : Slave 2 : 0,3 [1438357093.643419569] (DEBUG) createScheduler(H265 Encode:HEVCENC) : Slave 3 : 0,4 [1438357093.643421687] (DEBUG) createScheduler(H265 Encode:HEVCENC) : Slave 4 : 0,5 [1438357093.643423795] (DEBUG) createScheduler(H265 Encode:HEVCENC) : Slave 5 : 0,6 [1438357093.643425896] (DEBUG) createScheduler(H265 Encode:HEVCENC) : Slave 6 : 0,7 createScheduler(0) Complete. [1438357093.643486160] (DEBUG) DeviceIOTxThread(0) : Configuration written to 0x85600000 for node #5. [1438357093.643496458] (DEBUG) DeviceIOTxThread(0) : Message sent to DSP mailbox. [1438357093.643498832] (DEBUG) DeviceIOTxThread(0) : Finished with message #-1487406992. [1438357093.643502867] (DEBUG) DeviceIOTxThread(0) : Received pipe message for node 6. [1438357093.643518646] (DEBUG) DeviceIOTxThread(0) : Allocated buffer for the configuration of node #6! [1438357093.643675925] (DEBUG) DeviceIOTxThread(0) : Configuration written to 0x85800000 for node #6. [1438357093.643682340] (DEBUG) DeviceIOTxThread(0) : Message sent to DSP mailbox. [1438357093.643684182] (DEBUG) DeviceIOTxThread(0) : Finished with message #-1487406992. [1438357093.643687790] (DEBUG) DeviceIOTxThread(0) : Received pipe message for node 7. [1438357093.643695192] (DEBUG) DeviceIOTxThread(0) : Allocated buffer for the configuration of node #7! [1438357093.643827704] (DEBUG) DeviceIOTxThread(0) : Configuration written to 0x85A00000 for node #7. [1438357093.643840382] (DEBUG) DeviceIOTxThread(0) : Message sent to DSP mailbox. [1438357093.643843207] (DEBUG) DeviceIOTxThread(0) : Finished with message #-1487406992. [1438357093.825439544] (DEBUG) DeviceIORxThread(0) : Getting message from node #0 ... [1438357093.825495746] (DEBUG) DeviceIORxConfig(0) : Received configuration response from node 0. [1438357093.825515168] (DEBUG) DeviceIORxThread(0) : Getting message from node #1 ... [1438357093.825537635] (DEBUG) DeviceIORxConfig(0) : Received configuration response from node 1. [1438357093.825552609] (DEBUG) DeviceIORxThread(0) : Getting message from node #2 ... [1438357093.825574337] (DEBUG) DeviceIORxConfig(0) : Received configuration response from node 2. [1438357093.825588765] (DEBUG) DeviceIORxThread(0) : Getting message from node #3 ... [1438357093.825609837] (DEBUG) DeviceIORxConfig(0) : Received configuration response from node 3. [1438357093.825624461] (DEBUG) DeviceIORxThread(0) : Getting message from node #4 ... [1438357093.825645483] (DEBUG) DeviceIORxConfig(0) : Received configuration response from node 4. [1438357093.825660236] (DEBUG) DeviceIORxThread(0) : Getting message from node #5 ... [1438357093.825681329] (DEBUG) DeviceIORxConfig(0) : Received configuration response from node 5. [1438357093.825696287] (DEBUG) DeviceIORxThread(0) : Getting message from node #6 ... [1438357093.825717159] (DEBUG) DeviceIORxConfig(0) : Received configuration response from node 6. [1438357093.825732173] (DEBUG) DeviceIORxThread(0) : Getting message from node #7 ... [1438357093.825753105] (DEBUG) DeviceIORxConfig(0) : Received configuration response from node 7. ackDeviceConfig(0) Complete. [1438357094.643595543] (DEBUG) FileReaderCreate(H265 Encode) : Creating instance of FileReader... [1438357094.643612193] (DEBUG) FileReaderCreate(H265 Encode) : Instance memory allocated. [1438357094.643624180] (DEBUG) FileReaderCreate(H265 Encode) : Allocated memory for 1 files. [1438357094.643669536] (DEBUG) FileReaderCreate(H265 Encode) : Configured to read from 1 files. [1438357094.643775963] (DEBUG) FileReaderCreate(H265 Encode) : Instance creation succeeded! createFileReader(0) Complete. createDataSrc(0) Complete. [1438357094.643813980] (DEBUG) FileWriterCreate(H265 Encode) : Creating instance of FileWriter... [1438357094.643828023] (DEBUG) FileWriterCreate(H265 Encode) : Instance memory allocated. [1438357094.643831435] (DEBUG) FileReaderThread(H265 Encode) : Hello from FileReader thread. ThreadID = 0x7D28B700 [1438357094.643868917] (DEBUG) FileReaderThread(H265 Encode) : File No. 0 to be Read... ../testVecs/input/airshow_p1280x720.yuv [1438357094.643954036] (DEBUG) FileWriterCreate(H265 Encode) : Instance creation succeeded! [1438357094.643960800] (DEBUG) FileWriterThread(H265 Encode) : Hello from FileWriter thread. ThreadID = 0x7CA8A700 createFileWriter(0) Complete. createDataSnk(0) Complete. [1438357094.644707678] (DEBUG) FileReaderThread(H265 Encode) : Read 1382400 bytes in 773573 ns. [1438357094.644723132] (DEBUG) FileReaderThread(H265 Encode) : Iter = 0, Clip = ../testVecs/input/airshow_p1280x720.yuv, Frame = 0 / 5, Size = 1382400 [1438357094.644737670] (DEBUG) FileReaderThread(H265 Encode) : Sending task #1 to device #0, node #0 ... [1438357094.644764566] (DEBUG) FileReaderThread(H265 Encode) : Finished writing message. [1438357094.644809647] (DEBUG) DeviceIOTxThread(0) : Received pipe message for node 0. [1438357094.644846513] (DEBUG) DeviceIOTxProcess(0) : Received message: #1, Task ID: 1, Frame ID: 1, Node 0, BufSize 1382400 bytes. Chan-Id 0 [1438357094.644860541] (DEBUG) DeviceIOTxThread(0) : Allocated input device buffer (0x84C00000). [1438357094.644872483] (DEBUG) DeviceIOTxThread(0) : Allocated output device buffer (0x83C00000). [1438357094.644884580] (DEBUG) DeviceIOSendFrame(0) : Participant Device 0 [1438357094.644916899] (DEBUG) DeviceIOSendFrame(0) : DMA'd frame to 0x84C00000 on device 0. (retVal = 0, dma_trans_id = 1) [1438357094.644928475] (DEBUG) DeviceIOTxThread(0) : DMA Triggered. [1438357094.645541340] (DEBUG) FileReaderThread(H265 Encode) : Read 1382400 bytes in 760665 ns. [1438357094.645557560] (DEBUG) FileReaderThread(H265 Encode) : Iter = 0, Clip = ../testVecs/input/airshow_p1280x720.yuv, Frame = 1 / 5, Size = 1382400 [1438357094.645569832] (DEBUG) FileReaderThread(H265 Encode) : Sending task #2 to device #0, node #0 ... [1438357094.645583705] (DEBUG) FileReaderThread(H265 Encode) : Finished writing message. [1438357094.646704249] (DEBUG) DeviceIOXferComplete(0) : DMA to device 0 Complete! dma_trans_id = 1 [1438357094.646723185] (DEBUG) DeviceIOTxThread(0) : DMA Complete. [1438357094.646746994] (DEBUG) DeviceIOTxThread(0) : Message sent to DSP mailbox. [1438357094.646756534] (DEBUG) DeviceIOTxThread(0) : Finished with message #1. [1438357094.646774605] (DEBUG) DeviceIOTxThread(0) : Received pipe message for node 0. [1438357094.646786627] (DEBUG) DeviceIOTxProcess(0) : Received message: #2, Task ID: 2, Frame ID: 2, Node 0, BufSize 1382400 bytes. Chan-Id 0 [1438357094.646798234] (DEBUG) DeviceIOTxThread(0) : Allocated input device buffer (0x84E00000). [1438357094.646808670] (DEBUG) DeviceIOTxThread(0) : Allocated output device buffer (0x83E00000). [1438357094.646818951] (DEBUG) DeviceIOSendFrame(0) : Participant Device 0 [1438357094.646835080] (DEBUG) DeviceIOSendFrame(0) : DMA'd frame to 0x84E00000 on device 0. (retVal = 0, dma_trans_id = 2) [1438357094.646845516] (DEBUG) DeviceIOTxThread(0) : DMA Triggered. [1438357094.647297443] (DEBUG) FileReaderThread(H265 Encode) : Read 1382400 bytes in 515189 ns. [1438357094.647313382] (DEBUG) FileReaderThread(H265 Encode) : Iter = 0, Clip = ../testVecs/input/airshow_p1280x720.yuv, Frame = 2 / 5, Size = 1382400 [1438357094.647325234] (DEBUG) FileReaderThread(H265 Encode) : Sending task #3 to device #0, node #0 ... [1438357094.647339902] (DEBUG) FileReaderThread(H265 Encode) : Finished writing message. [1438357094.648650962] (DEBUG) DeviceIOXferComplete(0) : DMA to device 0 Complete! dma_trans_id = 2 [1438357094.648664520] (DEBUG) DeviceIOTxThread(0) : DMA Complete. [1438357094.648685307] (DEBUG) DeviceIOTxThread(0) : Message sent to DSP mailbox. [1438357094.648696443] (DEBUG) DeviceIOTxThread(0) : Finished with message #2. [1438357094.648711262] (DEBUG) DeviceIOTxThread(0) : Received pipe message for node 0. [1438357094.648720622] (DEBUG) DeviceIOTxProcess(0) : Received message: #3, Task ID: 3, Frame ID: 3, Node 0, BufSize 1382400 bytes. Chan-Id 0 [1438357094.648731544] (DEBUG) DeviceIOTxThread(0) : Allocated input device buffer (0x85000000). [1438357094.648741860] (DEBUG) DeviceIOTxThread(0) : Allocated output device buffer (0x84000000). [1438357094.648751895] (DEBUG) DeviceIOSendFrame(0) : Participant Device 0 [1438357094.648766979] (DEBUG) DeviceIOSendFrame(0) : DMA'd frame to 0x85000000 on device 0. (retVal = 0, dma_trans_id = 3) [1438357094.648777245] (DEBUG) DeviceIOTxThread(0) : DMA Triggered. [1438357094.649188353] (DEBUG) FileReaderThread(H265 Encode) : Read 1382400 bytes in 496828 ns. [1438357094.649203497] (DEBUG) FileReaderThread(H265 Encode) : Iter = 0, Clip = ../testVecs/input/airshow_p1280x720.yuv, Frame = 3 / 5, Size = 1382400 [1438357094.650602083] (DEBUG) DeviceIOXferComplete(0) : DMA to device 0 Complete! dma_trans_id = 3 [1438357094.650606931] (DEBUG) DeviceIOTxThread(0) : DMA Complete. [1438357094.650613340] (DEBUG) DeviceIOTxThread(0) : Message sent to DSP mailbox. [1438357094.650615657] (DEBUG) DeviceIOTxThread(0) : Finished with message #3. Terminating remaining threads... [1438357133.853331208] (DEBUG) ReorderDestroy(H265 Encode:HEVCENC): Freeing resources... [1438357133.853338549] (DEBUG) ReorderDestroy(H265 Encode:HEVCENC) : Sucessfully freed all queue elements. [1438357133.853344375] (DEBUG) Scheduler(H265 Encode:HEVCENC): 0 | 0 | 3 | 3 | 3 | 3 Terminating remaining threads...
[1438357094.646737914] (ERROR) FileReaderThread(H265 Encode) : Made 6249 attempts to allocate host input buffer. [1438357094.648677732] (ERROR) FileReaderThread(H265 Encode) : Made 7702 attempts to allocate host input buffer.
Hi Paula,
1) I'm able to run Desktop linux SDK demos without issues. The console shows "Test Complete" .
2) make SV04 is giving me this error now: "../../../siu/osal/siuDmaType.h", line 43: fatal error #5: could not open source file "ti/sdo/fc/ecpy/ecpy.h"
1 fatal error detected in the compilation of "../../../siu/common/main.c".
Compilation terminated.
>> Compilation failure
make[2]: *** [main.oc] Error 1
make[2]: Leaving directory `/home/extron/ti/mcsdk_video_2_2_0_45/dsp/siu/c64x/make'
make[1]: *** [siu] Error 2
make[1]: Leaving directory `/home/extron/ti/mcsdk_video_2_2_0_45/dsp/mkrel/c64x'
make: *** [sv04] Error 2
3) HEVC decoder demo worked, It gave me an output YUV.
4) No, I do not get any output for 3 frames for HEVC encoder.
5) I'm yet to try another YUV clip.
Mrudula
Paula, I could be running on the pre built sv04.
So I'm still getting errors while doing make clean for <mcsdk_video>/dsp/mkrel
cleaning vtk
make: Entering an unknown directory
make: *** ../../vtk/c64x/make: No such file or directory. Stop.
make: Leaving an unknown directory
make[1]: *** [vtk_makeclean] Error 2
make[1]: Leaving directory `/home/user/ti/mcsdk_video_2_2_0_45/dsp/mkrel/c64x'
make: *** [clean] Error 2
and for make sv04
"../../../siu/vct/codec/siuVctSupportedCodecs.c", line 89: warning #145-D: a value of type "void (*)(void *, IVIDMC3_t *)" cannot be used to initialize an entity of type "void (*)(void *, void *)"
"../../../siu/vct/codec/siuVctSupportedCodecs.c", line 106: error #20: identifier "jpegEncAPI" is undefined
"../../../siu/vct/codec/siuVctSupportedCodecs.c", line 108: warning #1045-D: extra braces are nonstandard
"../../../siu/vct/codec/siuVctSupportedCodecs.c", line 108: error #145: a value of type "const char *" cannot be used to initialize an entity of type "tuint"
"../../../siu/vct/codec/siuVctSupportedCodecs.c", line 108: error #68: expected a "}"
"../../../siu/vct/codec/siuVctSupportedCodecs.c", line 112: error #20: identifier "jpegDecAPI" is undefined
"../../../siu/vct/codec/siuVctSupportedCodecs.c", line 114: warning #1045-D: extra braces are nonstandard
"../../../siu/vct/codec/siuVctSupportedCodecs.c", line 114: error #145: a value of type "const char *" cannot be used to initialize an entity of type "tuint"
"../../../siu/vct/codec/siuVctSupportedCodecs.c", line 114: error #68: expected a "}"
6 errors detected in the compilation of "../../../siu/vct/codec/siuVctSupportedCodecs.c".
>> Compilation failure
make[2]: *** [siuVctSupportedCodecs.oc] Error 1
make[2]: Leaving directory `/home/user/ti/mcsdk_video_2_2_0_45/dsp/siu/c64x/make'
make[1]: *** [siu] Error 2
make[1]: Leaving directory `/home/user/ti/mcsdk_video_2_2_0_45/dsp/mkrel/c64x'
make: *** [sv04] Error 2
How do I go about solving this?
Thank you,
Mrudula.
Mrudula, it seems something is not right on your modified siyVctSupportedCodecs.c
I am attaching the file I used for your reference
thank you,
Paula
/****************************************************************************** * FILE PURPOSE: Install XDM compliant Encoder ****************************************************************************** * FILE NAME: siuVctSupportedCodecs.c * * DESCRIPTION: Install XDM compliant Encoder * * TABS: NONE * * * (C) Copyright 2011, Texas Instruments Incorporated * * 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. * */ #include <ti/mas/types/types.h> #include <stdio.h> #include <string.h> #include "siuVctCodecAPI.h" /*#include "vctMpeg4EncClient.h"*/ /*#include "vctH264EncClient.h"*/ /*#include "vctMpeg4DecClient.h"*/ /*#include "vctH264HpDecClient.h"*/ /*#include "vctMpeg2DecClient.h"*/ /*#include "vctH264BpMpDecClient.h"*/ /*#include "vctMctnfClient.h"*/ /*#include "vctJ2KDecClient.h"*/ /*#include "vctJ2kEncClient.h"*/ /*#include "vctAvciuEncClient.h"*/ #include "vctHevcEncClient.h" #include "vctHevcDecClient.h" #include "vctH264HpEncClient.h" /*#include "vctMpeg2EncClient.h"*/ /*#include "vctJpegDecClient.h"*/ /*#include "vctJpegEncClient.h"*/ /*#include "vctAACEncClient.h"*/ /*#include "vctMp3DecClient.h"*/ /*#include "vctSorsparkDecClient.h"*/ /*#include "vctDv100DecClient.h"*/ /*#include "vctDv50DecClient.h"*/ /*#include "vctDv25DecClient.h"*/ /*#include "vctVc1DecClient.h"*/ vidEncoderAPI_t supportedVidEncoders[] = { /*mpeg4EncAPI,*/ /*h264EncAPI,*/ /*j2kEncAPI,*/ /*avciuEncAPI,*/ h264hpEncAPI, /*mpeg2EncAPI,*/ hevcEncAPI, /* INSTALL MORE CODECS HERE */ vidEncNullAPI }; vidDecoderAPI_t supportedVidDecoders[] = { /*mpeg4DecAPI,*/ /*h264hpDecAPI,*/ /*h264bpmpDecAPI,*/ /*mpeg2DecAPI,*/ /*j2kDecAPI,*/ hevcDecAPI, /*sorsparkDecAPI,*/ /*dv100DecAPI,*/ /*dv50DecAPI,*/ /*dv25DecAPI,*/ /*vc1DecAPI,*/ /* INSTALL MORE CODECS HERE */ vidDecNullAPI }; vidFilterAPI_t supportedVidFilters[] = { /*mctnfAPI,*/ /* INSTALL MORE CODECS HERE */ vidFilterNullAPI }; imgEncoderAPI_t supportedImgEncoders[] = { /*jpegEncAPI,*/ /* INSTALL MORE CODECS HERE */ imgEncNullAPI }; imgDecoderAPI_t supportedImgDecoders[] = { /*jpegDecAPI,*/ /* INSTALL MORE CODECS HERE */ imgDecNullAPI }; audEncoderAPI_t supportedAudEncoders[] = { /*aacEncAPI,*/ /* INSTALL MORE CODECS HERE */ audEncNullAPI }; audDecoderAPI_t supportedAudDecoders[] = { /*mp3DecAPI,*/ /* INSTALL MORE CODECS HERE */ audDecNullAPI }; /* nothing past this point */
Hi Mrudula, no completely sure why it is still looking for Jpeg decoder (This codec was commented in the scripts and .c file). Anycase, attached my ggvf0.becmd for your reference.
Please do "make clean" "make sv04" after this changes.. it could be a sporious file which still has jpeg decoder around..