I added the following code in function Vsys_params_init at dvr_rdk/mcfw/src_linux/mcfw_api/ti_vsys.c:
*(char*)0x0 = 0;
Made the following changes to common_header_a8.mk:
DVRRDK_04.00.00.03/dvr_rdk$ diff ./makerules/common_header_a8.mk.orig_bak ./makerules/common_header_a8.mk |
Compiled ./dvr_rdk_demo_mcfw_api.out and run it.
Got the following log:
root@dm816x:/opt/ti8168/bin/debug# ./dvr_rdk_demo_mcfw_api.out ****** Segmentation fault caught .... |
When I run:
../ti_tools/cgt_a8/arago/linux-devkit/bin/arm-arago-linux-gnueabi-addr2line -e bin/ti816x/bin/debug/dvr_rdk_demo_mcfw_api.out 0x2c4d0 |
The output had some lines of deviation.
For example, calling of Vsys_params_init should be at line 37, but arm-arago-linux-gnueabi-addr2line output line 39.
And some addresses could be parsed by arm-arago-linux-gnueabi-addr2line correctly, for example, 0x50ca0 as I tested.
I searched a lot in makefiles and on google, and didn't find any options to solve this.
Any help will be appreciated!
Best Regards!