在VIDENC1_control调用时出错,打印信息如下:
CMEMK Error: get_phys: Unable to find phys addr for 0x40065d5c
CMEMK Error: get_phys: get_user_pages() failed: -14
CMEMK Error: GETPHYS: Failed to convert virtual 0x40065d5c to physical.
CMEM Error: getPhys: Failed to gCMEMK Error: get_phys: Unable to find phys addr for 0x8008ccbb
et physical address of 0x40065d5CMEMK Error: get_phys: get_user_pages() failed: -14
c
CMEMK Error: GETPHYS: Failed to convert virtual 0x8008ccbb to physical.
CMEM Error: getPhys: Failed to get physical address of 0x8008ccbb
Error (-1), Codec Error (1073908289) in Video Encoder Control
Unable to set encoder dynamic parameters
////////////////////////////////
loadmodules.sh内容如下:
CMEM_MODPARAMS="phys_start=0x87800000 phys_end=0x88000000 pools=80×4096,40×131072,2×1048576"
麻烦帮忙看下
Shine:
请问板子上面有多大的DDR?分配给linux多少内存?剩下的多少给cmem用的,如果分配的cmem的内存大于实际留下的,就会报无法分配的错误。用cat /proc/cmem查看一下mem模块是否有正确的分配pool给系统,请看下面的wiki网站。http://processors.wiki.ti.com/index.php/Changing_the_DVEVM_memory_map#CMEM:_Contiguous_Memory_Allocator
jy chen1:
回复 Shine:
用的是dm6467,256MB的DDR
分配给linux120MB
8MB给cmem
cat /proc/cmem 有按配置文件分配pool。
求指导
Shine:
回复 jy chen1:
内核版本是多少?下面有个FAQ。Q: Can CMEM_getPhys() be used to translate any virtual address to its physical address? http://processors.wiki.ti.com/index.php/CMEM_Overview#CMEM_FAQ
jy chen1:
回复 Shine:
内核版本是2.6.32-rc2-davinci1
用的是dvsdk_3_10_00_19
jy chen1:
回复 jy chen1:
CMEM_MODPARAMS="phys_start=0x87800000 phys_end=0x88000000 pools=80×4096,40×13107
cat /proc/cmem 为:
Block 0: Pool 0: 80 bufs size 4096 (4096 requested)
Pool 0 busy bufs:
Pool 0 free bufs:id 0: phys addr 0x87fff000id 1: phys addr 0x87ffe000id 2: phys addr 0x87ffd000id 3: phys addr 0x87ffc000id 4: phys addr 0x87ffb000id 5: phys addr 0x87ffa000id 6: phys addr 0x87ff9000id 7: phys addr 0x87ff8000id 8: phys addr 0x87ff7000id 9: phys addr 0x87ff6000id 10: phys addr 0x87ff5000id 11: phys addr 0x87ff4000id 12: phys addr 0x87ff3000id 13: phys addr 0x87ff2000id 14: phys addr 0x87ff1000id 15: phys addr 0x87ff0000id 16: phys addr 0x87fef000id 17: phys addr 0x87fee000id 18: phys addr 0x87fed000id 19: phys addr 0x87fec000id 20: phys addr 0x87feb000id 21: phys addr 0x87fea000id 22: phys addr 0x87fe9000id 23: phys addr 0x87fe8000id 24: phys addr 0x87fe7000id 25: phys addr 0x87fe6000id 26: phys addr 0x87fe5000id 27: phys addr 0x87fe4000id 28: phys addr 0x87fe3000id 29: phys addr 0x87fe2000id 30: phys addr 0x87fe1000id 31: phys addr 0x87fe0000id 32: phys addr 0x87fdf000id 33: phys addr 0x87fde000id 34: phys addr 0x87fdd000id 35: phys addr 0x87fdc000id 36: phys addr 0x87fdb000id 37: phys addr 0x87fda000id 38: phys addr 0x87fd9000id 39: phys addr 0x87fd8000id 40: phys addr 0x87fd7000id 41: phys addr 0x87fd6000id 42: phys addr 0x87fd5000id 43: phys addr 0x87fd4000id 44: phys addr 0x87fd3000id 45: phys addr 0x87fd2000id 46: phys addr 0x87fd1000id 47: phys addr 0x87fd0000id 48: phys addr 0x87fcf000id 49: phys addr 0x87fce000id 50: phys addr 0x87fcd000id 51: phys addr 0x87fcc000id 52: phys addr 0x87fcb000id 53: phys addr 0x87fca000id 54: phys addr 0x87fc9000id 55: phys addr 0x87fc8000id 56: phys addr 0x87fc7000id 57: phys addr 0x87fc6000id 58: phys addr 0x87fc5000id 59: phys addr 0x87fc4000id 60: phys addr 0x87fc3000id 61: phys addr 0x87fc2000id 62: phys addr 0x87fc1000id 63: phys addr 0x87fc0000id 64: phys addr 0x87fbf000id 65: phys addr 0x87fbe000id 66: phys addr 0x87fbd000id 67: phys addr 0x87fbc000id 68: phys addr 0x87fbb000id 69: phys addr 0x87fba000id 70: phys addr 0x87fb9000id 71: phys addr 0x87fb8000id 72: phys addr 0x87fb7000id 73: phys addr 0x87fb6000id 74: phys addr 0x87fb5000id 75: phys addr 0x87fb4000id 76: phys addr 0x87fb3000id 77: phys addr 0x87fb2000id 78: phys addr 0x87fb1000id 79: phys addr 0x87fb0000
Block 0: Pool 1: 40 bufs size 131072 (131072 requested)
Pool 1 busy bufs:
Pool 1 free bufs:id 0: phys addr 0x87f90000id 1: phys addr 0x87f70000id 2: phys addr 0x87f50000id 3: phys addr 0x87f30000id 4: phys addr 0x87f10000id 5: phys addr 0x87ef0000id 6: phys addr 0x87ed0000id 7: phys addr 0x87eb0000id 8: phys addr 0x87e90000id 9: phys addr 0x87e70000id 10: phys addr 0x87e50000id 11: phys addr 0x87e30000id 12: phys addr 0x87e10000id 13: phys addr 0x87df0000id 14: phys addr 0x87dd0000id 15: phys addr 0x87db0000id 16: phys addr 0x87d90000id 17: phys addr 0x87d70000id 18: phys addr 0x87d50000id 19: phys addr 0x87d30000id 20: phys addr 0x87d10000id 21: phys addr 0x87cf0000id 22: phys addr 0x87cd0000id 23: phys addr 0x87cb0000id 24: phys addr 0x87c90000id 25: phys addr 0x87c70000id 26: phys addr 0x87c50000id 27: phys addr 0x87c30000id 28: phys addr 0x87c10000id 29: phys addr 0x87bf0000id 30: phys addr 0x87bd0000id 31: phys addr 0x87bb0000id 32: phys addr 0x87b90000id 33: phys addr 0x87b70000id 34: phys addr 0x87b50000id 35: phys addr 0x87b30000id 36: phys addr 0x87b10000id 37: phys addr 0x87af0000id 38: phys addr 0x87ad0000id 39: phys addr 0x87ab0000
Block 0: Pool 2: 2 bufs size 1048576 (1048576 requested)
Pool 2 busy bufs:
Pool 2 free bufs:id 0: phys addr 0x879b0000id 1: phys addr 0x878b0000