Reply by larwe May 11, 20062006-05-11
MyUsenetAccount wrote:

> So what governs the API? Is it the vendor of the FS? If a file system > is POSIX complaint then it is clear what the driver interface (open, > read, etc.) will be right?
I'm on shaky ground here, but I believe the answer to this is no. POSIX standardizes what the app layer sees. The way the OS talks to internal FS components is not part of this equation. Windows XP has a token POSIX compliance, but XP device drivers, including installable file systems, are in no way compliant with any kind of published standard.
Reply by larwe May 11, 20062006-05-11
Hi!

> And a great help it is! BTW some time ago I sent you some > patches at zws.com for it (one involving pointer underrun > is necessary); please let me know if you got 'em.
I didn't get those. I have cyclic problems with antispam measures being enforced upstream of me. Some days I'll receive four thousand bounced spams that had zws.com/larwe.com return addresses. Some days I won't receive any mail at all. Please resend :)
Reply by linnix May 10, 20062006-05-10
MyUsenetAccount wrote:
> >> Any links to how this is done in practice? > > >look for yampp > > Thanks but this implementation uses a dedicated decoding chip. I'm > looking for infos on using a controller to do this. > > innix wrote: > > Most OS would have FAT fs on USB drives/readers. You might have > > to do it yourself on SPI. > > >What is with this USB fetish? > > >>Most OS that have a FAT filesystem would be properly designed, with a > >>layered driver model. The filesystem driver would not care if it is > >>reading from SPI or from USB or from anything else, for that matter.
Could be done, but not currently done for most os.
> > >>As a point of order, a "USB" block device is really an ATAPI device on > >>top of a USB transport layer. > > So I require a fat32 file system on the controller which uses the SPI > driver to read the files back. I should check the interface that the > file system requires the SPI driver to support, right? I gather that > NOT all file systems expect the same interface or is it OS dependant?
Implementations are os specific. USB storage devices with Fat/Fat32 are standard for Windows and Linux.
> Thanks
Reply by msg May 10, 20062006-05-10
larwe wrote:

> > If you are not using an OS, one free FAT filesystem for you to play > with is mine, http://www.zws.com/products/dosfs/ >
Lewin, And a great help it is! BTW some time ago I sent you some patches at zws.com for it (one involving pointer underrun is necessary); please let me know if you got 'em. Regards, Michael Grigoni Cybertheque Museum
Reply by MyUsenetAccount May 10, 20062006-05-10
Thanks for the quick response, and sorry all for the double post.

>The interface between FS and block device driver is OS dependent.
So what governs the API? Is it the vendor of the FS? If a file system is POSIX complaint then it is clear what the driver interface (open, read, etc.) will be right?
>If you are not using an OS, one free FAT file system for you to play >with is mine, http://www.zws.com/products/dosfs/
Thanks for the link; I'll at least look here to get more of a feel for the subject. Thank all for helping my understanding.
Reply by larwe May 10, 20062006-05-10
MyUsenetAccount wrote:

> >>Most OS that have a FAT filesystem would be properly designed, with a > >>layered driver model. The filesystem driver would not care if it is > >>reading from SPI or from USB or from anything else, for that matter. > > So I require a fat32 file system on the controller which uses the SPI > driver to read the files back. I should check the interface that the > file system requires the SPI driver to support, right? I gather that > NOT all file systems expect the same interface or is it OS dependant?
The interface between FS and block device driver is OS dependent. If you are not using an OS, one free FAT filesystem for you to play with is mine, http://www.zws.com/products/dosfs/
Reply by MyUsenetAccount May 10, 20062006-05-10
>> Any links to how this is done in practice?
>look for yampp
Thanks but this implementation uses a dedicated decoding chip. I'm looking for infos on using a controller to do this. innix wrote:
> Most OS would have FAT fs on USB drives/readers. You might have > to do it yourself on SPI.
>What is with this USB fetish?
>>Most OS that have a FAT filesystem would be properly designed, with a >>layered driver model. The filesystem driver would not care if it is >>reading from SPI or from USB or from anything else, for that matter.
>>As a point of order, a "USB" block device is really an ATAPI device on >>top of a USB transport layer.
So I require a fat32 file system on the controller which uses the SPI driver to read the files back. I should check the interface that the file system requires the SPI driver to support, right? I gather that NOT all file systems expect the same interface or is it OS dependant? Thank
Reply by MyUsenetAccount May 10, 20062006-05-10
>> Any links to how this is done in practice?
>look for yampp
Thanks but this implementation uses a dedicated decoding chip. I'm looking for infos on using a controller to do this. innix wrote:
> Most OS would have FAT fs on USB drives/readers. You might have > to do it yourself on SPI.
>What is with this USB fetish?
>>Most OS that have a FAT filesystem would be properly designed, with a >>layered driver model. The filesystem driver would not care if it is >>reading from SPI or from USB or from anything else, for that matter.
>>As a point of order, a "USB" block device is really an ATAPI device on >>top of a USB transport layer.
So I require a fat32 file system on the controller which uses the SPI driver to read the files back. I should check the interface that the file system requires the SPI driver to support, right? I gather that NOT all file systems expect the same interface or is it OS dependant? Thanks
Reply by larwe May 10, 20062006-05-10
linnix wrote:

> Most OS would have FAT fs on USB drives/readers. You might have > to do it yourself on SPI.
What is with this USB fetish? Most OS that have a FAT filesystem would be properly designed, with a layered driver model. The filesystem driver would not care if it is reading from SPI or from USB or from anything else, for that matter. As a point of order, a "USB" block device is really an ATAPI device on top of a USB transport layer.
Reply by linnix May 10, 20062006-05-10
MyUsenetAccount wrote:
> >> Point three I can find much info but I'm having problems finding info > >> on one and two. I'm interested if a TOC or similar is used on the flash > >> devices in order for the host controller to determine the number of > >> tracks etc. > > >MP3s are files, not tracks, in most implementations. > > Yep of course. Sorry. So the controller would look through the files on > the external file system reading header info from each mp3 file to > determine track name / lenght etc. Right?
Yes, there is a header at the beginning of each mp3 file.
> Any links to how this is done in practice?
Same as reading/writing any files on the flash, usually FAT file system. Most OS would have FAT fs on USB drives/readers. You might have to do it yourself on SPI.
> > >Depends on the PowerPC. Easiest way is more likely to use GPIOs or the > >on-chip SPI controller, if they have any. > Yep the idea is to use the SPI for this purpose.