It has taken many hours, but my Mac Pro (model MacPro1,1) finally automatically booted Debian from rEFInd and the grub2 menu.

Problems/challenges:
- grub-efi[-ia32[-bin]] doesn't properly set the path to find the efi image when installed and set-up by a package manager. I've filed a bug report [#677280]. The upshot of this is when you select /boot/grub/grub.efi in rEFInd, you are dropped at a grub-rescue prompt.

- When I built my own grub2 from source and followed the instructions here: https://help.ubuntu.com/community/UEFIBooting, I could successfully get to a grub prompt (not grub-rescue), but still no menu of linux kernels, etc. I did not figure out what I needed to type in at the grub prompt to get a successful boot. These instructions specifically set a null --prefix for grub-mkimage, which may be part of the problem?

- Today, I uninstalled my homemade grub2 (in /usr/local) to get back to Debian's grub-efi because Debian's constructed grub.cfg was the one that worked best from the supergrub rescue CD. I also found these instructions: http://mennucc1.debian.net/macbook_linux_efi.html and gave them a try. Note, these instructions explicitly set all the paths in the /EFI partition. Specifically,

grub-mkimage -O x86_64-efi -o /efi/efi/grub/grub.efi \
       -p /efi/grub part_gpt hfsplus fat ext2 normal \
          chain boot configfile linux multiboot

I copied the grub.cfg from /boot/grub to
/{EFI partition mount point)/EFI/grub/ and rebooted. It actually booted! I didn't have video, but the harddisk churned away. When grub started, it said

"error no suitable mode"
"however continuing..."

This message with the little grub info stayed in a tiny box in the middle of my screen. So, now all I need to do is understand how to get the right video module/driver in the right place.

The instructions that worked for me above have this next for the right video:

function load_video {
  set debug=fb
  insmod efi_gop
  #insmod vbe
}

and then specify if you have an older Mac, maybe use efi_uga.

When I look at the files in /etc/grub.d, it looks like these modules should be in there, but when I look at my grub.cfg, this is my load_video function:

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

Does anyone know how I get the Debian grub2 scripts to grab and add the right modules to my grub.cfg? I will try hand editing grub.cfg tomorrow, but I assume those changes will be over-written the next time grub is updated.

As another possible workaround, might it work to run grub-mkimage with efi_uga in the modules list?

Thanks for any thoughts.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4fd838fd.80...@yahoo.com

Reply via email to