public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* writing new BBRAM driver
@ 2002-12-13 23:45 Alex Pavloff
  2002-12-16 10:14 ` Tobias Otto-Adamczak
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Pavloff @ 2002-12-13 23:45 UTC (permalink / raw)
  To: 'linux-mtd@lists.infradead.org'

Hi there folks.  I've written the struct mtd_info functions for a 128KB
BBRAM driver for my companies new board.  It's horribly simple, as most of
it is actually done by a gate array on the board, so from kernel land its
just poking ioports.  Easy stuff.

Anyway, at this point, I've got that written, but I'm a little hazy as to
what I do next.  Insmod the driver, and then....?

How do I get a drive to mount?

Also, what FS should I use for this BBRAM?

Thanks!

Alex Pavloff - apavloff@eason.com
Eason Technology -- www.eason.com
 

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: writing new BBRAM driver
@ 2002-12-16 22:33 Alex Pavloff
  2002-12-17  9:12 ` Jörn Engel
  2002-12-17  9:49 ` Tobias Otto-Adamczak
  0 siblings, 2 replies; 7+ messages in thread
From: Alex Pavloff @ 2002-12-16 22:33 UTC (permalink / raw)
  To: 'Tobias Otto-Adamczak', linux-mtd; +Cc: Alex Pavloff

> That depends on your hardware and your applications needs. 
> You may want to try minix. How much (KB) is your BBRAM, anyway ? Maybe you

> need no FS at all ?

Alright, I've got most of that stuff done, and the device is there.  It just
reboots when I mount the bbram. :-)  Got some work to do.

I want to use a file system to provide the abstraction layer so that I can
go to a hard drive if needed.  Makes my life easier too, especially on
testing.   My previous product had a 128KB BBRAM that was mapped to a DOS
floppy drive by the bios and formatted with FAT12, and that worked well.
Does the minix fs have a small overhead like FAT12?   Could I use FAT12 if I
was willing to stick with 8.3?  (Which wouldn't be a bad idea anyway, for
other reasons in my project).

Alright, one more question:  What should the erasesize be for BBRAM?
Obviously I'm not worried about wear, so should it be zero or one or
something else?

Thanks!

Alex Pavloff - apavloff@eason.com
Eason Technology -- www.eason.com
 

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: writing new BBRAM driver
@ 2002-12-20  1:14 Alex Pavloff
  0 siblings, 0 replies; 7+ messages in thread
From: Alex Pavloff @ 2002-12-20  1:14 UTC (permalink / raw)
  To: 'linux-mtd@lists.infradead.org'

Sorry, repost with a proper header... grr...

> Date: Mon, 16 Dec 2002 13:54:14 +0100
> From: Geoffroy Stevenne <geof@hellea.com>
> To: linux-mtd@lists.infradead.org
> Subject: Re: writing new BBRAM driver
> Organization: Hellea SPRl
> 
> 
> Hi,
> 
> On Mon, 16 Dec 2002 11:14:41 +0100 (MET)
> Tobias Otto-Adamczak <toa@indakom.de> wrote:
> 
> > Alex Pavloff, 2002-12-13, 15:45h:
> > 
> > > Hi there folks.  I've written the struct mtd_info functions for a
> > > 128KB BBRAM driver for my companies new board.  It's horribly
> > > simple, as most of it is actually done by a gate array on 
> the board,
> > > so from kernel land its just poking ioports.  Easy stuff.
> 
> Great! If it works with the versalogic board it will be tested
> here with a 512KB BBRAM.  Of course I'll provide maximum feedback
> (maybe patches if any required). Thanks!

Sadly, its an integrated piece of hardware that goes onto a
power/touchscreen/bbram mezzanine board that fits directly on top of a geode
"biscuit" SBC board and connects via PC104.  I'll make the source available,
but I really don't think it'll be useful to anyone else as something other
than an example.

I'm still trying to figure out some stuff.

The BBRAM formats to 122KB, which is fine.  I can copy files to & from it.
Since my device can be powered down at any second, I'm might want to use a
journalling filesystem, but, well, I don't need any sort of wear levelling,
so I think jffs/2 is overkill.  Shall I just run minix and just fsck the
drive on powerup or us there some sort of small non-wear-levelling yet
journalling filesystem that I could use?

Secondly:  erasesize.  I have to define a "erase" function (like that of the
test RAM device) and define MTD_ERASEABLE and I've got the erasesize set to
0.  Is this ok?  Will this be called?  Should I make erase size larger for
some reason?

And lastly, while I've got you here, does anyone have any info on why
certain CompactFlash pieces don't work properly in IDE mode without file
corruption?

A range of possible theories have been proposed
 1)  Slow write speed of flash falling out of IDE spec
 2)  Crappy controller chips with IDE code that isn't up to spec
 3)  Linux affinity for SanDisk only, require the =flash option boot

I don't have any flash that does this, but its out there.  All thoughts
appreciated.

Thanks for the great subsystem.

Alex Pavloff - apavloff@eason.com
Eason Technology -- www.eason.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-12-20  0:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-13 23:45 writing new BBRAM driver Alex Pavloff
2002-12-16 10:14 ` Tobias Otto-Adamczak
2002-12-16 12:54   ` Geoffroy Stevenne
  -- strict thread matches above, loose matches on Subject: below --
2002-12-16 22:33 Alex Pavloff
2002-12-17  9:12 ` Jörn Engel
2002-12-17  9:49 ` Tobias Otto-Adamczak
2002-12-20  1:14 Alex Pavloff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox