Bug#577700: grub2: cannot boot in efi mode with Macbook 5,1
Giovanni Toraldo
scurippio at gmail.com
Tue Apr 13 17:58:50 UTC 2010
Package: grub-efi-amd64
Version: 1.98-1
Severity: normal
Tags: squeeze
Hi, I followed the istructions on both: http://grub.enbug.org/TestingOnEFI
http://grub.enbug.org/TestingOnMacbook menuentry "Debian GNU/Linux, with Linux
2.6.32-3-amd64" { root=(hd0,4) fakebios echo Loading
Linux 2.6.32-3-amd64 ... linux /boot/vmlinuz-2.6.32-3-amd64
root=/dev/sda4 ro video=efifb echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-3-amd64 } I tried differents linux parameters,
without any change at all (noefi, acpi=force). Grub2 'fakebios' also make no
change. grub-mkimage -d . -o grub.efi part_gpt hfsplus fat ext2 normal sh
chain boot configfile linux I am placing the produced grub.efi app, *.mod and
grub.cfg in the hfs+ partition in /efi/grub/, and on reboot I can see it with
rEFIt. Grub2 starts, I select my entry, it loads vmlinuz and initrd.img, and
after everything freeze (no caps lock, no hd activity, no video output).
Thanks.
-- Package-specific info:
*********************** WARNING grub-setup left core.img in filesystem
*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/368f452a-7d18-4d35-b095-ae6011c75dd6 / ext3 rw,relatime,errors=remount-ro,user_xattr,data=ordered 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/sda
*********************** END /boot/grub/device.map
*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
insmod ext2
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 368f452a-7d18-4d35-b095-ae6011c75dd6
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 368f452a-7d18-4d35-b095-ae6011c75dd6
set locale_dir=($root)/boot/grub/locale
set lang=it
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 368f452a-7d18-4d35-b095-ae6011c75dd6
insmod png
if background_image /usr/share/images/desktop-base/moreblue-orbit-grub.png ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, with Linux 2.6.32-3-amd64" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 368f452a-7d18-4d35-b095-ae6011c75dd6
echo Loading Linux 2.6.32-3-amd64 ...
linux /boot/vmlinuz-2.6.32-3-amd64 root=UUID=368f452a-7d18-4d35-b095-ae6011c75dd6 ro
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-3-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-3-amd64 (recovery mode)" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,4)'
search --no-floppy --fs-uuid --set 368f452a-7d18-4d35-b095-ae6011c75dd6
echo Loading Linux 2.6.32-3-amd64 ...
linux /boot/vmlinuz-2.6.32-3-amd64 root=UUID=368f452a-7d18-4d35-b095-ae6011c75dd6 ro single
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-3-amd64
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Mac OS X (32-bit) (on /dev/sda2)" {
insmod hfsplus
set root='(hd0,2)'
search --no-floppy --fs-uuid --set d649b0d05ccc79ad
insmod vbe
set do_resume=0
if [ /var/vm/sleepimage -nt10 / ]; then
if xnu_resume /var/vm/sleepimage; then
set do_resume=1
fi
fi
if [ $do_resume == 0 ]; then
xnu_uuid d649b0d05ccc79ad uuid
if [ -f /Extra/DSDT.aml ]; then
acpi -e /Extra/DSDT.aml
fi
xnu_kernel /mach_kernel boot-uuid=${uuid} rd=*uuid
if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
xnu_mkext /System/Library/Extensions.mkext
else
xnu_kextdir /System/Library/Extensions
fi
if [ -f /Extra/Extensions.mkext ]; then
xnu_mkext /Extra/Extensions.mkext
fi
if [ -d /Extra/Extensions ]; then
xnu_kextdir /Extra/Extensions
fi
if [ -f /Extra/devprop.bin ]; then
xnu_devprop_load /Extra/devprop.bin
fi
if [ -f /Extra/splash.jpg ]; then
insmod jpeg
xnu_splash /Extra/splash.jpg
fi
if [ -f /Extra/splash.png ]; then
insmod png
xnu_splash /Extra/splash.png
fi
if [ -f /Extra/splash.tga ]; then
insmod tga
xnu_splash /Extra/splash.tga
fi
fi
}
menuentry "Mac OS X (64-bit) (on /dev/sda2)" {
insmod hfsplus
set root='(hd0,2)'
search --no-floppy --fs-uuid --set d649b0d05ccc79ad
insmod vbe
set do_resume=0
if [ /var/vm/sleepimage -nt10 / ]; then
if xnu_resume /var/vm/sleepimage; then
set do_resume=1
fi
fi
if [ $do_resume == 0 ]; then
xnu_uuid d649b0d05ccc79ad uuid
if [ -f /Extra/DSDT.aml ]; then
acpi -e /Extra/DSDT.aml
fi
xnu_kernel64 /mach_kernel boot-uuid=${uuid} rd=*uuid
if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
xnu_mkext /System/Library/Extensions.mkext
else
xnu_kextdir /System/Library/Extensions
fi
if [ -f /Extra/Extensions.mkext ]; then
xnu_mkext /Extra/Extensions.mkext
fi
if [ -d /Extra/Extensions ]; then
xnu_kextdir /Extra/Extensions
fi
if [ -f /Extra/devprop.bin ]; then
xnu_devprop_load /Extra/devprop.bin
fi
if [ -f /Extra/splash.jpg ]; then
insmod jpeg
xnu_splash /Extra/splash.jpg
fi
if [ -f /Extra/splash.png ]; then
insmod png
xnu_splash /Extra/splash.png
fi
if [ -f /Extra/splash.tga ]; then
insmod tga
xnu_splash /Extra/splash.tga
fi
fi
}
menuentry "Windows 7 (loader) (on /dev/sda3)" {
insmod ntfs
set root='(hd0,3)'
search --no-floppy --fs-uuid --set c8645a1a645a0c16
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_otheros ###
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda3
menuentry "Windows Vista/Longhorn (loader)" {
set root=(hd0,2)
chainloader +1
}
### END /etc/grub.d/30_otheros ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages grub-efi-amd64 depends on:
ii debconf [debconf-2.0] 1.5.30 Debian configuration management sy
ii grub-common 1.98-1 GRand Unified Bootloader, version
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii ucf 3.0025 Update Configuration File: preserv
grub-efi-amd64 recommends no packages.
Versions of packages grub-efi-amd64 suggests:
pn efibootmgr <none> (no description available)
ii os-prober 1.35 utility to detect other OSes on a
-- debconf information:
grub2/kfreebsd_cmdline:
* grub2/linux_cmdline:
grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default:
More information about the Pkg-grub-devel
mailing list