Linux for PlayStation 3

From Wikipedia, the free encyclopedia

Yellow Dog Linux booting up on a PS3
Yellow Dog Linux booting up on a PS3

The PlayStation 3 is capable of running Linux as well as other operating systems if installed on the console's hard drive. Many distributions are compatible with the console. Any Linux Operating System has access to 6 of the 7 Synergistic Processing Elements [1], Sony implements a hypervisor restricting access to the RSX. IBM provides an introduction to programming parallel applications on the PlayStation 3. [2]

Contents

[edit] History

Since the start of the 2000s, Sony has used the fact that the PlayStation 2 can run Linux in their marketing. They promoted the release of PS2 Linux Kit, it included a Linux-based operating system, a USB keyboard and mouse, a VGA adapter, a PlayStation 2 network adaptor (Ethernet only), and a 40 GB hard disk drive (HDD).

Originally Sony stated that Linux would be Pre-Installed in the PlayStation 3's hard drive, however the plan was scrapped for unknown reasons and current units do not include Linux pre-installed. However, Sony has included an option in the XMB menu to install other operating systems such as Linux.[3] Sony has been quoted in an interview stating, "It was fully intended that you, a PS3 owner, could play games, watch movies, view photos, listen to music, and run a full-featured Linux operating system that transforms your PS3 into a home computer."[4]

Soon after the PlayStation 3 launched, Sony released "Other OS" in a PlayStation 3 System Software firmware up-date that allowed booting into Linux from the hard drive or from a Live CD that the distributor's kernel would boot making it possible to run on the PlayStation 3.

[edit] Kernel

Linux supports PlayStation 3 since 2.6.21, so no patches or modifications are required for it to run. There is also a user friendly Linux add-on CD for the PS3 including support for Fedora 8 and other operating systems that already claim to install natively on the PS3. However, there is currently an issue with the latest kboot provided by kernel.org. Once the user has pressed enter to continue with the default action, the usb ports are de-registered on some systems. A work-around was created and is available on the PSUbuntu site[5].

[edit] Distributions

Debian[6], Fedora 8[7], Gentoo[8], OpenSuSE and Ubuntu[9] can be run on the PlayStation 3.[10] Yellow Dog Linux for the PlayStation 3 was first released for the PS3 in late 2006.[11]

[edit] Ubuntu

Versions of Ubuntu up to 7.10 have been ported to the PS3 platform[1]. The installer cannot run in Live mode when running in 480i or 480p video resolutions, but it offers an alternative installer (text-based) that will install a fully functional Ubuntu operating system. It is possible to have an external USB hard drive attached to the PlayStation 3 during install and choose to mount that as the home folder.

The current 8.04 (Hardy Heron) release of Ubuntu is incompatible with the PS3[12]. However, efforts are in place[13] to ensure the 8.04.1 release will work[12].

Ubuntu includes well-known GNU/Linux components such as Apache, PostgreSQL, and Python. The distribution also includes user applications, such as the Mozilla Firefox Web browser, OpenOffice.org, Evolution, Rhythmbox, Pidgin, and GIMP.

Ubuntu is a derivative of Debian and relies on the Apt Package Manager, using .deb format. Through successive versions of Ubuntu every 6 months, more hardware support is added frequently. As a result, Ubuntu supports accelerated graphics hardware out of the box, although some other hardware components will not function properly without modifications to the kernel.

[edit] Yellow Dog Linux

Yellow Dog Linux 5.0 was one of the first Linux distributions to run on Sony's PlayStation 3 platform. [14] It is designed specifically for HDTV so users with SDTV will have to use the commands 'installtext' and 'ydl480i' to be able to install and run.[2]

Yellow Dog Linux includes well-known GNU/Linux components such as GCC, as well as other free/open-source technologies such as Apache, PostgreSQL, Python, Webmin, and XFree86.[15] The distribution also includes user applications, such as the Mozilla Firefox Web browser, OpenOffice.org, Evolution, Rhythmbox, MPlayer, Pidgin, and GIMP.

Yellow Dog Linux is a derivative of Fedora and relies on the RPM package manager. Through successive versions of Yellow Dog Linux, Terra Soft Solutions has invested heavily in implementing support specifically for Apple and IBM hardware. As a result, Yellow Dog Linux supports accelerated graphics and audio hardware out of the box, although some other hardware components will not function properly without modifications to the kernel.

[edit] OpenSUSE

openSUSE logo

OpenSUSE 10.3 is the first version of OpenSUSE to run on the Sony PlayStation 3 platform. OpenSUSE is an open source version of SUSE Linux, which is owned by Novell.

It runs either KDE or GNOME by default, as selected by the user at install time, so it should be considered more resource-intensive than Yellow Dog Linux or other Enlightenment / XFCE based distributions.

PlayStation 3 specific installation instructions for OpenSUSE can be found here

[edit] RSX Homebrew

Linux on the PlayStation 3 allows for a huge range of homebrew programs to be developed and is entirely sanctioned by Sony. Although the Cell's performance is more than enough to handle most media requirements or render complex 3D graphics, it does lack the teraflops performance of a contemporary GPU's texture fetching hardware. For this reason many complex games aren't possible on the PlayStation 3 through Linux as access to hardware acceleration in the RSX is restricted by a hypervisor.

There have been developments in enabling access to the RSX through the Linux kernel and the X Window System[16]. Still in the early stages of development, the workaround allows Direct Memory Access (DMA) to the RSX memory to get images there.

If one wishes to use the RSX in Linux then it is recommended that one does not upgrade one's firmware to 2.10 or higher. This has the effect of restricting access to the RSX chip.

[edit] References

[edit] External links

Wikibooks
Wikibooks Linux Guide has a page on the topic of