[PATCH] grub-install: Install PV Xen binaries into the upstream specified path

2014-10-22 Thread Ian Campbell
/pvboot-i386.elf or /boot/xen/pvboot-x86_64.elf. Signed-off-by: Ian Campbell --- util/grub-install.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/util/grub-install.c b/util/grub-install.c index 70f514c..5f4d737 100644 --- a/util/grub-install.c +++ b/util/grub

Re: [Xen-devel] [PATCH] grub-install: Install PV Xen binaries into the upstream specified path

2014-10-22 Thread Ian Campbell
On Wed, 2014-10-22 at 17:17 +0400, Andrei Borzenkov wrote: > On Wed, Oct 22, 2014 at 12:23 PM, Ian Campbell wrote: > > Upstream have defined a specification for where guests ought to place their > > xenpv grub binaries in order to facilitate chainloading from a stage 1 grub >

[PATCH v2] grub-install: Install PV Xen binaries into the upstream specified path

2014-10-23 Thread Ian Campbell
/pvboot-i386.elf or /boot/xen/pvboot-x86_64.elf. Signed-off-by: Ian Campbell --- v2: Respect bootdir, create /boot/xen as needed. --- util/grub-install.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/util/grub-install.c b/util/grub-install.c index

[PATCH] grub-install: Include all decompressor modules in pvxen core image.

2014-11-28 Thread Ian Campbell
From: Ian Campbell This avoids needing to update all the native update-grub stanzas to also probe for and arrange to load the relevant decompressor, which would be wasteful on native boots. Signed-off-by: Ian Campbell --- util/grub-install.c | 25 + 1 file changed, 25

Re: [PATCH] grub-install: Include all decompressor modules in pvxen core image.

2014-11-28 Thread Ian Campbell
On Fri, 2014-11-28 at 20:09 +0300, Andrei Borzenkov wrote: > В Fri, 28 Nov 2014 08:33:34 + > Ian Campbell пишет: > > > From: Ian Campbell > > > > This avoids needing to update all the native update-grub stanzas to also > > probe > > for and arrange t

Re: [PATCH] grub-install: Include all decompressor modules in pvxen core image.

2014-11-30 Thread Ian Campbell
On Sun, 2014-11-30 at 14:31 +0300, Andrei Borzenkov wrote: > В Fri, 28 Nov 2014 17:25:55 + > Ian Campbell пишет: > > > On Fri, 2014-11-28 at 20:09 +0300, Andrei Borzenkov wrote: > > > В Fri, 28 Nov 2014 08:33:34 + > > > Ian Campbell пишет:

Re: [PATCH] grub-install: Include all decompressor modules in pvxen core image.

2014-11-30 Thread Ian Campbell
On Sun, 2014-11-30 at 11:51 +, Ian Campbell wrote: > On Sun, 2014-11-30 at 14:31 +0300, Andrei Borzenkov wrote: [...] > > We probably never read vmlinuz to the end anyway, but I wonder if it > > could be an issue. > > I've no idea. I don't see that comment an

Re: [PATCH] grub-install: Include all decompressor modules in pvxen core image.

2014-11-30 Thread Ian Campbell
On Sun, 2014-11-30 at 11:51 +, Ian Campbell wrote: > On Sun, 2014-11-30 at 14:31 +0300, Andrei Borzenkov wrote: > > if [ x$grub_platform = xxen ]; then > > insmod xzio > > fi > > I think that could work. Indeed it does, so how about this instead of the patch

Re: [PATCH 0/5]arm64: Add multiboot support (via fdt) for Xen boot

2015-01-08 Thread Ian Campbell
earlycon=pl011,0xe101 root=/dev/sda2 rootwait } (my system is too confused for 10_linux or 20_linux_xen right now, but I believe this is representative of what they would emit) The result was that I could boot both Baremetal and Xen via grub. So: Tested-by: Ian Campbell I've not

Re: [PATCH 00/18] x86: multiboot2 protocol support

2015-03-03 Thread Ian Campbell
On Fri, 2015-01-30 at 18:54 +0100, Daniel Kiper wrote: > xen/arch/x86/Makefile | 17 ++-- > xen/arch/x86/boot/Makefile|3 +- > xen/arch/x86/boot/head.S | 291 > ++ > xen/arch/x86/boot/reloc.c | 219 >

Re: [PATCH 00/18] x86: multiboot2 protocol support

2015-03-03 Thread Ian Campbell
On Tue, 2015-03-03 at 13:36 +0100, Daniel Kiper wrote: > On Tue, Mar 03, 2015 at 12:10:35PM +0000, Ian Campbell wrote: > > On Fri, 2015-01-30 at 18:54 +0100, Daniel Kiper wrote: > > > xen/arch/x86/Makefile | 17 ++-- > > > xen/arch/x86/boot/Makefile

Re: [PATCH 16/18] efi: create efi_exit_boot()

2015-03-27 Thread Ian Campbell
On Fri, 2015-03-27 at 13:43 +0100, Daniel Kiper wrote: > On Fri, Mar 27, 2015 at 12:10:56PM +, Jan Beulich wrote: > > >>> On 27.03.15 at 13:00, wrote: > > > Additionally, efi_start() > > > is architecture independent and efi_multiboot2() is x86 only and it should > > > live in x86 files. > > >

Re: [Linaro-uefi] [PATCH 0/5]arm64: Add multiboot support (via fdt) for Xen boot

2015-04-15 Thread Ian Campbell
> Hi everybody, > > any suggestion for my patchset? > > if these patches look fine, can they be merged? > > > > Any feedback is welcome! :-) > > Great thanks ! > > > > On 9 January 2015 at 00:3

Re: [Xen-devel] [PATCH v2 0/3] arm64: Add multiboot support (via fdt) for Xen boot

2015-07-14 Thread Ian Campbell
/trap/vmlinuz root=/dev/mapper/trap--vg-root ro console=hvc0 echo "xen_module /trap/initrd.gz" xen_module /trap/initrd.gz boot } Tested-by: Ian Campbell I didn't yet try a local boot from hdd since I'm sure it would work equivale

Re: [PATCH v2 2/3] util/grub.d/20_linux_xen.in: Add arm64 support

2015-07-14 Thread Ian Campbell
On Tue, 2015-07-14 at 06:53 +0300, Andrei Borzenkov wrote: > > +if [ "x$machine" != xaarch64 ]; then > > + multiboot_cmd="multiboot" > > + module_cmd="module" > > +else > > + multiboot_cmd="xen_hypervisor" > > + module_cmd="xen_module" > > +fi > > + > > Strictly speaking, this is boot-time

Re: [PATCH v2 1/3] arm64: Add Xen boot support file

2015-07-16 Thread Ian Campbell
On Wed, 2015-07-15 at 18:18 +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 13.07.2015 10:53, fu@linaro.org wrote: > > From: Fu Wei > > > > This patch adds Xen boot support file: > > grub-core/loader/arm64/xen_boot.c > > include/grub/arm64/xen_boot.h > > > > This patch also adds com

Re: [PATCH v2 1/6] gitignore: Ignore *.orig, *.rej and *.swp files

2015-08-12 Thread Ian Campbell
(Having written the below I see too late that this is a grub patch not a Xen one, a tag in the subject for such cross posted patches would be useful please. Anyway, my opinion counts for very little in this context but I leave it below since already I wrote it. I notice that xen.git#.gitignore _do

Re: [Xen-devel] [BUG] XEN domU crash when PV grub chainloads 32-bit domU grub

2015-09-22 Thread Ian Campbell
Hi Vladimir & grub-devel, Do you have any thoughts on this issue with i386 pv-grub2? Thanks, Ian. On Mon, 2015-09-21 at 22:03 +0200, Andreas Sundstrom wrote: > This is using Debian Jessie and grub 2.02~beta2-22 (with Debian patches > applied) and Xen 4.4.1 > > I originally posted a bug report w

Re: [PATCH grub-core/kern/xen/init.c] pvgrub2 xen cmdline xenstore var to grubenv

2015-11-02 Thread Ian Campbell
On Fri, 2015-10-23 at 17:11 -0700, Mark Pryor wrote: > When entering the grub2 shell during a pvgrub2 boot, there is no info about > the current > domU in the grubenv (set). Starting with a patch submitted by Olaf Herring I > exported > the xenstore cmdline only. xenstore? The command line comes

Re: [PATCH v3 2/4] arm64: Add xen_boot module file

2015-11-03 Thread Ian Campbell
On Tue, 2015-11-03 at 22:57 +0800, Fu Wei wrote: > Hi Vladimir, > > After discussing with Ian Campbell,   Since we already can load all > the necessary binaries for Xen boot on arm64 for now,  we don't really > need "xen_module" command now. > But maybe someday ,

Re: [Xen-devel] [PATCH GRUB] Allow initrd concatenation on ARM64

2015-11-12 Thread Ian Campbell
On Thu, 2015-11-12 at 14:08 +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > While on it also change "xen_linux" to "xen_kernel" to be vendor-neutral > Could someone test please? I only compile-tested it I was expecting this patch to include a change to ./util/grub.d/20_linux_xen.in to update

Re: [Xen-devel] Uniform commands for booting xen

2015-11-12 Thread Ian Campbell
On Thu, 2015-11-12 at 08:44 -0700, Jan Beulich wrote: > > > > On 12.11.15 at 14:41, wrote: > > Hello, all. I'd like to have set of commands that would boot xen on all > > platforms. I thought of following set: > > > > xen_hypervisor FILE XEN_OPTIONS > > xen_kernel FILE KERNEL_OPTIONS > > xen_init

Re: [Xen-devel] Uniform commands for booting xen

2015-11-13 Thread Ian Campbell
On Fri, 2015-11-13 at 00:48 -0700, Jan Beulich wrote: > > > > On 12.11.15 at 18:09, wrote: > > On Thu, 2015-11-12 at 08:44 -0700, Jan Beulich wrote: > > > > > > On 12.11.15 at 14:41, wrote: > > > > Hello, all. I'd like to have set of commands that would boot xen on > > > > all > > > > platforms.

Re: [Xen-devel] Uniform commands for booting xen

2015-11-13 Thread Ian Campbell
On Fri, 2015-11-13 at 12:04 +0300, Andrei Borzenkov wrote: > > How do you express modules other than kernel+initrd in that > > scheme, without grub needing to be aware of any new addition we > > may find necessary going forward? > > > > Are modules used by Xen self-identifying? Is it enough to si

Re: [Xen-devel] Uniform commands for booting xen

2016-01-18 Thread Ian Campbell
On Mon, 2016-01-11 at 15:06 +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 13.11.2015 10:50, Ian Campbell wrote: > > On Fri, 2015-11-13 at 12:04 +0300, Andrei Borzenkov wrote: > > > > How do you express modules other than kernel+initrd in that > > &

Re: [PATCH] arm64: xen_boot: Fix xen boot using Grub on AARCH64

2016-02-23 Thread Ian Campbell
On Mon, 2016-02-22 at 17:29 +0800, Fu Wei wrote: > Hi Julien, > > On 20 February 2016 at 00:28, Julien Grall > wrote: > > Xen is currently crashing because of malformed compatible property for > > the boot module. This is because the property string is not > > null-terminated as requested by the

Re: Bug#607867: grub-common: shouty "XEN" in menu items

2010-12-24 Thread Ian Campbell
On Thu, 2010-12-23 at 11:56 +, Colin Watson wrote: > Could you please provide a ChangeLog entry for upstream? Sure. How about: 2010-12-23 Ian Campbell * util/grub.d/20_linux_xen.in: Correctly capitalize Xen and reorder menu item wording to make it clearer that this en

Re: Bug#607867: grub-common: shouty "XEN" in menu items

2010-12-24 Thread Ian Campbell
27; module ${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args} EOF if test -n "${initrd}" ; then -- Ian Campbell Journalism will kill you, but it will keep you alive while you're at it. signature.asc Description: This is a di

Re: Bug#607867: grub-common: shouty "XEN" in menu items

2011-01-02 Thread Ian Campbell
On Fri, 2010-12-31 at 22:50 +, Colin Watson wrote: > Ian, I've applied both your patches to trunk (extending your > ChangeLog entry to cover the second as well); they'll be in the next > snapshot. > > 2010-12-31 Ian Campbell > > * util/grub.d/20_linux_

Re: EFI and multiboot2 devlopment work for Xen

2013-10-22 Thread Ian Campbell
On Mon, 2013-10-21 at 20:57 +0200, Daniel Kiper wrote: > On Mon, Oct 21, 2013 at 09:54:38AM -0400, Peter Jones wrote: > > On Mon, Oct 21, 2013 at 02:57:56PM +0200, Daniel Kiper wrote: > > > Hi, > > > > > > During work on multiboot2 protocol support for Xen it was discovered > > > that memory map pa

Re: EFI and multiboot2 devlopment work for Xen

2013-10-22 Thread Ian Campbell
On Tue, 2013-10-22 at 10:31 +0100, Jan Beulich wrote: > >>> On 22.10.13 at 11:26, Ian Campbell wrote: > > AIUI "efilinux" is somewhat badly named and does not use the Linux Boot > > Protocol (i.e. the (b)zImage stuff with real mode entry point) either. >

Re: EFI and multiboot2 devlopment work for Xen

2013-10-22 Thread Ian Campbell
On Tue, 2013-10-22 at 09:42 -0400, Konrad Rzeszutek Wilk wrote: > Looking at the Fedora GRUB2 source, the 'struct linux_kernel_header' is > defined > in the linux/Documentation/x86/boot.txt and hpa is pretty strict > about making it backwards compatible. It also seems to support Xen! > > (Intere

Re: EFI and multiboot2 devlopment work for Xen

2013-10-22 Thread Ian Campbell
On Tue, 2013-10-22 at 10:09 -0400, Konrad Rzeszutek Wilk wrote: > So it can be booted the same way as xen.efi. But my understanding is > that folks prefer a bootloader instead of loading the bzImage in an > NVRAM of a platform with pre-set parameters. Hence that mechanism > is not used by the majo

Re: EFI and multiboot2 devlopment work for Xen

2013-10-22 Thread Ian Campbell
On Tue, 2013-10-22 at 10:57 -0400, Konrad Rzeszutek Wilk wrote: > That 'that' is a standard PE/COFF image? Could you please point me > to the code that does that in GRUB2? As I said earlier in the thread, it's a patch which is being carried by all the distros. It is not in upstream grub. For ins

Re: [Xen-devel] EFI and multiboot2 devlopment work for Xen

2013-10-22 Thread Ian Campbell
On Tue, 2013-10-22 at 15:24 +0100, Ian Campbell wrote: > On Tue, 2013-10-22 at 10:09 -0400, Konrad Rzeszutek Wilk wrote: > > > So it can be booted the same way as xen.efi. But my understanding is > > that folks prefer a bootloader instead of loading the bzImage in an > >

Re: EFI and multiboot2 devlopment work for Xen

2013-10-22 Thread Ian Campbell
On Tue, 2013-10-22 at 14:18 +, Woodhouse, David wrote: > > I wonder why Linux can't make the EFI calls to fetch them itself? > > It can. It does. It prefers to. This is what the "EFI boot stub" is all about. Good, this is what I thought, glad to see I'm not talking out my behind for once! >

Re: EFI and multiboot2 devlopment work for Xen

2013-10-22 Thread Ian Campbell
On Tue, 2013-10-22 at 18:01 +0200, Daniel Kiper wrote: > On Tue, Oct 22, 2013 at 03:42:42PM +, Woodhouse, David wrote: > > On Tue, 2013-10-22 at 16:32 +0100, Matthew Garrett wrote: > > > > > > There are two problems with this: > > > > > > 1) The kernel will only boot if it's signed with a key i

Re: EFI and multiboot2 devlopment work for Xen

2013-10-22 Thread Ian Campbell
On Tue, 2013-10-22 at 12:24 -0400, Konrad Rzeszutek Wilk wrote: > On Tue, Oct 22, 2013 at 04:21:47PM +0100, Ian Campbell wrote: > > On Tue, 2013-10-22 at 10:57 -0400, Konrad Rzeszutek Wilk wrote: > > > That 'that' is a standard PE/COFF image? Could you please point me

Re: EFI and multiboot2 devlopment work for Xen

2013-10-22 Thread Ian Campbell
On Tue, 2013-10-22 at 18:25 +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 22.10.2013 18:14, Daniel Kiper wrote: > >> > Are you (going to be) in Edinburgh? Matthew was just explaining a bunch > >> > of this stuff to me, it might be useful for you to get it from the > >> > horses mouth ins

Re: [Xen-devel] EFI and multiboot2 devlopment work for Xen

2013-10-23 Thread Ian Campbell
On Tue, 2013-10-22 at 12:26 -0400, Konrad Rzeszutek Wilk wrote: > It can (at least in Linux). There are two entry points in the Linux kernel > and - one when it is launched from 'linuxefi' (See efi_stub_entry in > arch/x86/boot/compressed/head_64.S), the other when it is launched > from an EFI she

Re: [Xen-devel] Grant table version

2013-10-31 Thread Ian Campbell
On Wed, 2013-10-30 at 13:26 +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > > From this point of view, the safe course of action is to use whichever > > type of grants you want, then tear down all the front/back pairs, and > > reset the version to v1 before handing off. > > > Thank you, tha

Re: [Xen-devel] pvgrub2 for ARM

2013-11-06 Thread Ian Campbell
On Wed, 2013-11-06 at 14:00 +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Hello, all. I've ported grub2 to x86_64-xen and i386-xen (PAE only). How > big is the difference between ARM and i386 when seen as pv guest? Very. Xen on ARM uses hardware functionality for second stage paging, so th

Re: [Xen-devel] pvgrub2 for ARM

2013-11-06 Thread Ian Campbell
On Wed, 2013-11-06 at 15:09 +0100, Leif Lindholm wrote: > On Wed, Nov 06, 2013 at 01:25:55PM +0000, Ian Campbell wrote: > > > What's with 64-bit ARM? > > > > TBH I thought the GRuB On ARM stuff was mainly targeting 64-bit (at > > least within Linaro). Do you hav

Re: [Xen-devel] pvgrub2 for ARM

2013-11-06 Thread Ian Campbell
On Wed, 2013-11-06 at 15:04 +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 06.11.2013 14:25, Ian Campbell wrote: > > On Wed, 2013-11-06 at 14:00 +0100, Vladimir 'φ-coder/phcoder' Serbinenko > > wrote: > >> Hello, all. I've ported grub2 to

Re: [Xen-devel] pvgrub2 for ARM

2013-11-06 Thread Ian Campbell
On Wed, 2013-11-06 at 17:31 +0100, Samuel Thibault wrote: > Vladimir 'φ-coder/phcoder' Serbinenko, le Wed 06 Nov 2013 14:00:24 +0100, a > écrit : > > Are there machines for under $100 on which xen runs? > > Couldn't qemu be used? I don't believe it implements the virtualisation extensions. Ian.

Re: [Xen-devel] pvgrub2 for ARM

2013-11-07 Thread Ian Campbell
On Wed, 2013-11-06 at 19:48 -0700, Bamvor Jian Zhang wrote: > >>>Ian Campbell wrote: > > On Wed, 2013-11-06 at 14:00 +0100, Vladimir 'φ-coder/phcoder' Serbinenko > > wrote: > > > Hello, all. I've ported grub2 to x86_64-xen and i386-xen (PAE onl

Re: [Xen-devel] pvgrub2 for ARM

2013-11-08 Thread Ian Campbell
> > > > I've mostly been trying to get (native) SATA going, so my Xen > > > > experiments are a bit lightweight, but it does boot. Bamvor has reported > > > > success with using the MMC and documented it on the wiki. I think he's > > > > using an A31 based STB of some sort. > > > i use the NFS as

Re: [Xen-devel] pvgrub2 is merged

2013-11-11 Thread Ian Campbell
On Sat, 2013-11-09 at 21:52 +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Hello, all. pvgrub2 has just became part of upstream grub as ports i386-xen > and x86_64-xen. This is super cool, thanks! > http://git.savannah.gnu.org/cgit/grub.git > > Documentation on its usage is missing for n

Re: [Xen-devel] pvgrub2 is merged

2013-11-11 Thread Ian Campbell
On Mon, 2013-11-11 at 12:54 +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 11.11.2013 11:10, Ian Campbell wrote: > > On Sat, 2013-11-09 at 21:52 +0100, Vladimir 'φ-coder/phcoder' Serbinenko > > wrote: > >> Hello, all. pvgrub2 has just became p

Re: [Xen-devel] pvgrub2 is merged

2013-11-13 Thread Ian Campbell
On Sat, 2013-11-09 at 21:52 +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Hello, all. pvgrub2 has just became part of upstream grub as ports i386-xen > and x86_64-xen. > http://git.savannah.gnu.org/cgit/grub.git I was just talking to some folks here and we thought this might make an inter

Re: [Xen-devel] pvgrub2 is merged

2013-11-14 Thread Ian Campbell
On Wed, 2013-11-13 at 19:25 +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 13.11.2013 17:36, Ian Campbell wrote: > > On Sat, 2013-11-09 at 21:52 +0100, Vladimir 'φ-coder/phcoder' Serbinenko > > wrote: > >> Hello, all. pvgrub2 has just became p

[PATCH] * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.

2013-11-17 Thread Ian Campbell
--- ChangeLog|4 grub-core/disk/uboot/ubootdisk.c |1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8a6f0ed..aa4f4cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-11-17 Ian Campbell + +* grub-core/disk

Re: [Xen-devel] pvgrub2 is merged

2013-12-02 Thread Ian Campbell
On Fri, 2013-11-29 at 21:44 +0400, Andrey Borzenkov wrote: > В Fri, 29 Nov 2013 13:24:22 + > Colin Watson пишет: > > > On Sat, Nov 09, 2013 at 09:52:20PM +0100, Vladimir 'φ-coder/phcoder' > > Serbinenko wrote: > > > Hello, all. pvgrub2 has just became part of upstream grub as ports > > > i38

Re: [Xen-devel] pvgrub2 is merged

2013-12-02 Thread Ian Campbell
On Mon, 2013-12-02 at 11:37 +0100, Samuel Thibault wrote: > Ian Campbell, le Mon 02 Dec 2013 09:48:07 +, a écrit : > > On Fri, 2013-11-29 at 21:44 +0400, Andrey Borzenkov wrote: > > > I guess this question is better asked on xen-devel. Assuming we have 64 > > > bit

Re: [Xen-devel] pvgrub2 is merged

2013-12-03 Thread Ian Campbell
On Tue, 2013-12-03 at 17:27 +, Colin Watson wrote: > On Mon, Dec 02, 2013 at 09:48:07AM +0000, Ian Campbell wrote: > > On Fri, 2013-11-29 at 21:44 +0400, Andrey Borzenkov wrote: > > > В Fri, 29 Nov 2013 13:24:22 + > > > Colin Watson пишет: > > > >

Re: [Xen-devel] pvgrub2 is merged

2013-12-11 Thread Ian Campbell
ssions has passed (IIRC it was 1 December, at least for the virt devroom). Ian. > On 14.11.2013 09:37, Ian Campbell wrote: > > On Wed, 2013-11-13 at 19:25 +0100, Vladimir 'φ-coder/phcoder' Serbinenko > > wrote: > >> On 13.11.2013 17:36, Ian Campbell wrote: >

[PATCH] * grub-core/kern/uboot/init.c (uboot_timer_ms) correct units

2013-12-15 Thread Ian Campbell
From: Ian Campbell u-boot's API_GET_TIMER returns the current time in ms by directly exposing the internal get_timer which is in ms, which isn't all that clearly documented but is obvious from the use within u-boot and is mentioned in http://www.denx.de/wiki/U-Boot/TaskTimerAPI. Th

Re: [Xen-devel] [PATCH 0/4] Turn-key PV-GRUB2 installation

2013-12-16 Thread Ian Campbell
On Thu, 2013-12-12 at 15:36 +, Colin Watson wrote: > This patch set should make it easier to maintain PV-GRUB2 installations. > The general idea is based on discussions I had with Xen developers > (mainly Ian Jackson) at the Ubuntu Developer Summit in May 2011; though > I never did manage to ge

Re: [PATCH] * grub-core/kern/uboot/init.c (uboot_timer_ms) correct units

2013-12-21 Thread Ian Campbell
On Sat, 2013-12-21 at 23:23 +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 15.12.2013 16:23, Ian Campbell wrote: > > From: Ian Campbell > > > > u-boot's API_GET_TIMER returns the current time in ms by directly exposing > > the > > in

Re: [PATCH] * grub-core/kern/uboot/init.c (uboot_timer_ms) correct units

2013-12-21 Thread Ian Campbell
On Sun, 2013-12-22 at 01:21 +, Ian Campbell wrote: > On Sat, 2013-12-21 at 23:23 +0100, Vladimir 'φ-coder/phcoder' Serbinenko > wrote: > > On 15.12.2013 16:23, Ian Campbell wrote: > > > From: Ian Campbell > > > > > > u-boot's AP

[PATCH 3/7] mkimage: account for space for trampolines earlier

2013-12-29 Thread Ian Campbell
sting targets which need trampolines require a .bss assignment here (e.g. they generate PE images which means the .bss gets taken care of at load time). Apart from duplicating the surrounding if statement this is pure code motion. Signed-off-by: Ian Campbell --- util/grub-mkimagexx.c

[PATCH 4/7] mkimage: make R_ARM_ABS32 debug output more consistent

2013-12-29 Thread Ian Campbell
The decimal target is not very useful and all the other arm reloc debugging prints a hex target and offset, so do the same. Signed-off-by: Ian Campbell --- util/grub-mkimagexx.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/util/grub-mkimagexx.c b/util/grub

[PATCH 5/7] mkimage: allow linking at address 0

2013-12-29 Thread Ian Campbell
Running from address 0 is plausible at least in principal. Use the maximum possible address as a sentinal instead. Signed-off-by: Ian Campbell --- util/grub-mkimagexx.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/util/grub-mkimagexx.c b/util/grub-mkimagexx.c

[PATCH 0/7] arm-uboot: support for different RAM bases

2013-12-29 Thread Ian Campbell
The current arm-uboot image type is hardcoded to run at address 0x0800 which means that it cannot be used on ARM systems which do not have RAM starting from address 0 (which is many of them). This is a bit of a problem for distros. The following series attempts to address this by only performi

[PATCH 1/7] mkimage: Refactor IMAGE_EFI checks into a function grub_image_needs_reloc.

2013-12-29 Thread Ian Campbell
Signed-off-by: Ian Campbell --- util/grub-mkimagexx.c | 12 ++-- util/mkimage.c| 7 +++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/util/grub-mkimagexx.c b/util/grub-mkimagexx.c index 0a1ac9e..d059396 100644 --- a/util/grub-mkimagexx.c +++ b/util/grub

[PATCH 2/7] mkimage: Replace hardcoded 0x400 in R_ARM_ABS32 relocation

2013-12-29 Thread Ian Campbell
proud of that bit of code. I think this "bumping down" actually comes from the image type's vaddr_offset and therefore it is more correct to adjust by this amount. Signed-off-by: Ian Campbell Cc: leif.lindh...@linaro.org --- util/grub-mkimagexx.c | 2 +- 1 file changed, 1 insert

[PATCH 7/7] arm-uboot: support relocation at installation time

2013-12-29 Thread Ian Campbell
Partially link kernel.img and take advantage of the new PLATFORM_FLAGS_ABS_RELOC support to link the final kernel image for a particular address. Signed-off-by: Ian Campbell --- grub-core/Makefile.core.def | 2 +- include/grub/offsets.h | 2 +- util/mkimage.c | 8 3

[PATCH 6/7] mkimage: support images which require full relocation at mkimage time.

2013-12-29 Thread Ian Campbell
address when relocating. Fabricate correct addresses for absolute symbols relating to the bss ("__bss_start" and "_end"). This functionality is not yet used by any image type and is connected only to grub-mkimage ("-T option) and not yet to grub-install. Signed-off-by: Ian Camp

Re: [PATCH 0/7] arm-uboot: support for different RAM bases

2013-12-29 Thread Ian Campbell
On Sun, 2013-12-29 at 18:47 +, Ian Campbell wrote: > (there is an > unrelated issue on cubieboard2 relating to the scan for the uboot API > signature, which I'm still investigating, but I hacked around it here > and things worked fine otherwise). FYI: http://lists.denx.de

Re: [PATCH 0/7] arm-uboot: support for different RAM bases

2013-12-30 Thread Ian Campbell
On Mon, 2013-12-30 at 02:55 +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Is there a way to make uboot to load GRUB at some appropriate address. I don't think there is with the uImage format which grub uses today. It contains a load address in the header which AFAIK is an absolute address

Re: [PATCH 6/7] mkimage: support images which require full relocation at mkimage time.

2013-12-30 Thread Ian Campbell
On Sun, 2013-12-29 at 22:53 +, Leif Lindholm wrote: > > diff --git a/util/grub-mkimage.c b/util/grub-mkimage.c > > index a2bd4c1..267beaa 100644 > > --- a/util/grub-mkimage.c > > +++ b/util/grub-mkimage.c > > @@ -65,6 +65,7 @@ static struct argp_option options[] = { > > /* TRANSLATORS: plat

Re: [PATCH 6/7] mkimage: support images which require full relocation at mkimage time.

2013-12-31 Thread Ian Campbell
On Tue, 2013-12-31 at 15:19 +0100, Francesco Lavra wrote: > On 12/29/2013 07:47 PM, Ian Campbell wrote: > > diff --git a/util/grub-mkimagexx.c b/util/grub-mkimagexx.c > > index b4216ff..186d259 100644 > > --- a/util/grub-mkimagexx.c > > +++ b/util/grub-mkimagexx.c >

Re: [Xen-devel] Loading a 32 bit kernel from 64 bit grub-xen

2014-07-02 Thread Ian Campbell
On Tue, 2014-07-01 at 14:27 -0400, Phillip Susi wrote: > On 7/1/2014 12:18 PM, Andrey Borzenkov wrote: > > В Tue, 01 Jul 2014 12:06:08 -0400 Phillip Susi > > пишет: > > > >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > > > >> I have been trying to fix grub to load a 32 bit kernel from the > >

Re: [Xen-devel] Loading a 32 bit kernel from 64 bit grub-xen

2014-07-02 Thread Ian Campbell
On Wed, 2014-07-02 at 09:35 +0100, Jan Beulich wrote: > >>> On 01.07.14 at 20:27, wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > On 7/1/2014 12:18 PM, Andrey Borzenkov wrote: > >> В Tue, 01 Jul 2014 12:06:08 -0400 Phillip Susi > >> пишет: > >> > >>> -BEGIN PGP SIGNED M

Re: [Xen-devel] Loading a 32 bit kernel from 64 bit grub-xen

2014-07-08 Thread Ian Campbell
On Tue, 2014-07-08 at 11:37 -0400, Phillip Susi wrote: > On 7/2/2014 5:26 AM, Ian Campbell wrote: > > So you are saying I don't know, because you've helpfully trimmed all of the context of something I said a week ago. /me consults list archive, I think you are responding to

Please support installation on Xen virtual block devices

2008-04-24 Thread Ian Campbell
a guest between para-virtual and fully-virtualised (HVM) operation. Patch is attached. Ian. -- Ian Campbell Current Noise: Strapping Young Lad - Antiproduct The Public is merely a multiplied "me." -- Mark Twain

Re: Please support installation on Xen virtual block devices

2008-05-06 Thread Ian Campbell
Any comments on this patch? Cheers, Ian. On Thu, 2008-04-24 at 20:28 +0100, Ian Campbell wrote: > I filed this patch against the Debian grub2 package and the maintainer > asked me to bring it to [EMAIL PROTECTED] Took me an age but here I > am ;-) [resending now I'm subscribed]. &g

Re: Please support installation on Xen virtual block devices

2008-05-07 Thread Ian Campbell
if you want them gone I will redo. Ian. -- Ian Campbell omnibiblious, adj.: Indifferent to type of drink. Ex: "Oh, you can get me anything. I'm omnibiblious." diff -purN -X /home/ijc/development/dontdiff.txt grub2-1.96+20080430.orig/ChangeLog grub2-1.96+200

Re: Please support installation on Xen virtual block devices

2008-05-07 Thread Ian Campbell
On Wed, 2008-05-07 at 16:49 -0400, Pavel Roskin wrote: > On Wed, 2008-05-07 at 19:51 +0100, Ian Campbell wrote: > > On Wed, 2008-05-07 at 13:33 -0400, Pavel Roskin wrote: > > > Apparently, it was copied from the code that was inside an extra "for" > > > loop.

Re: Please support installation on Xen virtual block devices

2008-05-10 Thread Ian Campbell
-t drive / (hd0,1) d-i:~# grub-probe -t drive -d /dev/xvda (hd0) d-i:~# grub-probe -t drive -d /dev/xvda1 (hd0,1) Seems correct to me, right? Ian. -- Ian Campbell It is not best to swap horses while crossing the river. -- Abraha

Behaviour of update-grub when Xen enabled kernels are installed.

2008-05-11 Thread Ian Campbell
http://lists.alioth.debian.org/pipermail/pkg-grub-devel/2008-April/004701.html http://lists.alioth.debian.org/pipermail/pkg-grub-devel/2008-May/004821.html -- Ian Campbell Waste not fresh tears over old griefs. -- Euripides signature.asc Description: This is a digitally signed message

Re: Behaviour of update-grub when Xen enabled kernels are installed.

2008-05-30 Thread Ian Campbell
upport would be useful). I've attached it but don't think it is correct in all cases at the moment (and some code just echoes "do foo" instead of doing it...). Ian. > > On Sun, May 11, 2008 at 10:36:38AM +0100, Ian Campbell wrote: > > Hi all, > &g