public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* CFI physmap - how to create partitions
@ 2005-05-18  8:05 Thorsten Haas
  2005-05-18 22:35 ` Ralph Siemsen
  2005-05-19  8:06 ` Thorsten Haas
  0 siblings, 2 replies; 7+ messages in thread
From: Thorsten Haas @ 2005-05-18  8:05 UTC (permalink / raw)
  To: linux-mtd

Hello everyone,

I have a board equipped with CFI-compatible NOR-flash, which is
physmapped and detected by the kernel (/dev/mtd0 in /proc/mtd). Now I am
trying to configure partitions. I read the HOWTO on
ftp://ftp.uk.linux.org/pub/people/dwmw2/mtd/cvs/mtd/mtd-jffs-HOWTO.txt,
googled and browsed kernel code (2.6.8.11) and a daily mtd-snapshot
(2005-05-15). From what i read, I understand:
a) Command line partition table parsing is not functional with
physmapped devices
b) I need to create and fill a 'struct mtd_partition' and call
physmap_configure() and physmap_set_partitions()
Is this correct so far?

I've seen people writing board-dependent mapping drivers, thus
clobbering the section "mapping driver for chip access". Is this
actually the way to go? Well, I am not too lazy to write some code, but
is there a more genric way?

Best regards,
Thorsten Haas

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

end of thread, other threads:[~2005-05-20 13:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-18  8:05 CFI physmap - how to create partitions Thorsten Haas
2005-05-18 22:35 ` Ralph Siemsen
2005-05-19  8:06 ` Thorsten Haas
2005-05-19 11:54   ` Ralph Siemsen
2005-05-20  7:26     ` Thorsten Haas
2005-05-20 12:58       ` Ralph Siemsen
2005-05-20 13:20         ` Thorsten Haas

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