This is just dosfsck compiled for the GP2X. Since my 2 GB SD card had a lot of trouble (a couple of bad sectors) I wanted to use fsck, so I went and did this build. I did apply a patch to it, since it always said that "Logical sector size is zero" on the SD card. Since that was the only real use I wanted to give to it, I searched the net and found a patch already to solve that problem for another arm platform. Otheriwse, it is the standard release (dosfstools-2.11). The patch is in the file dosfstools-2.10.patch if you need it for reference (taken from http://beer.geek.nz/software/zaurus/dosfstools/).
This one was compiled using the following optimizations (which proved to give it a nice speed boost):
-O3 -Wall -ftracer -fstrength-reduce -Wno-unused -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math
Of course you'll need to run this on the SD (/dev/mmcsd/disc0/part1) while it is unmounted, and you'll need to have the executable on the nand or the root filesystem.
I also wrote a small tool and a script to help those that don't have telnet access to the GP2X (or for those wanting to run it while on the road, though I'd mind the batteries). It is called sdlmore, and it includes the script I use to run dosfsck on my GP2X (unmount the SD, run dosfsck and mount it back again). I've found it useful to have them both on the nand under an utils folder.
This one was compiled using the following optimizations (which proved to give it a nice speed boost):
-O3 -Wall -ftracer -fstrength-reduce -Wno-unused -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math
Of course you'll need to run this on the SD (/dev/mmcsd/disc0/part1) while it is unmounted, and you'll need to have the executable on the nand or the root filesystem.
I also wrote a small tool and a script to help those that don't have telnet access to the GP2X (or for those wanting to run it while on the road, though I'd mind the batteries). It is called sdlmore, and it includes the script I use to run dosfsck on my GP2X (unmount the SD, run dosfsck and mount it back again). I've found it useful to have them both on the nand under an utils folder.
Download Here --> http://archive.gp2x.de/cgi-bin/cfile...,0,0,0,37,1617