Debugging vivante imx6 issues, possible address change

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Debugging vivante imx6 issues, possible address change

跳至解决方案
1,935 次查看
kevin_chaves
Contributor III

So first off i'd like to say I'm completely new to linux development so there are a lot of things i just don't know. So if you answer you might want to word your answers for a 5 year old :smileywink:.

Long story short we have a prototype board that we changed the ddr3 to lpddr2, but for some reason the starting address changed and the opengl is broken. I'm not really sure which piece of the vivante i need to look at. Any opengl app we try to run just causes a seg fault, we suspect its the ddr change. Most of the work has been outsourced but they are not going to finish in time so I wanted to try helping.

标签 (3)
0 项奖励
回复
1 解答
1,530 次查看
VladanJovanovic
NXP Employee
NXP Employee

If your address range starts at 0x80000000 you'll have to change phys_baseaddr for GPU device in platform-viv_gpu.c to 0x80000000.

You'll also have to update some VPU/IPU files, but I believe that is handled already in latest BSP releases.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,531 次查看
VladanJovanovic
NXP Employee
NXP Employee

If your address range starts at 0x80000000 you'll have to change phys_baseaddr for GPU device in platform-viv_gpu.c to 0x80000000.

You'll also have to update some VPU/IPU files, but I believe that is handled already in latest BSP releases.

0 项奖励
回复
1,529 次查看
kevin_chaves
Contributor III

There's also one more thing you have to change. in the memory reserve function you have to make sure to add the offset to the new space.

if(imx6_gpu_pdata.reserved_mem_size) {

     phys = memblock_alloc_base(imx6q_gpu_pdata.reserved_mem_size,

                                                 SZ_4K, (SZ_2G + SZ_1G));

...

}

for reference

Re: Vivante and opengl broken on imx6 board

1,530 次查看
YixingKong
Senior Contributor IV

Kevin

We are sorry for getting back to you so late. Are you still stuck with the issue? If you have somehow to resolved the

issue, can we close the discussion? If you still need help, please feel free to reply with an update to this discussion.

Thanks,
Yixing

0 项奖励
回复
1,530 次查看
kevin_chaves
Contributor III

I'm all set, I actually forgot I had this reqeust and opened another by mistake. The other one has a solution. So I'm not sure how to look up previous posts which... leads me to make more posts

0 项奖励
回复