CaptainCPS-X
Developer
[Guide] PSL1GHT Setup on Windows 10 (Cygwin or MinGW) (2017 Edition)
INTRODUCTION
Welcome to my 2017 updated guide. Here I will explain as clear and direct as possible how to build you own PSL1GHT environment on Windows 10. It should still work fine in previous versions of Windows.
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".
Make sure not to have conflicting Cygwin / MinGW installation paths in your system "Environment Variables" (PATH)
NOTES / UPDATES
Please, always check this section for any update regarding the guides.
[#2][August 11, 2017] - Added fix for Python when making PKG files.
[#1][August 7, 2017] - Updated CYGWIN guide for Windows 10, now using my own Git repositories as well.
IMPORTANT NOTICE (PLEASE READ):
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.
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 7/8/10 (x86/x64) (logged user account should have Admin permissions).
- Basic knowledge of Windows 7/8/10 (Copy, Paste, Extract ZIP/RAR, etc...).
- 4-8GB Free Hard Disk Space.
- Internet connection
- Motivation!

CYGWIN GUIDE (ADVANCED)
-
CYGWIN ENVIRONMENT REQUIREMENTS
- Cygwin x86 Setup - [download] (Regular "setup-x86.exe" from official site)
-
CYGWIN ENVIRONMENT SETUP
Step 1 - Install Cygwin x86
1 - Run "setup-x86.exe" and press "Next"
2 - Make sure to select "Install from Internet" (Default option)
3 - Select "C:\cygwin_local_package" 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.xx.x-x" (use the latest).
7 - On next window confirm and continue setup normally without changing any other option.
NOTE: You will probably get some warnings at the end of the installation log, it is normal, and that's why we will restart at "step 9" and run the rebaseall command. If you don't get warnings, even better.
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:
9 - Restart Windows (not logoff, full restart).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 -i /Cygwin-Terminal.ico -" (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.
10 - Open "cmd" prompt as administrator (in the start menu search box write "cmd", right-click "cmd" and select "Run as administrator")
11 - Write "c:\cygwin\bin\ash /usr/bin/rebaseall" and press "Enter", when it finish close the window.
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.githubusercontent.com/CaptainCPS/apt-cyg/master/apt-cyg chmod +x apt-cyg mv apt-cyg /usr/bin apt-cyg update apt-cyg install autoconf automake bison flex texinfo libncurses-devel gcc4 gcc-g++ make libelf0-devel python python2-devel 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 my Git (build fixes and portlibs included):
1 - Do this on "Cygwin Terminal":
Code:git clone https://github.com/CaptainCPS/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
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.
-
PKGCRYPT / PYTHON FIX (NOT NEEDED ANYMORE)
If you run into the following error while trying to make a PKG file:
Code:Traceback (most recent call last): File "/usr/local/ps3dev/bin/pkg.py", line 229, in <module> import pkgcrypt ImportError: Permission denied make: *** [Makefile:263: pkg] Error 1
Just open the Cygwin Terminal and run this command to fix the problem:
Code:chmod +x /usr/local/ps3dev/bin/pkgcrypt.dll
Note: This fix is left here for reference, since now I included a script on my ps3toolchain git that takes care of the issue
.
-
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 - [download] [~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!

Last edited by a moderator: