From: Ian Campbell <Ian.Campbell@citrix.com>
To: Julien Grall <julien.grall@linaro.org>
Cc: Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
Christoffer Dall <christoffer.dall@linaro.org>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: xen/arm: Bootwrapper update to support PSCI and GICv3
Date: Mon, 10 Nov 2014 11:34:31 +0000 [thread overview]
Message-ID: <1415619271.28370.6.camel@citrix.com> (raw)
In-Reply-To: <545B6E2B.9030303@linaro.org>
On Thu, 2014-11-06 at 12:48 +0000, Julien Grall wrote:
> Hello all,
>
> I've been working on updating our aarch64 bootwrapper
> to support new feature such as PSCI and GICv3.
>
> Rather than porting the feature from the Linux bootwrapper [1].
> I've added support of Xen on top of the Linux repo.
>
> Below an example to configure bootwrapper with GICv3 and PSCI for
> the foundation model:
>
> 42sh> ./configure --host=aarch64-linux-gnu \
> --with-kernel-dir=$HOME/linux-build/aarch64 \
> --with-dtb=$HOME/arm-trusted-firmware/fdts/fvp-foundation-gicv3-psci.dtb \
> --with-cmdline="console=hvc0 earlycon=pl011,0x1c090000 init=/root/init.sh root=/dev/vda" \
> --enable-psci --with-xen-cmdline="dtuart=serial0 console=dtuart no-bootscrub" \
> --with-xen="$HOME/xen" --enable-gicv3
> 42sh> make
>
> Make will produce a xen-system.axf which is the image used to boot
> Xen on the model.
>
> The branch with the new version is:
> git://xenbits.xen.org/people/julieng/boot-wrapper-aarch64.git branch xen
>
> Ian, can you update your repo with this new version?
FWIW I've been happily using
https://git.linaro.org/people/christoffer.dall/boot-wrapper-aarch64.git/shortlog/refs/heads/xen-psci-support at 7e702c7892d0965f459a61d36e4c8f1a9d6ee6df plus the following fixup (which I've been remiss in not sending out).
Given that we are now in a state where the patches appear to be nicely
in keeping with the wrapper's architecture and therefore potentially
upstreamable I'd like to at least have that conversation with the
maintainers (probably via a patch set submission) before we carry on
with a fork.
Ian.
diff --git a/Makefile.am b/Makefile.am
index 9b6c7e3..6c2786e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -69,8 +69,9 @@ XEN_OFFSET := 0xA00000
DOM0_OFFSET := $(shell echo $$(($(PHYS_OFFSET) + $(KERNEL_OFFSET))))
XEN_BOOTARGS := xen,xen-bootargs = \"$(BOOTARGS)\"; \
module@1 { \
+ bootargs = \"$(CMDLINE)\"; \
compatible = \"xen,linux-zimage\", \"xen,multiboot-module\"; \
- reg = <$(DOM0_OFFSET) 0x800000>; \
+ reg = <0 $(DOM0_OFFSET) 0 0x800000>; \
};
endif
@@ -97,7 +98,10 @@ all: $(IMAGE) $(XIMAGE)
CLEANFILES = $(IMAGE) boot.o cache.o $(GIC) mmu.o ns.o $(BOOTMETHOD) model.lds fdt.dtb
-$(IMAGE): boot.o cache.o $(GIC) mmu.o ns.o $(BOOTMETHOD) model.lds fdt.dtb $(KERNEL_IMAGE) $(FILESYSTEM) $(XEN_IMAGE)
+if XEN
+XEN_IMAGE_DEP = $(XEN_IMAGE)
+endif
+$(IMAGE): boot.o cache.o $(GIC) mmu.o ns.o $(BOOTMETHOD) model.lds fdt.dtb $(KERNEL_IMAGE) $(FILESYSTEM) $(XEN_IMAGE_DEP)
$(LD) -o $@ --script=model.lds
%.o: %.S Makefile
diff --git a/configure.ac b/configure.ac
index 2f31fab..44b3bf0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,13 +75,14 @@ AC_ARG_WITH([initrd],
AC_SUBST([FILESYSTEM], [$USE_INITRD])
AM_CONDITIONAL([INITRD], [test "x$USE_INITRD" != "x"])
-C_CMDLINE="console=ttyAMA0 earlyprintk=pl011,0x1c090000"
+AS_IF([test "x$XEN_IMAGE" = "no"],[C_CONSOLE="ttyAMA0"],[C_CONSOLE="hvc0"])
+C_CMDLINE="console=$C_CONSOLE earlyprintk=pl011,0x1c090000"
AC_ARG_WITH([cmdline],
AS_HELP_STRING([--with-cmdline], [set a command line for the kernel]),
[C_CMDLINE=$withval])
AC_SUBST([CMDLINE], [$C_CMDLINE])
-X_BOOTARGS="console=dtuart dtuart=serial0"
+X_BOOTARGS="console=dtuart dtuart=serial0 no-bootscrub"
AC_ARG_WITH([xen-bootargs],
AS_HELP_STRING([--with-xen-bootargs], [set Xen bootargs]),
[X_BOOTARGS=$withval])
next prev parent reply other threads:[~2014-11-10 11:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 12:48 xen/arm: Bootwrapper update to support PSCI and GICv3 Julien Grall
2014-11-10 11:34 ` Ian Campbell [this message]
2014-11-10 13:35 ` Christoffer Dall
2014-11-10 14:09 ` [PATCH 1/4] xen: Correction to module@1 (dom0 kernel) DT node Ian Campbell
2014-11-16 20:26 ` Christoffer Dall
2014-11-17 9:42 ` Ian Campbell
2014-11-10 14:09 ` [PATCH 2/4] Fix build when Xen is not enabled Ian Campbell
2014-11-16 21:03 ` Christoffer Dall
2014-11-17 9:44 ` Ian Campbell
2014-11-10 14:10 ` [PATCH 3/4] Select correct dom0 console depending on whether Xen is enabled or not Ian Campbell
2014-11-10 14:10 ` [PATCH 4/4] xen: Disable boot scrub Ian Campbell
2014-11-10 14:10 ` xen/arm: Bootwrapper update to support PSCI and GICv3 Ian Campbell
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=1415619271.28370.6.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Stefano.Stabellini@eu.citrix.com \
--cc=christoffer.dall@linaro.org \
--cc=julien.grall@linaro.org \
--cc=xen-devel@lists.xen.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.