Post subject: Image Viewer 0.4=working writes (REIN, DSO builds inside)
Posted: Fri Nov 10, 2006 7:56 pm
Joined: Sun Apr 30, 2006 5:39 am Posts: 1560 Location: Canada, eh?
No, its not my write code (it's Rudolph's), in fact, I have been far too busy with other things to deal with much of anything else requiring more than short stints at the PC lately, to top it off I still haven't received a "spare" micro sd that I ordered a couple weeks back to do testing on (from Australia of all places).
That said, Image Viewer Ver0.4:
http://mdxonline.dyndns.org/archives/20 ... e_14.shtml Has what appears to be some write code that should be working. I will test it out in a few hours time, but I havent tried Image Viewer at all to know if it writes anything.
Any input welcome before I get back and do some fiddling.
Quote:
Version 0.4 2006/11/10
The scroll speed-up was done in double screen mode of the slide show. A small bug of the slide show was mended. EZ4 was supported. (Thank you for Ko-tei) A long file name was made to be scrolled when the IPK file was selected. The reduction rate (37%/50%/62%/75%/87%/100%/125%/150%/175%/200%) was added, and the icon was added. The custom jpeg format was added for small file size. (It is compatible with an old IPK file.) A small bug was corrected. The user interface was changed a little.
(PS: thanks guys, I wouldn't ask if I had the time right this second).
Last edited by cory1492 on Fri Nov 24, 2006 8:31 pm, edited 4 times in total.
Joined: Sun Apr 30, 2006 5:39 am Posts: 1560 Location: Canada, eh?
Quote:
there's a folder in there 'ezsd_cantwritever'
The "function_medium_canwrite" is disabled in that set of files (so it can never write if the driver checks for it) while in the main set it is enabled. The FAT driver I'm testing with doesn't appear to use this attribute at all (while Infantile's does).
Using R17 and only a portion of the files found in the imgview 1.4 source (only used the 3 sdoperator files and the two io_ezsd files) I am getting much more reliable writes than anything else I have looked at so far; it is skipping writing 1 block every 32 with o2 optimization. Out of 7 tests so far of variations on builds and sizes of the file I was copying, there has be 0 instances of FAT corruption as I was seeing previously, and write speed is much much faster.
A bit later... Found that issue, there is no check with the SD card to be certain it is done writing data... at least, that is my best guess because putting a "status read" at the end of the write function (and discarding the result) appears to have corrected it. If anyone else has different versions of the EZ4 and is willing to test this driver (be certain to backup your data first, just in case), I can attest after much testing of various sizes of "test.bin" files that it is indeed working quite well (with a slight stutter every 32x512bytes for that gap I mentioned above) with the EZ4L deluxe.
Note: it is definitely NOT complete by the standards in place with libFat, but it works well for me under every circumstance I thought up in the last hour to throw at it. A proper status check is probably needed, but for now it is working at least (all without once corrupting my SD card too!)
EZ4FATDemo-Nov-11-2006.zip
I only have my EZ4lite with me (original model) but it appears to be working on that too. Great work cory1492 and all concerned.
I was trying the demo in the zip by the way.
edit: Rein grabbed my advance wars save too.
Joined: Sun Apr 30, 2006 5:39 am Posts: 1560 Location: Canada, eh?
I, too, have no real idea who it was who fixed the code. I just know its not entirely complete, but working for me (and should be working in DKP17 and 19).
I don't understand all the details but I have one question Do you think this discovery should be useful to have DSOrganize writing on EZ4 ?
Since DragonMinded stopped developments, is there someone who should implement this code in the program ?
Joined: Sat Feb 26, 2005 8:11 pm Posts: 3044 Location: Or-Stray-Lee-Ya
Shaora,
Yes, it will be most useful in getting DSO working fully. If the code is as complete and easy to drop in, then it shouldn't be too difficult for someone to compile a working DSO.
Infact, it should allow any homebrew to write to the DS card directly. Lets just test it a bit more before shouting out to the world this time Once it's all good, I'll be telling the whole wide world about it.
_________________ AmplituDS website - The latest news, information and downloads of the game.
AmplituDS forums - Chat, sneak previews, track creation, and more.
2nd the great job!!!! Go cory, work out the bugs with the error checking and distro, implement, and take over as the best for gba compat, nds compat, and now homebrew!!!!!
Joined: Sun Apr 30, 2006 5:39 am Posts: 1560 Location: Canada, eh?
Thanks for the testing guys. No plans to finish any of the "error" (as you put it) code, it is working fine the way it is (with the extra bus read, since to get a bus read it has to wait till the bus is not busy == not writing any more, so it was not to check for an error, just a busy signal) - that can be left to someone else if it is ever merged into libfat.
Slade, you were right, it wasn't very hard (nearly drag and drop with the files I left last night). But after yesterday's service I was far too ready for sleep to make the includes work for DSO too. It was a long long sad day to the end of a long long sad week Thankfully this is something I was able to do to take my mind off it all. Oddly enough, I didnt get any graphic corruption at all with either of the binaries - though I do know how to fix it on any more major applications (use pepsiman's M3powerloader instead of the default one from the toolchains).
Shaora: DSO-EZ4.zip Read the readme, there is a comment specifically for you. I would have done more sooner but my father was much more important. Because of the way it seems to be getting invalid data for PersonalData, I was unable to get the IRC function to work (yet? I am somewhat uncomfortable editing the actual DSO app, and the released source was incomplete as "resources" comes pre-built).
Last edited by cory1492 on Sun Nov 12, 2006 1:17 pm, edited 2 times in total.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum