Debugging vivante imx6 issues, possible address change

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Debugging vivante imx6 issues, possible address change

ソリューションへジャンプ
1,909件の閲覧回数
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,504件の閲覧回数
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,505件の閲覧回数
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,503件の閲覧回数
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,504件の閲覧回数
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,504件の閲覧回数
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 件の賞賛
返信