#120064 - Lick - Wed Feb 28, 2007 7:02 pm
Hey I've been working on a new DLDI-based version of libcartreset: libreset.
The big change is that all the device-specific reset code has been moved to device-specific DLDIs.
Currently I've added reset code to the following DLDI drivers:
scsd.dldi tested, works
sccf.dldi please test
sclt.dldi tested, works
m3sd.dldi tested, works
m3cf.dldi tested, failed, updated v2 tested, failed
g6fl.dldi tested, works
scsd_moon.dldi tested, failed
mpcf.dldi tested, works
mpsd.dldi please test
Those modified drivers can be found along with the patched tests, UPDATE patched tests.
Please run the test for your device! If the DLDI files are working, it should reset immediately to the menu.
- Lick
_________________
http://licklick.wordpress.com
Last edited by Lick on Fri Mar 02, 2007 12:42 am; edited 6 times in total
#120065 - MelGibson - Wed Feb 28, 2007 7:36 pm
I can report it is working (resetting) on my M3 Mini SD
Last edited by MelGibson on Wed Feb 28, 2007 7:37 pm; edited 1 time in total
#120066 - simonjhall - Wed Feb 28, 2007 7:36 pm
I just tried each of the Supercard reset ndses on my Supercard SD (miniSD) on two separate DSes (one with flashme, one without flashme booted via an M3 Simply as a passme) and they just sit there at a black screen once they get loaded with the Supercard loader. No menu resettage.
Sorry!
(Should I be doing something?)
EDIT: ooh - 300th post!
_________________
Big thanks to everyone who donated for Quake2
#120068 - Lick - Wed Feb 28, 2007 8:14 pm
MelGibson: thanks for testing!
simonjhall: That's strange. I have a Supercard miniSD too, and if I run the 'reset_scsd.nds' from the above zip-file, it resets to the menu. What firmware are you using?
_________________
http://licklick.wordpress.com
#120069 - simonjhall - Wed Feb 28, 2007 8:31 pm
...errr....how do I find out? <looks ashamed>
I downloaded a firmware from the SC website quite recently (as in within the last few weeks) but the install method was very vague, so I wasn't too sure if it had done it or not!
_________________
Big thanks to everyone who donated for Quake2
#120078 - Lick - Wed Feb 28, 2007 9:54 pm
When you boot the firmware-upgrade, it goes into GBA mode and you will be asked to confirm the upgrade. That screen will show you your current firmware. As an alternative, hold L and R on boot and press A a few times.
The latest firmware is 1.70.
I don't understand why it would not work, perhaps the card is made differently?
_________________
http://licklick.wordpress.com
#120084 - dantheman - Wed Feb 28, 2007 11:56 pm
To quote a source I cannot link to (but I created in the first place anyway):
Quote: |
Some newer Supercards have different internal workings that do not work with the default DLDI file. Supercard Lites were the first to exhibit this behavior, but issues with regular Supercard SD units have also been reported. They show few signs of being modified, and it is not a change that was ever announced by the Supercard team. However, due to differences in the internal workings of the devices, normal libfat code does not work. Moonlight, the creator of Moonshell, has created an alternate SCSD_moon.dldi patch file that has been reported to work on these Supercards when the standard SCDS.dldi and SCLT.dldi patches have failed.
This modified DLDI patch is reportedly made up of Supercard SD fat code taken from older versions of Moonshell, which were different than that of libfat. ( http://forum.gbadev.org/viewtopic.php?t=12410&start=15 )
There are several locations to download this file:
Moonlight's blog - this file was previously reported to have only reading capability, not writing. However, it has the same CRC as the reportedly fully working ones.
Cryptosystem mirror
SendSpace mirror
Tepples' temp server
|
So perhaps this is the issue.
EDIT: scratch that. I tested both the default SCSD one and SCSD_moon on my Supercard MiniSD and has the same result - freezing at black screens. LoveLite works fine on the same device/card, and I have never had to use the SCSD_moon.dldi file before, so I'm assuming I have one of the older models that the regular Fatlib supports.
#120088 - Lick - Thu Mar 01, 2007 12:14 am
dantheman: the resetting only works if 'reset_...nds' is patched with my modified DLDIs. So, I think I need the source code of MoonLights newer DLDI, so I can modify that one.
Thanks for telling about the hardware change!
_________________
http://licklick.wordpress.com
#120089 - simonjhall - Thu Mar 01, 2007 12:17 am
Yo, I've upgraded to 1.7 and it still ain't resetting - I just get the black screen.
I haven't gotta do anything to the program, right?
_________________
Big thanks to everyone who donated for Quake2
#120091 - Lick - Thu Mar 01, 2007 12:21 am
simonjhall wrote: |
Yo, I've upgraded to 1.7 and it still ain't resetting - I just get the black screen.
I haven't gotta do anything to the program, right? |
Nope, just run the one for your device. I prepatched them. I need scsd_moon.dldi source! :(
_________________
http://licklick.wordpress.com
#120093 - dantheman - Thu Mar 01, 2007 12:26 am
Ah, so the dldi files need to be modified. Alright, then in that case your reset works. I didn't realize they were different, so I just patched it with the stock scsd.dldi file to be double sure. Using the original .nds file from your zip file does indeed work like it's supposed to.
Sorry about the confusion.
#120094 - Lick - Thu Mar 01, 2007 12:29 am
No problem, the more we experiment, the more we learn.
_________________
http://licklick.wordpress.com
#120096 - 0xtob - Thu Mar 01, 2007 12:45 am
I can confirm it working on SuperCard Lite and M3 MiniSD.
I'm looking forward to this!
_________________
http://blog.dev-scene.com/0xtob | http://nitrotracker.tobw.net | http://dsmi.tobw.net
#120098 - Lick - Thu Mar 01, 2007 12:56 am
#120099 - Firon - Thu Mar 01, 2007 1:09 am
#120103 - strager - Thu Mar 01, 2007 1:33 am
I've tested the reset_m3cf.nds with my GBAMP CF and the test was successful in resetting to my _BOOT_MP.nds.
#120122 - HyperHacker - Thu Mar 01, 2007 4:20 am
Do you even need a patch for GBAMP? It works without any DLDI patching in all apps I've tested.
What are the odds of adding a function to launch .nds files as well? ;-)
[edit] That is, FAT access works. I haven't tried this yet, though previous versions worked fine on it.
_________________
I'm a PSP hacker now, but I still <3 DS.
#120132 - Sektor - Thu Mar 01, 2007 7:02 am
reset_m3cf.nds shows black screens on my M3CF.
libcartreset 0.72 returns to the M3CF menu.
_________________
GTAMP.com/DS
#120143 - theli - Thu Mar 01, 2007 8:41 am
reset_g6fl.nds
seems to reset fine :)
#120152 - Lick - Thu Mar 01, 2007 10:37 am
Thanks everyone for testing. I guess it only leaves Supercard CF untested, but that should work anyway.
* I fixed the M3CF bug. (I forgot to clearStatus())
* I added SCSD_Moon. Thanks Firon for getting me the source.
* I added MPCF and MPSD. Just in case.
The new tests are here: link. Please test the M3CF and SCSD_Moon! Thanks!
Oh and SCSD_Moon fails with my SCminiSD, so it's not backwards-compatible with the older SCSD hardware.
_________________
http://licklick.wordpress.com
#120156 - MelGibson - Thu Mar 01, 2007 10:58 am
I think this Card Restart Function is really crucial for faster and easier develoment. Great work Lick. :)
Just think how awesome it would be to include that into DSFTP. Download your new compiled files to your card. Restart. Check your new program on the DS. Restart. Download new compiled files, etc....
No more fiddling, (un)plugging of Cardreaders, Cards, etc. :D
#120157 - felix123 - Thu Mar 01, 2007 11:02 am
thanks lick
SCSD works, SCSD_Moon doesn't, so I think I have an old card.
A few questions:
Do these dldi files also provide fat functionality or is it just reset?
Is it a good idea to include reset code for all known devices and leave a space just to patch in code for new devices?
How do we encourage uptake of softreset (both homebrew developers and cart makers)? :)
_________________
Nintendo DS homebrew on Wikipedia
#120158 - Lick - Thu Mar 01, 2007 11:17 am
felix123: The DLDIs are modified versions of the ones on Chishm's website. The dates are:
scsd chishm [2006-12-25]
sccf chishm [2006-12-26]
sclt brisssou [2007-01-19]
m3sd chishm [2006-12-25]
m3cf chishm [2006-12-25]
g6fl viruseb [2007-01-11]
scsd_moon moonlight [2007-02-14]
mpsd movie advance [2006-12-25]
mpcf chishm [2006-12-25]
So yes, they include the basic FAT functions, and the resetcode is added to the shutdown functions. Invoke them using fatUnmount(PI_DEFAULT) or FAT_FreeFiles().
I am going to create a webpage for libreset that will include a modified DLDI list similar to Chishm's DLDI page. There I will try to keep all the modified DLDIs up to date. I will also add a small guide on how to implement libreset.
_________________
http://licklick.wordpress.com
#120159 - simonjhall - Thu Mar 01, 2007 11:32 am
MelGibson wrote: |
No more fiddling, (un)plugging of Cardreaders, Cards, etc. :D |
But that's half of the fun! Or maybe you're just not fast enough! It would be useful though for cards where you have to go through an annoying menu every time you wanna start a program. On my gbamp I can do the whole card switch and boot thing in about two seconds :-)
And Lick: what can I do to help to find out why my card ain't resetting?
_________________
Big thanks to everyone who donated for Quake2
#120161 - Lick - Thu Mar 01, 2007 11:42 am
simonjhall wrote: |
And Lick: what can I do to help to find out why my card ain't resetting? |
So reset_scsd_moon.nds is not working for you? Crap..
1) Does the (chishms) scsd.dldi work for you, FAT-wise?
2) Does the (moonlights) scsd_moon.dldi work for you, FAT-wise?
3) Does my scsd.dldi work for you, FAT-wise?
4) Does my scsd_moon.dldi work for you, FAT-wise?
_________________
http://licklick.wordpress.com
#120162 - simonjhall - Thu Mar 01, 2007 11:52 am
Oh sorry! I haven't tried them yet! I've only got my gbamp with me today, so I'll try them when I get home tonight...
I can't get my the dldi tester (from chishm's site) patched with the SCSD driver to work on my SC either. But regular dldi fat works just fine on my card! Weiiird.
_________________
Big thanks to everyone who donated for Quake2
#120164 - Lick - Thu Mar 01, 2007 11:59 am
If you have your GBAMP with you, you can test mpcf or mpsd for me :D
_________________
http://licklick.wordpress.com
#120170 - MelGibson - Thu Mar 01, 2007 1:56 pm
simonjhall wrote: |
But that's half of the fun! Or maybe you're just not fast enough! It would be useful though for cards where you have to go through an annoying menu every time you wanna start a program. On my gbamp I can do the whole card switch and boot thing in about two seconds :-) |
Hmm yeah.. but I have a shitty cardreader that stops working once you pullout the card. So this means 1st pressing the "Deactivate Hardware" button on Windows's taksbar. Then removing the card reader. Then pulling out the card and plugging it into the DS. Then starting the DS and run the program. Then shutdown the DS, put back the card into the reader afterwards and pluggin' it back into the USB port. Getting quite boring only from reading it... :P
Ohh by the way is there a method to autostart a programm on the M3 ? I (unfortunetly?!) have the japanese version so the manual is not very informative for me....
#120174 - Sektor - Thu Mar 01, 2007 3:23 pm
The new M3CF test still fails. Black screens when launching from the M3 menu and WMB. Lovelite resets fine.
_________________
GTAMP.com/DS
#120220 - HyperHacker - Thu Mar 01, 2007 10:01 pm
Working on my MPCF. Also, testing via WMB rocks. :-p
_________________
I'm a PSP hacker now, but I still <3 DS.
#120223 - simonjhall - Thu Mar 01, 2007 10:06 pm
Yo, I've tested my gbamp and I think it works fine - ie it sits there flashing between black and white.
My SC still doesn't do anything, it just sits there black. I tried the scsd reset and scsd moon reset. Nada. Want me try some other ones?
_________________
Big thanks to everyone who donated for Quake2
#120249 - Lick - Fri Mar 02, 2007 12:47 am
Sektor and simonjhall, please test my modified m3cf (Sektor) and scsd_moon (simon) on a FAT enabled homebrew, to see if those at least work for FAT.
We will know more after those tests.
Thanks everyone for testing!
- Lick
_________________
http://licklick.wordpress.com
#120266 - Sektor - Fri Mar 02, 2007 4:11 am
You didn't include the .dldi file in test2. I tried the m3cf.dldi from test1 and it failed but it seems that Chishm's m3cf.dldi is also broken (fails with DLDI tester, DSFTP and Hexen). I never noticed before since most DLDI enabled homebrew works on m3cf without patching (uses the built-in driver).
_________________
GTAMP.com/DS
Last edited by Sektor on Fri Mar 02, 2007 5:15 pm; edited 2 times in total
#120290 - Lick - Fri Mar 02, 2007 10:43 am
Yeah I juggled around with test2. If you download it again it contains the dldi. But as you say chishms original fails as well, I guess it's something buggier.
_________________
http://licklick.wordpress.com
#124017 - scognito - Mon Apr 02, 2007 2:21 pm
Lick wrote: |
Yeah I juggled around with test2. If you download it again it contains the dldi. But as you say chishms original fails as well, I guess it's something buggier. |
Any chance to have a ninja ds (njsd.dldi) softreset too?
Thanks.
#124042 - Lick - Mon Apr 02, 2007 6:43 pm
I don't think so..
A. I don't have the hardware.
B. I don't have time to make thousand builds and wait for people to test again.
C. I don't have time at all.
_________________
http://licklick.wordpress.com