mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Ext2 root file system above 4GB
Date: Thu, 4 Dec 2014 17:10:47 +0100	[thread overview]
Message-ID: <20141204161047.GC16181@pengutronix.de> (raw)
In-Reply-To: <loom.20141202T131937-730@post.gmane.org>

Hi,

On Tue, Dec 02, 2014 at 12:38:37PM +0000, Danny wrote:
> Our system platform is recently upgraded. Before the upgrade we were using 
> a 1GB flash disk with 2 partitions of 400MB each (double partition for 
> software upgrades). The new platform has a 16GB disk and it would be nice 
> if we could increase the 400MB partitions to 6GB.
> 
> This is easy to configure in PTXdist using the configuration (image 
> creation -- generate images/root.ext2 and generate images/hd.img). The 
> root.ext2 size is increased to 6GB (6.291.456 bytes). The hd image 
> partitions are changed to fit the double partitions.
> 
> Creating the 6GB image is causing some problems. The first issue is the 
> inodes from ext2. The first error is "Creating root.ext2 ....... sysroot-
> host/bin/genext2fs: couldn't allocate an inode (no free inode)". After 
> forcing more inodes the following error is seen: "Running e2fsck on 
> root.ext2...make: *** [images/root.ext2] Error 1". The image seems 
> corrupted.
> 
> The creation of the partition seems to work fine up to 4GB. A few MB after 
> this the image creation fails. Searching the internet got me to the 
> following patch for genext2fs: 
> http://sourceforge.net/p/genext2fs/mailman/message/29050966/
> 
> Does someone have the same issues?? Is patching the genext2fs the correct 
> solution?

I don't know these patches, so I cannot comment on any possible issues.

I don't think there is another solution right now. Future versions of
mke2fs will support creating filesystems with content. I don't know when
this will be available though.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2014-12-04 16:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-02 12:38 Danny
2014-12-04 16:10 ` Michael Olbrich [this message]

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=20141204161047.GC16181@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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