+ Reply to Thread
Page 1 of 4 1234 LastLast
Results 1 to 10 of 37

Thread: PS2DEV + Ubuntu

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

    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 01:42:14 PM.

  2. #2
    Join Date
    Jul 1999
    Posts
    7,089

    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
    Join Date
    Jul 1999
    Posts
    7,089

    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
    Join Date
    Jul 1999
    Posts
    7,089

    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
    549

    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
    549

    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 07:59:13 AM.

  9. #9
    Join Date
    Jul 1999
    Posts
    7,089

    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
    549

    Default

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

+ Reply to Thread

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, 06:11:48 AM
  2. ps2dev Help im a Noob
    By Transformers in forum Last Generation & Retro Hacking
    Replies: 2
    Last Post: 11-07-2006, 11:14:57 AM
Collapse this box.

Visitors found this page by searching for:

ps2dev

ps2 toolchain tutorial

ps2dev ubuntu

ps2mkisofs

ps2dev svn

svn:svn.ps2dev.orgps2trunkubuntu ps2sdk ps2dev ps2linkPS2 Devps2dev sdkps2dev host: pcsx2ps2smap.irxdefs.make: no such file or directory ps2-packerubuntu ps2devbuild ps2sdk ubuntups2dev tutorialps2 dev ubuntuubuntu .irx ps2gshi ps2 devsdk ps2 ubuntucompile opl under ubuntups2dev ps2sdkPS2.debsdk ps2 ubuntu 11.10ps2packer for x64ps2toolchain scripts:descargar ps2devps2 dev installpsIIlibcdvdPs2dev.orgps2trunkps2sdk ubuntups2 sdk compile006-ps2client.sh faliedps2sdk svnPsIIlib ps2hdl_dump debps2mkisofs ps2svninstalar ps2dev en ubuntu 11.10ps2sdk ubuntu requirmentsps2 gcc ubuntups2dev make isoopl in ubuntu ps2PS2SDK POUR COMPILER SOURCE OPLps2packer defssetup ps2dev environmentpsiilibgraph3000lubuntu 11.10 ps2toolchainps2toolchain apt-get neededsvn: svn.ps2dev.orgps2trunk .irx ps2ps2dev tutorialsinstall latest ps2sdk ubuntups2devenvironment downloadubuntu install ps2devps2sdk pour compile opl 0.8ps2 packer defsee-gcc for ubuntuinstall ubuntu ps2how to PS2Dev EnvironmentpspsdkPS2Dev environmentdefs.mak no such file or directorytutorial ps2devmakefile:3: defs.make: no such file or directory oplmakefile:3: defs.make: no such file or directory openps2laoderlibz.a ps2-packerps2dev descargarfig2devunbutu ps2devubuntu ps2 sdkPS2DevEnvironment Kit downloadnetbeans pspdevps2 toolchaintoolchain ps2 download ubuntups2dev toolchain linuxbajar ps2devsvn.ps2dev.orgps2trunkps2 sdkps2dev sdk downloadps2link 1.24build irx ps2PS2DevEnvironment Kit (PS2Dev.org)PS2DevEnvironment Kit (PS2Dev.org) downloadPS2DevEnvironment Kit PS2Dev.org downloadps2toolchain isops2smap.irx free downloadps2dev en ubuntusvn.ps2dev.org svn ps2sdksvn ps2dev checkoutps2dev on fedora core 1install a ps2dev environment without an operating systemee-gcc ps2 ubuntugoogle nlhow to install ps2-packerupdate ps2sdk toolchainubuntu opl compilerinstalacion ps2dev ubuntuopl 0.8 and ubuntu configurps2dev sdk setup on ubuntuhow to modify .irx ps2ps2 ubuntu devps2dev.orgs SVNps2 debsvn.ps2dev.org mirrorubuntu forgets login script exporttrunkps2sdkubuntu ps2sdkps2dev.orgps2 dev mirrorsvn ps2devrun sony prverps2dev outsvn irx ps2svn.ps2devbaixar ps2devPS2 SDK UBUNTUbaixar ps2dev installps2link.isops2sdk guideps2smap.irx descargasPSPDev for 64 bitsbuilding PS2 toolchains in ubuntups2toolchain mirror006-ps2client.sh: faliedps2dev trunkbuilding ps2dev linuxps2 packerdev ps2 letöltésps2link ubuntucode source opl 0.8ubuntu psp sdkpspdev ubuntups2toolchain 64bitsPS2SDK OPLps2 dev kit downloadubuntu 11.10 install ps2 toolchainps2 dev 10 dltuto pour compiler source opl 0.8 avec ps2sdkps2link 1.24bps2 svn codeps2-packer x64 bitps2-packer x64svn ps2 dev trunktutorial instal dev ps2ps2link iso

Posting Permissions

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