From: Sascha Hauer <s.hauer@pengutronix.de>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] of: fix how an initrd is passed to Linux
Date: Fri, 26 Apr 2013 07:27:16 +0200 [thread overview]
Message-ID: <20130426052716.GM32299@pengutronix.de> (raw)
In-Reply-To: <20130425210037.GR15233@pengutronix.de>
On Thu, Apr 25, 2013 at 11:00:37PM +0200, Uwe Kleine-König wrote:
> On Thu, Apr 25, 2013 at 02:49:47PM +0200, Uwe Kleine-König wrote:
> > Linux expects linux,initrd-end to contain the first unused address. As
> > this doesn't match the end semantic used by barebox (i.e. end contains
> > the last used address) adding one is necessary.
> >
> > Without this change Linux fails for me to correctly extract a gzipped
> > cpio archive provided as initrd.
> >
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> > ---
> > drivers/of/base.c | 6 +++++-
> > 1 file changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/of/base.c b/drivers/of/base.c
> > index d22031f..6cb5521 100644
> > --- a/drivers/of/base.c
> > +++ b/drivers/of/base.c
> > @@ -1078,6 +1078,10 @@ int of_device_is_stdout_path(struct device_d *dev)
> > *
> > * Add initrd properties to the devicetree, or, if end is 0,
> > * delete them.
> > + *
> > + * Note that Linux interprets end differently than Barebox. For Linux end points
> > + * to the first address after the memory occupied by the image while barebox
> > + * lets end pointing the the last occupied byte.
> The first "the" in the line above should be a "to". Sascha: Assuming you
> are happy with the patch: Can you fix this up while committing?
Applied and fixed.
Thanks
Sascha
--
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 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2013-04-26 5:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-25 12:49 Uwe Kleine-König
2013-04-25 21:00 ` Uwe Kleine-König
2013-04-26 5:27 ` Sascha Hauer [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=20130426052716.GM32299@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=u.kleine-koenig@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