Forum: Official Open PS2 Loader Forum - Discussion and information on the Official Open PS2 Loader.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: Open PS2 Loader Project - Debug Colors
  

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 20
  1. #1 Open PS2 Loader Project - Debug Colors 
    doctorxyz's Avatar
    doctorxyz is offline I'm just a modest sorcerer's apprentice!
    Join Date
    May 2007
    Posts
    1,091
    Downloads
    2
    Uploads
    0
    Mentioned
    4 Post(s)
    Tagged
    7 Thread(s)
    Likes Given
    124
    Likes Received
    205
    (Based on Open-PS2-Loader 0.7 rev. 249)

    Module Sequence
    TO BE DONE - Please contribute!

    Debug Colors per Module

    loader.c
    ████████ blue After installing kernel hooks
    ████████ red After LoadExecPS2

    syshook.c
    Hook_SifSetReg
    ████████ black After replacing SifSetReg syscall in kernel

    t_loadElf
    ████████ green After replacing cdrom in elf path by cddev
    ████████ white After replacing cddev in elf path by cdrom, applying needed game patches if any and running ExecPS2

    NewLoadExecPS2
    ████████ white After Running ExecPS2

    elfldr.c
    main
    ████████ maroon Before ExecPS2
    ████████ white After ExecPS2
    t_loadElf
    ████████ purple Before Reseting EE
    ████████ green After wiping user memory (0x00100000-0x01FFFFFF) and clearing scratchpad memory (0x70000000)
    ████████ black Before finally running the ELF
    ████████ grey After running the ELF

    iopmgr.c
    New_Reset_Iop: This function hook reset IOP (Input/Output Processor) if an update sequence is requested
    ████████ magenta Before SifInitRpc
    ████████ orange After LoadIRXfromKernel
    ████████ maroon After opening IOPRP path
    ████████ green When eeloadcnf_reset
    ████████ blue After Enabling Interrupts
    ████████ yellow After Sbv_Patch

    padhook.c
    t_loadElf
    ████████ Spring Green2 Load home ELF
    ████████ maroon Init RPC & CMD
    ████████ orchid Reset IO Processor
    ████████ Slate Blue Apply Sbv patches
    ████████ sienna Exit services
    ████████ red Execute BOOT.ELF

    In Game Reset Thread
    ████████ white If Pad Combo is Start + Select then Return to Home
    ████████ NavyBlue Re-Init RPC & CMD
    ████████ green Remove kernel hook
    ████████ purple Reset Data Decompression Vector Unit 0 & 1
    ████████ red Reset SPU Sound processor
    ████████ yellow Check Translation Look-Aside Buffer, some game (GT4, GTA) modify memory map, so a re-init is needed to properly access memory, Init TLB, Check Performance Counter, Some game (GT4) start performance counter (when counter overflow, an exception occur, so stop them), Stop Performance Counter

    This function patch the padOpen calls. (scePadPortOpen or scePad2CreateSocket), there is a loop for each libpad version
    ████████ purple While PadOpen pattern search
    First try to locate the original libpad's PadOpen function
    ████████ green while PadOpen patches
    ████████ black Done!


    I found the colors references using the following links and tools:
    - "RGB to Color Name Mapping - Triplet and Hex" (http://web.njit.edu/~kevin/rgb.txt.html)
    - "WhatColor - A PC Tool For ColorBlinds People" (http://www.hikarun.com/e/)
    - "COLOURlovers" (http://www.colourlovers.com/)


    Last words: This is a work in progress, so I will update this main post ASAP.
    Of course, my actions can be based on your feedback i.e., from your typos/grammar/functional/technical suggestions and fixes.
    You are all welcome here, please contribute ;-)
    Last edited by doctorxyz; 08-27-2010 at 08:11 PM. Reason: redundant sentence removed
    doctorxyz's PS2 & PS3 stuff: (http://psx-scene.com/forums/f257/doctorxyzs-ps2-ps3-stuff-101348/)
    Reply With Quote  

  2. #2  
    lee4 is offline CMP GH
    Join Date
    Nov 2006
    Posts
    249
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    6
    Reply With Quote  

  3. #3  
    Guuma's Avatar
    Guuma is offline Member
    Join Date
    Apr 2010
    Posts
    13
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Finally I understand what that colours mean. Thx
    Reply With Quote  

  4. #4  
    JNABK's Avatar
    JNABK is offline Member
    Join Date
    Sep 2004
    Location
    <<< I'm right over there!
    Posts
    4,920
    Downloads
    3
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    2
    Likes Received
    16
    Nice job!
    I added a link to this thread in the OPL User Guide on the settings page.
    PS2 Consoles:
    SCPH-30001 [V4] - unmodded (2)
    SCPH-30001-R [V5] DMS4 Pro SE
    SCPH-50001-N [V9] CC 2.0 SLE
    SCPH-79001 [V16] Silver - unmodded

    Reply With Quote  

  5. #5  
    izdubar's Avatar
    izdubar is offline Babylon User
    Join Date
    Nov 2009
    Posts
    869
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    2
    In gsKit colors are BGR and not RGB ... you can verify this as there isn't even the well known "Yellow screen of fragmentation" in your listing (which is what is tagged as cyan - 0xFFFF00), it seems you have to re-work this
    Reply With Quote  

  6. #6  
    yoshi314's Avatar
    yoshi314 is offline linux junkie
    Join Date
    Mar 2008
    Posts
    1,786
    Downloads
    6
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    4
    Likes Received
    18
    it takes a woman to figure this out. so many colors
    Reply With Quote  

  7. #7  
    doctorxyz's Avatar
    doctorxyz is offline I'm just a modest sorcerer's apprentice!
    Join Date
    May 2007
    Posts
    1,091
    Downloads
    2
    Uploads
    0
    Mentioned
    4 Post(s)
    Tagged
    7 Thread(s)
    Likes Given
    124
    Likes Received
    205
    @all
    Tks for your feedback guys!

    Quote Originally Posted by izdubar View Post
    In gsKit colors are BGR and not RGB ... you can verify this as there isn't even the well known "Yellow screen of fragmentation" in your listing (which is what is tagged as cyan - 0xFFFF00), it seems you have to re-work this
    Okay, now I just need to find some "free" hours at night (and at home), in order to mix my work with that link one mentioned by lee (the previous work from barf). It isn't a good idea to open images and colored web pages at my work ;-)


    Quote Originally Posted by yoshi314 View Post
    it takes a woman to figure this out. so many colors
    Yes, agreed... It would be nice to have girlfriend, or wife, etc. available and close enough to help us on this :-D
    doctorxyz's PS2 & PS3 stuff: (http://psx-scene.com/forums/f257/doctorxyzs-ps2-ps3-stuff-101348/)
    Reply With Quote  

  8. #8  
    doctorxyz's Avatar
    doctorxyz is offline I'm just a modest sorcerer's apprentice!
    Join Date
    May 2007
    Posts
    1,091
    Downloads
    2
    Uploads
    0
    Mentioned
    4 Post(s)
    Tagged
    7 Thread(s)
    Likes Given
    124
    Likes Received
    205
    Quote Originally Posted by izdubar View Post
    In gsKit colors are BGR and not RGB ... you can verify this as there isn't even the well known "Yellow screen of fragmentation" in your listing (which is what is tagged as cyan - 0xFFFF00), it seems you have to re-work this
    Finally reworked!

    Quote Originally Posted by JNABK View Post
    Nice job!
    I added a link to this thread in the OPL User Guide on the settings page.
    I hope now it's okay.

    Now, time to sleep...zzzzzzzzzzzzzzzzzzzzz
    doctorxyz's PS2 & PS3 stuff: (http://psx-scene.com/forums/f257/doctorxyzs-ps2-ps3-stuff-101348/)
    Reply With Quote  

  9. #9  
    kevstah2004 is offline Member
    Join Date
    Apr 2008
    Posts
    1,202
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    2
    Are these the same colours as used in ESR? if not can someone post a link for the debug colours of ESR.
    Reply With Quote  

  10. #10  
    jimmikaelkael is offline Member
    Join Date
    Mar 2008
    Location
    France
    Posts
    1,191
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    0
    Likes Received
    10
    Quote Originally Posted by kevstah2004 View Post
    Are these the same colours as used in ESR? if not can someone post a link for the debug colours of ESR.
    Unfortunately they are not the same. I'm not aware of any ESR debug color description, but I'm not saying here it never existed.
    Reply With Quote  

Page 1 of 2 1 2 LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •