PCSX2 / pcsx2

PCSX2 - The Playstation 2 Emulator
https://pcsx2.net
GNU General Public License v3.0
11.37k stars 1.58k forks source link

uLaunchELF / wLaunchELF won't boot directly using Run ELF #3720

Closed ghost closed 3 years ago

ghost commented 3 years ago

PCSX2 version: (For example, stable build v1.6.0 (or) development builds v1.7.0-dev-xxx) Stable v1.6.0

Plugins used: (Relevant/Non-default settings of GS/PAD/SPU2/CDVD/USB plugins)

    Bound   GS: GSdx32-AVX2.dll [GSdx 20200506140834 (MSVC 19.25 AVX2/AVX2) 1.2.0]
    Bound  PAD: LilyPad.dll [LilyPad (20200506140834) 0.12.1]
    Bound SPU2: Spu2-X.dll [SPU2-X 20200506140834 2.0.0]
    Bound CDVD: CDVDnull.dll [CDVDnull Driver 20151231175709 0.6.0]
    Bound  USB: USBnull.dll [USBnull Driver 20200506140834 0.7.0]
    Bound   FW: FWnull.dll [FWnull Driver 20200506140834 0.7.0]
    Bound DEV9: CLR_DEV9.dll [CLR DEV9 0.8.9]

Description of the issue: (What's the problem? - Screenshots showing the issue if applicable)

image There's CDVDiso Error: No filename specified. in the log, even though I'm not trying to load an ISO, even with CDVDnull loaded.

If I "insert" an ISO, Launch ELF will 'work', but black screen with the following log:

(IsoFS) Block 0x10: Primary partition info.
(IsoFS) Filesystem is ISO9660
(SYSTEM.CNF) Detected PS2 Disc = cdrom0:\ULE_4_38.ELF;1
(SYSTEM.CNF) Software version = 1.00
(SYSTEM.CNF) Disc region type = NTSC

IOP Realtime Kernel Ver.0.9.1

    Copyright 1999 (C) Sony Computer Entertainment Inc. 

Protected page @ 0x00084
Uncounted Manual block @ 0x80001C78 : size =  4 page/offs = 0x00001/0xC78  inpgsz = 16
Uncounted Manual block @ 0x80001B10 : size = 15 page/offs = 0x00001/0xB10  inpgsz = 60
Uncounted Manual block @ 0x80001B4C : size =  2 page/offs = 0x00001/0xB4C  inpgsz = 8
Uncounted Manual block @ 0x800015A0 : size =  6 page/offs = 0x00001/0x5A0  inpgsz = 24
Uncounted Manual block @ 0x800015B8 : size =  2 page/offs = 0x00001/0x5B8  inpgsz = 8
Uncounted Manual block @ 0x800015C8 : size =  8 page/offs = 0x00001/0x5C8  inpgsz = 32
Uncounted Manual block @ 0x80001B54 : size =  3 page/offs = 0x00001/0xB54  inpgsz = 12
Uncounted Manual block @ 0x80001B60 : size =  7 page/offs = 0x00001/0xB60  inpgsz = 28
Uncounted Manual block @ 0x80001B7C : size =  2 page/offs = 0x00001/0xB7C  inpgsz = 8
Uncounted Manual block @ 0x80001BE0 : size =  7 page/offs = 0x00001/0xBE0  inpgsz = 28
Uncounted Manual block @ 0x80001BFC : size =  2 page/offs = 0x00001/0xBFC  inpgsz = 8
Uncounted Manual block @ 0x80001C1C : size = 23 page/offs = 0x00001/0xC1C  inpgsz = 92
Uncounted Manual block @ 0x80001C88 : size =  3 page/offs = 0x00001/0xC88  inpgsz = 12
Protected page @ 0x00085
Reboot service module.(99/11/10)
Uncounted Manual block @ 0x80001300 : size = 39 page/offs = 0x00001/0x300  inpgsz = 156
Uncounted Manual block @ 0x80001798 : size = 20 page/offs = 0x00001/0x798  inpgsz = 80
Uncounted Manual block @ 0x800017E8 : size =  5 page/offs = 0x00001/0x7E8  inpgsz = 20
Uncounted Manual block @ 0x800017FC : size = 10 page/offs = 0x00001/0x7FC  inpgsz = 40
Uncounted Manual block @ 0x00081FE0 : size =  3 page/offs = 0x00081/0xFE0  inpgsz = 12
Pagesplit @ 00083FF0 : size=4 insts
Pagesplit @ 00081FEC : size=5 insts
Uncounted Manual block @ 0x00081FEC : size =  5 page/offs = 0x00081/0xFEC  inpgsz = 20
Uncounted Manual block @ 0x80001824 : size =  2 page/offs = 0x00001/0x824  inpgsz = 8
Uncounted Manual block @ 0x80001838 : size =  3 page/offs = 0x00001/0x838  inpgsz = 12
Uncounted Manual block @ 0x8000185C : size =  4 page/offs = 0x00001/0x85C  inpgsz = 16
Uncounted Manual block @ 0x8000186C : size =  2 page/offs = 0x00001/0x86C  inpgsz = 8
Uncounted Manual block @ 0x80001890 : size =  8 page/offs = 0x00001/0x890  inpgsz = 32
Uncounted Manual block @ 0x800013C0 : size = 40 page/offs = 0x00001/0x3C0  inpgsz = 160
Protected page @ 0x00003
Uncounted Manual block @ 0x00081FC0 : size =  8 page/offs = 0x00081/0xFC0  inpgsz = 32
cdvd driver module version 0.1.1 (C)SCEI
Load File service.(99/11/05)
Multi Threaded Fileio module.(99/11/15) 
iop heap service (99/11/03)
loadelf: fname host:C:¥Users¥Adam¥OneDrive¥Backups¥PS2¥Tools¥wlaunchelf_BOOT.ELF secname all
loadelf version 3.30
Input ELF format filename = host:C:¥Users¥Adam¥OneDrive¥Backups¥PS2¥Tools¥wlaunchelf_BOOT.ELF
0 01c90f50 0006f289 .......
Loaded, host:C:¥Users¥Adam¥OneDrive¥Backups¥PS2¥Tools¥wlaunchelf_BOOT.ELF
start address 0x1d0001c
gp address 00000000
Uncounted Manual block @ 0x80001CB8 : size =  9 page/offs = 0x00001/0xCB8  inpgsz = 36
Uncounted Manual block @ 0x80001CDC : size =  9 page/offs = 0x00001/0xCDC  inpgsz = 36
Uncounted Manual block @ 0x80001D08 : size =  5 page/offs = 0x00001/0xD08  inpgsz = 20
Uncounted Manual block @ 0x80001D1C : size =  2 page/offs = 0x00001/0xD1C  inpgsz = 8
Uncounted Manual block @ 0x800015E8 : size = 10 page/offs = 0x00001/0x5E8  inpgsz = 40
Uncounted Manual block @ 0x80001610 : size =  8 page/offs = 0x00001/0x610  inpgsz = 32
Uncounted Manual block @ 0x80001D24 : size = 13 page/offs = 0x00001/0xD24  inpgsz = 52
# Restart Without Memory Clear.
# Initialize GS ...
# Initialize INTC ...
# Initialize TIMER ...
# Initialize DMAC ...
# Initialize VU1 ...
# Initialize VIF1 ...
# Initialize GIF ...
# Initialize VU0 ...
# Initialize VIF0 ...
# Initialize IPU ...
# Initialize FPU ...
# Initialize Scratch Pad ...
# Restart Without Memory Clear Done.
Elf entry point @ 0x01d0001c about to get recompiled. Load patches first.
Protected page @ 0x01d00
GSdx Lookup CRC:81DDEF10
GSdx Lookup CRC:81DDEF10
Protected page @ 0x00100
Pagesplit @ 80004FFC : size=1 insts
Protected page @ 0x00157
Protected page @ 0x00151
Protected page @ 0x00153
Protected page @ 0x0014f
Protected page @ 0x00150
Uncounted Manual block @ 0x80001A30 : size =  4 page/offs = 0x00001/0xA30  inpgsz = 16
Uncounted Manual block @ 0x800018B0 : size = 14 page/offs = 0x00001/0x8B0  inpgsz = 56
Uncounted Manual block @ 0x800018E8 : size =  3 page/offs = 0x00001/0x8E8  inpgsz = 12
Uncounted Manual block @ 0x800018F4 : size =  3 page/offs = 0x00001/0x8F4  inpgsz = 12
Uncounted Manual block @ 0x80001900 : size =  2 page/offs = 0x00001/0x900  inpgsz = 8
Uncounted Manual block @ 0x80001908 : size =  3 page/offs = 0x00001/0x908  inpgsz = 12
Uncounted Manual block @ 0x80001914 : size =  7 page/offs = 0x00001/0x914  inpgsz = 28
Uncounted Manual block @ 0x80001930 : size =  2 page/offs = 0x00001/0x930  inpgsz = 8
Uncounted Manual block @ 0x80001994 : size =  7 page/offs = 0x00001/0x994  inpgsz = 28
Uncounted Manual block @ 0x800019B0 : size =  2 page/offs = 0x00001/0x9B0  inpgsz = 8
Uncounted Manual block @ 0x800019D0 : size = 23 page/offs = 0x00001/0x9D0  inpgsz = 92
Uncounted Manual block @ 0x80001A40 : size =  3 page/offs = 0x00001/0xA40  inpgsz = 12
Protected page @ 0x00159
Protected page @ 0x0015d
Protected page @ 0x00076
Protected page @ 0x00075
Protected page @ 0x00103
Protected page @ 0x00158
Protected page @ 0x0015a
Get Reboot Request From EE

PlayStation 2 ======== Soft reboot

IOP Realtime Kernel Ver.0.9.1

    Copyright 1999 (C) Sony Computer Entertainment Inc. 

Uncounted Manual block @ 0x80001D00 : size =  2 page/offs = 0x00001/0xD00  inpgsz = 8
Uncounted Manual block @ 0x80001D44 : size =  5 page/offs = 0x00001/0xD44  inpgsz = 20
Reboot service module.(99/11/10)
Protected page @ 0x0014e
cdvd driver module version 0.1.1 (C)SCEI
Load File service.(99/11/05)
Multi Threaded Fileio module.(99/11/15) 
iop heap service (99/11/03)
Protected page @ 0x00101
Protected page @ 0x00156
fileXio: fileXio RPC Server v1.00
Copyright (c) 2003 adresd
[MG] hcode=0 cnum=0 a2=0 length=0x80
[MG] ELF_size=0xF9C0 Hdr_size=0x80 unk=0x700 flags=0x22C count=0 zones=JapanUSAEuropeOceaniaAsiaRussiaChinaMexico
[MG] ERROR - Make sure the file is already decrypted!!!
loadmodule: fname rom0:SIO2MAN args 0 arg 
loadmodule: id 28, ret 0
Uncounted Manual block @ 0x80001630 : size = 11 page/offs = 0x00001/0x630  inpgsz = 44
Uncounted Manual block @ 0x800016A0 : size = 11 page/offs = 0x00001/0x6A0  inpgsz = 44
Uncounted Manual block @ 0x800016CC : size =  6 page/offs = 0x00001/0x6CC  inpgsz = 24
Uncounted Manual block @ 0x800016E4 : size = 10 page/offs = 0x00001/0x6E4  inpgsz = 40
Uncounted Manual block @ 0x8000170C : size =  2 page/offs = 0x00001/0x70C  inpgsz = 8
Uncounted Manual block @ 0x80001714 : size =  3 page/offs = 0x00001/0x714  inpgsz = 12
Uncounted Manual block @ 0x80001778 : size =  8 page/offs = 0x00001/0x778  inpgsz = 32
loadmodule: fname rom0:PADMAN args 0 arg 
Pad driver. (99/11/22)
loadmodule: id 31, ret 0
CDVD: CDVD Filesystem v1.15by A.Lee (aka Hiryu) & Nicholas Van Veen (aka Sjeep)CDVD: Initializing 'cdfs' file driver.
Protected page @ 0x0014d
Pagesplit @ 00153FE8 : size=6 insts
Protected page @ 0x00154
Protected page @ 0x0014b
Protected page @ 0x0014c
Protected page @ 0x00123
Protected page @ 0x00104
Protected page @ 0x0010f
Pagesplit @ 0010EFE8 : size=6 insts
Protected page @ 0x0010e
Protected page @ 0x00155
Protected page @ 0x00152
Protected page @ 0x00106
Pagesplit @ 0014FFF8 : size=2 insts
Pagesplit @ 0014EFD8 : size=10 insts
Protected page @ 0x00102
Protected page @ 0x00107
Protected page @ 0x00105

How to reproduce the issue: (Detailed step by step guide on how to replicate the issue)

See description. I'm trying to run wLaunchELF from https://www.psx-place.com/resources/wlaunchelf.713/download?version=1208

Last known version to work: (If the issue isn't present in an older PCSX2 version, it would be helpful to mention the full title of that version. Narrowing it down to the build/commit that first introduced the issue is even better!)

'uncompressed BOOT.elf' from https://web.archive.org/web/20170918080411if_/http://psx-scene.com/forums/attachments/f113/23397d1294162380-unofficial-launchelf-v4-42-ule-v4.40h-pcsx2-tests-.zip seems to work, as does https://web.archive.org/web/20160819132132if_/http://psx-scene.com/forums/attachments/f113/15126d1232649924-unofficial-launchelf-v4-42-ule-v4.38-boot-dvd-iso.zip

PC specifications: (For example: CPU: Intel Core 2 Duo E4600 GPU: Gigabyte GTX 750Ti OS: Windows 10 64 Bit)

F0bes commented 3 years ago

image It's quite a strange error message. Just select "No disc" when booting an elf.

tadanokojin commented 3 years ago

There's a bug in using an ELF with a fresh install. To workaround either select an ISO before attempting to boot an ELF or use no disc like forbes suggests.

lightningterror commented 3 years ago

Should be fine now.