melonDS-emu / melonDS

DS emulator, sorta
https://melonds.kuribo64.net
GNU General Public License v3.0
3.13k stars 513 forks source link

3DS sourced NDS BIOS7&9 / FW doesn't work on Fedora Linux #1229

Open dhalucario opened 2 years ago

dhalucario commented 2 years ago

DS Info DS: Old 3DS XL FW: 11.15.0-47E

PC Info OS: Fedora Linux 34 (Workstation Edition) CPU: AMD Ryzen 5 3600 6-Core Processor GPU: GeForce GTX 1050 Ti

Dump Info 42676277a91c2469ffd08cfbcd9f7d06 BIOSNDS7.ROM 16384b a392174eb3e572fed6447e956bde4b25 BIOSNDS9.ROM 4096b 7267e543567c0e36588f62ce7b399c1b FWXXXXXX.BIN 131072b

Steps to reproduce:

  1. Homebrew your 3DS
  2. Install TwiLight Menu++
  3. Run Dumper from FAQ page (dsbf_dumper.nds) using the menu
  4. Load them into MelonDS and run a rom of choice (in this case its Mario Kart DS)
  5. Nothing is shown besides a blackscreen

What I expected to happen: I was hoping the game would boot. The rom works in Retroarch MelonDS and DeSmuMe without any BIOS. The firmware alone works in DeSmuMe in Wine. BIOSNDS9 and BIOSNDS7 alone don't work in DeSmuMe in Wine.

nadiaholmquist commented 2 years ago

For BIOS/firmware dumped from a DSi or 3DS you need to have direct boot enabled in the emulator, as the firmware only contains the user settings but isn't actually bootable.

dhalucario commented 2 years ago

Hey @nadiaholmquist. I think I did so. I took a screenshot of my settings:

Screenshot from 2021-09-26 15-09-55

grafik

RayyanAnsari commented 2 years ago

I'll try this with my 3ds once I get Twilight Menu++ set up. Meanwhile, you should probably update melonDS.

RayyanAnsari commented 2 years ago

What settings are you using? For me the dsbf_dumper hangs after 'Saving: FWxxxxx.bin'.

dhalucario commented 2 years ago

What settings are you using? For me the dsbf_dumper hangs after 'Saving: FWxxxxx.bin'.

It doesn't hang for me. I think you need to give it a bit. What settings do you exactly mean? In Twilight Menu++?

dhalucario commented 2 years ago

I built the project from master so I have the latest version for sure and it's the same result with the build from the melonDS website. I'll append the log file just in case that might be helpful.

melon.log

dhalucario commented 2 years ago

I checked the checksums and comparing them to whats on https://mariomasta64.me/bios/bios.txt

My BIOSNDS7.ROM has the same md5 as bios7_dsi.bin in the list My BIOSNDS9.ROM has the same md5 as bios9.bin in the list

This is weird. Is my TWiLight Menu++ wrongly configured?

Edit: I am downloading TWiLight Menu++ using Universal-Updater and nds-bootstrap right now and see if that changes anything.

Edit 2: Did not change anything.

RayyanAnsari commented 2 years ago

do you have "DSi mode" enabled in the Twilight Menu settings?

dhalucario commented 2 years ago

I had it enabled. I set it back to DS mode and I still got the same results. I tried it again a couple times after playing with the settings. Sadly the same results. Here some screenshots so you know whats happenening:

  1. I launch TWiLightMenu++ from the 3DS via the CIA that came with the zip. When I boot into TWiLightMenu++ it says DSi here: IMG_20211002_154941

  2. My TWiLightMenu++ settings are as follows: IMG_20211002_155640

  3. Here are the settings that are set for the rom dumper: IMG_20211002_160303

  4. This is where I boot the rom dumper from: IMG_20211002_145446

nadiaholmquist commented 2 years ago

Can you try rebuilding from latest master? We just merged a PR allowing melonDS to run with a free replacement for the DS BIOSes that is bundled with melonDS by default.

See if you are able to run a game with that so we can rule out if it's your BIOS files being bad or some other strange issue.

dhalucario commented 2 years ago

This works. grafik

My Mario Kart DS dump works when I am using built in BIOS. My firmware is the same as the one I dumped. Is my 3DS even supposed to dump a bios7 DSi bios when I am using a NDS dumper??

Side note: My end goal is to play Mario Kart DS on wiimmfi using melonDS.