Your message dated Tue, 27 Jan 2015 21:50:11 +0000
with message-id <[email protected]>
and subject line Bug#775202: fixed in grub2 2.02~beta2-21
has caused the Debian Bug report #775202,
regarding Add support for running a 64-bit Linux kernel on a 32-bit EFI
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
775202: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775202
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:grub2
Severity: important
Tags: patch
Hi folks,
I've got a patch accepted for the kernel to expose the size of the
underlying UEFI firmware for x86, and Ben's happy to take it for the
Debian kernel (#775191). I've written and tested a grub patch to match
(see http://blog.einval.com/2015/01/11#Jessie-EFI_5) which adds
support for this extra interface. Here it is. I'd appreciate it if we
can get this in for Jessie, and and of course it'd be lovely if this
went upstream too as it's generic.
There's another related patch for grub-installer to make sure that the
right grub packages get installed, too.
--
Steve McIntyre, Cambridge, UK. [email protected]
< liw> everything I know about UK hotels I learned from "Fawlty Towers"
From: Steve McIntyre <[email protected]>
Subject: Add support for running a 64-bit Linux kernel on a 32-bit EFI
Some platforms might be capable of running a 64-bit Linux kernel but only
use a 32-bit EFI. To support such systems, it is necessary to work out the
size of the firmware rather than just the size of the kernel. To enable
that, there is now an extra EFI sysfs file to describe the underlying
firmware. Read that if possible, otherwise fall back to the kernel type
as before.
Signed-off-by: Steve McIntyre <[email protected]>
Bug-Debian: https://bugs.debian.org/XXXXXX
Forwarded: Not yet
Last-Update: 2015-01-10
Patch-Name: mixed-size-efi.patch
--- a/grub-core/osdep/linux/platform.c 2015-01-10 00:44:06.905703004 +0000
+++ b/grub-core/osdep/linux/platform.c 2015-01-10 01:25:11.742486599 +0000
@@ -63,2 +63,2 @@
return strcmp (un.machine, "x86_64") == 0;
}
+static int
+read_platform_size (void)
+{
+ FILE *fp;
+ char *buf = NULL;
+ size_t len = 0;
+ int ret = 0;
+
+ fp = grub_util_fopen ("/sys/firmware/efi/fw_platform_size", "r");
+ if (! fp)
+ return 0; /* Can't read, fall through to other methods */
+
+ if (getline (&buf, &len, fp) > 0)
+ {
+ if (strncmp (buf, "32", 2) == 0)
+ ret = 32;
+ else if (strncmp (buf, "64", 2) == 0)
+ ret = 64;
+ else
+ ret = 0; /* Not recognised / supported! */
+ }
+
+ free (buf);
+ fclose (fp);
+ return ret;
+}
+
const char *
grub_install_get_default_x86_platform (void)
{
@@ -83,12 +110,35 @@
const char *platform;
char *pd;
int found;
+ int platform_size = 0;
grub_util_info ("...found");
- if (is_64_kernel ())
- platform = "x86_64-efi";
- else
- platform = "i386-efi";
+
+ /* Are we running on a 64-bit EFI? */
+ platform_size = read_platform_size();
+
+ switch (platform_size)
+ {
+ case 32:
+ {
+ platform = "i386-efi";
+ break;
+ }
+ case 64:
+ {
+ platform = "x86_64-efi";
+ break;
+ }
+ default:
+ {
+ /* We can't tell; fall back to detecting the kernel
+ * config instead */
+ if (is_64_kernel ())
+ platform = "x86_64-efi";
+ else
+ platform = "i386-efi";
+ }
+ }
pd = grub_util_path_concat (2, pkglibdir, platform);
found = grub_util_is_directory (pd);
--- End Message ---
--- Begin Message ---
Source: grub2
Source-Version: 2.02~beta2-21
We believe that the bug you reported is fixed in the latest version of
grub2, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Colin Watson <[email protected]> (supplier of updated grub2 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Tue, 27 Jan 2015 20:37:04 +0000
Source: grub2
Binary: grub2 grub-linuxbios grub-efi grub-common grub2-common grub-emu
grub-emu-dbg grub-pc-bin grub-pc-dbg grub-pc grub-rescue-pc grub-coreboot-bin
grub-coreboot-dbg grub-coreboot grub-efi-ia32-bin grub-efi-ia32-dbg
grub-efi-ia32 grub-efi-amd64-bin grub-efi-amd64-dbg grub-efi-amd64
grub-efi-ia64-bin grub-efi-ia64-dbg grub-efi-ia64 grub-efi-arm-bin
grub-efi-arm-dbg grub-efi-arm grub-efi-arm64-bin grub-efi-arm64-dbg
grub-efi-arm64 grub-ieee1275-bin grub-ieee1275-dbg grub-ieee1275
grub-firmware-qemu grub-uboot-bin grub-uboot-dbg grub-uboot grub-xen-bin
grub-xen-dbg grub-xen grub-xen-host grub-yeeloong-bin grub-yeeloong-dbg
grub-yeeloong grub-theme-starfield grub-mount-udeb
Architecture: source
Version: 2.02~beta2-21
Distribution: unstable
Urgency: medium
Maintainer: GRUB Maintainers <[email protected]>
Changed-By: Colin Watson <[email protected]>
Description:
grub-common - GRand Unified Bootloader (common files)
grub-coreboot - GRand Unified Bootloader, version 2 (Coreboot version)
grub-coreboot-bin - GRand Unified Bootloader, version 2 (Coreboot binaries)
grub-coreboot-dbg - GRand Unified Bootloader, version 2 (Coreboot debug files)
grub-efi - GRand Unified Bootloader, version 2 (dummy package)
grub-efi-amd64 - GRand Unified Bootloader, version 2 (EFI-AMD64 version)
grub-efi-amd64-bin - GRand Unified Bootloader, version 2 (EFI-AMD64 binaries)
grub-efi-amd64-dbg - GRand Unified Bootloader, version 2 (EFI-AMD64 debug
files)
grub-efi-arm - GRand Unified Bootloader, version 2 (ARM UEFI version)
grub-efi-arm-bin - GRand Unified Bootloader, version 2 (ARM UEFI binaries)
grub-efi-arm-dbg - GRand Unified Bootloader, version 2 (ARM UEFI debug files)
grub-efi-arm64 - GRand Unified Bootloader, version 2 (ARM64 UEFI version)
grub-efi-arm64-bin - GRand Unified Bootloader, version 2 (ARM64 UEFI binaries)
grub-efi-arm64-dbg - GRand Unified Bootloader, version 2 (ARM64 UEFI debug
files)
grub-efi-ia32 - GRand Unified Bootloader, version 2 (EFI-IA32 version)
grub-efi-ia32-bin - GRand Unified Bootloader, version 2 (EFI-IA32 binaries)
grub-efi-ia32-dbg - GRand Unified Bootloader, version 2 (EFI-IA32 debug files)
grub-efi-ia64 - GRand Unified Bootloader, version 2 (IA64 version)
grub-efi-ia64-bin - GRand Unified Bootloader, version 2 (IA64 binaries)
grub-efi-ia64-dbg - GRand Unified Bootloader, version 2 (IA64 debug files)
grub-emu - GRand Unified Bootloader, version 2 (emulated version)
grub-emu-dbg - GRand Unified Bootloader, version 2 (emulated debug files)
grub-firmware-qemu - GRUB firmware image for QEMU
grub-ieee1275 - GRand Unified Bootloader, version 2 (Open Firmware version)
grub-ieee1275-bin - GRand Unified Bootloader, version 2 (Open Firmware
binaries)
grub-ieee1275-dbg - GRand Unified Bootloader, version 2 (Open Firmware debug
files)
grub-linuxbios - GRand Unified Bootloader, version 2 (dummy package)
grub-mount-udeb - export GRUB filesystems using FUSE (udeb)
grub-pc - GRand Unified Bootloader, version 2 (PC/BIOS version)
grub-pc-bin - GRand Unified Bootloader, version 2 (PC/BIOS binaries)
grub-pc-dbg - GRand Unified Bootloader, version 2 (PC/BIOS debug files)
grub-rescue-pc - GRUB bootable rescue images, version 2 (PC/BIOS version)
grub-theme-starfield - GRand Unified Bootloader, version 2 (starfield theme)
grub-uboot - GRand Unified Bootloader, version 2 (ARM U-Boot version)
grub-uboot-bin - GRand Unified Bootloader, version 2 (ARM U-Boot binaries)
grub-uboot-dbg - GRand Unified Bootloader, version 2 (ARM U-Boot debug files)
grub-xen - GRand Unified Bootloader, version 2 (Xen version)
grub-xen-bin - GRand Unified Bootloader, version 2 (Xen binaries)
grub-xen-dbg - GRand Unified Bootloader, version 2 (Xen debug files)
grub-xen-host - GRand Unified Bootloader, version 2 (Xen host version)
grub-yeeloong - GRand Unified Bootloader, version 2 (Yeeloong version)
grub-yeeloong-bin - GRand Unified Bootloader, version 2 (Yeeloong binaries)
grub-yeeloong-dbg - GRand Unified Bootloader, version 2 (Yeeloong debug files)
grub2 - GRand Unified Bootloader, version 2 (dummy package)
grub2-common - GRand Unified Bootloader (common files for version 2)
Closes: 775202 776400
Changes:
grub2 (2.02~beta2-21) unstable; urgency=medium
.
[ Mathieu Trudel-Lapierre ]
* Fix overlap check in check_blocklists for load_env (backported patch
from upstream commit 1f6af2a9; LP: #1311247).
.
[ Steve McIntyre ]
* Add support for running a 64-bit Linux kernel on a 32-bit EFI (closes:
#775202).
.
[ Colin Watson ]
* Use mtmsr rather than mtmsrd in ppc64el-disable-vsx.patch, since the
"VSX Available" bit is in the lower half of the MSR anyway, and mtmsrd
faults on 32-bit systems (closes: #776400).
Checksums-Sha1:
6a877a832bf69757e8f109013f9ccc9815bda8d0 6436 grub2_2.02~beta2-21.dsc
c7acd294bebf5bb2acc1a1daa6aa2a3dbd7bcb41 1012564
grub2_2.02~beta2-21.debian.tar.xz
Checksums-Sha256:
00a0caa92bd2a8d1e2c82aaee9cd7532e77f1eff3127c0a5d116abd466aeb05f 6436
grub2_2.02~beta2-21.dsc
9f8db532f9b0c41f8e14f82400cc00adcf22ab35dbfdda664c2cb4370fbbff50 1012564
grub2_2.02~beta2-21.debian.tar.xz
Files:
fc1f715584da5979e464df645028aba4 6436 admin extra grub2_2.02~beta2-21.dsc
8b2c3bdcab1c1c861310b608bbfc6669 1012564 admin extra
grub2_2.02~beta2-21.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Colin Watson <[email protected]> -- Debian developer
iQIVAwUBVMf3JDk1h9l9hlALAQgVLQ//ffzK0qWEdTgKUbK7sJOjHlou76tJJvTX
3+JflGFKL+goNq5FnSta7ZSHv21zHwaxt8S86qcbC1z/B4ZxKtcvbxyjWsBAskP4
9xjrLxdeA6Kn3cz8drolVN7FuMYzbYO9I7eCSNaVbZsFa+L82pEOw5XeRQHwCa+4
vtlw4HS8k4MXI113eJd9oOSjW/KGP+Gj4xSwKHVhskMmMDWITgbkSqUuMVQWSNcF
6S3YRXZIMwXW3Kfgl9Fi5JKYAHe4LHk6zKW0FOW3rx9eghh36lZ015fI/NyoNPIt
PDdtQgnfz6T3l1QCfnTgKHawzvnTtLPBoJ6/qKMG8A38N8mbwMG2n3nzQ7b5SeFf
TumnIm7oa4jjdB4SuKA8AYopT2MVp357nJQ9Sm1XH4JZgh7f+7FHgNV9VVKtOwRu
szK+dypsGzMuLu9gnHO1hVEP6wlk/htGPQGRV/a36tb2hLTPYIbkMKx4J1cpV5b7
xApS4v+niBA2ZpsCdR6Cr2HAi6VtNFCMglKvyiXXMbx9bCB0GrmOuKZ1ghlV7c2d
NozFLG5kX87Rb/uSKOuZXe+yPA2JE2D2zGCHXVmKIpFgE4koyDTAoKccPMhuXNKk
9t/SoTXaKAoVTmCRbPcw4/NAnz39QLZUtfl18tfCEP3ZjGndriVGzKWv/ZpbCuMI
qOTDfNlWHYE=
=iyT9
-----END PGP SIGNATURE-----
--- End Message ---