|
||||
Re: Need files to trace OpenGl
Quote:
I'm going to explain what happens during boot so everyone can understand why this is a pain. Once haret loads, wince is no longer in-charge of the device. We must enable and disable everything.. kernel starts loading and it loads the appropriate drivers. The kernel also has to re-enable all the clocks needed for regular function. There are tons of clocks, but the ones we were concentrating on are the gpu clocks. Ok, so we set the clocks according to the assembly dump you see. Now once Linux is up (not android since thats just a layer above which we arent worried about yet) we should be able to run basic GL test applications. I have written a few that work on other devices, so they are valid apps. When we run these apps on the tp2, the gpu does not respond. The gpu has an interrupt assigned to it. So lets say we have an app that uses 3d, the gpu should respond back and do its magic. Right now for us it does not. So all the test applications just loop and loop not actually showing anything on screen. You can verify this by typing "cat /proc/interrupts" and looking for hw3d and a nice fat 0 next to it. Right now the Rhod and Topaz are the only ones suffering from this. Hope that makes sense. Also if you are interested in seeing how that ASM relates to the .c file in the kerne. Take a look at what is being done now. You will notice the values are the same. REG_OR( MSM_AXI_RESET, 0x20 ); REG_OR( MSM_ROW_RESET, 0x20000 ); REG_SET( MSM_VDD_GRP_GFS_CTL, 0x11f ); REG_OR( MSM_GRP_NS_REG, 0x800 ); REG_OR( MSM_GRP_NS_REG, 0x80 ); REG_OR( MSM_GRP_NS_REG, 0x200 ); REG_OR( MSM_CLK_CTL_BASE, 0x8 ); // grp idx REG_AND( MSM_RAIL_CLAMP_IO, 0x4 ); REG_AND( MSM_PRPH_WEB_NS_REG, 0x1 ); // Suppress bit 0 of grp MD REG_AND( MSM_AXI_RESET, 0x20 ); REG_AND( MSM_ROW_RESET, 0x20000 ); Last edited by [ACL]; 06-29-2010 at 04:08 PM. |
This post has been thanked 2 times. |
|
||||
Re: Need files to trace OpenGl
Got plenty of work to do. Can anyone compare to see if there are binary differences between ddi.dll from rhod to lets say a (kovsky or blackstone)?
|
This post has been thanked 1 times. |
|
||||
Re: Need files to trace OpenGl
I compared the blackstone ddi.dll to the rhodium ddi.dll and there are differences. I am attaching the .dll's in case you want to inspect them yourself.
|
This post has been thanked 1 times. |
|
||||
Re: Need files to trace OpenGl
Quote:
i wont be able to do much tonight.. maybe the other guys here can help disassemble and check out the differences?. ill definitely take a look tomorrow. |
This post has been thanked 1 times. |
|
||||
Re: Need files to trace OpenGl
how do i see these files ? i see just bunch of s00X stuff.. i need the dlls itself.
|
This post has been thanked 1 times. |
|
||||
Re: Need files to trace OpenGl
Quote:
They need to be recmodded. Here they are. |
|
||||
Re: Need files to trace OpenGl
thanks man. I compared them and they are way different. Too different for me to even tell whats going on.
reason i wanted to compare was because the blacstone currently has a working interrupt while we dont. Unfortunately i dont know enough about arm asm to tell whats going on. i'll need to hand this over to some of the asm gurus. In other news, i got AhiEnableSoftInterrupt to run on both wince and android. Unfortunately after testing it turns out it was already enabled on android. So why dont we have 3d? it boggles the mind i tell you. It looks like that calls is only for the driver itself .. it doesnt make any calls to the system to actually enable interrupts. |
This post has been thanked 1 times. |
|
||||
Re: Need files to trace OpenGl
ill pull them both apart and see if there are any major differences worth finding. ive been needing to boot back to windows and reformat a hard drive to use on my Wii, i was just looking for a reason
![]() so the interrupts were already in place? thats a positive, although it confuses me. was it not already running in wince? i was thinking the other day, probaly going around in circles, but it made me wonder on something you said. Quote:
also, can you do me a favor whenever you get the chance? can you send me some logs in wince when you are doing several procedures? initiate a game that uses hw3d, a game that doesnt activate 3d, and when playing back a video recorded by the phone through windows media player. just looking at a few things, but really anyone can do this. what would really help is to get the boot logs from several native android devices, and maybe some logs using hw3d. it really doesnt matter which device, as essentially initiating the drivers and calling them should correlate. Last edited by newkidd; 07-05-2010 at 11:40 AM. |
|
||||
Re: Need files to trace OpenGl
Quote:
Android devices are completely different. For example all their clocks are also handled internally not like wince that has to set its own stuff. So once haret boots, no one is there to handle it any-more. I'm interested to see what would happen with a Rhod that has no 3d. We have everything in theory ready to turn on 3d, maybe the fact that its enabled messes it up. Dont know at this stage Wince logs are useless. But here is a full boot log to show you what happens as soon as the device turns on, to when it begins activating 3d for manila. http://pastebin.com/M1Ad4YMv Also i put my own debug lines on the kernel to get more logging. So logs from android devices wont help since they dont tell the whole story. Last edited by [ACL]; 07-05-2010 at 01:37 PM. |
This post has been thanked 1 times. |
![]() |
|
|
|