PS2 wLaunchELF Release Thread

Discussion in 'Homebrew' started by sp193, May 10, 2017.

  1. 126
    218
    53
    sp193

    sp193 Developer

    Joined:
    Oct 13, 2014
    Messages:
    126
    Likes Received:
    218
    Trophy Points:
    53
    Location:
    Singapore
    Home Page:
    What is LaunchELF?
    LaunchELF is a file manager program for the PlayStation 2.

    The original LaunchELF project was by Mirakichi, who worked on versions prior to v3.41.
    After Mirakichi stopped working on LaunchELF, E P and dlanor worked on unofficial LaunchELF (uLaunchELF) up to v4.42d.
    Due to real-life commitments, both E P and dlanor have been on a hiatus for quite a few years. Double-unofficial LaunchELF (wLaunchELF) is a new project by AKuHAK and SP193 that continues to bring new updates to our favourite file manager to the PlayStation 2.

    The first stable release is slated to be LaunchELF v4.50, to mark the start of a new line of builds. As of today, we are still updating and fixing LaunchELF, so we will appreciate constructive comments and feedback about the quality and functionality of LaunchELF.

    While E P and dlanor have not officially declared that they won't be ever coming back to continue work on uLaunchELF, I have decided to create a new thread in order to avoid cluttering their thread with posts regarding new bugs that are caused by the (rather invasive) work on the code.

    Features:
    • Move, copy, rename, delete files.
    • Manage the partitions on the PlayStation 2 HDD unit.
    • Supports skins.
    • Supports HDD capacities up to 2TB.
    • Supports USB Mass Storage Devices capacities up to 2TB.
    • Supported devices: Memory Card, HDD unit, CD/DVD, USB Mass Storage Device, host.

    Tentative changelog:
    LaunchELF v4.43a (2017-09-09): http://www.psx-place.com/threads/wlaunchelf-release-thread.13727/#post-85814

    LaunchELF v4.43a (2017-06-18): http://www.psx-place.com/threads/wlaunchelf-release-thread.13727/#post-82068

    LaunchELF v4.43a (2017-05-31)

    • (PS2SDK) standardized behaviour of rename() functionality for the mass storage driver.
    • Fixed renaming of files in sub-directories on the mass device.
    • Fixed copying of files to the VMC device.
    LaunchELF v4.43a (2017-05-11)
    • (PS2SDK) Fixed partition expand option (hopefully!).
    • (PS2SDK) Re-enabled creation of all system partitions at HDD format.
    • (PS2SDK) Updated ATAD, APA & PFS drivers.
    • PlayStation discs can once again be accessed.
    LaunchELF v4.43a (2017-01-14)
    • Enabled renaming for USB Mass Storage devices.
    • Fixed file copying (?) to USB Mass Storage devices.
    • Updated network protocol stack. Networking should be working now.
    LaunchELF v4.43a (2016-12-16)
    • (kHn) Added AllowDVD IRX module, to enable DVD-video discs to be read (for ESR support, if uLaunchELF is used instead of FMCB).
    • Adjusted Hiryu's libcdvd library to not cause a freeze, if there is no disc inserted.
    • Removed the disc control option, since LaunchELF can now correctly determine if no disc is inserted.
    • Removed IOP Reset option, since LaunchELF is always rebooting the IOP at boot.
    • (doctorxyz) Added VGA mode.
    • (doctorxyz) Added slash and back-slash characters to the on-screen keyboard.
    • Cleaned up IOP reset code.
    • Cleaned up loader module.
    • Corrected region-detection code, for DVD player and OSDSYS update booting.
    • Fixed support for HDD unit capacities up to 2TB.
    • Cleaned up file I/O code, to use only fileXio.
    • Re-enabled code that preserves the timestamp for files copied to the HDD unit.
    • Compiled with the new PS2SDK updates.

    ule_wip7 - [2014-04-06]
    • Rewritten tutorial for compiling uLaunchelf. You need to specify $PS2SDKSRC (which is actually git repository) and run prepare_main.sh or restore_ps2sdk.sh.
    • Fixed one warning in the libcdvd library
    • Now all libraries will install into $PS2DEV
    • Added message about HDL game unloading (l_oliveira)
    • Partially reverted hdd_manager - now it loads hdl_game partitions much (i mean MUCH MORE) faster (thanks to l_oliveira)
    • All source text files converted into linux format
    • Returned special symbols like triangle, square etc.
    • Now samba modules compile only when SMB flag is set (by default SMB = 0)
    • Changed cdinit argument so now ule dont have to freeze with disc control on on SCPH-5xxxx
    • removed libjpg library, now is used the one from ps2sdk-ports
    • fixed some warnings in vmc
    • and of course everything is built with latest ps2sdk
    ule_wip6 - 2014-03-26
    • (crazycat) 64-bit support (files larger than 4Gb)
    • (SP193) added support for disks larger than 1Tb
    • added full support for all partitions in HDD manager (except of __mbr partition):
    • you can rename any partition;
    • you can delete any partition except of partition started with "__" (it is PS2SDK feature);
    • returned support for codebreaker partition (don't forget that it can be broken);
    • now all partition recognized by partition flag (0x0001 - mbr, 0x1337 - HDL partition, 0x0100 - PFS partition)
    • if you press Square on HDL partition - you can load HDL info, if you press Square again - you can unload HDL info (it is needed for renaming HDL partition without reloading HDD manager);
    • you can expand only PFS partitions;
    • now uLe support official hdd loading path, after loading he mounts partitions from where it is loading into pfs0:/, so now you can simply load LAUNCHELF.CNF which is placed in the same place as uLe. e.g. hdd0:/__sysconf/FMCB/
    • now you can load and save configuration files (including ipconfig.dat) from everywhere
    • you can place LAUNCHELF.CNF in the same folder where is uLe placed
    • if you inject it in partition header via PATINFO it now tries to read LAUNCHELF.CNF from the root of partition if it is in PFS format. If it is not pfs partition it tries to load it from hdd0:/__sysconf/FMCB/ (specially for l_oliveira)
    • fixed problem with "X" and "O" button swap
    • fully rewrote code for HDD manager. Tested with my 40Gb disk with 200 partitions.
    • now all partitions which names are started from "__" are browsable;
    • hide DELETE menu entry in HDD manager for partitions which are started from "__" (because PS2SDK has a bug - so these partitions cannot be removed)
    • now it is possible to launch uLe from mbr (thanks kHn for tests and providing mbrs)
    • used latest ps2sdk so problem with chinese adaptors and big disks is probably solved
    • removed 2Gb limit for single partition unit
    • now expand function works with all partitions
    • now we can create "__" partitions larger than 2Gb
    Known Issues
    • Unable to save network configuration to the HDD when the configuration folder is not first created.
    Downloads/links
    wLaunchELF v4.43a (build 2017/09/09): https://www.sendspace.com/file/frk94y
    Legacy thread (uLaunchELF): http://psx-scene.com/forums/f113/unofficial-launchelf-v4-42-a-37242/
     
    Last edited: Sep 9, 2017
    pinky, uyjulian, STLcardsWS and 5 others like this.
  2. 923
    880
    103
    Berion

    Berion Developer

    Joined:
    Feb 3, 2015
    Messages:
    923
    Likes Received:
    880
    Trophy Points:
    103
    Gender:
    Male
    Location:
    rom0:/
    I must finally undust my PS2. ^^
     
    RandQalan and atreyu187 like this.
  3. 4,378
    1,801
    123
    atreyu187

    atreyu187 Ensō Tester Moderator Developer

    Joined:
    Sep 29, 2014
    Messages:
    4,378
    Likes Received:
    1,801
    Trophy Points:
    123
    Gender:
    Male
    Occupation:
    Sony Fanboy
    Location:
    127.0.0.1
    Home Page:
    I agree but didn't k ow sendspace was still a thing LOL it's the Myspace of filesharing sites hehehehe
     
  4. 34
    60
    18
    BenMitnicK

    BenMitnicK Developer

    Joined:
    Apr 26, 2017
    Messages:
    34
    Likes Received:
    60
    Trophy Points:
    18
    Gender:
    Male
    thx man :)
     
  5. 126
    218
    53
    sp193

    sp193 Developer

    Joined:
    Oct 13, 2014
    Messages:
    126
    Likes Received:
    218
    Trophy Points:
    53
    Location:
    Singapore
    Home Page:
    There seems to be a problem with LaunchELF's VMC functionality. I have not finalized the findings, but right now it is probably better if nobody uses the VMC function of any LaunchELF build to add new files to a VMC image. Regardless if it is a stable version or not.

    For now: I believe that there is a long-running glitch in the design of LaunchELF's VMC functionality. In order to make copies of files with exactly the same timestamps (for creation, last modified and last accessed), a chstat() operation is done on all copied files. It is assumed that the device supports it.
    chstat() is supported by the VMC device... but it will always update all possible fields. LaunchELF never changes the attr, size and mode fields, and hence never fills them in. As a result, VMC will update these fields to undefined values.

    I do not know why it never (visibly) happened earlier. For now, I believe that it got exposed from the November 2016 refactor of LaunchELF to not require two versions of the file I/O library.

    Symptoms: copying any file to a VMC image will result in no files/directories being copied correctly. Space will be consumed (and hence lost) and the directory records will be created, but the directory records will have the size and mode fields cleared to 0.
    Affected versions: the wLaunchELF versions provided in this thread allow the symptoms to be observed. However, all versions of LaunchELF may have this glitch.

    Prototype that does not clear the attr, mode and size fields of a VMC file/directory: https://www.sendspace.com/file/xp4rir
    If you test this, please let me know if you still cannot add new files to a VMC image without issues.
     
    Last edited: May 30, 2017
  6. 6,185
    2,152
    123
    pinky

    pinky Bitsiboo's Other Half Developer

    Joined:
    Mar 8, 2015
    Messages:
    6,185
    Likes Received:
    2,152
    Trophy Points:
    123
    Gender:
    Male
    Location:
    The Great Gig in the Sky
    @sp193 , I was never aware that launch.elf had changed devs that often and that with it came a name change. thank u for that clarification. I had always known it as ulaunch.elf since about 2006 or so which is when I modded my slim ps3. with a new laser, the system is still kicking. though, there r some signs that show its age, the system that is. I'm very glad that this project still has support. I love launch.elf (usuing ulaunch 4.42d). whenever someone wants me to test something, I always test with a disc following by launch.elf whether that's from a disc or a flash drive. I've yet to come across homebrew that didn't work with launch.elf and via disc, so I'm very happy with it. :) and, of course I had to have pink icons. :-p
     
  7. 2
    0
    1
    LopoTRI

    LopoTRI New Member

    Joined:
    May 30, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    @sp193
    I followed you to this forum.
    I just tested it with a couple of saves/apps/folders.
    It works, with sporadic error.
    sporadic error:
    Every 4-7 time of copying it brings me first a "copy failed", but if i try again, then it copies.
    But i have to say, i tried it only on my 64GB sandisk. So no time for now, rest tomorrow....
    ;)
     
  8. 126
    218
    53
    sp193

    sp193 Developer

    Joined:
    Oct 13, 2014
    Messages:
    126
    Likes Received:
    218
    Trophy Points:
    53
    Location:
    Singapore
    Home Page:
    It is an important project with a fairly long history. So I don't think it really "changed" developers that often. It's more like it had a lot of contributors, over the years. I chose to rename it again because I'm making changes without anyone from the previous development team, like how they renamed the project at v3.50.

    Are you still having those icons though? :|
    They aren't supposed to be pink.

    Welcome to PSX-PLACE! :D

    I think it can be considered as being solved. The original problem would have resulted in a 100% failure rate because the glitch always happens immediately after the copy operation.
    So whatever this sporadic problem is, it is probably unrelated. Neither was I able to replicate it.

    Thanks for your help on this issue.

    BTW, I hope that you didn't use an old image because any image edited with LaunchELF (prior to this test) would have been damaged. Any space consumed, would have been lost forever.
    Also, there is a limitation with the current design of the VMC modules; deleted entries cannot be reused. Hence a directory will always grow longer. I haven't determined if MCMAN also has the same limitation, but it would be pretty strange if it did.
     
    Last edited: Jun 1, 2017
    kozarovv likes this.
  9. 27
    60
    13
    krHACKen

    krHACKen Developer

    Joined:
    Nov 2, 2014
    Messages:
    27
    Likes Received:
    60
    Trophy Points:
    13
    As for the inability to get the folder list with Filezilla, I've found that downgrading ps2netfs.irx somehow solves the problem.
    I do not know what the last "working" revision of the module is, but here's the old version I used : fs.zip, and I could then retrieve the folder list with Filezilla, as well as with windows explorer...
     
    kozarovv likes this.
  10. 126
    218
    53
    sp193

    sp193 Developer

    Joined:
    Oct 13, 2014
    Messages:
    126
    Likes Received:
    218
    Trophy Points:
    53
    Location:
    Singapore
    Home Page:
    LaunchELF v4.43a (2017-05-31)
    • (PS2SDK) standardized behaviour of rename() functionality for the mass storage driver.
    • Fixed renaming of files in sub-directories on the mass device.
    • Fixed copying of files to the VMC device.
    Regarding the rename functionality, I changed it to fit the documentation for the standard C rename function:
    • A file cannot be renamed to an existing file.
    • A file cannot be renamed into a directory.
    • A directory cannot be renamed into a file.
    • A directory can be renamed into a directory, if the destination is an empty directory.
    Also, the rename() function is now usable for moving files, from a programmer's point-of-view; it can be used to quickly move files around the USB disk without needing to read and write whole files. Right now, LaunchELF does not move files that way, but I'm sure it would make the moving of files quicker.

    Download: https://www.sendspace.com/file/08pg7p

    Thanks for sharing!
     
    Last edited: May 31, 2017
  11. 6,185
    2,152
    123
    pinky

    pinky Bitsiboo's Other Half Developer

    Joined:
    Mar 8, 2015
    Messages:
    6,185
    Likes Received:
    2,152
    Trophy Points:
    123
    Gender:
    Male
    Location:
    The Great Gig in the Sky
    yes, but I can't recall how I changed them. I do remember managing to change the icons to blue and green as well. I know it has something to do with the configuration file, because if I have ulaunch elf on burned media, the configuration file fails to load since I don't have one, and the default icon color of yellow is used. I usually load ulaunch elf from the memory card by holding R1, so they're always pink. :-p
     
  12. 126
    218
    53
    sp193

    sp193 Developer

    Joined:
    Oct 13, 2014
    Messages:
    126
    Likes Received:
    218
    Trophy Points:
    53
    Location:
    Singapore
    Home Page:
    There were various problems with PFS as well.

    Build 17/06/2017 notes:
    • Updated PFS module (improved reliability).
    • Fixed power-off processing. All files will be closed and the expansion-bay deactivated, prior to power-off.

    Download: https://www.sendspace.com/file/j0owj0

    Ah okay. I didn't know that it was a feature though. haha
     
    pinky likes this.
  13. 126
    218
    53
    sp193

    sp193 Developer

    Joined:
    Oct 13, 2014
    Messages:
    126
    Likes Received:
    218
    Trophy Points:
    53
    Location:
    Singapore
    Home Page:
    Uh, so there were a few booboos that I won't add into the changelog above because they were all introduced by me. But FYI...

    LaunchELF build 2017/06/18:
    1. Fixed USB support on disks with no partition table (thumb drives).
    2. Fixed formatting of PFS partitions.

    USB disks will only be mounted if they either contain a supported partition (i.e. FAT12/FAT16/FAT32). Mounting the whole disk will no longer be done, unless the disk is deemed to not have a valid MBR.
    Previously, it would attempt to mount the disk, even if it had a valid MBR. This also led to cases of USB disks being improperly accessed, if they were formatted with some unsupported filesystem like exFAT.

    I didn't find any standard that specified how the operating system can determine whether the disk contains a MBR or a VBR, which both have the same magic value in the exact same position (why???). But I did some experiments with Windows 10, which led me to conclude that Windows will at least check that for every valid (ID is not zero) partition entry:
    • The starting LBA must not be zero.
    • The starting LBA must exist within the disk.

    There might have been some check against the size of the partition, but I did not manage to identify a pattern.

    Link: https://www.sendspace.com/file/xyyypr
     
    Last edited: Jun 18, 2017
    pinky and kozarovv like this.
  14. 5,514
    3,360
    123
    kozarovv

    kozarovv Super Moderator

    Joined:
    Nov 8, 2014
    Messages:
    5,514
    Likes Received:
    3,360
    Trophy Points:
    123
    Home Page:
    Not sure this gonna be helpful for you, but here is very nice knowledge database about MBR and VBR.
    http://thestarman.pcministry.com/asm/mbr/index.html#BR
     
  15. 2
    0
    1
    LopoTRI

    LopoTRI New Member

    Joined:
    May 30, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Ok tested it. Now it seems to work fine....

    I have another issue with wLE, or do you say you have enough?? [​IMG]
    Cause i tested your wLE´s the last days, i tried to test many as i can, and find a bug with "Text Editor".
    I edited some files (ScummVM.INI, LAUNCHELF.CNF) on USB and HDD without error.
    The "Text Editor" have problems with editing *cfg files. I tried to edit "conf_elm.cfg" from my OPL and ul.cfg from my USBUtil-games on USB and HDD.
    When i want to insert a "Return" / "Enter" command in the file, it don´t inserts it (arrow left & arrow down), it only inserts the same letter/number/symbol that is after the coursor.

    This bug seems to be long back, cause i tried it with uLE_4.42d too, with the same result....

    I don´t say to you solve this bug please, i just want to tell ya.... [​IMG]
     
  16. 126
    218
    53
    sp193

    sp193 Developer

    Joined:
    Oct 13, 2014
    Messages:
    126
    Likes Received:
    218
    Trophy Points:
    53
    Location:
    Singapore
    Home Page:
    Thanks. Unfortunately, it doesn't say how to differentiate between a VBR and MBR. It seems like it depends on the type of disk (and I can determine whether the USB disk has removable media or not), but Windows can mount disks regardless of whether it has a VBR or MBR.

    Thanks! That is great.

    Bugs are bugs though. :|
    I don't like spending time on this, but nobody else seems to be solving them.

    Thanks for sharing.

    BTW, I saw the posts on psx-scene, but didn't write a reply because I wanted to take a look at the stuff first. Unfortunately, I have some important matters to attend to in real life, so no PlayStation 2 stuff for the moment.
     
  17. 126
    218
    53
    sp193

    sp193 Developer

    Joined:
    Oct 13, 2014
    Messages:
    126
    Likes Received:
    218
    Trophy Points:
    53
    Location:
    Singapore
    Home Page:
    Here is a small test, for those who had problems with FTP support: https://www.sendspace.com/file/wc51vq

    There was a problem with my tcpip.h header, which did not share the same values as the other headers from the 2 LWIP ports. :(
    I reckon that this standardization of values should solve the problem.

    There was also the workaround by the old ps2ftpd developers, which worked around the getstat/chstat glitch in PFS. Since that glitch was taken care of, I have removed the workaround. This will mean that if anyone does a directory list operation on the HDD unit, file sizes should be displayed.
     
    kozarovv likes this.
  18. 126
    218
    53
    sp193

    sp193 Developer

    Joined:
    Oct 13, 2014
    Messages:
    126
    Likes Received:
    218
    Trophy Points:
    53
    Location:
    Singapore
    Home Page:
    Here is a small test, for those who were having problems with FTP transfers seizing up randomly with the PS2 still responsive (to controller input): https://www.sendspace.com/file/2xqep6

    Changes to LWIP options:
    • 25 -> 32 PBUFs
    • 8 -> 24 input TCPIP API messages (not for TCP/IP, but is used for passing messages to the "TCPIP" thread that handles packet input)
    • Semaphores are created with the THPRI option
    This should also solve the issue with pings failing when the IOP is under heavy load.
     
    Last edited: Aug 27, 2017
  19. 8
    4
    3
    CountDuckula

    CountDuckula New Member

    Joined:
    Aug 6, 2017
    Messages:
    8
    Likes Received:
    4
    Trophy Points:
    3
    Gender:
    Male
    EDIT: Uploading via FTP now works with the 170827 build. I uploaded a few hundred images to the +OPL partition where as before it would time out after one or two at best. Thank you!

    Filezilla's caching of remote folder structure does seem to cause issues sometimes, with browsing into a partition on the HDD showing the contents of the previously browsed partition. Leaving the connection idle for a few minutes then browsing again seems to trigger it.
    Most of the time manually refreshing the remote pane fixes this, but sometimes even refreshing at each level from root down doesn't help and I need to close and re-open filezilla.

    This looks to be a filezilla problem and nothing to do with PS2net (https://forum.filezilla-project.org/viewtopic.php?f=2&t=4507&start=30#p150682). I only mention it in case anyone else has the same experience.

    Thanks again for the update, I can now upload OPL art files without using a USB drive :)

    Further edit: winSCP (with the directory caching options disabled) seems to work far more reliably than filezilla.
     
    Last edited: Aug 30, 2017
    sp193 likes this.
  20. 126
    218
    53
    sp193

    sp193 Developer

    Joined:
    Oct 13, 2014
    Messages:
    126
    Likes Received:
    218
    Trophy Points:
    53
    Location:
    Singapore
    Home Page:
    Changelog for release 2017/09/09:

    • Compiled with new PS2SDK revision, to solve:
      • Unable to access PlayStation memory cards.
      • FTP transfers failing to complete & network support ceasing to work afterwards.
      • Fixed LoadExecPS2 patch - unable to boot discs and the "OSDSYS" option not working.
    • Reduced footprint of internal loader ELF, by linking with libkernel-nopatch instead since it does not need the kernel patches.

    Note: this is a consolidation of all small tests between the last beta release and this one.

    Downloads/Links
    wLaunchELF build 2017/09/09: https://www.sendspace.com/file/frk94y
     
Tags:

Share This Page