[PS2] POPS stuff & POPStarter

Discussion in 'Sony Programming and Development' started by krHACKen, Apr 9, 2013.

  1. DaSA

    DaSA Robust Member

    Joined:
    Feb 23, 2013
    Messages:
    231
    Likes Received:
    153
    Run POPStarter in debug mode & report back.
     
    AlGollan84 and krHACKen like this.
  2. diegoginard

    diegoginard Member

    Joined:
    Oct 20, 2014
    Messages:
    8
    Likes Received:
    4

    Attached Files:

    krHACKen likes this.
  3. sp193

    sp193 Site Soldier

    Joined:
    Mar 28, 2012
    Messages:
    2,217
    Likes Received:
    1,052
    This is an interesting problem. It isn't impossible for this to be a combination of glitches...

    I haven't managed to check if old versions of uLaunchELF has a workaround for this, but the old (Before 2014/12/13) homebrew PFS driver had a bug in truncating existing files (O_TRUNC did not work).
    To work around this glitch, old versions of OPL would first delete the file, before creating the new file. Not doing so, would result in the file retaining some of its original content if the new file is smaller than the old one. This would explain why file sizes seem to be "carried over".

    But that does not explain if/why files seem to take the names (and perhaps the spot of?) of other similarly-named files. I will let you guys know if new bugs are found.

    Potential errors in PFS.IRX:
    dir.c/pfsGetDentry(): dentryLen has the wrong value (AND'ed with ~4 instead of ~3), logic at the "hmm" comment does not include the equals case.
    dir.c/pfsDirRemoveEntry(): the code around the "strange?!?;" comment is just a check against the inode's 64-bit size field. Wrong thing being checked against.
     
    Last edited: Jul 28, 2016
    AlGollan84 and krHACKen like this.
  4. maxstyle

    maxstyle Member

    Joined:
    Nov 18, 2015
    Messages:
    23
    Likes Received:
    3
    I think this trojan about color fix. I mean Tomb Raider game's problem not about missing textures but dark textures. So it wont work with games which have missing textures. Tried Duke Nukem Total Meltdown game and didn't work.
     
  5. krHACKen

    krHACKen Enthusiastic Member

    Joined:
    Oct 24, 2012
    Messages:
    571
    Likes Received:
    376
    Thanks for running POPStarter in debug mode. Now I can see where it gives a black screen.
    Apparently, it freezes trying to open POPSTARTER/usbd.irx or POPSTARTER/usbhdfsd.irx from the memory card. And this portion of code IS the one I modified between OBT13 and OBT14 !

    So I reviewed that piece of code, but haven't find anything wrong...

    What happens if you run POPStarter in USB mode with and without a memory card inserted ? Does it make any difference ?
    Also, please someone try to run POPStarter with POPSTARTER/usbd.irx and POPSTARTER/usbhdfsd.irx in mc0 or mc1.
     
    AlGollan84 and DaSA like this.
  6. Jolek

    Jolek Spirited Member

    Joined:
    Jan 18, 2016
    Messages:
    120
    Likes Received:
    165
    I copied the files (usbd.irx, usbhdfsd.irx) from a SYS-CONF (FMCB 1.952) to a POPSTARTER in mc0:
    [​IMG]
    I've tried only 2 flash drives. One has a capacity of 8GB, second 32GB.
    Both are able to launch game from a USB.

    Although I don't know how to run POPStarter in a debug mode, so I do not know if it will help.
     
    AlGollan84 and krHACKen like this.
  7. DaSA

    DaSA Robust Member

    Joined:
    Feb 23, 2013
    Messages:
    231
    Likes Received:
    153
    You need to apply DEBUG_AND_HALT.PPF to POPStarter.ELF using a PPF patcher (such as PPF-O-Matic) to turn debug mode ON.

    Edit : @Jolek the IRX modules need to be lowercase in mc?:/POPSTARTER/ - yours are uppercase.
     
    Last edited: Jul 28, 2016
    AlGollan84, krHACKen and Jolek like this.
  8. Jolek

    Jolek Spirited Member

    Joined:
    Jan 18, 2016
    Messages:
    120
    Likes Received:
    165
    Thanks for the tip.
    When I rename IRX modules from uppercase to lowercase (usbd.irx, usbhdfsd.irx),
    POPStarter is getting stuck in the same moment as @diegoginard previously mention.
    [​IMG]
     
    AlGollan84 and krHACKen like this.
  9. DaSA

    DaSA Robust Member

    Joined:
    Feb 23, 2013
    Messages:
    231
    Likes Received:
    153
    Thanks for your test. Could the IRX modules be the problem ?

    What happens if you use same modules, still named lowercased, but with POPStarter OBT 13 ?
     
    AlGollan84, Jolek and krHACKen like this.
  10. krHACKen

    krHACKen Enthusiastic Member

    Joined:
    Oct 24, 2012
    Messages:
    571
    Likes Received:
    376
    Thank you. Looks like the memory card stuff in USB mode is broken and there's a file I/O problem.
    @diegoginard , did you have one of the IRXs in your MC when you tried POPStarter ?
     
    AlGollan84 likes this.
  11. Jolek

    Jolek Spirited Member

    Joined:
    Jan 18, 2016
    Messages:
    120
    Likes Received:
    165
    You mean POPStarter_r13_WIP_06_OBT_20151207?

    I've made a test and everything is ok. Game boots.
    Maybe because of that:
    I have also made an another test without debug mode in POPStarter Revision 13, WIP 06, OBT 14 (2016/07/23).
    Unfortunately I've got BSOD.
    EDIT: I also try USB drivers from a FMCB 1.94, nothing has changed.
     
    Last edited: Jul 28, 2016
    AlGollan84 and DaSA like this.
  12. Vedita BR

    Vedita BR Rising Member

    Joined:
    Aug 28, 2015
    Messages:
    70
    Likes Received:
    32
    I think POPStarter look for lowercase files, right? From my experience uppercase and lowercase matters on Memory Card and HDD.
     
  13. joseri

    joseri Active Member

    Joined:
    May 21, 2014
    Messages:
    43
    Likes Received:
    33
    O “POPStarter_r13_WIP_06_OBT_20160723” funcionou perfeitamente no meu pendrive “Kingston DTSE9”.
    Minha pasta “POPSTARTER” no memorycard contém estes arquivos (Não existe os arquivos “usbd.irx e usbhdfsd.irx”), veja:

    [​IMG]

    Será que o problema são os arquivos “usbd.irx e usbhdfsd.irx”, porque eu executo o POPStarter perfeitamente sem estes dois arquivos na pasta “POPSTARTER”.

    Meu PS2:
    -- Versão “SLIM”;
    -- Chip “MATRIX 2.0”;
    -- Não uso o “FreeMCBoot”, somente o “OPL_896_DB_V2” renomeado como “BOOT”.

    Translated by Chrome

    The “POPStarter_r13_WIP_06_OBT_20160723” worked perfectly on my stick “Kingston DTSE9”.
    My folder “POPSTARTER” on memorycard contains these files (no files “usbd.irx and usbhdfsd.irx”), see:

    [​IMG]

    Does the problem are the files “usbd.irx and usbhdfsd.irx”, because I run perfectly POPStarter without these two files in the folder “POPSTARTER”.

    My PS2:
    -- Version “SLIM”;
    -- Chip “MATRIX 2.0”;
    -- I do not use the “FreeMCBoot”, only “OPL_896_DB_V2” renamed “BOOT”.
     
    AlGollan84, Antonioks and krHACKen like this.
  14. diegoginard

    diegoginard Member

    Joined:
    Oct 20, 2014
    Messages:
    8
    Likes Received:
    4
    When the beta 13 use does not give me any problem only when using the beta 14 black screen gives me so I do not think it's a problem of the memory card IRX
    usb0729_001407.jpg
     
    AlGollan84 and krHACKen like this.
  15. krHACKen

    krHACKen Enthusiastic Member

    Joined:
    Oct 24, 2012
    Messages:
    571
    Likes Received:
    376
    Thanks for confirming.
    Actually IT IS a problem related to the USB IRX files on the MC :
    The beta 13 noes not give you a black screen because it does not load the files at all.
    The beta 14 gives a black screen because it crashes trying to load these files.

    Like Jolek wrote, the thing that was supposed to fix the beta 13 bug is bogus :facepalm: .

    So the solution here is : delete or rename the USB drivers. They still cannot be loaded + POPStarter crashes trying to open them.

    @Paco, have you tried increasing the USB delay ? In most cases it helps with the USB errors...
     
    AlGollan84 and DaSA like this.
  16. diegoginard

    diegoginard Member

    Joined:
    Oct 20, 2014
    Messages:
    8
    Likes Received:
    4
    I climbed the dalay to 04 and follows the same error
     
  17. DaSA

    DaSA Robust Member

    Joined:
    Feb 23, 2013
    Messages:
    231
    Likes Received:
    153
     
  18. Vedita BR

    Vedita BR Rising Member

    Joined:
    Aug 28, 2015
    Messages:
    70
    Likes Received:
    32
    Try 6, that's what I use and it works for me.
     
  19. Antonioks

    Antonioks Active Member

    Joined:
    Dec 3, 2015
    Messages:
    25
    Likes Received:
    11
    We managed to find the bug of black screen in beta 14 USB usbd.irx was, it only took him to delete the beta pops 14 by my pendrive worked perfectly. Thanks to all friends who helped me and did not give up.
     
    AlGollan84 likes this.
  20. maxstyle

    maxstyle Member

    Joined:
    Nov 18, 2015
    Messages:
    23
    Likes Received:
    3
    I'm just wonderinq is that possible you write a dreamcast emulator for ps2. if ps2 system power's enuogh for this?
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page