dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: error in disk write code
From: Linus Nielsen Feltzing (
Date: 2002-11-08

Greg Haerr wrote:
> : ./fat mkfile /a 3000
> :
> : fails with the CVS code. It seems that files over about 2MB don't work.

Works for me. What error do you get?

> Files created over 2046 * 1024K (just short of 2MB) don't
> work with the current code. It appears the problem is the
> statically allocated array of FAT cache sectors, which is 0x20
> long. It will need to be made larger for > ~2MB file support,
> or the cache algorithm changed.

What is wrong with the cache algorithm? I can't see any error in there.

> How does the current read code handle large files if the clustersize
> is 1? It appears that it wouldn't work, but I haven't been able to
> test yet.

Why wouldn't it? Please explain.

> Of course, larger mp3's play properly. Does anyone
> know the default clustersize on the JB?

That depends on what program you used for formatting the disk and how
large it is.


Page was last modified "Jan 10 2012" The Rockbox Crew