Announcement

Collapse
No announcement yet.

PS2DEV + Ubuntu

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Also, I did not manage to build ps2-packer on my 64-bit Ubuntu (some linking issues). I'll check this again later.

    Comment


    • #17
      I'm not sure if this applies, but I was wondering if you guys are aware of the limitations with ExecFTP vs. the HOST feature in uLaunchELF? Maybe you could just use the source code for HOST instead? See post at psx-scene about the differences between ExecFTP vs. Host.
      Last edited by ps2dragon; 01-15-2009, 12:38:52 PM.

      Comment


      • #18
        Just want to add that my favorite IDE at the moment is NetBeans. I'm using it at work and I particularly like the editor and SVN support. I can really recommend it.

        http://www.netbeans.org/downloads/index.html

        Comment


        • #19
          Added section "How to update the PS2SDK on Ubuntu?".

          Comment


          • #20
            Originally posted by misfire View Post
            Also, I did not manage to build ps2-packer on my 64-bit Ubuntu (some linking issues). I'll check this again later.
            I finally managed to build ps2-packer on my 64-bit box. I had to force 32-bit compilation for this to work.

            Here is the patch.

            Comment


            • #21
              Updated the tutorial a bit for Ubuntu 9.04.

              Comment


              • #22
                BTW, here is a fresh 64-bit linux build of the PS2 toolchain:

                Code:
                $ wget http://s228914348.online.de/ps2/ps2dev-ubuntu-x86_64.tgz
                $ sudo tar -xzf ps2dev-ubuntu-x86_64.tgz -C /
                Edit your login script to add the paths. Start coding.

                Comment


                • #23
                  Small fix: the PS2DEV paths should be written to ~/.profile (for login shells) instead of ~/.bashrc (for non-login shells).
                  Using the latter would double the entries in PATH each time you start a new interactive shell.

                  Comment


                  • #24
                    Tip: Use this command if you want to know the SDK library versions used in a game ELF:

                    Code:
                    $ strings sces_517.19 | grep PsIIlib
                    PsIIlibcdvd 3000
                    PsIIlibpad  3020
                    PsIIlibmc   3020
                    PsIIlibgraph3000
                    PsIIlibscf  3000
                    PsIIlibkernl3000
                    This example is for Gran Turismo 4 PAL which uses libpad 3.0.2.0 etc.

                    Comment


                    • #25
                      That should prove quite useful in testing and development of Core Launcher, etc.
                      I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

                      Comment


                      • #26
                        Yeah, it should give you, for example, information about the signature of the scePadRead() function being used.

                        This command line actually mimics Sony's prver program. I guess it works on MinGW too (?).

                        (You could use ee-strings instead, but I think it makes no difference.)

                        Comment


                        • #27
                          Here's a bash script which claims to mimic Sony's prver.

                          I'll be adding nicer output soon.

                          prver-1.0b.tar.gz

                          Comment


                          • #28
                            Here's a quick guide on how to create a local mirror of the SVN repository at svn://svn.ps2dev.org/ps2.

                            Code:
                            $ svnadmin create ps2-mirror
                            $ echo '#!/bin/sh' > ps2-mirror/hooks/pre-revprop-change
                            $ chmod +x ps2-mirror/hooks/pre-revprop-change
                            $ svnsync init file://$(pwd)/ps2-mirror svn://svn.ps2dev.org/ps2
                            $ svnsync sync file://$(pwd)/ps2-mirror
                            Then you can, for example, checkout the ps2sdk sources from the mirrored repo:
                            Code:
                            $ svn co file://$(pwd)/ps2-mirror/trunk/ps2sdk
                            Run "svnsync sync" again to update changes from the online repo.


                            Update: I wrote a quick and dirty bash script (svnrip.sh) to do the job:
                            Code:
                            #!/bin/bash
                            # create a local mirror of an online SVN repository
                            # usage: ./svnrip.sh <absolute path to local repository> [source url]
                            # Copyright (C) 2009 misfire <[email protected]>
                            
                            repo="${1}"
                            source="${2}"
                            
                            if [ ! -d "${repo}" ]; then
                              mkdir -p "${repo}" || exit 1
                              svnadmin create "${repo}" || exit 1
                              echo '#!/bin/sh' > "${repo}/hooks/pre-revprop-change" || exit 1
                              chmod +x "${repo}/hooks/pre-revprop-change" || exit 1
                              svnsync init "file://${repo}" "${source}" || exit 1
                            fi
                            
                            svnsync sync "file://${repo}"
                            Now it's just a matter of time to mirror svn.ps2dev.org completely...
                            Last edited by misfire; 08-31-2009, 07:33:59 AM.

                            Comment


                            • #29
                              I mirrored and uploaded some SVN repos:
                              svn.ps2dev.org-ps2.tar.bz2
                              svn.ps2dev.org-ps3.tar.bz2
                              svn.ps2dev.org-psp.tar.bz2
                              svn.bountysource.com-artemis.tar.bz2

                              Comment


                              • #30
                                I'm trying to install hdl_dump, and I hear the ps2toolchain is a dependency, so here I am. I'm on Ubuntu 9.04, but I've been trying for hours to get the toolchain to install.

                                After what seems like a year and a half of verbose output from sudo CC=gcc-4.2 ./toolchain-sudo.sh, I get the following.

                                Any idea what's going wrong?

                                Thanks,
                                Jamie

                                Code:
                                ...
                                make -C iopdebug clean
                                make[3]: Entering directory `/home/jamie/Documents/AppInstallers/PS2/ps2toolchain_BER/build/ps2sdk/iop/debug/iopdebug'
                                rm -f -r obj/ bin/
                                make[3]: Leaving directory `/home/jamie/Documents/AppInstallers/PS2/ps2toolchain_BER/build/ps2sdk/iop/debug/iopdebug'
                                make -C iop_sbusdbg clean
                                make[3]: Entering directory `/home/jamie/Documents/AppInstallers/PS2/ps2toolchain_BER/build/ps2sdk/iop/debug/iop_sbusdbg'
                                Makefile:1: /usr/local/ps2dev/ps2sdk/Defs.make: No such file or directory
                                make[3]: *** No rule to make target `/usr/local/ps2dev/ps2sdk/Defs.make'.  Stop.
                                make[3]: Leaving directory `/home/jamie/Documents/AppInstallers/PS2/ps2toolchain_BER/build/ps2sdk/iop/debug/iop_sbusdbg'
                                make[2]: *** [clean-iop_sbusdbg] Error 2
                                make[2]: Leaving directory `/home/jamie/Documents/AppInstallers/PS2/ps2toolchain_BER/build/ps2sdk/iop/debug'
                                make[1]: *** [clean-debug] Error 2
                                make[1]: Leaving directory `/home/jamie/Documents/AppInstallers/PS2/ps2toolchain_BER/build/ps2sdk/iop'
                                make: *** [clean-iop] Error 2
                                ../scripts/005-ps2sdk.sh: Failed.
                                ERROR: Could not run the toolchain script.

                                Comment

                                Working...
                                X