I am running ti-ezsdk_dm816x-evm_5_02_01_59 on DM8168 EVM, the prebuilt image of hdvpss (dm816x_hdvpss.xem3) works well in my board. but I want to re-build hdvpss from source code (maybe need to make some changes later). I have gotten the source code from TI, the version is hdvpss_01_00_01_28, and make edited the Rules.make to meet my evn and make all.
I got the image from build/ti816x_hdvpss/bin/ti816x-evm/ti816x_hdvpss.xem3, renamed and replaced this image to target file system /usr/share/ti/ti-media-control-utils/dm816x_hdvpss.xem3. then reboot EVM but the system hangs as following log:
**********************************************
Loading HDVPSS Firmware
FIRMWARE: Memory map bin file not passed
Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [Location of Mem map bin file]
FIRMWARE: Default memory configuration is used
MemCfg: DCMM (Dynamically Configurable Memory Map) Version : 2.1.1.1
***********************************************
I have tried to compare my built image to the pre-build image with readelf.
********************my build****************************
readelf -h build/ti816x_hdvpss/bin/ti816x-evm/ti816x_hdvpss.xem3
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x98679db1
Start of program headers: 9007431 (bytes into file)
Start of section headers: 9007783 (bytes into file)
Flags: 0x5000000, Version5 EABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 11
Size of section headers: 40 (bytes)
Number of section headers: 47
Section header string table index: 46
***************prebuild*********************
readelf -h ~/targetfs/usr/share/ti/ti-media-controller-utils/dm816x_hdvpss.xem3
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x9f5ce599
Start of program headers: 15719326 (bytes into file)
Start of section headers: 15719870 (bytes into file)
Flags: 0x5000000, Version5 EABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 17
Size of section headers: 40 (bytes)
Number of section headers: 58
Section header string table index: 57
*************************************************
the file size and entry point are different.
So, my question is how to build dm816x_hdvpss.xem3 from source code ?
thanks