Results 1 to 7 of 7

Thread: Porting homebrew to 4.xx kernels.

                  
   
  1. #1
    Won Hung Lo wraggster's Avatar
    Join Date
    Apr 2003
    Location
    Nottingham, England
    Age
    53
    Posts
    139,958
    Blog Entries
    3209
    Rep Power
    50

    psp Porting homebrew to 4.xx kernels.

    Alek posted this article:

    As we spoke some days ago here, 1.50 kernel would probably disappear. Therefore, we spoke about migrating homebrews to 3.xx kernels, and i linked to this post on ps2dev.

    So, what's new when porting to 4.xx kernels instead of 3.xx ones? Following the same guide as CpuWhiz on his post;


    1. Homebrew must be in prx format. To do that, after the PSPSDK includes (include $(PSPSDK)/lib/build.mak), add this two lines:

    BUILD_PRX = 1
    PSP_FW_VERSION = 401

    The last line (PSP_FW_VERSION) isn't really needed in this case, just for the compilation when making #ifdef branches or not; but as 4.00/4.01 hasn't included anything relevant on that affairs, you can skip that line.


    2. Homebrew must be in user mode. On your main.c code, for the proper pbp compilation,

    PSP_MODULE_INFO("module1", 0, 1, 0);

    Remember that the PSP_MODULE_INFO system goes like this -> PSP_MODULE_INFO("module_name", mode, mayor_revision, minor_revision), and we put an "0" on mode for user mode; meanwhile 0x1000 would be for kernel mode. And also, add this line;

    PSP_HEAP_SIZE_MAX();

    Considering that you have a newer PSPSDK that can compile within it.


    3. That would be enough for what it takes. Got any problem within running it, once compiled? Re-check latest steps from that ps2dev post to check for your kernel calls.

    So, to sum up, due to the poor changes from 3.xx to 4.00/4.01, you just need to keep on the prx format, AND the user mode on the pbp code. Probably some of you already knew this, but bleh, this can't be bad to have in mind, as one user commented on the "Bye Bye, 1.50" post.

    http://alek.dark-alex.org/index.php?itemid=158

  2. #2
    DCEmu Pro
    Join Date
    Nov 2005
    Location
    San Diego
    Posts
    697
    Rep Power
    70

    Default

    is he doing his best not to say "no more kernel mode" or am i mistaken?

  3. #3
    DCEmu Legend Buddy4point0's Avatar
    Join Date
    May 2006
    Location
    The Lounge Awesomeness: 1337
    Age
    32
    Posts
    4,026
    Rep Power
    136

    Default

    Man, I like the 1.50 kernal.
    Getting rid of it is sad but I guess It could leave room for more and better features.

  4. #4
    DCEmu Regular
    Join Date
    May 2005
    Location
    Japan
    Age
    48
    Posts
    452
    Rep Power
    71

    Default

    confused...

    if it HAS to be user mode, how do things like CFW upgraders work? What about programs that play with the flash0/flash1?

  5. #5
    DCEmu Pro
    Join Date
    Nov 2005
    Location
    San Diego
    Posts
    697
    Rep Power
    70

    Default

    Quote Originally Posted by urherenow View Post
    confused...

    if it HAS to be user mode, how do things like CFW upgraders work? What about programs that play with the flash0/flash1?
    ^^ --not limited to that, but yeah that´s what i had in mind.

    kernel also has a bit of memory to offer, if used properly

    but he did say ``in the pbp code´´

  6. #6
    DS User
    Join Date
    Sep 2006
    Posts
    238
    Rep Power
    67

    Default

    Quote Originally Posted by urherenow View Post
    confused...

    if it HAS to be user mode, how do things like CFW upgraders work? What about programs that play with the flash0/flash1?
    You run your main thread in user mode and call a kernel mode prx to do the tasks. As far as I'm aware. Or something along those lines.

  7. #7
    PSP User blaz3d's Avatar
    Join Date
    Nov 2005
    Location
    Gloucester, England
    Posts
    210
    Rep Power
    69

    Default

    ab88 is absolutly right although the pbp needs to be user mode it can call on prx's for kernel commands

    i said i wasnt going to buy a slim until the last peices of homebrew i use are recompiled

    peace

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •