From: Simon Horman <horms@verge.net.au>
To: Matthew Leach <matthew.leach@arm.com>
Cc: kexec@lists.infradead.org, Will Deacon <Will.Deacon@arm.com>
Subject: Re: [RFC PATCH 0/4] Add device-tree support to kexec-tools for ARM
Date: Fri, 7 Sep 2012 07:00:34 +0900 [thread overview]
Message-ID: <20120906220031.GA10174@verge.net.au> (raw)
In-Reply-To: <000101cd8c1f$6f758520$4e608f60$@leach@arm.com>
On Thu, Sep 06, 2012 at 12:04:50PM +0100, Matthew Leach wrote:
> Hi Simon,
>
> I have been having some issues using kexec with your dtb patches...
>
> > Thanks. It was that part of the code that I spent the bulk of my time
> > on.
> > And although it is still has a few rough edges I would be happy for it
> > to be used.
>
> I have looked at the output from your generic fs2dt and compared
> it to the original dts and all looks okay so I'm happy that this
> part of your code works fine.
:)
> > I would prefer to avoid requiring kernel changes unless necessary -
> > the kernels some of the boards I work with require DT since 3.5.
> > However, I am happy to discuss this further, there certainly is
> > merit to a clean implementation.
>
> I believe that you are loading the dtb at an offset from the base
> of 0x1000, this is where the problem lies in that the dtb can be
> corrupted by the page tables of the decompressor.
Of course, sorry for missing that.
> Also, device trees can contain firmware and as such be on the
> order of megabytes in size. This could potentially corrupt the
> decompressor image depending upon the order that these two blobs
> are written to memory.
Yes, I see that now. The dtb I was using for testing was rather small,
less than 200b IIRC.
Actually, I accidently left debug code in the patchset that prints a hex
dump of the dtb to stdtout. That ought to be removed but that the dump
fited comfortably in few dozen lines illustrates how small a blob I had.
> I suggest that we put the DTB out of the way, perhaps just after
> the initrd segment, or at the initrd_offset in the case that
> there is no initrd. This would require a kernel change to set the
> correct parameter to the relocate_new_kerenel function, but the
> change is minimal.
>
> If you are happy with this, I have a set of patches that does the
> job.
Thanks, for the explanation, and thanks to Will for his.
I'm happy with the approach that you propose.
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
prev parent reply other threads:[~2012-09-06 22:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-05 11:43 [RFC PATCH 0/4] Add device-tree support to kexec-tools for ARM Matthew Leach
2012-09-05 11:44 ` [RFC PATCH 1/4] Fix an overflow bug with address comparison Matthew Leach
2012-09-05 11:44 ` [RFC PATCH 2/4] Move libfdt to a generic location Matthew Leach
2012-09-05 11:44 ` [RFC PATCH 3/4] Add the dtc for device-tree manipulation Matthew Leach
2012-09-05 11:44 ` [RFC PATCH 4/4] Add device tree support to the ARM platform Matthew Leach
2012-09-05 12:38 ` [RFC PATCH 0/4] Add device-tree support to kexec-tools for ARM Simon Horman
2012-09-05 14:34 ` Matthew Leach
2012-09-06 3:29 ` Simon Horman
2012-09-06 9:01 ` Will Deacon
2012-09-06 9:09 ` Simon Horman
2012-09-06 9:14 ` Will Deacon
2012-09-06 22:03 ` Simon Horman
2012-09-06 11:04 ` Matthew Leach
2012-09-06 11:19 ` Will Deacon
2012-09-06 22:00 ` Simon Horman [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=20120906220031.GA10174@verge.net.au \
--to=horms@verge.net.au \
--cc=Will.Deacon@arm.com \
--cc=kexec@lists.infradead.org \
--cc=matthew.leach@arm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox