[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] xen/arm: Bootwrapper update to support PSCI and GICv3
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]) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |