public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Charles Manning <manningc2@actrix.gen.nz>
To: linux-mtd@lists.infradead.org
Cc: Mitch Bradley <wmb@firmworks.com>
Subject: Re: mtd partitions limited to 4 GB?
Date: Tue, 17 Jun 2008 12:41:08 +1200	[thread overview]
Message-ID: <200806171241.08371.manningc2@actrix.gen.nz> (raw)
In-Reply-To: <4856FF76.9000302@firmworks.com>

On Tuesday 17 June 2008 12:04:06 Mitch Bradley wrote:
> In drivers/mtd/mtdpart.c, struct mtd_part has  "u_int32_t offset", thus
> (apparently) limiting the partition start offset to 4 GiB.  Similarly,
> struct mtd_partition in include/linux/mtd/partititions.h has "u_int32_t
> size" and "u_int32_offset".

As Josh says it is not just an mtd_part issue, but the whole guts of mtd 
suffer from this. The actual mtd_xxx interface to the kernel is close enough 
for most purposes.

I am aware of people using Linux with >4GB of NAND for a long time now (well 
over a year). They did this by writing their own mtd drivers that just fit 
onto the existing interface.  Many people do that anyway because the nand 
core stuff is slow relative to a tailor made driver.

>
> Now that NAND FLASH device sizes have exceeded that, this appears to be
> a significant limitation.
>
> Is anyone in the mtd community already addressing this?
>
> Fixing the core infrastructure might be as simple as using "loff_t"
> instead of "u_int32_t" for those fields.  However, all of the existing
> partition map parsers appear to have the same 32-bit limitation, so
> partitioning a >4GiB device will require a new or modified partition map
> format.

It is more than just changing the 32 to 64 bit types.

  parent reply	other threads:[~2008-06-17  0:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-17  0:04 mtd partitions limited to 4 GB? Mitch Bradley
2008-06-17  0:22 ` Josh Boyer
2008-06-17  0:41 ` Charles Manning [this message]
2008-06-18 17:04   ` Bruce_Leonard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200806171241.08371.manningc2@actrix.gen.nz \
    --to=manningc2@actrix.gen.nz \
    --cc=linux-mtd@lists.infradead.org \
    --cc=wmb@firmworks.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox