Views: 7,898,036 Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 06-25-24 03:13 PM
Guest:

0 users reading How to make .img files for use with melonDS | 1 bot

Main - General - How to make .img files for use with melonDS Hide post layouts | New reply


koreanturtleship
Posted on 10-31-20 11:15 PM (rev. 3 of 11-15-20 10:51 PM) Link | #2670
hi, nice to meet everyone here! I'm new here but I noticed there is a distinct lack of tutorials on how to make a FAT32 SD card .img for melonDS here. The step below has been tested to work on both Linux and Windows (and macOS if you are particularly brave).

Steps:

0. for context we will be using the Virtual SD Card Maker from Dolphin (or the Android development SDK if you wanna be specific) and the command line, so download the program at https://www.mediafire.com/file/cfr9q8542e9lsos/Virtual_SD_Card_Maker.zip/file
1. extract it, and launch a command line in the extracted directory (for Linux users that would be your terminal; for Windows users, either PowerShell or the command prompt will do)
2. there should be a Windows folder and a Linux folder, so navigate to the OS you use.
3. on Windows, use "./mksdcard.exe -l label size (for MB use xM) name.img" (for example)
./mksdcard.exe -l melonDSi 4096M sd.img
3.5. on Linux, use "./mksdcard -l label size (for MB use xM) name.img" (for example)
./mksdcard -l melonDSi 4096M sd.img
4. give it a second to create the file and boom! you have yourself a functioning SD card image you can mount with 3rd party software (I use the imDisk virtual disk driver program) and dd!

if you have any questions, I would be glad to answer. happy emulating everyone :)

- pee.

TR_mahmutpek
Posted on 11-04-20 07:16 PM Link | #2682
Thx for tutorial, was looking for this!

poudink
Posted on 11-05-20 05:29 PM Link | #2687
xG for GB sizes doesn't appear to work. I tried opening cmd in the executable's directory and doing mksdcard.exe -l melonDSi 2G sd.img but it didn't work and I ended up getting a 17kb file accompanied with an error about files larger (or smaller? pretty sure it said larger though, which's weird considering 4096M works fine) than 8MB not working with the Android emulator (or something like that).

____________________
Nothing to say, so jadnjkfmnjamnfjkldnajfnjkanfjdksan jsdnvj m.

hmm
Posted on 11-17-20 07:37 AM Link | #2765
what will be the exact code for 128M sd card??

poudink
Posted on 11-17-20 02:19 PM Link | #2772
pretty sure that'd be mksdcard -l melonDSi 128M sd.img

____________________
Nothing to say, so jadnjkfmnjamnfjkldnajfnjkanfjdksan jsdnvj m.

Nadia
Posted on 11-17-20 04:04 PM Link | #2774
https://kuribo64.net/get.php?id=mRJJ5GggXOPbKUMZ
Alternatively here are some pre-made empty images in 128M, 256M, 1G and 2G, just extract the one you want from the zip and its size is inflated to what it says.

hmm
(post deleted) #2782

hmm
(post deleted) #2879

hmm
Posted on 12-03-20 08:00 AM Link | #2892
I cant mount it via file explorer

Rayyan
Posted on 12-03-20 05:33 PM Link | #2902

You can mount it using a tool like OSFMount.

____________________

How to write an emulator
1. throw code to be emulated somewhere
2. make memory system that allows accessing that code
3. emulate CPU
4. have fun implementing all the other hardware
-- Arisotura, Tuesday 5th January 2021, 22:00:17

keeeeeken
Posted on 03-11-21 05:37 PM Link | #3430
i keep getting a bash ./mksdcard: Permission denied error, help :( (Pop!_OS 20.10 NVIDIA)
[image]

Rayyan
Posted on 03-11-21 06:01 PM Link | #3431

Posted by keeeeeken
i keep getting a bash ./mksdcard: Permission denied error, help :( (Pop!_OS 20.10 NVIDIA)
[image]

I don't think zips preserve file permissions, try:
chmod +x mksdcard


____________________

How to write an emulator
1. throw code to be emulated somewhere
2. make memory system that allows accessing that code
3. emulate CPU
4. have fun implementing all the other hardware
-- Arisotura, Tuesday 5th January 2021, 22:00:17

keeeeeken
Posted on 03-11-21 06:11 PM (rev. 4 of 03-11-21 06:55 PM) Link | #3432
Posted by WaluigiWare64
I don't think zips preserve file permissions, try:
chmod +x mksdcard

thanks! it worked!



how do i mount a .img file? i cant really find anything useful with dd

hoangson
(post deleted) #5621

hoangson
Posted on 11-16-22 07:53 AM Link | #5639
Something that would've been nice is to have an SD image that's Unlaunch-ready from the start. The image that mksdcard generates gives an "Empty MBR entry" error when Unlaunch loads it.


Main - General - How to make .img files for use with melonDS Hide post layouts | New reply

Page rendered in 0.041 seconds. (2048KB of memory used)
MySQL - queries: 28, rows: 105/105, time: 0.024 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.