From: Jonas Gorski <jogo@openwrt.org>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org, Kevin Cernekee <cernekee@gmail.com>,
Florian Fainelli <f.fainelli@gmail.com>,
John Crispin <john@phrozen.org>,
Paul Burton <paul.burton@imgtec.com>,
James Hogan <james.hogan@imgtec.com>, Alban Bedel <albeu@free.fr>,
Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Subject: [PATCH 0/2] MIPS: keep firmwmare arguments with appended dtb
Date: Fri, 17 Jun 2016 14:07:38 +0200 [thread overview]
Message-ID: <1466165260-6897-1-git-send-email-jogo@openwrt.org> (raw)
The following two patches modify the appended dtb and UHI detection in a
way to allow keeping all four firmware arguments.
Patch one changes the handling of ZBOOT appended dtbs by copying the
appended dtb to the place where the extracted kernel will expect it.
This takes advantage of the fact that the compression Makefile recipe
will always append the uncompressed kernel size to the compressed
kernel if not done by the compression format itself.
This has the nice side effect that we don't need to special case ZBOOT
appended dtb anymore.
Patch two then introduces a new global variable for a UHI passed dtb
address, and stores the appended dtb's address in there if support is
enabled, or the UHI passed address if the arguments match the UHI
interface. It will only do a FDT MAGIC sanity check for appended dtbs,
and not for UHI passed ones, since just because a0 is -2, doesn't mean
a1 will contain a valid address.
Both have been run tested on BMIPS on BCM9EJTAGPRB.
Jonas Gorski (2):
MIPS: ZBOOT: copy appended dtb to the end of the kernel
MIPS: store the appended dtb address in a variable
arch/mips/Kconfig | 22 ++--------------------
arch/mips/ath79/setup.c | 4 ++--
arch/mips/bmips/setup.c | 4 ++--
arch/mips/boot/compressed/Makefile | 1 +
arch/mips/boot/compressed/decompress.c | 21 +++++++++++++++++++++
arch/mips/boot/compressed/head.S | 16 ----------------
arch/mips/include/asm/bootinfo.h | 4 ++++
arch/mips/kernel/head.S | 21 ++++++++++++++-------
arch/mips/kernel/setup.c | 4 ++++
arch/mips/lantiq/prom.c | 4 ++--
arch/mips/pic32/pic32mzda/init.c | 4 ++--
11 files changed, 54 insertions(+), 51 deletions(-)
--
2.1.4
next reply other threads:[~2016-06-17 12:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-17 12:07 Jonas Gorski [this message]
2016-06-17 12:07 ` [PATCH 1/2] MIPS: ZBOOT: copy appended dtb to the end of the kernel Jonas Gorski
2016-06-17 14:01 ` Antony Pavlov
2016-06-17 14:44 ` Jonas Gorski
2016-06-17 15:06 ` Antony Pavlov
2016-06-17 12:07 ` [PATCH 2/2] MIPS: store the appended dtb address in a variable Jonas Gorski
2016-06-17 16:56 ` Daniel Gimpelevich
2016-06-20 9:31 ` Jonas Gorski
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=1466165260-6897-1-git-send-email-jogo@openwrt.org \
--to=jogo@openwrt.org \
--cc=albeu@free.fr \
--cc=cernekee@gmail.com \
--cc=daniel@gimpelevich.san-francisco.ca.us \
--cc=f.fainelli@gmail.com \
--cc=james.hogan@imgtec.com \
--cc=john@phrozen.org \
--cc=linux-mips@linux-mips.org \
--cc=paul.burton@imgtec.com \
--cc=ralf@linux-mips.org \
/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