Re: Bug#771465: i386 hd-media image does not boot on Macbooks with 32-bit EFI
[ CCing debian-kernel@lists.debian.org for some more insights ] Teemu Ikonen tpiko...@gmail.com writes: Package: debian-installer Severity: important Hi, I recently installed jessie on a 2007 intel Macbook by booting d-i from a USB drive. Getting the installer to start required quite a bit of hand tuning. The Macbook versions Macbook1,1 and Macbook2,1 from 2006-2007 require a 32-bit EFI bootloader and thus do not work with amd64 version of d-i. On the other hand, the i386 hd-media/boot.img.gz image only works with BIOS systems. Are you sure they don't run amd64 code? From what I've found on the web these two models have Intel Core Duo and Core 2 Duo processors. Early Intel based Macs have a 32bit EFI but perfectly run 64 bit code AFAIK. Earlier kernels (before 3.4 IIRC) are not capable of crossefi booting (different kernel arch than EFI arch), but that should not be a problem on jessie's 3.16 kernel. What you however need is a 32bit grub EFI image because your EFI environment is 32bit. I got the installer running by manually installing GRUB (the i386-efi version) to a USB drive with an MBR partition table and a FAT32 filesystem, copying grub.conf from the amd64 netboot ISO image and copying the kernel image and initrd from the i386 netboot image. This procedure is straightforward, but requires an existing linux computer and probably does not win any usability awards. Can you test if you can boot the 64bit kernel and initrd from the amd64 image with this procedure (using the 32bit grub-efi)? I know this works the other way around (64bit grub and EFI booting into a 32 bit kernel) but never tested the 32bit to 64bit kernel case. The straightforward fix would be to install both syslinux and GRUB to the hd-media image, as they seem to be able to coexist without problem. If this is for some reason not possible, then the procedure to get i386 EFI systems booting should be at least documented on the Installation guide, somewhere around chapter 4.3.3.1. EFI 32bit and 64bit and BIOS images of grub can all coexist on the same installation media. IMO it would make sense to install all of them to the 32bit and 64bit x86 images. Gaudenz -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/87oarolua8@meteor.durcheinandertal.bofh
Re: Bug#771465: i386 hd-media image does not boot on Macbooks with 32-bit EFI
On Sun, Nov 30, 2014 at 1:58 PM, Gaudenz Steinlin gaud...@debian.org wrote: Teemu Ikonen tpiko...@gmail.com writes: The Macbook versions Macbook1,1 and Macbook2,1 from 2006-2007 require a 32-bit EFI bootloader and thus do not work with amd64 version of d-i. On the other hand, the i386 hd-media/boot.img.gz image only works with BIOS systems. Are you sure they don't run amd64 code? From what I've found on the web these two models have Intel Core Duo and Core 2 Duo processors. Early Intel based Macs have a 32bit EFI but perfectly run 64 bit code AFAIK. Earlier kernels (before 3.4 IIRC) are not capable of crossefi booting (different kernel arch than EFI arch), but that should not be a problem on jessie's 3.16 kernel. AFAIK Core Duo is 32-bit and Core 2 Duo (which I am testing with) is 64-bit. I got the installer running by manually installing GRUB (the i386-efi version) to a USB drive with an MBR partition table and a FAT32 filesystem, copying grub.conf from the amd64 netboot ISO image and copying the kernel image and initrd from the i386 netboot image. This procedure is straightforward, but requires an existing linux computer and probably does not win any usability awards. Can you test if you can boot the 64bit kernel and initrd from the amd64 image with this procedure (using the 32bit grub-efi)? I know this works the other way around (64bit grub and EFI booting into a 32 bit kernel) but never tested the 32bit to 64bit kernel case. I made a USB stick with 32-bit EFI grub and kernel and initrd copied from amd64 netboot ISO. Grub naturally works ok, and interestingly, even the kernel boots but it does not find a working init. I'm not sure if the amd64 init can be made to work with this machine, but of course it would be nice to be able to install 64-bit Debian to this computer. The straightforward fix would be to install both syslinux and GRUB to the hd-media image, as they seem to be able to coexist without problem. If this is for some reason not possible, then the procedure to get i386 EFI systems booting should be at least documented on the Installation guide, somewhere around chapter 4.3.3.1. EFI 32bit and 64bit and BIOS images of grub can all coexist on the same installation media. IMO it would make sense to install all of them to the 32bit and 64bit x86 images. This would be the ideal solution. The 32-bit EFI Macs have a somewhat strange firmware though and only seem to work when the bootloader is installed as /EFI/BOOT/BOOTIA32.EFI. Adding the --removable flag to grub-install produces a working grub installation, also when grub is installed to the EFI partition of the hard drive. Best, Teemu -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/cah-frajyjn7p9wjhyd9xogg+omhopbx_twtl7yn1herqr-c...@mail.gmail.com
Re: Bug#771465: i386 hd-media image does not boot on Macbooks with 32-bit EFI
On Sun, Nov 30, 2014 at 8:48 PM, Teemu Ikonen tpiko...@gmail.com wrote: I made a USB stick with 32-bit EFI grub and kernel and initrd copied from amd64 netboot ISO. Grub naturally works ok, and interestingly, even the kernel boots but it does not find a working init. Ah, of course I mixed the kernel from amd64 and init from i386. With the correct combination (both from amd64 mini.iso) and 32-bit EFI grub the 64-bit installer starts fine. Sorry for the noise, Teemu -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/cah-fra+av_06merxij4ryj7avfabhtam-wod5caeff0r8d7...@mail.gmail.com
Re: Bug#771465: i386 hd-media image does not boot on Macbooks with 32-bit EFI
On Sun, Nov 30, 2014 at 09:05:47PM +0100, Teemu Ikonen wrote: On Sun, Nov 30, 2014 at 8:48 PM, Teemu Ikonen tpiko...@gmail.com wrote: I made a USB stick with 32-bit EFI grub and kernel and initrd copied from amd64 netboot ISO. Grub naturally works ok, and interestingly, even the kernel boots but it does not find a working init. Ah, of course I mixed the kernel from amd64 and init from i386. With the correct combination (both from amd64 mini.iso) and 32-bit EFI grub the 64-bit installer starts fine. I'm working on two different UEFI setup things right now that will make these machines work better - see http://blog.einval.com/2014/11/20#Jessie-EFI I'm almost done with #746662, just testing now (forcing also installing grub to the removable media path). Next up is the force using a 32-bit UEFI version og grub even for 64-bit systems (#768461) Hopefully a combination of these 2 fixes will make your system work out of the box... -- Steve McIntyre, Cambridge, UK.st...@einval.com You raise the blade, you make the change... You re-arrange me 'til I'm sane... -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141201002141.gi16...@einval.com