theoddbot
Certified Guru
Nope, the 920T has full access to all the memory, its just that their linux is a bit retarded. (missing half its brain )
Squidge posted on Dec 3 2005 at 08:54 AM said:No, the second one can be used for whatever you see fit, just as GPH/ME use it as a video decoder.
I don't know why MrMirko is saying the memory is segmented - they can both access exactly the same memory addresses, just as the second one will be offset by whatever value you give it. So, for example, if you decide to use 0x03000000 (to store the code for the second processor at 48MB), then the framebuffer, which is normally at 0x03101000 will need to be accessed at 0x00101000.
white posted on Dec 3 2005 at 10:38 AM said:It might be an interesting idea to see if it's possible to write a 3D rendering core on the second processor, so the primary could send polygon data down the pipe for rendering and then get on with something else. Perhaps a 3D library based around that idea would be a nice thing to have.
dioxide posted on Dec 3 2005 at 05:28 AM said:As it says on the main website:
ARM920T : Host processor
ARM940T : Video Coprocessor
I think the 2nd one is for 2D Video
Jacxz posted on Dec 3 2005 at 11:51 AM said:I didn't read everything but it seems like no one talked about the power of Linux, I dont now much about it but there are diffrent Linux versions out there that supports two processors...
Couse I hope I'm right gp2x have two processors right?? or is it two cores i just got a bit confussed..........
So what im talking about is that it would be possible for GPH to make the OS use both processors or at least make it support it so it would be easier for you coders out there.. right??
I don't think this would be 1st priority at this point but maybe in the future.
I hope to see some response on this post.
Thx
Jacxz
Jacxz posted on Dec 3 2005 at 11:51 AM said:I didn't read everything but it seems like no one talked about the power of Linux, I dont now much about it but there are diffrent Linux versions out there that supports two processors...
Couse I hope I'm right gp2x have two processors right?? or is it two cores i just got a bit confussed..........
So what im talking about is that it would be possible for GPH to make the OS use both processors or at least make it support it so it would be easier for you coders out there.. right??
I don't think this would be 1st priority at this point but maybe in the future.
I hope to see some response on this post.
Thx
Jacxz
mr.mirko posted on Dec 3 2005 at 12:02 PM said:With running/working Linux in the background ?
Squidge posted on Dec 3 2005 at 12:33 PM said:Jacxz: the problem is that the 920 has MMU, but the 940 has no MMU, so can only see physical memory. Also, the mpeg decoding relies on being at a certain address in memory, and assumes full use of the 940, so probably wouldn't like to be task swapped by the OS.
Squidge it would be really GREAT if you could build a little example/tutorial on how to use the 940 (and how to compile/link code) in linux.Squidge posted on Dec 3 2005 at 02:33 PM said:This is currently how the frame buffer works - there's two frame buffers (for double buffering reasons), and they are both accessible by both cores. I tested this by running a program on the second core that just read the contents of the primary frame buffer, inverted it, and wrote it back. Gives some funky effects when you load up the gp2xmenu and play around moving between icons and screens. It was my first program to use the second core under linux.mr.mirko posted on Dec 3 2005 at 12:02 PM said:With running/working Linux in the background ?
Oscaruzzo posted on Dec 3 2005 at 12:49 PM said:Squidge it would be really GREAT if you could build a little example/tutorial on how to use the 940 (and how to compile/link code) in linux.Squidge posted on Dec 3 2005 at 02:33 PM said:This is currently how the frame buffer works - there's two frame buffers (for double buffering reasons), and they are both accessible by both cores. I tested this by running a program on the second core that just read the contents of the primary frame buffer, inverted it, and wrote it back. Gives some funky effects when you load up the gp2xmenu and play around moving between icons and screens. It was my first program to use the second core under linux.mr.mirko posted on Dec 3 2005 at 12:02 PM said:With running/working Linux in the background ?
Something very very simple, just to get started...
char globaldata[8192];
int use_core2() {
// fill globaldata with 0xff
return;
}
int main() {
use_core2();
while (1) {
if (globaldata[8191] == 0xff) break;
}
return;
}
mr.mirko posted on Dec 3 2005 at 01:13 PM said:Yes squidge, a simple example, on how you use the second core under Linux, would be great, and how you access global data. You said its easy, your chance now...
...
Yes, show us, how easy it is, to do this simple dual core setup under linux...