Slashdot Mirror


PSP Programming Tutorials

A Reader writes "Since its inception, the PSP Homebrew Community has been hacking away at their little jem of a portable console. Its valiant efforts in the fight for open hardware have not been well received by Sony. Regardless, Yeldarb, a homebrew programmer, has released a PSP Programming Tutorial Series. It covers everything from setting up the development environment to writing your first program to sprucing up your programs with a little graphics programming. The tutorial series is a must read for anyone interested in joining the PSP hacking community."

41 comments

  1. Fascinating. by KDR_11k · · Score: 4, Interesting

    It's interesting how we get all those stories about PSP hacking, PSP homebrew, etc, etc yet I don't recall a single story about the DS homebrew scene (which is a bit larger as the device has weaker DRM systems and accepts readily available homebrew material like flash cartridges without complaining) and not nearly as much about GBA homebrew. Are people more interested in the PSP because it's harder to use for homebrew, because there's something important about the PSP that the DS doesn't provide or are they just more interested because the PSP is getting few games lately?

    --
    Justice is the sheep getting arrested while an impartial judge declares the vote void.
    1. Re:Fascinating. by game+kid · · Score: 1

      Maybe it's because the DS and GBA have "weaker DRM systems". With all of Sony's fuss about (very badly) protecting IP, homebrew is a way to stick it to the Man.

      Or maybe not, but dammit, it's the PSP, which can play movies and games and run a Web browser on a small widescreen-kinda thingy. It can't be that bad. ;)

      --
      You can hold down the "B" button for continuous firing.
    2. Re:Fascinating. by MBCook · · Score: 2, Insightful
      I think it is simple accessibility. People have found out how to run homebrew stuff off the PSP's memory stick. You don't need a vulnerable game (like some of the early XBox stuff, and some GC stuff) or a special device (like a wiring interface currently used for the DS). It runs off a memory stick that comes with the machine. All you need is a rather common USB cable and you are all set.

      Compare that to the DS where you need (last time I checked) either a flash cart (do they sell those yet? That costs much more than a standard cable) or a special device (that you probably have to build yourself) or a hacked wifi card to send games that way (I don't know if that is possible yet either).

      Basically, the PSP is easier to get your own code into right now.

      --
      Comment forecast: Bits of genius surrounded by a sea of mediocrity.
    3. Re:Fascinating. by Sparr0 · · Score: 0

      I believe the PSP has better controls, a larger and better lcd, and a faster CPU.

      The DS, on the other hand, has DS!

    4. Re:Fascinating. by snuf23 · · Score: 1

      "Basically, the PSP is easier to get your own code into right now."

      Sort of. Yes you don't need to purchase anything (they do have devices for the DS that are sold now btw) - but you may have to do some goofy futzing or setup files in a special way to get your homebrew to work. Plus if your bios gets updated, you can no longer use your homebrew.

      --
      Sometimes my arms bend back.
    5. Re:Fascinating. by Anonymous Coward · · Score: 0

      All I bought for the DS was a so-called PassMe and a GBA flash memory cart. No need to do any flashing of the BIOS, though if you go through with that I believe you are able to upload your software wirelessly which is a bit more convenient.

    6. Re:Fascinating. by British · · Score: 2, Informative

      One look at psp-hacks.com, and there are UMD loaders, and other "exploits" for post 1.5 firmware. The exploits posted are just concepts, but nothing concrete.

      Almost everything on psp-hacks.com consists of incredibly complicated, sometimes poorly documented, and sometimes confusing instructions. Oh, and it might brick your PSP.

      The state of PSP hacking is very very immature IMO. With the risk of "bricking" a PSP, I dare not put my foot in such things, and just stick to emulators.

    7. Re:Fascinating. by Anonymous Coward · · Score: 0

      "and accepts readily available homebrew material like flash cartridges without complaining)"

      Correct me if Im wrong, but does not the PSP also accept flash media? And last I checked, Flash carts costed significantly more than memory stick.

    8. Re:Fascinating. by KDR_11k · · Score: 2, Informative

      The PSP won't accept code on the memstick without complaining. At least not if you want to play any of the newer games.

      --
      Justice is the sheep getting arrested while an impartial judge declares the vote void.
    9. Re:Fascinating. by Transmogrify_UK · · Score: 1

      But then the net yaroke and the PS2 Linux kit both came out a year or two after the consoles were released. Perhaps Sony will do this with the PSP in their own (insanely slow) time. I'd be surprised if they didn't do this, based on past experience. Shame it's going to be further down the road than now. In the mean time, the crackers will continue doing what they're doing any homebrew software will continue to be released. It's a good scene, shame it doesn't have Sony's stamp of approval on it.

  2. Jem? by PingXao · · Score: 1

    Jem of the year? Hahahaha. Good one. Next article, please.

    1. Re:Jem? by Wisgary · · Score: 0

      I truly have no idea why, but when I read "jem of the year" I burst out laughing, something about the word makes me laugh my ass off.

    2. Re:Jem? by blincoln · · Score: 1

      I think it's because the PSP is truly outrageous.

      --
      "...always new atoms but always doing the same dance, remembering what the dance was yesterday." -Richard Feynman
    3. Re:Jem? by Soybean47 · · Score: 1

      I thought it was funny because they presumably meant "gem," a precious stone (or, metaphorically, anything of value), rather than "Jem," the lead singer from The Holograms.

  3. Sony by Threni · · Score: 2, Insightful

    I doubt Sony are all that bothered about people describing how to setup a MAKE file, or how to increment an integer by one...

  4. It all comes down to memory by Rolman · · Score: 4, Interesting

    The DS has only 4MB of RAM, hardly enough for complex homebrew applications, compared to the 32MB found in the PSP. You could also have 1GB+ of storage space in your PSP with readily available parts. Basically you just need to keep throwing money at it and it doesn't require hardware mods. Can't say the same for the DS, most of the time you need to mod it or buy hard-to-get equipment to hack it.

    Furthermore, most of the libraries needed to run the PSP are already included in the firmware stored in that big NVRAM, so they're readily available to applications, even homebrew. The DS has a very simple firmware and all the libraries need to be extracted or reverse-engineered from the cartridges that contain them, and so far there aren't many games that use Wi-Fi, for example.

    That's not to say the DS doesn't have its own advantages, though. The cartridges' memory is directly addressable from the CPU, so it has a very good potential for expansion. The touchscreen, mic and Wi-Fi/Ni-Fi features make it better than the PSP in things like Internet browsing, VoIP and chatting.

    It's just that the DS architecture doesn't lend itself to hacking that easily. I hope the Play-Yan gets released in the US and someone hacks it so to make the SD Card accessible to homebrew applications. A non-mod firmware hack would help, too.

    --
    - Otaku no naka no otaku, otaking da!!!
    1. Re:It all comes down to memory by Anonymous Coward · · Score: 0
      Programming for the PSP seems like a real waste of time and money when you compare it to the GP2X. The GP2X has 64MB of RAM, two 200Mhz ARM CPUs and uses normal SD cards for storage. It runs linux and has a freely available SDK. Not that you even need the SDK, you only need GCC and SDL. It also has a vibrant developer community.

      So where are all the GP2X stories on slashdot?

    2. Re:It all comes down to memory by geminidomino · · Score: 1

      Still a little flaky at this point though. The movie player will (sort of) play DivX and XviD, but not flat mpgs/mpeg2 (that one boggles the mind).

      NES emulation is pretty good, though, and Genesis is GREAT. SNES kind of sucks, and PSX is in progress (I just donated $20 to the project and promised more if they get Suikoden II compatible. ;) )

      Oh, and it has a native port of Ur-Quan Masters. That rocks right there.

  5. A little light.... by ReKleSS · · Score: 2, Informative

    It's nice to see this information collected like this, instead of making prospective developers trawl through the ps2dev forums (where the toolchain development takes place, but it's not really saying much. Framebuffer graphics techniques and libpng aren't PSP specific, and if you can't do that stuff already you're probably going to have trouble getting much further. Take the pspdev FAQ and just look through the samples, that should be more than enough to get you started. And you'll be able to draw stuff the fast way, using the GU, instead of just writing directly to VRAM.

    Also, Shine's lua player is an easier way to get into psp dev... but please, please don't go and write another shell.


    -ReK
    --
    md5sum -c reality.md5
    reality: FAILED
    md5sum: WARNING: 1 of 1 computed checksum did NOT match
  6. DS: $255 by tepples · · Score: 1

    All I bought for the DS was a so-called PassMe and a GBA flash memory cart.

    Nintendo DS: $130. PassMe2: $25. Compatible genuine Nintendo DS Game Card: $30. GBA flash memory card: $70. Now the DS is already more expensive than a PSP.

    1. Re:DS: $255 by buffer-overflowed · · Score: 2, Informative

      Try this:
      Nintendo DS - $130
      PassMe - $25 or some time and a parts order(plans are freely available)
      Compatable Game Card - $0 - $10 (Hunters works and caps out on EBay at about $10 including shipping)
      32MB Flash Cart or SD cart - $60
      Not having to worry about tracking down previous firmware versions or future games killing your ability to run homebrew - Priceless
      ScummVM with touchscreen support - Truly abso-fucking-lutely priceless

      It comes out cheaper, it takes less time and aggravation, gets better battery life, and you get a better legit game library that's not a bunch of console games in a portable format at console prices.

      --
      The key to the enjoyment of pop music is to replace any instance of "love" with "C.H.U.D."
    2. Re:DS: $255 by KDR_11k · · Score: 1

      Not really a comparison because you can't just go out and buy a homebrew-capable PSP in a store.

      --
      Justice is the sheep getting arrested while an impartial judge declares the vote void.
    3. Re:DS: $255 by tepples · · Score: 1

      Not really a comparison because you can't just go out and buy a homebrew-capable PSP in a store.

      During much of the time between when 1.50 was cracked and when Sony finally pushed units with the update out to retailers, and between when 2.00 was cracked and when Sony finally pushed units with the update out to retailers, one could just go buy a PSP Value Pak and put homebrew on it.

    4. Re:DS: $255 by KDR_11k · · Score: 1

      Yes but how about right now? You can go out right now and buy a DS that can be set to accept homebrew.

      BTW, I'm not sure, can a DS still play new games after being reflashed for homebrew?

      --
      Justice is the sheep getting arrested while an impartial judge declares the vote void.
    5. Re:DS: $255 by tepples · · Score: 1

      You can go out right now and buy a DS that can be set to accept homebrew.

      Can I get a PassMe2 or GBA flash card in a retail store in the United States? During the 1.50 and 2.00 days, one could walk into a retail store in the United States and buy a homebrew-ready PSP. Devil's advocates like to discount anything that must be purchased over the Internet because too many parents are afraid to shop online, claiming that if major retail chains don't carry a product, it must be for a good reason such that the product is allegedly illegal.

      can a DS still play new games after being reflashed for homebrew?

      Yes. However, there are isolated reports of DS Download Play multiplayer failing between DS systems with and without FlashMe in a few titles such as Sonic Rush.

    6. Re:DS: $255 by KDR_11k · · Score: 1

      So it's your choice: The device that can still be made to run homebrew but requires additional stuff or the device that will no longer run homebrew but did back then without additional stuff?

      --
      Justice is the sheep getting arrested while an impartial judge declares the vote void.
  7. Analogy to PC controls by tepples · · Score: 2, Informative

    I believe the PSP has better controls

    O rly? Would you rather play a real-time sim such as Starcraft on a tablet PC or on a ThinkPad?

  8. Firmware version? by tepples · · Score: 1

    Furthermore, most of the libraries needed to run the PSP are already included in the firmware stored in that big NVRAM

    Including the ability to run unsigned binaries on PSP firmware 2.50 or newer? In PSP terms, the Nintendo DS firmware is still at 2.00 and has a very stable downgrader to 1.50, and games will never upgrade your firmware.

  9. GP2X? Never heard of it by tepples · · Score: 1

    Programming for the PSP seems like a real waste of time and money when you compare it to the GP2X.

    Find me a U.S. retail chain that sells GP2X units and I'll believe you. The target markets for a lot of these homebrew efforts are 1. people whose parents won't let them order a $200 video game system online, especially if there are no AAA commercial titles for it, and 2. people looking to break into the professional video game development industry, where experience on platforms that the company has previously developed on is preferred to experience on "foreign" platforms.

    1. Re:GP2X? Never heard of it by geminidomino · · Score: 1

      Find me a U.S. retail chain that sells GP2X units and I'll believe you.

      I assume you mean a big-box store like Best Buy or Circuit City, and not just a reseller in the US (also hard to find.)

      On the off chance you did mean a US seller (or for anyone else who is interested), I got mine at gp32z.com which is in the midwest somewhere.

  10. GP2X, anyone? by vga_init · · Score: 4, Interesting
    Yes, the PSP is a beautiful machine, but it's worthless to me as a homebrew enthusiast. Sure, people are proving it's possible to create homebrew software, but is this even the best platform to be targeting?

    I just got my GP2X a couple weeks ago, and the machine is beautiful. For just under $200, you have a very powerful console (sans hardware 3D, sadly...but the 2D hardware is great ;) running on a fully open platform--linux kernel, GNU operating system, SDL libs, and everything. The development scene is vibrant, and some homebrew projects were completed before the device was even released to the public. It's the best development toy I've ever owned, and it's basically grab-and-go.

    Sure, you can waste time hacking away at the PSP, but think of all that energy you could otherwise be spending on software development. Now, if what you like best is circumventing DRM, then I salute you, but I for one don't want the hassle.

    Have doubts? Take a look at the wiki.

    1. Re:GP2X, anyone? by Anonymous Coward · · Score: 0

      > For just under $200, you have a very powerful console (sans hardware 3D, sadly...but the 2D hardware is great ;) running on a fully open platform--linux kernel, GNU operating system, SDL libs, and everything.

      I head that '2D hardware is great' a couple of time, but failed to find any information about that hardware.

      How great is it ? Is it framebuffer great (some memory mapped framebuffers) ? Matrox Millenium accelerated blit great (framebuffer + some accelerated DMA blit operations) ? Amiga great (framebuffer + sprites + interupt based graphic coprocessor) ? GBA/DS great (multiple layers, hundred of sprites and tile-based engine) ?

      Any pointer ?

  11. That's great, but... by Anonymous Coward · · Score: 0

    Is the battery life greater than 15 minutes on your GP2X yet?

    1. Re:That's great, but... by vga_init · · Score: 1

      I get a few good hours with nimh batteries. Power consumption is scheduled for improvement in a firmware update, as there are components on the board that are being powered when not in use. Also, some built-in apps should throttle down the CPU or power down the second core when the full processing power isn't needed.

  12. Touching is good, and not just on DS by tepples · · Score: 1

    I assume you mean a big-box store like Best Buy or Circuit City

    Or even a specialty chain such as EBGames. Or even smaller regional stores. The point of this exercise is that the reseller has to be brick-and-mortar, not pure dot-com, because a lot of people won't buy video game hardware until they can touch it.

  13. Brick and mortar by tepples · · Score: 1

    The device that can still be made to run homebrew but requires additional stuff

    If "additional stuff" is not available brick-and-mortar, then to many people, it's not available period.

    or the device that will no longer run homebrew but did back then without additional stuff?

    It might still be relatively easy to find a used PSP with <= 2.00 firmware at a brick-and-mortar pawn shop, especially once you realize that you've played the notable PSP UMD games before on the PS2 or on a GBA emulator.

    1. Re:Brick and mortar by Transmogrify_UK · · Score: 1

      Give the crackers a few more months, and I don't doubt the 2.5 firmware will be cracked too.

    2. Re:Brick and mortar by tepples · · Score: 1

      I don't doubt the 2.5 firmware will be cracked too.

      And all new PSPs shipped starting the next day will have 3.0.

  14. Huhu. by stonecypher · · Score: 1

    Wow, and only two years after the first DS coding tutorials came out. Pre-emptive strike to those who point out that the system's only a year and a half old: I know. We had tutorials, largely correct, as well as a toolchain and nearly-functional binaries, almost six months before the hardware actually came to market.

    The PSP homebrew scene? Meh.

    --
    StoneCypher is Full of BS
  15. DS? PSP's are soo much more.. by ThePengwin · · Score: 1

    The PSP is a pretty cool gizmo. but it would be better if you could, without hacking, make your own content for it. when u look at it compared to the DS it has ready connectivity to a computer with no aditional items needed, it can do soo much with media, and its a pretty decent pwered handheld device with internet and i kick ass screen :P i think it beats a DS any day :P