* spanning multiple chips with one mtd device
@ 2002-02-15 20:43 Andrew Dixon
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Dixon @ 2002-02-15 20:43 UTC (permalink / raw)
To: linux-mtd@lists.infradead.org
Hi All,
I've got a board here with two strataflash chips that are contiguous in
memory. I'd like linux to use as one mtd device. I've kind of got it
to kind of work by faking out cfi_chip_setup in cfi_probe.c. I just
increase cfi->cfiq->DevSize by one so that it thinks the device is twice
as big and then I add one to cfi->cfiq->NumEraseRegions so that it
thinks that there are two erase blocks (each one being one of my flash
chips).
This device is happily recognized and I can mount it as a jffs2 on
/mnt. It even works as long as I don't write too much data to it. When
I try to write enough data so that it should access the other flash chip
I run into problems. The write seems to go OK and the data looks good
but if I unmount and remount the partition all of the data is lost and
I've got an empty filesystem. If I've only written a few small files I
can unmount and remount without problem.
If anyone has any hints, tips or pointers for me I'd really appreciate
it.
Thanks,
Andy
--
Andrew Dixon
Software Engineer
Seranoa Networks
978.897.3434 x231
^ permalink raw reply [flat|nested] 3+ messages in thread
* spanning multiple chips with one mtd device
@ 2002-02-15 16:23 Andrew Dixon
2002-02-15 22:46 ` Jörn Engel
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Dixon @ 2002-02-15 16:23 UTC (permalink / raw)
To: linux-mtd@lists.infradead.org
Hi All,
I've got a board here with two strataflash chips that are contiguous in
memory. I'd like linux to use as one mtd device. I've kind of got it
to kind of work by faking out cfi_chip_setup in cfi_probe.c. I just
increase cfi->cfiq->DevSize by one so that it thinks the device is twice
as big and then I add one to cfi->cfiq->NumEraseRegions so that it
thinks that there are two erase blocks (each one being one of my flash
chips).
This device is happily recognized and I can mount it as a jffs2 on
/mnt. It even works as long as I don't write too much data to it. When
I try to write enough data so that it should access the other flash chip
I run into problems. The write seems to go OK and the data looks good
but if I unmount and remount the partition all of the data is lost and
I've got an empty filesystem. If I've only written a few small files I
can unmount and remount without problem.
If anyone has any hints, tips or pointers for me I'd really appreciate
it.
Thanks,
Andy
--
Andrew Dixon
Software Engineer
Seranoa Networks
978.897.3434 x231
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: spanning multiple chips with one mtd device
2002-02-15 16:23 Andrew Dixon
@ 2002-02-15 22:46 ` Jörn Engel
0 siblings, 0 replies; 3+ messages in thread
From: Jörn Engel @ 2002-02-15 22:46 UTC (permalink / raw)
To: Andrew Dixon; +Cc: linux-mtd@lists.infradead.org
Hi!
> [yet another approach]
>
> If anyone has any hints, tips or pointers for me I'd really appreciate
> it.
You have create the fourth solution for the same problem - as far as I
am aware of it. Search for Aleksander Sanochkin or Robert Kaiser on
the list.
The general problem is concatenating two partitions, your problem is
merely a subset thereof.
Jörn
--
A loving atmosphere in your home is the foundation for you life.
-- reputely from the Dalai Lama, unverified
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-02-15 22:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-15 20:43 spanning multiple chips with one mtd device Andrew Dixon
-- strict thread matches above, loose matches on Subject: below --
2002-02-15 16:23 Andrew Dixon
2002-02-15 22:46 ` Jörn Engel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox