mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Ext2 root file system above 4GB
@ 2014-12-02 12:38 Danny
  2014-12-04 16:10 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Danny @ 2014-12-02 12:38 UTC (permalink / raw)
  To: ptxdist

Hi All,

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?

Thanks,
Danny


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Ext2 root file system above 4GB
  2014-12-02 12:38 [ptxdist] Ext2 root file system above 4GB Danny
@ 2014-12-04 16:10 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2014-12-04 16:10 UTC (permalink / raw)
  To: ptxdist

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

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

end of thread, other threads:[~2014-12-04 16:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-02 12:38 [ptxdist] Ext2 root file system above 4GB Danny
2014-12-04 16:10 ` Michael Olbrich

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