All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fu Wei <fu.wei@linaro.org>
To: grub-devel@gnu.org, Leif Lindholm <leif.lindholm@linaro.org>,
	 Ian Campbell <Ian.Campbell@citrix.com>
Cc: Roy Franz <roy.franz@linaro.org>, Jon Masters <jcm@redhat.com>,
	linaro-uefi <linaro-uefi@lists.linaro.org>
Subject: [PATCH 0/5]arm64: Add multiboot support (via fdt) for Xen boot
Date: Fri, 19 Dec 2014 01:55:37 +0800	[thread overview]
Message-ID: <54931519.50905@linaro.org> (raw)

- This multiboot support is built into linux module for aarch64.
    
- The implementation for Xen is following  <Multiboot on ARM Specification>:
http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/Multiboot
and xen/docs/misc/arm/device-tree/booting.txt in Xen source code.

- The example of this support is <How to boot Xen with GRUB on AArch64 the Foundation FVP model>
https://wiki.linaro.org/LEG/Engineering/Grub2/Xen_booting_on_Foundation_FVP_model_by_GRUB
    
- This adds support for the Xen Multiboot on ARM specification for arm64,
enabling config file portability across the architectures.
    
- The multiboot command is currently x86-only, so reusing these command names
should not conflict with any future additions of ARM support to multiboot2.
    
- The reason of adding this functionality to the existing "linux" module
rather than "multiboot(2)"
  (1)multiboot is x86 only
  (2)Multiboot is added to "linux" module because it reuses existing code.

- Some changes in original linux module code
  Move some #define from grub-core/loader/arm64/linux.c to include/grub/arm64/linux.h 
  Make some shared functions for multiboot.c
  Remove "loaded" checking in the grub_cmd_devicetree of linux.c

- Add grub_fdt_set_reg64 macro into fdt.h header file for inserting "reg" properiy,
while #address-cells = <0x2> and  #size-cells = <0x2>

- Add the introduction of multiboot/module command in docs/grub.texi

This multiboot support will be built in linux module for aarch64,
and can not be used alone.

 docs/grub.texi                     |  10 +
 grub-core/Makefile.core.def        |   1 +
 grub-core/loader/arm64/linux.c     |  72 ++---
 grub-core/loader/arm64/multiboot.c | 593 +++++++++++++++++++++++++++++++++++++
 include/grub/arm64/linux.h         |  11 +
 include/grub/arm64/multiboot.h     | 115 +++++++
 include/grub/fdt.h                 |  12 +
 7 files changed, 778 insertions(+), 36 deletions(-)
 create mode 100644 grub-core/loader/arm64/multiboot.c
 create mode 100644 include/grub/arm64/multiboot.h


Signed-off-by: Fu Wei <fu.wei@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
-- 
1.8.3.1


             reply	other threads:[~2014-12-18 17:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-18 17:55 Fu Wei [this message]
2015-01-08 16:38 ` [PATCH 0/5]arm64: Add multiboot support (via fdt) for Xen boot Ian Campbell
2015-01-21 14:06   ` Fu Wei
2015-01-26 14:32     ` Stefano Stabellini
2015-01-26 14:32       ` Stefano Stabellini
2015-04-10  2:32       ` [Linaro-uefi] " Fu Wei
2015-04-10  2:32         ` Fu Wei
2015-04-15 11:35         ` Ian Campbell
2015-05-03 18:55         ` Andrei Borzenkov
2015-05-03 18:55           ` Andrei Borzenkov
2015-05-06 14:53           ` Fu Wei
2015-05-06 14:53             ` Fu Wei
2015-01-26 14:34     ` Stefano Stabellini
2015-01-26 14:34       ` Stefano Stabellini

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=54931519.50905@linaro.org \
    --to=fu.wei@linaro.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=grub-devel@gnu.org \
    --cc=jcm@redhat.com \
    --cc=leif.lindholm@linaro.org \
    --cc=linaro-uefi@lists.linaro.org \
    --cc=roy.franz@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.