Skip to main content

developerWorks >  Power Architecture  >  Forums  >  Cell Broadband Engine Architecture forum  >  developerWorks

Wi-fi, vnc, Fedora Core 6, SDK 2.1, on PS3    Point your RSS reader here for a feed of the latest messages in this thread


Tags for this thread: 

     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 10 - Pages: 1 - Last Post: Sep 16, 2007 9:17 PM Last Post By: larry.r.moore
larry.r.moore

Posts: 22
Registered: Aug 25, 2005 09:04:54 AM
Wi-fi, vnc, Fedora Core 6, SDK 2.1, on PS3
Posted: May 22, 2007 02:20:08 PM
Click to report abuse...   Click to reply to this thread Reply
A new Cell "add-on" CD image,

ftp://ftp.infradead.org/pub/Sony-PS3/CELL-Linux-CL_20070425-ADDON.iso

has been released that has a number of improvements over the earlier version. First, it has the boot loader /PS3/otheros/otheros.bld on the CD where it can be located and installed by the Sony OS. It is no longer necessary to download it separately. Second, the CD is based on Fedora Core 6 and assumes Cell SDK 2.1. And, third, important to many of us, the 2.6.16 kernel (with Cell patches applied) has support for Wi-Fi. In addition, the kernel, kernel headers, and kexec tools have been excluded from the update packages list to avoid an accidental overwrite of the patched kernel. A Linux PS3 kernel 2.6.21-rc7 snapshot (without wi-fi) is installed as an alternate to the default kernel for anyone needing it.

Ideally, the PS3 should drive a display with HDMI input, HDCP, and 1900x1080 or so native resolution. My PS3, however, is driving analog, component inputs to an older HD Ready television set that can only sync to 480i, 480p or 1080i signals. And while the set may scan 1080 lines, the native resolution is so poor that text is mostly unreadable. I learned early the trick of using Ctrl-Alt-F1 to switch to a text mode and later, Ctrl-Alt-F7 to switch back to the GUI screen. If you are at the kboot login GUI, you need to use Ctrl-Alt-F3. Fortunately, this new add-on CD defaults to 480i that will display readable text on most screens. YDL, if I remember, defaulted to 720p which was a problem for me.

Not very interested in games, I partitioned my hard disk to give 50GB to the Otheros, Linux. After installing the bootloader and rebooting to the kboot: prompt, I issued the "install-fs" command and, when asked, opted for a full install of Fedora Core 6. The installation took about four hours but completed successfully. I understand that it may fail if the Linux partition is only 10GB, however. In these cases, a minimal installation can be used, followed by selective installation of desired software. This process has been detailed in other writings such as can be found at

http://ps3coderz.com/

by Nicholas Blachford. I should mention here that ps3coderz has an excellent, up to date collection of links specific to the PS3 where I learned of this new add-on CD release.

On completion of the install, you are prompted to insert the add-on CD. The installation of Cell and PS3-specific kernels and software is then completed automatically. A reboot will then display two big penguins for the dual-core PPU and six little penguins for the available spu's.

Up to this point, I used a USB wireless keyboard directly attached to the PS3 for data entry. After the full installation, however, the SSH daemon became available for remote communications from my Windows PC. I installed "Tunnelier" software

http://www.bitvise.com/tunnelier

on my PC and was able to get an xterm display and log into the PS3 remotely. This package also provides a convenient ftp client for transfer of files between my PC and PS3. It communicates over port 22 on the PS3 and does not interfere with a remote desktop.

From a command line, locally or remotely, I could now configure my system. You must use the command line editor, vi (short for view) to modify files. As an engineering VP for thirty years, I did not often get into the details of programming. But vi was one of those fundamental tools we all needed during the early days of Unix/Linux. If you are interested you can learn more from a "VI FAST REFERENCE GUIDE" by Daniel Romike.

http://www.cat.pdx.edu/unix/vi-fast-reference-guide.html

My initial communications between PC and PS3 were over wired Ethernet. My PS3 is under my TV in my living room, and my PC in my den about 40 feet away. During the night I could string a 50 foot CAT5E cable across the floor to make the connection. It was inconvenient, however, to have to coil it up before morning to prevent the family from tripping over it. Wi-fi was essential for me.

Wi-fi settings are placed in the file: /etc/sysconfig/network-scripts/ifcfg-eth0. This file shows several examples and I was able to get on air after a couple of tries. I did a simple configuration without security settings by adding the following lines to the file:

#simple, no security
IWPRIV="set_alg 0"
ESSID="APName"

The important information you need is the access point name (APName). Wifi-radar can be installed from the add-on CD if you want to automatically scan for access points on boot. However, the network manager apparently cannot be used to configure the wi-fi.

My first configuration for vnc was awkward to use. I would turn on the PS3, wait for it to boot to the login screen, and then login with the USB keyboard. Then, at my PC I would start the vncviewer (client)

http://www.realvnc.com/products/free/4.1/download.html

to connect with the X11 session on port :0 (:5900) of the PS3. Once I had activated wi-fi, I noticed that I would frequently lose my connection. The only way to restore it was to reboot and repeat the login procedure.

Then, in these forums, "perif" on May 11 offered a /etc/X11/xorg.conf (on a fedora core 6) that works like charm! On power up, my PS3 boots unattended to the login screen. I dont have to log on or even turn on the television. At my PC I run the vnc viewer client and am presented with the same login screen. I can choose language, session, and login as any user, including root. I can change users, reboot or power down, all from my PC. The only thing I cannot do is power on the PS3. And no wires! I have been running a week now with no loss of connection.

The video modes of the PS3/Linux are still a mystery to me. What I found workable for me was to specify the initial video mode in the /etc/kboot.conf file as follows:

Linux='/boot/vmlinux-2.6.16 initrd=/boot/initrd.img-2.6.16 video=ps3fb:mode:4'

This sets the login screen to mode 4, 1080i, and gives me a 1900 by 1080 resolution at my PC. My display is limited to 1280 by 1024 but scroll bars give me access to the whole screen.

In addition, I modified my xorg.conf file to add alternate screen resolutions as follows:

SubSection "Display"
Depth 24
FbBPP 32
Modes "1920x1200" "1920x1080" "1280x1024" "1280x768" "1280x720" "720x576" "720x480"
EndSubSection

You may want to add modes for other color depths as shown by YDL HOWTOs.

http://www.terrasoftsolutions.com/support/solutions/ydl_5.0/video-config.shtml

The available screen resolutions can then be selected from the graphical desktop. Many don't work for me, however, but may work if you have Linux on your PC.

Even with a full install of Fedora 6, some additional software packages need to be installed for the Cell SDK. Most of them will be installed with:

yum install --enablerepo=extras freeglut freeglut-devel mesa-libGLU-devel mesa-libGL-devel libX11-devel libXmu-devel libXext-devel

If I remember, I was prompted for one more. After installing it, the installation and build of libraries and samples for the SDK 2.1 took some time but went smoothly.

KDE seems to be more responsive than Gnome over the remote connection. It may be possible to speed it up by configuring vnc to limit color depth to 8 or 16 bits. With a full install, however, the software add/delete/update seems to take forever. I did manage to delete most of the language support since my Zulu is limited.

I have since been able to enter, compile and execute one of the tutorial samples that uses one of the little penguins. But now I would like to get Eclipse working. Out of the Fedora 6 box, it simply dies.

Nicholas Blachf...

Posts: 40
Registered: Aug 25, 2005 01:25:10 PM
Re: Wi-fi, vnc, Fedora Core 6, SDK 2.1, on PS3
Posted: May 22, 2007 09:53:59 PM   in response to: larry.r.moore in response to: larry.r.moore's post
Click to report abuse...   Click to reply to this thread Reply
>I have since been able to enter, compile and execute one of the tutorial samples that uses one
>of the little penguins. But now I would like to get Eclipse working. Out of the Fedora 6 box,
>it simply dies.

Thanks you for your kind words :-)

In answer to your problem I believe the answer can be found by looking at the docs on the SDK CD (it's in one of the PDFs). The default version of Eclipse in FC6 won't work so it includes an alternate version with instructions. Can't say I've tried it myself yet but I'd imagine it should work.


--
www.ps3coderz.com

Nicolas Morey-C...

Posts: 11
Registered: Apr 01, 2007 10:01:27 AM
Re: Wi-fi, vnc, Fedora Core 6, SDK 2.1, on PS3
Posted: May 24, 2007 05:15:16 PM   in response to: larry.r.moore in response to: larry.r.moore's post
Click to report abuse...   Click to reply to this thread Reply
does it have sound support?
it was not working on my previous install (except byrecompiling a really unstable kernel ^^)
larry.r.moore

Posts: 22
Registered: Aug 25, 2005 09:04:54 AM
Re: Wi-fi, vnc, Fedora Core 6, SDK 2.1, on PS3
Posted: May 29, 2007 05:05:30 PM   in response to: Nicolas Morey-Chaisemartin in response to: Nicolas Morey-Chaisemartin's post
Click to report abuse...   Click to reply to this thread Reply
The release notes for the add-on CD indicate several fixes to the Linux 2.6.16 kernel addressing ALSA (Advanced Linux Sound Architecture). However, I was unable to play an audio CD using KDE applications running on the PS3.
larry.r.moore

Posts: 22
Registered: Aug 25, 2005 09:04:54 AM
Re: Wi-fi, vnc, Fedora Core 6, SDK 2.1, on PS3
Posted: Jun 06, 2007 09:41:27 AM   in response to: Nicolas Morey-Chaisemartin in response to: Nicolas Morey-Chaisemartin's post
Click to report abuse...   Click to reply to this thread Reply
The alsa sound software seems to be installed properly. Using lsmod, I was able to establish that the snd* modules associated with alsa were installed. Also, I was able to play sounds (through my television speakers) using the command line:

aplay filename.wav

Still, I am unable to play an audio CD under KDE using KsCD. The software seems to recognize the number and length of the sound tracks but the progress timer does not increment and no sound is produced. The CD does play properly using the PS3 OS.

As a matter of interest, I find that configuring KsCD to "Use direct digital playback" causes the system to hang.
Vitaly Vidmirov

Posts: 34
Registered: Sep 02, 2005 05:19:24 PM
Re: Wi-fi, vnc, Fedora Core 6, SDK 2.1, on PS3
Posted: Jun 06, 2007 06:39:01 PM   in response to: larry.r.moore in response to: larry.r.moore's post
Click to report abuse...   Click to reply to this thread Reply
>> But now I would like to get Eclipse working. Out of the Fedora 6 box, it simply dies.

Eclipse is not the best choice for PS3.
With KDE/Gnome Desktop you don't have enough memory to run Eclipse.
The better thing you can try is to install Linux+SDK in VM
(if you don't want to switch from Windows)
On PS3 side use command line+framebuffer only.

---
cellperformance.com cellrb.blogspot.com
larry.r.moore

Posts: 22
Registered: Aug 25, 2005 09:04:54 AM
Re: Wi-fi, vnc, Fedora Core 6, SDK 2.1, on PS3
Posted: Jul 13, 2007 02:52:13 PM   in response to: larry.r.moore in response to: larry.r.moore's post
Click to report abuse...   Click to reply to this thread Reply
Another Cell "add-on" CD image,

ftp://ftp.infradead.org/pub/Sony-PS3/CELL-Linux-CL_20070516-ADDON.iso

has been released that, in addition to the previous changes, will recognize the Fedora 7 installation DVD. It looks for the yaboot.conf file and converts it to the kboot.conf format. Also, according to the change notes, you can use anaconda for installation.
BobMcGwier

Posts: 5
Registered: Sep 12, 2007 12:17:27 AM
Re: Wi-fi, vnc, Fedora Core 6, SDK 2.1, on PS3
Posted: Sep 12, 2007 12:19:32 AM   in response to: larry.r.moore in response to: larry.r.moore's post
Click to report abuse...   Click to reply to this thread Reply
My experience has been that anything that calls /dev/dsp (oss) does not work. Anything that uses alsa and talks to hw:0 works. I tested this theory repeatedly with portaudio v19 and it was 100%.

Bob
larry.r.moore

Posts: 22
Registered: Aug 25, 2005 09:04:54 AM
Re: Wi-fi, vnc, Fedora Core 6, SDK 2.1, on PS3
Posted: Sep 12, 2007 03:49:41 PM   in response to: BobMcGwier in response to: BobMcGwier's post
Click to report abuse...   Click to reply to this thread Reply
Thank you for that input. I never did get the audio to work on Core 6.

With the announcement that SDK 3.0 has been tested on Fedora 7, however, I have recently upgraded to 7. I can report that CD music can be played on the PS3 with default Fedora 7 settings.
BobMcGwier

Posts: 5
Registered: Sep 12, 2007 12:17:27 AM
Re: Wi-fi, vnc, Fedora Core 6, SDK 2.1, on PS3
Posted: Sep 16, 2007 08:48:56 PM   in response to: larry.r.moore in response to: larry.r.moore's post
Click to report abuse...   Click to reply to this thread Reply
I thank you for the good news on FC7. I am installing it now. But I am viewing the announcement on the release of SDK 3.0 with some consternation. It does not appear to be free for download. It does not appear to be useful for GPL projects. This will be an utter disaster for the Gnu Radio project and all of its many adherents in many places in the U.S. government, universities, and sdr hobbyists who want to use and build a really nice software defined radio and cognitive radio engine using the PS3. We must be able to use SDK 3.0 the way we used SDK 2.X. I hope someone can shed some light on what appears to me to be very counterproductive new policy.

Bob McGwier
larry.r.moore

Posts: 22
Registered: Aug 25, 2005 09:04:54 AM
Re: Wi-fi, vnc, Fedora Core 6, SDK 2.1, on PS3
Posted: Sep 16, 2007 09:17:42 PM   in response to: BobMcGwier in response to: BobMcGwier's post
Click to report abuse...   Click to reply to this thread Reply
The SDK 3.0 release notice
http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?forum=739&thread=175618&cat=46
explains everything. I have already downloaded and installed the new SDK. It is supported to the same extent of earlier releases. It will be refreshed on October 19th with the final release including a version "targeted for RHEL 5.1 production environments." I assume that there will be a license fee associated with the latter production release.
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums