Installing the PSPSDK (Linux or Windows)

Hi guys so today heres a little tut for those who want to go into psp development table of contents intro installing the psptoolchain on linux installing the minimalist pspsdk on linux via minpspw installing the minimalist pspsdk on windows via minpspw conclusion ..:: intro ::.. this tut should hopefully help anyone who wishes to bother install the psptoolchain or the minimalist pspsdk. for those of you who dont know, the psptoolchain is the “official” sdk used to develop programs for the psp. the minimalist pspsdk is also used to compile programs to run on the psp but does not include everything included in the psptoolchain, only the necessary files. while there are merits in installing the psptoolchain from scratch, for noobs (or even your average user), the minimalist pspsdk is much easier to install and get up and running and will provide you with everything you need, hence i suggest it for those groups. at this time i will cover three methods of installation: installing the psptoolchain on linux, installing the minimalist pspsdk on linux via minpspw, and installing the minimalist pspsdk on windows via minpspg. there are other installation methods to get the full psptoolchain on windows, but those methods will not be covered today note: this tutorial assumes that the reader has basic knowledge of how to use a computer and the appropriate operating system, which includes but is not limited to creating, moving, modifying, and deleting various files, as well as bash (linux) or dos (windows) commands. if you are not familiar with these operations i suggest you read up on them. there are tons of guides all over the internet. ..:: installing the psptoolchain on linux ::.. installing the pspsdk on linux can be particularly difficult, especially if you are not familiar with linux note: starting this off with the sudo su command may make this easier step #1 – install necessary packages the pspsdk requires many additional packages be installed before it can be installed successfully. you may already have some of these packages installed, but it never hurts to check. so, to get the necessary packages, run this command (all in one line): sudo apt-get install autoconf automake bison flex gcc libmpfr-dev libncurses5-dev libreadline-dev libusb-dev make patch subversion texinfo wget note: this command may not work for ALL distros. that being said these are the packages you need, so if this command doesnt work for you just get these packages using your native package manager. once that command has finished executing, you are ready to move on to the next step step #2 – download the latest psptoolchain the psptoolchain contains all the files for installing the pspsdk. the first thing to know is that the original source for the pspsdk, ps2dev.org, has been going on and offline (mostly offline ) for a while now. that being said, a alternative source can be found at psp.jim.sh. so, to attempt to download the psptoolchain from ps2dev.org, run this command: CODE: SELECT ALL svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain 9 times out of ten that will not work if it does: great! but if (and when) it doesnt, use this command to download the psptoolchain from the backup svn: CODE: SELECT ALL svn co http://psp.jim.sh/svn/psp/trunk/psptoolchain which should work once the download is complete, you’re ready for the next step as i said, all the installation scripts are set up for ps2dev.org so, if you followed the steps and were able to download the psptoolchain from ps2dev.org, proceed to step #3. however if you had to resort to the backup at psp.jim.sh (which you more than likely did ), then you will need to proceed to step #2a before heading to step #3 step #2a – modifying the psptoolchain installation scripts as i said before, all the installation scripts for the pspsdk still reference ps2dev.org. before you proceed you will need to modify those scripts. these are the scripts you will need to modify: 003-pspsdk-stage1.sh 006-pspsdk-stage2.sh 009-psplinkusb.sh so, what you will have to do is gedit (or sudo gedit if you dont have priviledges) each of those scripts and make the following changes. here is an example of the original code: CODE: SELECT ALL ## Download the source code. if test ! -d “pspsdk”; then svn checkout svn://svn.ps2dev.org/psp/trunk/pspsdk else svn update pspsdk fi here is the change you need to make: CODE: SELECT ALL ## Download the source code. if test ! -d “pspsdk”; then ##svn checkout svn://svn.ps2dev.org/psp/trunk/pspsdk svn checkout http://psp.jim.sh/svn/psp/trunk/pspsdk else svn update pspsdk fi basically all you are doing if commenting out (hence the ##) the code downloading from ps2dev.org and adding code to download from psp.jim.sh. the only other thing to notice is that this particular code is for downloading from the the pspsdk directory (which you can tell by the /pspsdk). other scripts may be downloading from a different directory, so make sure to preserve the final location from the end of the code you commented out and add it to the code you added e.g. , if the code you commented out was like this: CODE: SELECT ALL svn checkout svn://svn.ps2dev.org/psp/trunk/psplinkusb then make sure the code you add is like this: CODE: SELECT ALL svn checkout http://psp.jim.sh/svn/psp/trunk/psplinkusb once you have edited the 3 scripts, you are ready for the next step step #3 – modifying your login script now we need to make some changes to your login script. start by running this command: CODE: SELECT ALL gedit ~/.bashrc once it is open scroll to the very bottom and add these lines: CODE: SELECT ALL export PSPDEV=/usr/local/pspdev export PSPSDK=$PSPDEV/psp/sdk export PATH=$PATH:$PSPDEV/bin:$PSPSDK/bin after that simply save and exit gedit. now you can move on to the next step step #4 – execute the toolchain script now everything should be ready to install the psptoolchain. first thing you need to do is change directory to the psptoolchain directory like this: CODE: SELECT ALL cd psptoolchain now you can run the psptoolchain script: CODE: SELECT ALL sudo ./toolchain-sudo.sh that command will begin executing the script. the process is very large and takes around 30-40 minutes to complete depending of course on the specs of the machine. once it is complete you have successfully installed the pspsdk! congrats! now get out there are start coding! note: if you are receiving errors such as “psp-config not found”, verify that you set up the environmental variables correctly (see step #3) and that you have the permissions set correctly on the .bashrc file (this happened to me ). for more information on permissions in general, see this thread: viewtopic.php?f=8&t=5240 ..:: installing the minimalist pspsdk on linux via minpspw::.. these steps should work fine on the most popular linux distributions (ubuntu, mint, debian, etc.) i personally tested them on debian. step #1 – download the latest version of minpspw visit the minpspw and download the version fitting for your linux distribution and architecture (32-bit or 64-bit). step #2 – install minpspw cd to the location you choose to save the minpspw installation package (for example, mine was /home/debian-vm/Downloads) and execute this command: CODE: SELECT ALL sudo dpkg -i minpspw.deb that should install the necessary files from the installation package. step #3 – set up the environment variables (in .profile) cd to /home (simply cd), then run this command: CODE: SELECT ALL gedit .profile once .profile opens, add these two lines to the bottom: CODE: SELECT ALL export PATH=$PATH:/opt/pspsdk/bin export PSPSDK=/opt/pspsdk then save and close .profile. step #4 – install additional packages afaik there is only one necessary additional package that needs to be installed, so run this command: CODE: SELECT ALL sudo apt-get install zlib1g-dev that being said, there are additional packages that are extremely useful, although they’re not absolutely necessary for this process. however, i suggest you install them anyway. these packages include: CODE: SELECT ALL gcc, automake, make, subversion, wget, git step #5 – reboot surely i don’t need to walk you through this step once you have rebooted, the process should be complete. to verify, start a new terminal and enter this command: CODE: SELECT ALL psp-gcc –version the output should look like this: CODE: SELECT ALL psp-gcc (GCC) 4.3.5 Copyright © Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. if your output looks similar to that, congrats! get to coding! if the response is something like “psp-gcc not found”, then you did something wrong. go through the steps again and make sure you followed them correctly, and if you’re still having trouble feel free to make a post. ..:: installing the minimalist pspsdk on windows via minpspw ::.. those of us using windows (i go back and forth ) cannot simply install the pspsdk natively, but there are alternatives. one of the best (and definitely the easiest ) is called minpspw, the minimalist pspsdk. this package contains everything you need to setup a basic pspsdk in a windows environment. installation is very simple: step #1 – download the latest version of minpspw the latest version (currently 0.11.1) can be downloaded here: Minimalist PSPSDK | Download Minimalist PSPSDK software for free at SourceForge.net step #2 – select components for installation once the download is complete run the installer. click “next”, accept the license agreement and click “next” again. you should now be at the “choose components” screen. this screen lets you select what will and will not be installed. by default, “PSP DevKit”, “SDK Samples”, “PSP Link”, “HTML Documentation”, and “Basic Devpaks” are selected for installation, while “Visual Studio Support” and “Man/Info Pages” are not. i suggest you leave all the defaults selected and they are all somewhat essential for developing for the psp. if you are going to be coding using microsoft visual studio then you need to select “Visual Studio Support” for installation. i will leave the installation of “Man/Info Pages” up to you when you are finished selecting components for installation, click “next”. step #3 – complete installation this screen is the standard “select destination” screen. you can change the location of installation, but i highly suggest you leave it in its default location when you are done click “install”. once it is complete, click “next”, then “finish” step #4 – adding pspsdk environment variables the last step to installing the pspsdk on windows is adding the pspsdk to the environmental variables. to keep this simple, i am not going to go into much detail concerning getting to menu for modifying environment variables. each version of windows is different, so just google “how to modify environment variables on windows [insert version here]”. once you have reached the environment variables menu, select the variable called “Path” in the “system variables” box and click the “edit” button. once the dialog box pops up, place the cursor at the end of the statement in the “Variable Value” box. with the cursor at the end of the statement, add this (no spaces): ;C:pspsdk once that is done you are set to go. you have successfully completed installing the pspsdk on windows via minpspw! congrats! now get to coding! ..:: conclusion ::.. i hope this tutorial has helped answer your questions concerning installation of the pspsdk. if you still have any questions feel free to post them in this thread. please note that NONE of this is my work, only the tutorial. all credit goes to the wonderful devs who developed all of these tools, without which there would be no psp homebrew scene. all thanks go to them! original source Source Why post this coz it helped me get started on psp development [Read More]

PSP Homebrew essentials

So today im giving u a few fun tools i used over the years with my PSP Hellcats Recovery Flasher What is this? And why? ======================================== * Flashes a fresh M33 CFW (everyone from 3.71 up) for recovering semi-bricks or to up-/downgrade CFW * does not use Pandora, runns from the recovery menu or the XMB * does not use (as in launch) the original Sony Updater (only extracts all required files from the original .PBP) * runns fine on CFWs lower than 3.52-M33-3 – handy for upgrading older FWs w/o the “need to go 3.52, then 3.52-3, then higher” odyssey 🙂 * runns fine from TimeMachine (3.40-OE on Fat and 3.60-M33 on Slim) * can backup the FW flash and restore selected parts (XMB theme, settings, PSN activation, complete firmware) * can make and restore full NAND dumps Recovery Flasher 1.65 changelog: * fixed compatibility with 6.20-TN HEN * added check for 6.20-TN and the 6.35 HEN * added check for 6.20-TN HEN’s flash0 protection being enabled * added check for configured game mode plugins when on 6.20-TN and the 6.35 HEN * added detection of the PSP4000 model and the PSPgo * added appropriate handling of all of the above, when detected, to avoid unnecessary tears casted by users * added support to handle 6.00, 6.10 and 6.20 FWs for restore of (filewise) flash backup and clean install from scratch * added decryption of extracted (hidden) updater driver modules – and so enabling downgrade from 6.35+ (only on hackable PSPs though, for now) * added new firmware packs to install clean 6.20 OFW using Recovery Flasher * bundled the existing 5.50-GEN firmware packs with the main release Download it here http://www.mediafire.com/?v0avcf8rg3fw2pb PSP Filler This is my favourite explorer for the psp it can view everything has a bult in media player and can rip umd’s Download PSP filler CWCHEAT Don’t know what CWCheat is? Well its a universal cheat system / plug-in that can apply certain cheats to almost every PSP game out there. Similar to GameShark codes etc. It also has many other extra features too Download CWCheats plugin XPLora Basicky XP on a psp need i say more Download Xplora 2 Changelog: PSP-Go internal storage support added German translation updated Drive selection screen configuration doesn’t works USB charge doesn’t works well Key Features: AUTOBOOT To enable Xplora autoboot just add to the vsh.txt (seplugins) the file name XfwModule.prx under Xplora/module directory. Hold START when booting up the PSP to start the XMB Press NOTE to change the display brightness with 6 levels. The firmware Module also replace (in memory, the flash0 isn’t touched) the XMB Gameboot Video with the one under Xplora/themes/FwGameboot.pmf Pressing START+HOME in the XMB will startup Xplora Desktop You can easily add an item to desktop 1, 2 or 3 simply pressing O on a item in the file manager and choosing Create Link To…! Any internal application can be added selecting “New link” from the menu (Press O to open) ISOCSO files and PBP files icons are displayed as the file icon Image Viewer -> (JPG, BMP and PNG files are supported) Supports only images that are not bigger than 512×512 due to hw limitation, I’m working to find a workaround (It’s a mine one graphic lib, that’s why!! ) Music Player -> (MP3 and OGG format supported) Press HOME to play backroung ID3 v1-2-3 informations Low processor and so battery usage. Text Editor Edit your favourite text files while listening to music or dumping an UMD Disk!! Press HOME to go to Xplora while the Text Editor is restricted to the System Tray, just click on it to restart working on your documents. Arc Manager -> (ZIP and 7z files are supported) I’m having some problems with my toolchain for RAR support, I’ll add it as soon as possible. PMF Player -> (Every PMF file is supported) Shell Integrated support, no need to use ext. apps or restart. Homebrew Sorter Let’s short every application as you want!! Directories configuration can be changed editing XhbSettings.db (rename as XhbSettings.txt to edit) addingremoving any directory ( for example CAT_Games if you have the Homebrew Categoriser Plugin ) Games & Applications Start any application just as the XMB obviously returning to Xplora when exiting a game Directories config. are the same as the Homebrew Sorter UMD Dumper Dump your UMD directly to Memory Stick in ISO or CSO format, also the file name changes automatically depending on game title Background Dump supported –> Press SELECT Nand Dumper Dump your PSP Nand memory to Memory Stick if .bin format compatible with the most of the flasher applications. Background Dump supported –> Press SELECT Plugins Manager Manager CFW plugins directly from Xplora with a simple but effective user interface. Internet & Xplora Home Surf the internet with full memory usage (PSP 2000+ only) and keep updated on the Xplora offical webpage. CXMB v2 For All CFW/LCFW Thanks to @tangotnt forgot about this one CXMB is a Custom PRX Plugin that allows you to load CTF’s (flash0 theme compiled into a single file) from your memory stick using the Theme Settings Menu. Download Codestation’s Game Categories Lite Thanks to @gusha for this one Changelog: v1.6: [+]Added new option to sort categories: Use CAT_XX or XXcategory_name (XX between 00 and 99). v1.5-r4 [+]Added polish translation. v1.5-r3 [!]Fix duplicated entries on iso category in folder mode (PRO). v1.5 [+]Support to hide certain homebrews/games/dlc from the categories. [+]Added folder mode benchmark (compile with BENCHMARK=1). v1.5_beta6 [!]Fix bug of missing categories when CAT prefix is used, the bug was introduced by last patch. v1.5_beta5 [+]Empty categories are hidden by default. [+]Non game folders are hidden by default on uncategorized content. v1.5_beta4 [!]Fixed bug with Folder mode in ME where category items went to uncategorized. v1.5_beta3 [!]Fixed triangle bug: on information show, on delete, random crash. [!]Fixed double games appearing on ME. v1.5_beta2 [!]Fixed bug of folder mode don’t recognizing CAT prefixed categories. [!]Fixed bug of umd cache setting showing other options. [!]Fixed bug of uncategorized content still showing after being disabled on Folder mode. v1.5_beta1 [+]Support for categories in folder mode like Bubbletune’s GCL (thx Nekmo for betatesting). [+]Added subtitles to the config options. [+]Added bulgarian translation by Xian Nox. [+]Added italian translation by stevealexanderames. v1.4-r4 [!]Fixed UMD icon malfunction bug introduced in 1.4-r2. [+]Added Russian translation by Frostegater. v1.4-[r1-r3] [!]Fixed the bug where the theme menu colors were missing after displaying the categories contextual menu. [!]Force the uncategorized content to be the last item by default. [!]Fixed bug of uncategorized items appearing when cycling through OFW cats using square. [+]Added Traditional-Chinese translation by Raiyou. v1.4: [+]6.60 firmware support [+]Allow the uncategorized folder to be sorted with your favorite app (multi MS mode). [+]Multiple language support. [+]Added ja translation by popsdeco [+]Added de translation by KOlle v1.3: [+]Support for categories in contextual menu. [+]Support for plugin configuration in system settings. [+]Added runtime detection for ME, so category games are now shown. [!]Fixed issues with PSPGo and TN (big thanks to raing3 to help me with the debugging). v1.2: [!]Fixed PSPGo categories, again (thx RUSTII for the tests, again) [!]Fixed the free space display when the psp returns from sleep v1.1: [!] Fixed PSPGo categories (thx RUSTII for the tests) Guess what? yes, broken! (is too hard to fix it without a Go) v1.0: [+] First release Download Codestations latest iR Shell v5.2 Thanks to @BobbyBlunt What is IRShell? IRShell is just that. A shell. But, it’s no ordinary shell. IRShell allows you to listen to music in games, stream media from your PC to your PSP, run homebrew, have tons of key shortcuts, control your T.V, view all kinds of documents, manage files, anything basically! It also offers a great graphical interface, which is much more pleasant to look at then the standard XMB. @”BobbyBlunt” description IrShell is a great homebrew. It allows you to use the IR function of the 1000 model to control TVs, DVD players etc. It allows for multitasking on other models. It has a file system built in, and it has all the functions for remotejoy, and a function to allow you to plug it into your computer and use your HDD as a big memory stick Download IRShell v5.2 [Read More]