public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* DoC, NFTL, partitions
@ 2001-05-02 22:01 Stephen Herzog
  2001-05-03  0:59 ` Ollie Lho
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Herzog @ 2001-05-02 22:01 UTC (permalink / raw)
  To: linux-mtd

Greetings,

I am currently working on a project using a single DoC Millennium 8M 
for boot, os, and data collection.  I currently have a system configured
with a single nftl filesystem, and then devided it into a 6M (OS) and 2M
(log file) partitions nftla1 and nftla2.  Both have ext2 file systems on
it.  Boot is achived by using the msystems bios and modified lilo. 

My problem is this: the 2M log file partition gets corrupted with 
unscheduled power down. 

I have read a large amount of information and source code and one of 
the best solution I have seen was suggested by dwmw2 at  
http://mhonarc.axis.se/jffs-dev/msg00411.html  where I would place
two nftl filesystems on the DOC, and then use ext2 on the first, 
and jffs on the second. 

I have made a few attempts at this, however I am not succeeding 
at it and decided to ask for some help. I am using kernel 2.4.3 
with mtd-snapshot-20010430.tar.bz2 

here are the steps I have taken thus far:

eraseall /dev/mtd0
  Erased 8192 Kibyte @ 0 -- 100% complete.

nftl_format /dev/mtd0 0 4194303
  Phase 1. Checking and erasing Erase Zones from 0x00000000 to 0x003fffff
          Erasing Zone #510 @ 0x3fc000
  Phase 2.a Writing NFTL Media Header and Bad Unit Table
  Phase 2.b Writing Spare NFTL Media Header and Spare Bad Unit Table
  Phase 3. Writing Unit Control Information to each Erase Unit

nftl_format /dev/mtd0 4194304 4194303
  Phase 1. Checking and erasing Erase Zones from 0x00400000 to 0x007fffff
          Erasing Zone #1022 @ 0x7fc000
  Phase 2.a Writing NFTL Media Header and Bad Unit Table
  Phase 2.b Writing Spare NFTL Media Header and Spare Bad Unit Table
  Phase 3. Writing Unit Control Information to each Erase Unit

I reboot now as I am not using modules.
On boot, I get the following:

  M-Systems DiskOnChip driver. (C) 1999 Machine Vision Holdings, Inc.
  ...
  DiskOnChip Millennium found at address 0xD0000
  Flash chip found: Manufacturer ID: 98, Chip ID: E6 (Toshiba TC58V64AFT/DC)
  1 flash chips found. Total DiskOnChip size: 8 Mbytes
  mtd: Giving out device 0 to DiskOnChip Millennium
  ...
  M-Systems NAND Flash Translation Layer driver. (C) 1999 MVHI
  $Id: nftlcore.c,v 1.68 2001/03/26 15:44:47 dwmw2 Exp $
  NFTL_notify_add for DiskOnChip Millennium
  NFTL_setup
   nftla: unknown partition table
  Linux PCMCIA Card Services 3.1.22    

I was really wanting to see nftla AND nftlb here.   As an aside, 
I can fdisk /dev/nftla and get a single 4M partition on /dev/nftla1
however I can't seem to find the other 4M of the chip.  From reading 
the nftl kernel code, it sounds like it should scan then entire DoC 
and find the two partitions, however that is not happening. 

Can someone offer advice as to what I am doing wrong?

Also, any tips for getting jffs onto the nftl partition, I don't
seem to be having much luck there either. 

Thanks in advance,

Steve Herzog

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

* Re: DoC, NFTL, partitions
  2001-05-02 22:01 DoC, NFTL, partitions Stephen Herzog
@ 2001-05-03  0:59 ` Ollie Lho
  0 siblings, 0 replies; 2+ messages in thread
From: Ollie Lho @ 2001-05-03  0:59 UTC (permalink / raw)
  To: Stephen Herzog; +Cc: linux-mtd

Stephen Herzog wrote:
> 
> I was really wanting to see nftla AND nftlb here.   As an aside,
> I can fdisk /dev/nftla and get a single 4M partition on /dev/nftla1
> however I can't seem to find the other 4M of the chip.  From reading
> the nftl kernel code, it sounds like it should scan then entire DoC
> and find the two partitions, however that is not happening.
> 

No, unfortunately. The current nftl driver can not support 2 or
more nftl partitions in a single /dev/mtd device. It should not
be too diffcult to fix. Just add a loop around NFTL_mount in
NFTL_setup. Actually there are some other "bugs", try to 
nftl_format /dev/mtd0 0x100000 0x500000 and see what happen.

> Can someone offer advice as to what I am doing wrong?
> 
> Also, any tips for getting jffs onto the nftl partition, I don't
> seem to be having much luck there either.
> 

AFIAK, you have to use JFFS with /dev/mtdblock rather than /dev/nftl

Ollie

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

end of thread, other threads:[~2001-05-03  1:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-02 22:01 DoC, NFTL, partitions Stephen Herzog
2001-05-03  0:59 ` Ollie Lho

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