Forum: Playstation/PSone - Discuss topics relating to the original PlayStation (PSX/PsOne) console. Review the overlocking guide or get answers to many popular PSX/PsOne topics.


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: SYSTEM.CNF vs PSX.EXE boot priority
  

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
  1. #1 SYSTEM.CNF vs PSX.EXE boot priority 
    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
    If I was to put a
    SYSTEM.CNF that contained

    BOOT=cdrom:\untitled.exe;1
    TCB=4
    EVENT=10
    STACK=801FFFF0

    as well as a PSX.EXE on the same cd which would have boot priority the PSX.EXE or the untitled.exe read from the system.cnf?
    Reply With Quote  

  2. #2  
    dlanor is offline Member
    Join Date
    Sep 2004
    Location
    Sweden
    Posts
    10,107
    Downloads
    5
    Uploads
    0
    Mentioned
    1 Post(s)
    Tagged
    2 Thread(s)
    Likes Given
    0
    Likes Received
    126
    Quote Originally Posted by kevstah2004 View Post
    If I was to put a
    SYSTEM.CNF that contained

    BOOT=cdrom:\untitled.exe;1
    TCB=4
    EVENT=10
    STACK=801FFFF0

    as well as a PSX.EXE on the same cd which would have boot priority the PSX.EXE or the untitled.exe read from the system.cnf?
    I'm not sure what the prioritization would be on a real PS1, though my guess is that a BOOT directive in a SYSTEM.CNF would dominate over a PSX.EXE file. But the way these are used for booting commercial games, it is quite likely that such a BOOT directive would specify the same file anyway, making it impossible to tell what prioritization caused the file to be launched.

    I am however very sure of how it is done on a PS2, since I had reason to emulate this behaviour for the "MISC/PS2Disc" command of uLaunchELF, where these disc boot issues are resolved by the following C function from "main.c" of the uLE sources.
    (Partly based on info from the FMCB sources.)
    Code:
    //---------------------------------------------------------------------------
    //readSystemCnf will read standard settings from a SYSTEM.CNF file
    //------------------------------
    int readSystemCnf(void)
    {
    	int dummy, var_cnt;
    	unsigned char *RAM_p, *CNF_p, *name, *value;
    
    	BootDiscType = 0;
    	SystemCnf_BOOT[0]  = '\0';
    	SystemCnf_BOOT2[0] = '\0';
    	SystemCnf_VER[0]   = '\0';
    	SystemCnf_VMODE[0] = '\0';
    
    	if( (RAM_p = preloadCNF("cdrom0:\\SYSTEM.CNF;1")) != NULL){
    		CNF_p = RAM_p;
    		for(var_cnt = 0; get_CNF_string(&CNF_p, &name, &value); var_cnt++)
    			dummy = scanSystemCnf(name, value);
    		free(RAM_p);
    	}
    
    	if(SystemCnf_BOOT2[0]) BootDiscType = 2;
    	else if(SystemCnf_BOOT[0]) BootDiscType = 1;
    
    	if(!SystemCnf_BOOT[0]) strcpy(SystemCnf_BOOT, "???");
    	if(!SystemCnf_VER[0]) strcpy(SystemCnf_VER, "???");
    
    	if(RAM_p == NULL){ //if SYSTEM.CNF was not found test for PS1 special cases
    		if(exists("cdrom0:\\PSXMYST\\MYST.CCS;1")){
    			strcpy(SystemCnf_BOOT, "SLPS_000.24");
    			BootDiscType = 1;
    		}else if(exists("cdrom0:\\CDROM\\LASTPHOT\\ALL_C.NBN;1")){
    			strcpy(SystemCnf_BOOT, "SLPS_000.65");
    			BootDiscType = 1;
    		}else if(exists("cdrom0:\\PSX.EXE;1")){
    			BootDiscType = 1;
    		}
    	}
    
    	return BootDiscType; //0==none, 1==PS1, 2==PS2
    }
    //------------------------------
    //endfunc readSystemCnf
    //---------------------------------------------------------------------------
    Here some of the functionality is hidden in the call to scanSystemCnf which extracts the proper values for the SystemCnf_BOOT and SystemCnf_BOOT2 directives (if present in the CNF).

    So if SYSTEM.CNF is present and contains a BOOT2 directive, then this specifies a PS2 elf to be launched in PS2 mode, and all other tests lack importance.

    For all other cases the disc is assumed to NOT be a PS2 game disc.

    And if a SYSTEM.CNF is present with BOOT directive, then this specifies the PS1 executable to be launched, and again the other tests lack importance.

    But if no SYSTEM.CNF is present, then the other tests for alternate boot programs are used, in the order specified in the listing, with PSX.EXE being the last alternative tested. Thus it has the lowest priority of all.

    Discs that match none of the tests are assumed to be either CDDA or DVD-Video discs, depending on their basic type. But uLE does not support CDDA, though it does support DVD-Video format, either ESR-patched by launching ESR, or normal DVD-Video by launching the Sony DVD-Player.

    Best regards: dlanor
    Reply With Quote  

  3. #3  
    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
    Thanks for the info so it's probably last then still i'll give it a try just to make sure.
    I'm trying to patch Gran Turismo 2000 Trial Edition to run on a ps1 without disc swap, I think the patch reads the SYSTEM.CNF of the original ps2 disc for sharing info off the ps2 executable, I wanted the ps1 patch executable to be named as PSX.EXE so that the SYSTEM.CNF would be left untouched as a normal ps2 SYSTEM.CNF but the PS1 would load the PSX.EXE instead first.

    http://pouet.net/prod.php?which=34324
    http://pouet.net/prod.php?which=49106
    Last edited by kevstah2004; 05-31-2010 at 07:17 PM.
    Reply With Quote  

  4. #4  
    dlanor is offline Member
    Join Date
    Sep 2004
    Location
    Sweden
    Posts
    10,107
    Downloads
    5
    Uploads
    0
    Mentioned
    1 Post(s)
    Tagged
    2 Thread(s)
    Likes Given
    0
    Likes Received
    126
    Quote Originally Posted by kevstah2004 View Post
    Thanks for the info so it's probably last then still i'll give it a try just to make sure.
    I'm trying to patch Gran Turismo 2000 Trial Edition to run on a ps1 without disc swap, I think the patch reads the SYSTEM.CNF of the original ps2 disc for sharing info off the ps2 executable, I wanted the ps1 patch executable to be named as PSX.EXE so that the SYSTEM.CNF would be left untouched as a normal ps2 SYSTEM.CNF but the PS1 would load the PSX.EXE instead first.

    http://pouet.net/prod.php?which=34324
    http://pouet.net/prod.php?which=49106
    If what you want to do is to make a disc capable of booting different files when used on a PS2 and on a PS1, then you could try just including both a "BOOT2" directive and a "BOOT" directive in the same SYSTEM.CNF.

    The PS1 will have no idea what a "BOOT2" directive means, so that will be ignored on the PS1, which will thus launch the file specified by the "BOOT" directive instead.

    But on a PS2 the "BOOT2" directive is of course recognized and given top priority.

    I never did this myself, but it should work.

    Best regards: dlanor
    Reply With Quote  

  5. #5  
    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
    I'll try it and report back, psone games have a license screen though which can be edited, but for ps2 games I think the image taken directly from the bios i've never seen any relicensing tools for a ps2 iso's wouldn't that cause a problem.
    Reply With Quote  

  6. #6  
    dlanor is offline Member
    Join Date
    Sep 2004
    Location
    Sweden
    Posts
    10,107
    Downloads
    5
    Uploads
    0
    Mentioned
    1 Post(s)
    Tagged
    2 Thread(s)
    Likes Given
    0
    Likes Received
    126
    Quote Originally Posted by kevstah2004 View Post
    I'll try it and report back, psone games have a license screen though which can be edited, but for ps2 games I think the image taken directly from the bios i've never seen any relicensing tools for a ps2 iso's wouldn't that cause a problem.
    The main problem of an 'unlicensed' disc is to make the console accept reading it at all, but presumably you have modchips in both consoles (to even consider using a burned CD), so that should not be much of a problem. But some part of the license check may still be performed, and to insure against problems with that you should use PS1 licensing. That should be acceptable to both PS1 and PS2 consoles.

    But again I must emphasize that I'm really just speculating here, as I never made such a disc myself.

    Edit:
    On second thought, I just reread your post #3 above again, and I must say that your intent to make it "run on a ps1 without disc swap" does sound as if you're trying to do this without a modchip (why else even mention swapping), and that I think is impossible. If you don't have a modchip and also don't swap, then you will not boot that burned CD.

    Best regards: dlanor
    Reply With Quote  

  7. #7  
    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
    When I said disc swap I meant swapping between a single disc burnt with the loader and the original gran turismo disc, what i'm wanting to do is keep the loader and gran turismo on the same disc via a custom made iso, I'm booting it via a ps1 emulator so need to worry about disc swap or modchips.
    Reply With Quote  

  8. #8  
    Berion's Avatar
    Berion is offline Starszy gracz
    Join Date
    Dec 2005
    Location
    Poland
    Posts
    730
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    37
    Likes Received
    98
    Quote Originally Posted by kevstah2004 View Post
    I'll try it and report back, psone games have a license screen though which can be edited, but for ps2 games I think the image taken directly from the bios i've never seen any relicensing tools for a ps2 iso's wouldn't that cause a problem.
    My SCPH-7502 didn't boot disc without license txt+tmd (it's not necessary to proper files, but they just must exist).

    About ps2 logo: yes, but it's possible to read this form cd/dvd. I was made such a disc long time ago with my custom logo.
    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
    Quote Originally Posted by Berion View Post
    My SCPH-7502 didn't boot disc without license txt+tmd (it's not necessary to proper files, but they just must exist).

    About ps2 logo: yes, but it's possible to read this form cd/dvd. I was made such a disc long time ago with my custom logo.


    Can you give give details on how or have you since forgotten or are you not allowed to share such info?
    Reply With Quote  

  10. #10  
    TnA's Avatar
    TnA
    TnA is offline Member
    Join Date
    Apr 2005
    Location
    Germany
    Posts
    4,580
    Downloads
    0
    Uploads
    0
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    12
    Likes Received
    30
    Search for "PS2Logo 1.0 Beta" and "Boot Screen Editor 0.2.2 Beta".
    Not sure, if those are the newest ones, but atleast that are the versions I still have.
    PS2 V7/DMS3 V2 (FW:2.4b7); Seagate Baracuda 200GB
    PS2 V7/CC1.0 (FW:34 hacked v2 BM:2.1.6); Maxtor DiamondMAX9 PLUS 160GB
    PS2 SCPH-30004R; NoMod+NoLaser

    3xSony BBA
    3xSony MC 8MB
    MAX/Datel 16MB with Boot-CD
    MAX/Datel 32MB&64MB

    Custom FMCB 1.8b+ Beta-Build, my AIO 0.5, Sony&xRhino-Linux
    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
  •