Monday, January 29, 2007

Starting PS3 Linx Programming

Hello,

I'm just learning how to program the PS3 in Linux. I'm using Yellowdog Linux, so if you're using another distribution, you may need to change a few things.

First off, in order to compile my examples, you're going to have to change some things, as there are some errors in the YDL distribution I'm using (2.6.16) as of 1/29/2007.

YDL distribution 1208 does not install 'locate' by default, so I recommend you install the RPM.

It's located on the DVD in /Yellowdog/RPMS, and is named mlocate...

I have to assume some things, so I am making the assumption that you know how to install an RPM and that you know how to find things using locate and the tab key.

You'll need to edit /lib/modules/2.6.16.../build/include/linux/input.h

Find the line, kernel_ulong_t, and the whole structure. Before the structure add...
#ifdef __KERNEL__

And after the structure add...
#endif

I'll discuss this next time. For now, see if you can use the putPixel routine to get some pixels to display on the screen. (Hint, put your code in the Render Scene section of the main loop.)

Source code can be found here...
http://docs.google.com/View?docid=dx44z4v_1hfh3jc&revision=_published

Makefile can be found here...
http://docs.google.com/View?docid=dx44z4v_2hpsnx7&revision=_published

Feel free to email me at DrRoyal@gmail.com


Dr. Dave 'Wheels' Royal

1 comment:

Anonymous said...

Genial post and this fill someone in on helped me alot in my college assignement. Gratefulness you as your information.