Tool/software: TI-RTOS
Hi all,
we are trying few experiments in IPC -source for memory map and resource table handling in vision-SDK.
we did few changes in the default IPC -source code for IPU1 and it is not working.
Please find the files in the attachment.
Command to Build xem4 image:
make -f ipc-bios.mak all
Changes
1. package.bld (packages/ti/ipc/tests/package.bld)
var evmDRA7XX_ExtMemMapIpu1 = {
EXT_CODE: {
name: "EXT_CODE",
base: 0x80000000,
len: 0x000fc000,
space: "code",
access: "RWX"
},
EXT_DATA: {
name: "EXT_DATA",
base: 0x80100000,
len: 0x00200000,
space: "data",
access: "RW"
},
EXT_HEAP: {
name: "EXT_HEAP",
base: 0x80300000,
len: 0x00300000,
space: "data",
access: "RW"
},
TRACE_BUF: {
name: "TRACE_BUF",
base: 0x9F000000,
len: 0x00060000,
space: "data",
access: "RW"
},
EXC_DATA: {
name: "EXC_DATA",
base: 0x9F060000,
len: 0x00010000,
space: "data",
access: "RW"
},
PM_DATA: {
name: "PM_DATA",
base: 0x9F070000,
len: 0x00020000,
space: "data",
access: "RWX" /* should this have execute perm? */
}
};
2 corresponding changes in rsc_table_vayu_ipu.h (packages/ti/ipc/remoteproc/rsc_table_vayu_ipu.h )
#define IPU_MEM_TEXT 0x80000000
#define IPU_MEM_DATA 0x80100000
Logs:
[ 221.120682] remoteproc0: Booting fw image dra7-ipu1-fw.xem4, size 4461564
[ 221.128210] omap-iommu 58882000.mmu: 58882000.mmu: version 2.1
[ 221.140064] remoteproc0: bad phdr da 0x0 mem 0xe0
[ 221.145112] remoteproc0: Failed to load program segments: -22
[ 221.155310] remoteproc0: rproc_boot() failed -22
[ 221.160279] virtio_rpmsg_bus: probe of virtio0 failed with error -22
Is it necessary to start the EXT_CODE from addrss 0x00004000?
Regards,
Gokul