Page 1 of 4

drastic_dldi.img Setup on device [ROOT ONLY]

Posted: Sun Aug 03, 2014 2:42 pm
by xperia64
I managed to set up the virtual filesystem entirely on my phone, so I thought I'd make a tutorial.

Prerequisites: root, busybox, a file explorer that can remount / and /system as rw, and terminal knowledge
  1. cd into the DraStic data folder and create a blank file with dd:

    Code: Select all

    dd if=/dev/zero of=drastic_dldi.img bs=1048576 count=128
    Replace 128 with how many MB you want your virtual filesystem to be.
  2. Create the filesystem with mkfs.vfat. If mkfs.vfat doesn't exist, try mkdosfs or update busybox

    Code: Select all

    mkfs.vfat ./drastic_dldi.img
  3. Create a block device to mount the image on (only needs to be done once per reboot)

    Code: Select all

    mknod /dev/block/loop250 b 7 250
    where 250 is an arbitrary unused device number
  4. Link the filesystem to the new block device

    Code: Select all

    losetup /dev/block/loop250 drastic_dldi.img
  5. Create a blank directory to mount the image on

    Code: Select all

    mkdir fatfolder
  6. And finally, mount the image

    Code: Select all

    mount -t vfat /dev/block/loop250 fatfolder
  7. Add data files or whatever you want to the image
  8. Unmount the image

    Code: Select all

    umount fatfolder

    Code: Select all

    losetup -d /dev/block/loop250
To add more files, repeat steps 4-8, or 3-8 after a reboot.


Mount instructions adapted from http://www.techpository.com/?page_id=1201

Re: drastic_dldi.img Setup on device [ROOT ONLY]

Posted: Sun Apr 17, 2016 2:44 am
by Kyousuke753
What is the benefit to this tutorial?

I'm assuming it makes the emulator run faster? My device is rooted and has all the pre-requisites to follow the tutorial.

Feel free to correct me on coding as I don't know much about it.

Re: drastic_dldi.img Setup on device [ROOT ONLY]

Posted: Mon Apr 18, 2016 12:25 am
by JeaneMaggie
Kyousuke753 wrote:What is the benefit to this tutorial?

I'm assuming it makes the emulator run faster? My device is rooted and has all the pre-requisites to follow the tutorial.

Feel free to correct me on coding as I don't know much about it.
It's for homebrews that need dldi patching in order to work properly and other stuff like that. Like if you want to run a gb emu on drastic.

Re: drastic_dldi.img Setup on device [ROOT ONLY]

Posted: Mon Apr 18, 2016 1:58 am
by Kyousuke753
JeaneMaggie wrote:
Kyousuke753 wrote:What is the benefit to this tutorial?

I'm assuming it makes the emulator run faster? My device is rooted and has all the pre-requisites to follow the tutorial.

Feel free to correct me on coding as I don't know much about it.
It's for homebrews that need dldi patching in order to work properly and other stuff like that. Like if you want to run a gb emu on drastic.
Hmm all this trouble just to run a GBA emu on DraStic...Lucky I didn't do the tutorial yet.

Re: drastic_dldi.img Setup on device [ROOT ONLY]

Posted: Mon Apr 18, 2016 2:27 am
by Jay Haru
not a gba game but homebrew. think of it like the psp minis for the ds.

Re: drastic_dldi.img Setup on device [ROOT ONLY]

Posted: Mon Apr 18, 2016 2:38 am
by Kyousuke753
Ahh that explains it thanks Jay-chan <3 I got the gist of it...I was about to follow the tutorial but I was afraid of mucking up and wrecking my smartphone but that is actually cool a universal emulator.

Re: drastic_dldi.img Setup on device [ROOT ONLY]

Posted: Mon Apr 18, 2016 2:42 am
by Exophase
It'd be nice to have some other utility that creates dldi_image files for use with homebrew. I'd add this (and auto-patching the DLDI functions for R4 cards) to DraStic itself but there doesn't seem to be very much demand.

Re: drastic_dldi.img Setup on device [ROOT ONLY]

Posted: Mon Apr 18, 2016 3:00 am
by Kyousuke753
Exophase wrote:It'd be nice to have some other utility that creates dldi_image files for use with homebrew. I'd add this (and auto-patching the DLDI functions for R4 cards) to DraStic itself but there doesn't seem to be very much demand.
Does this mean DraStic is going to become a Universal emulator Exo-chan? if so is it only going to emulate GBA roms?

Re: drastic_dldi.img Setup on device [ROOT ONLY]

Posted: Mon Apr 18, 2016 3:02 am
by Exophase
Kyousuke753 wrote:Does this mean DraStic is going to become a Universal emulator Exo-chan?
No, and what's a universal emulator? Something that emulates everything? :o

Re: drastic_dldi.img Setup on device [ROOT ONLY]

Posted: Mon Apr 18, 2016 3:09 am
by Kyousuke753
I've PM'd you Exo-chan please read it regarding this "Universal Emulator".