devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC v3 0/4] MIPS: add vmlinu{x,z}.bin appended dtb support
@ 2015-04-12 10:24 Jonas Gorski
       [not found] ` <1428834301-12721-1-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Jonas Gorski @ 2015-04-12 10:24 UTC (permalink / raw)
  To: linux-mips-6z/3iImG2C8G8FEW9MqTrA
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, Ralf Baechle, John Crispin,
	Kevin Cernekee, Florian Fainelli, Aaro Koskinen, Markos Chandras,
	Andrew Bresticker, Daniel Schwierzeck, Paul Burton, James Hartley

This patch series implements vmlinux.bin and vmlinuz.bin appended dtb
support, and adds a user for the vmlinux one.

The first two patches add the appropriate support for vmlinux.bin and
vmlinuz.bin. Since enabling it for both does not make sense (and is
potentially dangerous) I made it a choice for which variant it should be
enabled.

Patches three and four then add BMIPS as a test user for this
implementation. vmlinuz.bin was tested by selecting SYS_SUPPORTS_ZBOOT
and setting zload-y to 0x81000000 (ramstart + 16 MiB, so the kernel
is loaded behind CFE), then wrapping vmlinuz_w_dtb.bin in the CFE
expected lzma with appropriate header to unpack there.

For easier testing/using I changed boot/dts/brcm to build all dts files
as dtb blobs in case no built in dtb is selected.

Completely untested on anything except MIPS32 / big endian.

Obviously it won't work with an ELF kernel. I did not have a reasonable
idea how to do that except by parsing the elf header from head.S, and
that seemed a bit insane.

Regards
Jonas

Changes RFC v2 -> v3
* Switched to UHI specs interface instead of manipulating initial_boot_params
* fixed boot on !SMP
* Changed PTR_LW to lw and PTR_LI to li to ensure 32bit loads/
  comparisons are done also on 64 bit
* Added vmlinuz.bin support
* Added bmips as a user

Changes RFC v1 -> v2

* changed all occurences of vmlinux to vmlinux.bin
* clarified this applies to the raw vmlinux.bin without decompressor
* s/initial_device_params/initial_boot_params/



Jonas Gorski (4):
  MIPS: add support for vmlinux.bin appended dtb
  MIPS: add support for vmlinuz.bin appended dtb
  MIPS: BMIPS: build all dtbs if no builtin dtb
  MIPS: BMIPS: accept UHI interface for passing a dtb

 arch/mips/Kconfig                   |   45 +++++++++++++++++++++++++++++++++++
 arch/mips/bmips/setup.c             |    2 ++
 arch/mips/boot/compressed/head.S    |   16 +++++++++++++
 arch/mips/boot/compressed/ld.script |    6 ++++-
 arch/mips/boot/dts/brcm/Makefile    |   13 ++++++++++
 arch/mips/kernel/head.S             |   16 +++++++++++++
 arch/mips/kernel/vmlinux.lds.S      |    8 ++++++-
 7 files changed, 104 insertions(+), 2 deletions(-)

-- 
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2015-04-18  3:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-12 10:24 [PATCH RFC v3 0/4] MIPS: add vmlinu{x,z}.bin appended dtb support Jonas Gorski
     [not found] ` <1428834301-12721-1-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
2015-04-12 10:24   ` [PATCH RFC v3 1/4] MIPS: add support for vmlinux.bin appended dtb Jonas Gorski
2015-04-12 10:24   ` [PATCH RFC v3 2/4] MIPS: add support for vmlinuz.bin " Jonas Gorski
2015-04-12 10:25   ` [PATCH RFC v3 3/4] MIPS: BMIPS: build all dtbs if no builtin dtb Jonas Gorski
2015-04-12 10:25   ` [PATCH RFC v3 4/4] MIPS: BMIPS: accept UHI interface for passing a dtb Jonas Gorski
     [not found]     ` <1428834301-12721-5-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
2015-04-18  3:09       ` Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).