Re: [uClinux-dev] Flash device driver with holes or filesystem with holes

From: Erwin Authried (eauth@softsys.co.at)
Date: Mon Nov 27 2000 - 07:29:56 EST


Jonas Aaberg[SMTP:aberg@scs.ch] wrote:
> 
> Hello
> 
> I will need to save data and read data in the flash 
> memory of an M5307C3 system. Therefore I want to run a filesystem on the
> flash memory.
> 
> I havn't got the board yet, but I suppose that you
> can axcess the flash via /dev/romX (where X is an
> number.) The problem then, is that I still want
> the dBug software to be there between:
> 0xffe00000-0xffe20000
> and I want to have a colilo image and maybe the
> linux image at 0xffe80000, so I can boot colilo
> directly if I want to.
> 
> How I can make a file system on a flash memory that
> some parts is already occypied? Can a file system
> be created with holes in the memory?
> 
> What about this "hole" utility? I didn't really get
> what it does.
> 
> Or is it easiest to write a new device driver which
> axcess the flash memory directly and simulate that
> it is one linear memory of the size 1MB minus what
> I need for dBug and Colilo+linux image?
> 
> I've started on such a device driver, and came quite
> far, but done no debuggin since I don't have the
> board yet.
> But I'm wondering if I try to invent the wheel again. In other words, is
> there an easier solution?
> 
In MTD, it is possible to partition a flash device. You could first split
your flash into several devices, and then combine those to one device
with the md driver. This is just an idea, I have never tried this. 
See http://www.linux-mtd.infradead.org

Regards,

Erwin

 

This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/

This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:19 EDT