Page 1 of 4 1234 LastLast
Results 1 to 10 of 38

Thread: PS2DEV + Ubuntu

  1. #1
    Join Date
    Sep 2006
    Location
    Germany
    Posts
    613

    Lightbulb PS2DEV + Ubuntu

    Here's a tutorial which describes how I set up my dev environment under my favorite OS - Ubuntu.

    Code:
    Ubuntu PS2DEV Tutorials
    
    Last update: Jul 2 2009
    
    Tested with: Ubuntu 9.04 (Jaunty Jackalope)
    
    
    How to set up a PS2DEV environment on Ubuntu?
    
    1. Install the packages "subversion" and "gcc-4.2":
    $ sudo apt-get install subversion gcc-4.2
    
    2. Download the ps2toolchain script:
    $ svn export svn://svn.ps2dev.org/ps2/trunk/ps2toolchain
    
    3. Run the script to download and build the toolchain:
    $ sudo CC=gcc-4.2 ./toolchain-sudo.sh
    
    4. Edit your login script ~/.profile to add the following:
    export PS2DEV=/usr/local/ps2dev
    export PATH=$PATH:$PS2DEV/bin
    export PATH=$PATH:$PS2DEV/ee/bin
    export PATH=$PATH:$PS2DEV/iop/bin
    export PATH=$PATH:$PS2DEV/dvp/bin
    export PS2SDK=$PS2DEV/ps2sdk
    export PATH=$PATH:$PS2SDK/bin
    
    5. Build one of the PS2SDK samples to test your environment:
    $ cd /usr/local/ps2dev/ps2sdk/
    $ sudo chmod -R a+w samples/
    $ cd samples/teapot/
    $ make
    
    
    How to update the PS2SDK on Ubuntu?
    
    After setting up a working PS2DEV environment, it's advisable to update the
    PS2SDK every once in a while.
    
    1. Check out the current sources:
    $ svn co svn://svn.ps2dev.org/ps2/trunk/ps2sdk
    
    If you already have a working copy, simply update it:
    $ svn up
    
    2. Build the SDK:
    $ cd ps2sdk/
    $ make clean
    $ make
    
    3. Install it:
    $ sudo -s
    # make install
    # exit
    
    Happy development!
    Another tutorial on how to build ps2link:

    Code:
    How to build ps2link on Ubuntu?
    
    In order to compile ps2link properly, we'll first need to build ps2smap.irx and
    ps2-packer.
    
      (1) ps2smap.irx
    
    Download and build the sources:
    $ svn export svn://svn.ps2dev.org/ps2/trunk/ps2eth
    $ cd ps2eth/
    $ make
    
    Install ps2smap.irx into PS2DEV environment:
    $ sudo mkdir -p /usr/local/ps2dev/ps2eth/smap
    $ sudo cp smap/ps2smap.irx /usr/local/ps2dev/ps2eth/smap/
    
      (2) ps2-packer
    
    Install the required package libucl-dev:
    $ sudo apt-get install libucl-dev
    
    Download and build the sources:
    $ svn export svn://svn.ps2dev.org/ps2/trunk/ps2-packer
    $ cd ps2-packer/
    $ make
    
    Install ps2-packer:
    $ sudo -s # 'sudo make install' won't work
    # make install
    # exit
    
      (3) ps2link
    
    Finally, simply download and compile the ps2link sources:
    $ svn export svn://svn.ps2dev.org/ps2/trunk/ps2link
    $ cd ps2link/
    $ make
    
    Notes:
    "make dist" creates a compressed archive from the binary files (ELF + IRX).
    "make release" is broken.
    Last edited by misfire; 07-02-2009 at 12:42:14 PM.

  2. #2

    Default

    That, and I'd recommend forcing Ubuntu to allow you to use the root account. Otherwise, you'll constantly be confronted with having to use sudo, then type the sudo password...ugh. It reminds me of Vista

    Otherwise, Ubuntu is a great place to run your SDK.
    I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

  3. #3
    Join Date
    Aug 2008
    Posts
    6

    Default

    It is safer to type 'sudo -s' and get a root shell, then you won't have to type in the password anymore.

  4. #4

    Default

    Yeah, but you'd have to do so each time you enter the shell, correct?
    I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

  5. #5
    Join Date
    Aug 2008
    Posts
    6

    Default

    Yes, but how often do you open a shell? And just how lazy are you?

  6. #6

    Default

    Pretty lazy, heh. Those extra steps add up.
    I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

  7. #7
    Join Date
    Sep 2006
    Location
    Germany
    Posts
    613

    Default

    I like the concept of sudo. With it, I don't have to remember an extra password and it enables a better security policy.

    Also, the password is stored by default for 15 minutes, which is acceptable even for very lazy people.

    More about the pros and cons of sudo can be found here:
    https://help.ubuntu.com/community/RootSudo

  8. #8
    Join Date
    Sep 2006
    Location
    Germany
    Posts
    613

    Default

    I've added a second tutorial to the first post. It's about building ps2link under Ubuntu.

    By accident, I discovered that the "release" target in ps2link's Makefile is broken. It is supposed to create an ISO with all ps2link files. For this it uses ps2mkisofs which seems to be a patched version of mkisofs (?). Maybe I can come up with a patch for the Makefile.
    Last edited by misfire; 08-21-2008 at 06:59:13 AM.

  9. #9

    Default

    Cool. Nice tutorials. I should link to them from PS2Dev (Oobles was kind enough to give me administrative update capabilities, so I can update the PS2 section a bit).
    I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

  10. #10
    Join Date
    Sep 2006
    Location
    Germany
    Posts
    613

    Default

    I recognized that some documentation can be really helpful as I tend to forget things over time.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Installing ps2dev for Fedora
    By Tonic in forum Research & Development
    Replies: 3
    Last Post: 08-07-2009, 05:11:48 AM
  2. ps2dev Help im a Noob
    By Transformers in forum Retro Hacking
    Replies: 2
    Last Post: 11-07-2006, 10:14:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •