public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Cmdline partitions
@ 2003-08-11  7:31 Jonas Larsson
  0 siblings, 0 replies; only message in thread
From: Jonas Larsson @ 2003-08-11  7:31 UTC (permalink / raw)
  To: linux-mtd

Hi all. I've had some trouble creating my mtd partitions 
with the 2.6.0-test2 kernel and I need some advice. I have
my own mapping driver for our board (not submitted yet) which
is based on the dc21285 map driver.

In the 2.5.70-rmk1 kernel I call parse_cmdline_partitions with
mtd_id="mymapdriver", and specify mtdparts=mymapdriver:<partitions>
to the kernel. In 2.6.0-test2-rmk1 I have to call parse_mtd_partitions
to parse the cmdline. However I cannot specify my mtd_id from the map
driver (except setting the .name member of my map_info struct) as I
could with 2.5.70. This makes the line

if ((!mtd_id) || (!strcmp(part->mtd_id, mtd_id)))

in cmdlinepart.c:parse_cmdline_partitions() to fail. 

The edb7312 map driver calls parse_mtd_partitions like this: 
mtd_parts_nb = parse_mtd_partitions(mymtd, probes, &mtd_parts,
"edb7312-nor"); 

But the 4th arg (origin) is a unsigned long and as I can see
is not used by the implementation of the function. Is this
really the way it is supposed to be?
      
Comments?

/ Jonas

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-11  7:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-11  7:31 Cmdline partitions Jonas Larsson

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