[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Re: Microblaze support in dosfstools



Daniel -

I found a bug in the original patch. This one should actually repair 
damaged FATs properly.

Steve

-----Original Message-----
From: "Steve Magnani" <steve@xxxxxxxxxxxxxxx>
To: daniel@xxxxxxxxxx
Cc: steve@xxxxxxxxxxxxxxx
Date: Tue, 07 Apr 2009 22:09:28 -0500
Subject: Microblaze support in dosfstools

> Hi Daniel,
> 
> When I was searching for the official dosfstools home I noticed that it
> was declared orphaned at some point last year. Thanks for adopting it.
> 
> Recently I ran into some trouble getting the 3.02 dosfsck and mkdosfs
> to 
> run on a MMU-less version of Microblaze hardware - an embedded 
> environment that is very memory-constrained (no swap space). (You may
> not 
> have heard of it; a push of that architecture to the mainline Linux 
> kernel is even now in progress). 
> 
> I found that refactoring the heap usage of dosfsck - breaking a large 
> allocation into several smaller ones - allowed it to run in this 
> environment. For mkdosfs, I changed the code to allocate only the
> initial 
> FAT block in common cases (no -c or -l) and reuse the blank_sector 
> everywhere else. The changes are pretty straightforward. I took the 
> liberty of adding a few comments as I went, since I found the code to
> be 
> a little dense.
> 
> Hope you find this useful - let me know if you have any questions or 
> suggestions for doing this better.
> 
> Regards,
> -----------------------------------------------------------------------
> -
>  Steven J. Magnani               "I claim this network for MARS!
>  www.digidescorp.com              Earthling, return my space
> modulator!"
> 
>  #include <standard.disclaimer>

Attachment: dosfstools-microblaze-2.patch
Description: Binary data