All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Hunter <ext-adrian.hunter@nokia.com>
To: Mike Frysinger <vapier.adi@gmail.com>
Cc: Miles Nordin <carton@ivy.net>,
	"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: 3GB limit? *2* GB limit?!
Date: Thu, 05 Feb 2009 11:17:06 +0200	[thread overview]
Message-ID: <498AAE92.9090100@nokia.com> (raw)
In-Reply-To: <8bd0f97a0902040754j1ed15757gfcf1e03fdd8083d2@mail.gmail.com>

Mike Frysinger wrote:
> On Wed, Feb 4, 2009 at 02:40, Artem Bityutskiy wrote:
>> On Tue, 2009-02-03 at 19:58 -0500, Miles Nordin wrote:
>>> -----8<-----
>>> # uname -a
>>> Linux fishstick 2.6.25-gentoo-r8 #2 SMP PREEMPT Wed Feb 4 05:23:36 UTC 2009 i686 AMD Phenom(tm) 9850 Quad-Core Processor AuthenticAMD GNU/Linux
>>> # ls -l /dev/mtd*
>>> ls: cannot access /dev/mtd*: No such file or directory
>>> # modprobe block2mtd block2mtd=/dev/sdj,128KiB
>>> # modprobe mtdchar
>>> # ls -l /dev/mtd*
>>> crw-rw---- 1 root root 90, 0 Feb  4 06:29 /dev/mtd0
>>> crw-rw---- 1 root root 90, 1 Feb  4 06:29 /dev/mtd0ro
>>> fishstick devices # ubiformat /dev/mtd0
>>> ubiformat: mtd0 (RAM-based), size 3246391296 bytes (3.0 GiB), 131072 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 1 bytes
>>> libscan: scanning eraseblock 16384 -- 66 % complete  libmtd: error!: cannot seek mtd0 to offset 18446744071562067968
>>>         error 22 (Invalid argument)
>>> ubiformat: error!: failed to scan mtd0 (/dev/mtd0)
>>> # fdisk /dev/sdj
>>> Device contains neither a valid DOS partition table, nor Sun, SGI
>> MTD user-space interface is 32-bit, and is simited by 2GiB. You have to
>> upgrade it to use larger devices.
> 
> you mean the MTD user-space code he is currently using, not current
> MTD user-space in general ?
> -mike

>From 2.6.29, the internal MTD API will support 64-bit sizes,
however, presently it only supports 32-bits (probably only 1GiB
safely).

However, in any case, the MTD ioctls use unsigned 32-bit integers
for sizes, so they must be hacked or 64-bit ioctls added to use
MTD's that are 4GiB or over.

  reply	other threads:[~2009-02-05  9:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-04  0:58 3GB limit? *2* GB limit?! Miles Nordin
2009-02-04  7:40 ` Artem Bityutskiy
2009-02-04 15:54   ` Mike Frysinger
2009-02-05  9:17     ` Adrian Hunter [this message]
2009-02-04 18:47   ` Miles Nordin
2009-02-05  9:26     ` Artem Bityutskiy

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=498AAE92.9090100@nokia.com \
    --to=ext-adrian.hunter@nokia.com \
    --cc=carton@ivy.net \
    --cc=linux-mtd@lists.infradead.org \
    --cc=vapier.adi@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.