Sponsored Links

Sponsored Links

Results 1 to 1 of 1



  1. #1
    Forum Moderator PS3 News's Avatar
    Join Date
    Apr 2005
    Posts
    27,485
    Sponsored Links

    PSL1GHT Setup on Windows 8 (Cygwin or MinGW) Guide

    Sponsored Links
    PSL1GHT Setup on Windows 8 (Cygwin or MinGW) Guide by CaptainCPS-X



    INTRODUCTION

    Welcome to my new guide. Here I will explain as clear and direct as possible how to build you own PSL1GHT environment on Windows 8 (x86/x64).

    Please be aware that this guides are using PSL1GHT v2 and latest PS3 Toolchain, so any homebrew that was specifically adjusted for older PSL1GHT v1 will not compile properly, for example "Showtime Media Center".

    I will probably do a pre-compiled PSL1GHT v1 for use with those kind of homebrew, so stay tuned for future updates.

    By following this guide, you accept and agree with the following:

    1 - I am in no way responsible for any damage caused to your operative system, files and/or data.
    2 - You accept full responsibility of anything you do on your computer.
    3 - You understand the contents and objective of this guide completely.

    THANKS TO (In no specific order)

    - Graf_chokolo.
    - Everyone involved in PSL1GHT development.
    - Hermes, Estwald, and others involved in Iris Manager development.
    - aldostools for you awesome ps3tools, they are very useful.
    - The guys responsible for PSL1GHT Wiki and all the contributors.
    - Everyone else that has contributed to the PS3 Scene in some way.

    GENERAL REQUIREMENTS

    - Windows 8 (x86/x64) (logged user account must have Admin permissions).
    - Basic knowledge of Windows 8 (Copy, Paste, Extract ZIP/RAR, etc...).
    - 3GB Free Hard Disk Space.
    - Internet connection
    - Motivation!

    CYGWIN GUIDE (ADVANCED)

    CYGWIN ENVIRONMENT REQUIREMENTS

    - Cygwin x86 Setup - [[Register or Login to view links]] [700KB] (Regular "setup-x86.exe" from official site)
    - My updated "PS3 Toolchain" files - [[Register or Login to view links]] [~2KB] [R2]
    - Portlibs updates from Estwald's PSDK3 v2 (without binaries) - [[Register or Login to view links]] [~11.3MB]

    CYGWIN ENVIRONMENT SETUP

    Step 1 - Install Cygwin x86 (Easier / Updated!)

    1 - Run "setup-x86.exe" and press "Next"
    2 - Make sure to select "Install from Internet" (Default option)



    3 - Select your Desktop for the package, or any place you like



    4 - Select the Root Directory for Cygwin (default is "C:\cygwin").



    5 - Continue until this window:



    6 - Now you will write "wget" on the top-left search box, and from the Web category click on "Skip" to select/switch its installation, it should become "1.13.4-1".




    7 - On next window confirm and continue setup normally without changing any other option.
    8 - On your Desktop there should be a new shortcut for "Cygwin Terminal"
    8a - If you don't end up with a shortcut on the Desktop don't worry, do the following to create a shortcut:

    1 - Go to your Desktop and right-click to open up the shell menu.
    2 - Select "New->Shortcut"
    3 - On the new window, write on the text-box "c:\cygwin\bin\mintty.exe -" (assuming you installed it on the default location) and press "Next".
    4 - Write the title for the shortcut "Cygwin Terminal" and you will be done!
    5 - Now, using Windows Explorer you must run "C:\cygwin\Cygwin.bat" (assuming you used the default directory) at least once, so Cygwin can create some initial configuration files and such, or else you will have issues.

    Step 2 - Installing all required Cygwin packages

    1 - Run "Cygwin Terminal" and carefully copy and paste the following:

    Code:
    wget --no-check-certificate https://raw.github.com/bepix/apt-cyg/master/apt-cyg
    chmod +x apt-cyg
    mv apt-cyg /usr/bin
    apt-cyg install autoconf automake bison flex texinfo libncurses-devel gcc4 make libelf0-devel python zlib-devel libtool libgmp-devel openssl-devel pkg-config git subversion mercurial patch bzip2 mc mpfr
    cd ./
    Note: Make sure all command lines are executed, if you end up with last one hanging, press enter. Better yet, I recommend doing each line one-by-one.

    Step 3 - Creating new Environment Variables and Directories

    1 - Run "Cygwin Terminal" and carefully copy and paste the following:

    Code:
    echo 'mount -c /' >> ~/.bash_profile
    echo 'mount -m > /etc/fstab' >> ~/.bash_profile
    echo 'export PS3SRC=/usr/src/ps3dev' >> ~/.bash_profile
    echo 'export PS3DEV=/usr/local/ps3dev' >> ~/.bash_profile
    echo 'export PSL1GHT=$PS3DEV/psl1ght' >> ~/.bash_profile
    echo 'export PATH="$PATH:$PS3DEV/bin:$PS3DEV/ppu/bin:$PS3DEV/spu/bin"' >> ~/.bash_profile
    . ~/.bash_profile
    cd ./
    Note: Make sure all command lines are executed, if you end up with last one hanging, press enter. Better yet, I recommend doing each line one-by-one.

    * Info about the previous commands:

    This will change the cygdrive prefix, so you can access a path without having to write "/cygdrive/c/mydir/..." just "/c/mydir/..." and add the following new Environment Variables to Cygwin:

    - PS3SRC
    - PS3DEV
    - PSL1GHT
    - PATH (updated with binaries or "bin" directories)

    2 - Copy and paste the following to create the needed directories:

    Code:
    mkdir $PS3DEV
    mkdir $PS3SRC
    chown $USER $PS3DEV
    chown $USER $PS3SRC
    cd ./
    Note: Make sure all command lines are executed, if you end up with last one hanging, press enter. Better yet, I recommend doing each line one-by-one.

    Step 4 - Getting PS3 Toolchain from Git and updating with my changes:

    1 - Do this on "Cygwin Terminal":

    Code:
    git clone https://github.com/ps3dev/ps3toolchain.git $PS3SRC
    Note: If it gives you the following error, just try again, it happens sometimes.

    Code:
    Cloning into '/usr/src/ps3dev'...
          1 [main] git-remote-https 1324 child_info_fork::abort: G:\cygwin\bin\cygroken-18.dll: Loaded to different address: parent(0x330000) != child(0x2B0000)
    error: cannot fork() for fetch-pack: Resource temporarily unavailable
    2 - Extract "capcpsx_ps3toolchain_update_R2.rar" somewhere on your PC.
    3 - Using Windows Explorer, go to "C:\cygwin\usr\src\" (assuming you are using the default location).
    4 - Copy "ps3dev" directory from the extracted directory and paste it in "C:\cygwin\usr\src" (accept the overwrite prompt).

    Example Picture:



    Step 5 - Build everything (this will take some time, so please be patient)

    1 - Do this on "Cygwin Terminal":

    Code:
    cd $PS3SRC
    ./toolchain.sh
    cd ./
    Note: Make sure all command lines are executed, if you end up with last one hanging, press enter. Better yet, I recommend doing each line one-by-one.

    Step 6 - Update "portlibs" with Estwald's PSDK3 v2 ones:

    1 - Extract the contents from "portlibs_update.rar" somewhere on your PC.
    2 - Using Windows Explorer, go to "C:\cygwin\usr\local\ps3dev\portlibs\ppu" (assuming you are using the default location).
    3 - Copy all directories from the extracted directory and paste it in "C:\cygwin\usr\local\ps3dev\portlibs\ppu" (accept all the overwrite prompts).

    TESTING PSL1GHT ON CYGWIN ENVIRONMENT

    We will use latest Iris Manager from Estwald Git for the test.

    1 - Run "Cygwin Terminal" and do this:

    Code:
    cd $PS3DEV
    mkdir irismanager-4-x
    chown $USER irismanager-4-x
    git clone https://github.com/Estwald/irismanager-4-x.git irismanager-4-x
    cd irismanager-4-x
    make
    cd ./
    Note: Make sure all command lines are executed, if you end up with last one hanging, press enter. Better yet, I recommend doing each line one-by-one.

    2 - After running those commands, Iris Manager should be compiled without any issues.

    MINGW GUIDE (EASY)

    MINGW ENVIRONMENT REQUIREMENTS

    - PSDK3 v2 from Estwald's Git - [[Register or Login to view links]] [~322MB]

    MINGW ENVIRONMENT SETUP

    Step 1 - Preparing the the PSDK3 v2 directory

    1 - Extract "PSDK3v2-master.zip" to "C:\PSDK3v2"
    2 - Go to "C:\PSDK3v2" and extract "MinGW.7z" and "ps3dev.7z" in there.
    3 - Make sure that everything looks like this:



    Step 2 - Creating a new "MSYS Terminal" shortcut on your Desktop

    1 - Go to your Desktop and right-click to open the shell menu.
    2 - Select "New->Shortcut"
    3 - On the next window, write this "C:\PSDK3v2\MinGW\msys\1.0\msys.bat -norxvt" and press "Next".
    4 - Now write the title "MSYS Terminal"
    5 - Now, right-click the new shortcut you just created and select "Properties"
    6 - Change "Start in" text to "C:\PSDK3v2\MinGW\msys\1.0\bin"
    7 - Make sure it looks like this:



    Step 3 - If you installed PSDK3 v2 in a different place than "C:\PSDK3v2\" check this:

    1 - Using Windows Explorer go to where you installed PSDK3 v2 (Ex. "X:\PSDK3v2")
    2 - Navigate to "X:\PSDK3v2\MinGW\msys\1.0\etc" and open "profile" with a text editor.
    3 - Go to the bottom of the text-based file (profile), and change the following line with the corresponding drive, in this example "X":

    Code:
    export PS3SDK="/c/PSDK3v2"
    to

    Code:
    export PS3SDK="/x/PSDK3v2"
    4 - Save the file and you're done!

    TESTING PSL1GHT ON MINGW / MSYS ENVIRONMENT

    1 - Run "MSYS Terminal" and do the following:

    Code:
    cd $PS3SDK
    wget --no-check-certificate -O irismanager-4-x-master.zip https://github.com/Estwald/irismanager-4-x/archive/master.zip
    unzip irismanager-4-x-master.zip
    cd irismanager-4-x-master
    make npdrm
    cd ./
    Note: Make sure all command lines are executed, if you end up with last one hanging, press enter. Better yet, I recommend doing each line one-by-one.

    2 - After running those commands, Iris Manager should be compiled without any issues.

    SeeYa!

    Finally, here is a precompiled PS3Dev environment by zecoxao: [Register or Login to view links]
    Attached Images<br><br> Attached Images


 

Sponsored Links

Affiliates - Contact Us - PS3 Downloads - Privacy Statement - Site Rules - Top - © 2014 PlayStation 3 News