Closed ghost closed 4 years ago
try make platform=rpi3
, it should work. We use GLES on rapi :)
Yeah, but I am trying to do it on full opengl profile. Doesnt matter, i will try it on rpi4 !! Thanks
@skmp Whats happening with this other issue?
pi@pi:~/Desktop/reicast-emulator/shell/linux $ ./nosym-reicast.elf
Config dir is: /home/pi/.config/reicast/
Data dir is: /home/pi/.local/share/reicast/
Personality: 00C00000
Updated personality: 00800000
ARM VFP-Run Fast (NFP) enabled !
Linux paging: 4096 00001000 00000FFF
Info: nvmem is enabled, with addr space of size 512MB
Info: p_sh4rcb: 0x51cf0000 virt_ram_base: 0x55df0000
Swap buffers are not preserved. Last frame copy enabled
EGL config: 0x36df128, 0x36bea78, 0x36e1a58 640x480
OpenGL version: OpenGL ES 2.0 Mesa 18.3.6
Screen DPI is 96, size 640 x 480. Scaling by 1.00
Loaded /home/pi/.local/share/reicast/data/dc_boot.bin as bootrom
Loaded /home/pi/.local/share/reicast/data/dc_nvmem.bin as nvram
chd: chd_open failed for file /media/pi/ROMS/Dreamcast games/Cosmic Smash.cdi: 5
Warning: CDI Image Loaded!
Many CDI images are known to be defective, GDI, CUE or CHD format is preferred. Please only file bug reports when using images known to be good (GDI, CUE or CHD).
gdrom: Opened image "/media/pi/ROMS/Dreamcast games/Cosmic Smash.cdi"
ARM7_TCB addr: 0x434000 | from: 0x433aac | addr here: 0x418ced
Game ID is [HDR-0176]
recSh4 Init
@@ ngen_ResetBlocks()
Initializing the ARM32 dynarec
Verify Failed : !isThumb
in JUMP -> /home/pi/Desktop/reicast-emulator/shell/linux/../../core/arm_emitter/H_Branches.h : 59
`trap' para punto de parada/seguimiento
pi@pi:~/Desktop/reicast-emulator/shell/linux $ ./nosym-reicast.elf
Config dir is: /home/pi/.config/reicast/
Data dir is: /home/pi/.local/share/reicast/
Personality: 00C00000
Updated personality: 00800000
ARM VFP-Run Fast (NFP) enabled !
Linux paging: 4096 00001000 00000FFF
Info: nvmem is enabled, with addr space of size 512MB
Info: p_sh4rcb: 0x51d80000 virt_ram_base: 0x55e80000
Swap buffers are not preserved. Last frame copy enabled
EGL config: 0x39c1d48, 0x39a12d8, 0x39c4678 640x480
OpenGL version: OpenGL ES 2.0 Mesa 18.3.6
Screen DPI is 96, size 640 x 480. Scaling by 1.00
Loaded /home/pi/.local/share/reicast/data/dc_boot.bin as bootrom
Loaded /home/pi/.local/share/reicast/data/dc_nvmem.bin as nvram
chd: chd_open failed for file /media/pi/ROMS/Dreamcast games/Sega GT.cdi: 5
Warning: CDI Image Loaded!
Many CDI images are known to be defective, GDI, CUE or CHD format is preferred. Please only file bug reports when using images known to be good (GDI, CUE or CHD).
gdrom: Opened image "/media/pi/ROMS/Dreamcast games/Sega GT.cdi"
ARM7_TCB addr: 0x4d3000 | from: 0x4d2aac | addr here: 0x4b7ced
Game ID is [MK-5105350]
recSh4 Init
@@ ngen_ResetBlocks()
Initializing the ARM32 dynarec
Verify Failed : !isThumb
in JUMP -> /home/pi/Desktop/reicast-emulator/shell/linux/../../core/arm_emitter/H_Branches.h : 59
`trap' para punto de parada/seguimiento
pi@pi:~/Desktop/reicast-emulator/shell/linux $ ./nosym-reicast.elf
Config dir is: /home/pi/.config/reicast/
Data dir is: /home/pi/.local/share/reicast/
Personality: 00C00000
Updated personality: 00800000
ARM VFP-Run Fast (NFP) enabled !
Linux paging: 4096 00001000 00000FFF
Info: nvmem is enabled, with addr space of size 512MB
Info: p_sh4rcb: 0x51d30000 virt_ram_base: 0x55e30000
Swap buffers are not preserved. Last frame copy enabled
EGL config: 0x3f9eb20, 0x3f7e100, 0x3fa1450 640x480
OpenGL version: OpenGL ES 2.0 Mesa 18.3.6
Screen DPI is 96, size 640 x 480. Scaling by 1.00
Loaded /home/pi/.local/share/reicast/data/dc_boot.bin as bootrom
Loaded /home/pi/.local/share/reicast/data/dc_nvmem.bin as nvram
chd: chd_open failed for file /media/pi/ROMS/Dreamcast games/Street Fighter 3rd Strike.cdi: 5
Warning: CDI Image Loaded!
Many CDI images are known to be defective, GDI, CUE or CHD format is preferred. Please only file bug reports when using images known to be good (GDI, CUE or CHD).
gdrom: Opened image "/media/pi/ROMS/Dreamcast games/Street Fighter 3rd Strike.cdi"
ARM7_TCB addr: 0x522000 | from: 0x521aac | addr here: 0x506ced
Game ID is [T1209M]
recSh4 Init
@@ ngen_ResetBlocks()
Initializing the ARM32 dynarec
Verify Failed : !isThumb
in JUMP -> /home/pi/Desktop/reicast-emulator/shell/linux/../../core/arm_emitter/H_Branches.h : 59
`trap' para punto de parada/seguimiento
This looks like some really weird bug. Does the bios work?
Afair, the core needs opengl 3+, and rpi3/4 are only 2.1 atm. You might want to check FH’s fork, he might have added GL 2.1 support
Ok! The only game than runs for now its crazy taxy. I will try another bios..
Ive went to a previus build than at least runs more games and Ive got some sigsevs in some games I will try increasing cma, but I havent any cma warning message on dmesg
pi@pi:~/Desktop/reicast/shell/linux $ ./nosym-reicast.elf
Config dir is: /home/pi/.config/reicast/
Data dir is: /home/pi/.local/share/reicast/
Personality: 00C00000
Updated personality: 00800000
ARM VFP-Run Fast (NFP) enabled !
Linux paging: 4096 00001000 00000FFF
Info: nvmem is enabled, with addr space of size 512MB
Info: p_sh4rcb: 0x51aa0000 virt_ram_base: 0x55ba0000
Created SDL Window (640x480) and GL Context successfully
OpenGL version: OpenGL ES 2.0 Mesa 18.3.3
Screen DPI is 102, size 640 x 480. Scaling by 1.00
Loaded /home/pi/.local/share/reicast/data/dc_boot.bin as bootrom
Loaded /home/pi/.local/share/reicast/data/dc_nvmem.bin as nvram
chd: chd_open failed for file /media/pi/ROMS/Dreamcast games/Sonic Adventure 2.cdi: 5
Warning: CDI Image Loaded!
Many CDI images are known to be defective, GDI, CUE or CHD format is preferred. Please only file bug reports when using images known to be good (GDI, CUE or CHD).
gdrom: Opened image "/media/pi/ROMS/Dreamcast games/Sonic Adventure 2.cdi"
ARM7_TCB addr: 0x52000 | from: 0x519b8 | addr here: 0x2f070
Game ID is [MK-51117]
recSh4 Init
@@ ngen_ResetBlocks()
Initializing the ARM32 dynarec
readm helpers: up to 00265250
@@ ngen_ResetBlocks()
Using Recompiler
Sh4 Reset
Auto-selected audio backend "alsa" (Advanced Linux Sound Architecture).
Initializing audio backend "alsa" (Advanced Linux Sound Architecture)...
ALSA: trying to determine audio device
ALSA: Successfully initialized "default"
ALSA: period size set to 1024
ALSA: buffer size set to 5120
Using Recompiler
cntx // fpcb offset: -68157440 // pc offset: -184 // pc A0000000
@@ ngen_ResetBlocks()
recSh4:Dynarec Cache clear at 8C0000DE
Invalid GD-DMA start, SB_GDEN=0.Ingoring it.
MODEM Reset
VREG = 03 ARMRST 00
VREG = 03 ARMRST 01
VREG = 03 ARMRST 00
Invalid GD-DMA start, SB_GDEN=0.Ingoring it.
VREG = 03 ARMRST 00
ALSA: underrun occurred
ALSA: underrun occurred
ALSA: underrun occurred
VREG = 03 ARMRST 01
VREG = 03 ARMRST 01
VREG = 03 ARMRST 00
ALSA: underrun occurred
@@ ngen_ResetBlocks()
recSh4:Dynarec Cache clear at AC0082FE
VREG = 03 ARMRST 00
@@ ngen_ResetBlocks()
recSh4:Dynarec Cache clear at AC00FFFE
VREG = 03 ARMRST 00
ALSA: underrun occurred
ALSA: underrun occurred
ALSA: underrun occurred
VREG = 03 ARMRST 01
VREG = 03 ARMRST 00
VREG = 03 ARMRST 01
Discard: 8C010080, 0x4e232da0
Discard: 8C0100C6, 0x4e2435d8
VREG = 03 ARMRST 01
ALSA: underrun occurred
ALSA: underrun occurred
Discard: 8C00FA00, 0x4e3ecce0
ALSA: underrun occurred
VREG = 03 ARMRST 01
VREG = 03 ARMRST 01
VREG = 03 ARMRST 00
ALSA: underrun occurred
Discard: 8C011182, 0x4e3d8770
SIGSEGV @ 76f99bdc -> 0x4 was not in vram, dynacode:0
Fatal error : segfault
in fault_handler -> /home/pi/Desktop/reicast-emulator/shell/linux/../../core/linux/common.cpp : 99
`trap' para punto de parada/seguimiento
I think its related to https://github.com/reicast/reicast-emulator/issues/678
Can you try reverting the selective block discard merge?
also keep in mind CDIs generally have problems - verified CHDs or GDIs are best
I did had reset before that commit but it keeps crashing
SIGSEGV @ 76f8ec1c -> 0x4 was not in vram, dynacode:0
Fatal error : segfault
in fault_handler -> /home/pi/Desktop/reicast-emulator/shell/linux/../../core/linux/common.cpp : 99
`trap' para punto de parada/seguimiento
I will try an old release
ive tried going back to c33c0cade8dbf8459b881500b1ebd9723e659073 but there is a commit in between than solve the android definition problem (I cant undefine _ANDROID even if i use_linux, etc) . thats the main reason ive could't try any of the releases. where is the commit that resolve that issue??
some other bugs?
Verify Failed : !(state.cpu.is_delayslot && OpDesc[op]->SetPC())
in dec_DecodeBlock -> /home/pi/Desktop/reicast-emulator/shell/linux/../../core/hw/sh4/dyna/decoder.cpp : 1073
`trap' para punto de parada/seguimiento
another thing, some games doesnt start at all... they throw me to the bios menu (and they are gdi).. I will try ghds..
overall its crashing on many games and didt perform very well (compared with broadcom gles2), so I will not continue testing it...at least on gles2. When rpi4 got ful opengl 3.x profile I will test it there. Thanks
This looks resolved :) Please re-open if issues persist
Ive compiled the emulator succesfully targeting full opengl profile, but it ask opengl 4.3 or 3.0 on execution, so, only rpi4 could do that.
for now, just for testing porpise Ive set -DGL_VERSION_2_1 but produce the next error on gcc 8.3