""
All times are GMT +2. The time now is 08:13 PM.  

Go Back   PSX/PS2/PS3 Scene Newz > PlayStation2 Forums > PS2 Homebrew/Dev & Emu Scene > Official UlaunchELF Forums

Official UlaunchELF Forums Discussion for the most unofficial build of launchELF!

Reply
 
Thread Tools Display Modes
  #1  
Old 09-23-2008, 07:49 AM
nogardeht nogardeht is offline
Registered User
 
Join Date: Sep 2008
Posts: 9

Load PS2HDD And PS2FS Before


Hi, I'm trying to run UlaunchELF unofficial release v4.28 directly from HDD, and I can. But my problem is that I need a memory card to load my CNF file ever when I turn on my PS2. I was looking on how the UlaunchELF loads the HDD Modules, and now I want to know if it's possible to load HDD Modules immediately when I run the program(Before loading the CNF file, of course, and without a MC).
So, Thanks in advance!!

P.D.: I'm from Argentina, and here it's 10 to 2am, so sorry for my mistakes, it's too late and I'm going to sleep now :P

Last edited by nogardeht; 09-23-2008 at 06:00 PM. Reason: Some redaction mistakes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 09-23-2008, 06:16 PM
dlanor dlanor is offline
Contributor
 
Join Date: Sep 2004
Posts: 4,733
Quote:
Originally Posted by nogardeht View Post
Hi, I'm trying to run UlaunchELF unofficial release v4.28 directly from HDD, and I can. But my problem is that I need a memory card to load my CNF file ever when I turn on my PS2. I was looking on how the UlaunchELF loads the HDD Modules, and now I want to know if it's possible to load HDD Modules immediately when I the program loads
This is harder than it sounds for several reasons, one of them being that HDD modules should NOT be loaded at all on late PStwo models.


Another problem is that the path passed to a launched program can not be complete for an HDD launch, since the partition mount is done on one filesystem (hdd0: ), while the file access (as for a launched elf, like uLE) is performed on the mounted filesystem (pfs0: through pfs9: (not always fully implemented)). But the launch methods only allow for a single device+filename path.

Homebrew softwares usually get around that limitation by using an extra device driver called fakehost, which 'survives' a program launch and allows the user to access the launch folder through "host:" (not the real network host:, but a faked one linking to the HDD drivers). But this method is not used by the Dev2 launchers of modchips.

When launched from HDD by the fakehost method, uLE can read its local CNF, but for full functionality that CNF also needs to contain a directive forcing it to continue using this HDD path, even though the argument passed at launch states "host:" as the launch device. Such paths can be set in the "Startup Settings..." menu using the entry "CNF Path override:" (default setting "NONE"). And in the CNF file this will appear as a variable definition like this "CNF_Path = hdd0:/__boot/"

In order to work properly, using a local CNF in the launch folder, uLE needs to be able to access that CNF file once before performing an IOP reset (kills old drivers) and even to find out if any such reset is permitted (it's one of the options in the CNF file). So uLE must be able to access this file through the device drivers active before the launch was made, and/or using the access path provided as one of the launch arguments.

I have been working on ways to make this work right with the Dev2 launcher of DMS4 on my v7 console, but as yet that does not work properly.

DMS4 does pass the boot path in the same hybrid form used by many homebrew programs, like "hdd0:__boot/boot.elf", but the problem with this is that this does not tell us which of the PFS mountpoints to use in accessing that partition, and since the partition was already mounted (to launch the elf) we can't mount it on a mountpoint of our own choice either.

We can't even be sure whether the mountpoint still is mounted, nor whether the driver even exists anymore after the launch of uLE, since we can't assume that the driver modules of a commercial modchip can be identified by the same methods as homebrew modules.

I will eventually solve this for the modded console I have, or so I think anyway , but that does not necessarily help anyone with a different modchip than I have (DMS4proSE), since those chips may use methods that are different in ways making my solution invalid.

Quote:
(Before loading the CNF file, of course).
Sorry, but no. Using HDD is a non-standard action impossible to do on all modern consoles. The last model that could use HDD was v13 (required an expansion kit), while current production model is v19, though most regions still have v15 in stock. But at this time only second-hand models have the capability to use IDE connected HDD. (Unless some odd shops have hoarded old models by mistake...)

Quote:
So, Thanks in advance!!
It's too early for that, I'm afraid.
As yet I'm not even sure if a generic solution is possible

In the meantime you'll just have to use a CNF file in mc0:/SYS-CONF/ (the default location) for uLE booted from HDD by Dev2.

Best regards: dlanor
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT +2. The time now is 08:13 PM.