DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: distrokit@pengutronix.de
Subject: Re: [DistroKit] [PATCH] v7a: image-vexpress: remove unneeded partition
Date: Mon, 11 Feb 2019 15:46:24 +0100	[thread overview]
Message-ID: <20190211144624.ejcnk5nabrvvbjfa@pengutronix.de> (raw)
In-Reply-To: <20190211133303.chkparebct5sfxfx@pengutronix.de>

On Mon, Feb 11, 2019 at 02:33:03PM +0100, Robert Schwebel wrote:
> On Mon, Feb 11, 2019 at 02:29:32PM +0100, Roland Hieber wrote:
> > The additional partition at the end results in an hdimage of ~1 GB in
> > size; compared to the ~60 MB of the other hdimages created by
> > platform-v7a, this seems out of proportion as the image will consist
> > mainly of zeroes. It is not clear to me why this partition was added at
> > all in commit cc1fee168d ("platform-v7a: vexpress: add board support"),
> > but it turns out that qemu-vexpress boots fine without it.

No it doesn't:

[...]
[    1.601963] mmcblk0: p1 size 1048576 extends beyond EOD, truncated
[    1.603317] mmcblk0: p2 start 1050624 is beyond EOD, truncated
[...]

The disk size in qemu is the file size. Without this partition the image
is too small because the ext4 image for the first partition is smaller than
the partition size and the second partition has no content.

> > Reported-by: Alexander Dahl <post@lespocky.de>
> > Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> > ---
> >  configs/platform-v7a/config/images/vexpress.config | 7 -------
> >  1 file changed, 7 deletions(-)
> > 
> > diff --git a/configs/platform-v7a/config/images/vexpress.config b/configs/platform-v7a/config/images/vexpress.config
> > index 7cfaaaa..8ca2f9c 100644
> > --- a/configs/platform-v7a/config/images/vexpress.config
> > +++ b/configs/platform-v7a/config/images/vexpress.config
> > @@ -12,13 +12,6 @@ image @IMAGE@ {
> >  		partition-type = 0x83
> >  		size = 512M
> >  	}
> > -	/* expand image size to 64 MiB; dummy size, results in 0 bytes length */
> > -	partition end {
> > -		image = /dev/null
> > -		size = 1M
> > -		offset = 1025M
> > -		in-partition-table = false
> > -	}
> >  }
> >  
> >  /* vim: set tabstop=8 noexpandtab : */
> > -- 
> > 2.20.1
> 
> Applied to next.

Revert please.

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 |

_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

  reply	other threads:[~2019-02-11 14:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-11 13:29 Roland Hieber
2019-02-11 13:33 ` Robert Schwebel
2019-02-11 14:46   ` Michael Olbrich [this message]
2019-02-11 15:06     ` Robert Schwebel
2019-02-11 16:18   ` [DistroKit] [PATCH v2] v7a: image-vexpress: fix comment in image config Roland Hieber
2019-02-12  6:30     ` Robert Schwebel

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=20190211144624.ejcnk5nabrvvbjfa@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=distrokit@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