-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Il 16/11/2010 10:30, Vladimir 'φ-coder/phcoder' Serbinenko ha scritto:
> On 11/16/2010 10:05 AM, A Mennucc wrote:
>> I tried to follow instructions in http://grub.enbug.org/TestingOnMacbook
>> (with some important changes)
>>
> These instructions are outdated since grub-install now supports EFI
>> Currently the stanzas in the menu seem to load the kernel, but then the
>> video is not properly initialized;
> Of course not, you didn't load any video driver. You need to include
> efi_uga or efi_gop depending on your EFI
> 

Ah that makes for a lot of difference! Thanks a lot!
I can now boot my MacBook using the grub-efi!

I attach the grub.cfg that does work, and a dmesg.

This is what works and what does not:
- -> I got a fullscreen grub menu, with Debian-themed
   background (beautiful)
- -> I did boot OK with linux kernel 2.6.32-5-amd64
  (I attach a dmesg)
- -> network and audio were fine
- -> I started X11 with 'Driver  "fbdev"' , it started OK,
 but the colors are wrong, red and blue are inverted in the desktop...
 whereas they are not inverted in youtube videos (weird fact!)
- -> I tried to start X11 with the nouveau drivers, but it crashed;
  this may be due to the fact that the OS is i386 , not amd64
  (and unfortunately I do not have time currently to reinstall it all)
- -> I tried to boot with linux kernel 2.6.32-5-686
  but the keyboard did not work (and this is a big showstopper, since
 I have a crypted /home)

  ------------

BTW I also have added to /etc/initramfs-tools/modules
the following modules
 fbcon
 uvesafb
 hid_apple
 hid
 applesmc
 input_polldev
(the  first two are indicated in
 http://grub.enbug.org/TestingOnMacbook
 the other I added to try to get keyboard support in i386 mode)

But then I noted the following errors in dmesg
[    4.337629] uvesafb: failed to execute /sbin/v86d
[    4.337702] uvesafb: make sure that the v86d helper is installed and
executable
[    4.337776] uvesafb: Getting VBE info block failed (eax=0x4f00, err=-2)
[    4.337840] uvesafb: vbe_init() failed with -22
[    4.337906] uvesafb: probe of uvesafb.0 failed with error -22

so it seems that 'uvesafb' is not doing anything useful, you may want to
change http://grub.enbug.org/TestingOnMacbook

a.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzz1M0ACgkQ9B/tjjP8QKShxwCeJ/3jhk+36QwsektAV3el2Axw
YQgAoI16IPQcxkTA4jAqWxDNx8brZTFp
=OZYq
-----END PGP SIGNATURE-----
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
}

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

insmod part_gpt
insmod ext2
set root='(hd0,gpt10)'
search --no-floppy --fs-uuid --set 95d78c77-1531-4ecc-a4e1-1af604ff9f62
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set a5730f05-b1d3-4819-833a-5e32cf8404d5
set locale_dir=($root)/grub/locale
set lang=
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set a5730f05-b1d3-4819-833a-5e32cf8404d5
insmod png
if background_image /grub/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-5-amd64' --class debian --class 
gnu-linux --class gnu --class os {
        insmod part_gpt
        insmod ext2
        set root='(hd0,gpt3)'
        search --no-floppy --fs-uuid --set a5730f05-b1d3-4819-833a-5e32cf8404d5
        echo    'Loading Linux 2.6.32-5-amd64 ...'
        linux   /vmlinuz-2.6.32-5-amd64 
root=UUID=95d78c77-1531-4ecc-a4e1-1af604ff9f62 ro  quiet  video=efifb
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.32-5-amd64
}

menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class 
gnu-linux --class gnu --class os {
        insmod part_gpt
        insmod ext2
        set root='(hd0,gpt3)'
        search --no-floppy --fs-uuid --set a5730f05-b1d3-4819-833a-5e32cf8404d5
        echo    'Loading Linux 2.6.32-5-686 ...'
        linux   /vmlinuz-2.6.32-5-686 
root=UUID=95d78c77-1531-4ecc-a4e1-1af604ff9f62 ro  quiet  video=efifb
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class 
debian --class gnu-linux --class gnu --class os {
        insmod part_gpt
        insmod ext2
        set root='(hd0,gpt3)'
        search --no-floppy --fs-uuid --set a5730f05-b1d3-4819-833a-5e32cf8404d5
        echo    'Loading Linux 2.6.32-5-686 ...'
        linux   /vmlinuz-2.6.32-5-686 
root=UUID=95d78c77-1531-4ecc-a4e1-1af604ff9f62 ro single  video=efifb
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.26-2-amd64' --class debian --class 
gnu-linux --class gnu --class os {
        insmod part_gpt
        insmod ext2
        set root='(hd0,gpt3)'
        search --no-floppy --fs-uuid --set a5730f05-b1d3-4819-833a-5e32cf8404d5
        echo    'Loading Linux 2.6.26-2-amd64 ...'
        linux   /vmlinuz-2.6.26-2-amd64 
root=UUID=95d78c77-1531-4ecc-a4e1-1af604ff9f62 ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.26-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.26-2-amd64 (recovery mode)' --class 
debian --class gnu-linux --class gnu --class os {
        insmod part_gpt
        insmod ext2
        set root='(hd0,gpt3)'
        search --no-floppy --fs-uuid --set a5730f05-b1d3-4819-833a-5e32cf8404d5
        echo    'Loading Linux 2.6.26-2-amd64 ...'
        linux   /vmlinuz-2.6.26-2-amd64 
root=UUID=95d78c77-1531-4ecc-a4e1-1af604ff9f62 ro single 
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.26-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.26-2-686' --class debian --class 
gnu-linux --class gnu --class os {
        insmod part_gpt
        insmod ext2
        set root='(hd0,gpt3)'
        search --no-floppy --fs-uuid --set a5730f05-b1d3-4819-833a-5e32cf8404d5
        echo    'Loading Linux 2.6.26-2-686 ...'
        linux   /vmlinuz-2.6.26-2-686 
root=UUID=95d78c77-1531-4ecc-a4e1-1af604ff9f62 ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.26-2-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.26-2-686 (recovery mode)' --class 
debian --class gnu-linux --class gnu --class os {
        insmod part_gpt
        insmod ext2
        set root='(hd0,gpt3)'
        search --no-floppy --fs-uuid --set a5730f05-b1d3-4819-833a-5e32cf8404d5
        echo    'Loading Linux 2.6.26-2-686 ...'
        linux   /vmlinuz-2.6.26-2-686 
root=UUID=95d78c77-1531-4ecc-a4e1-1af604ff9f62 ro single 
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.26-2-686
}


menuentry "Linux (with bios dump)" {
  loadbios /vbios.bin /int10.bin
  linux  /boot/vmlinuz-2.6.32-5-686 root=/dev/sda10 video=efifb
  initrd /boot/initrd.img-2.6.32-5-686
  boot
}

menuentry "Linux (with bios dump and fix video)" {
  fix_video
  loadbios /vbios.bin /int10.bin
  linux /boot/vmlinuz-2.6.32-5-686 root=/dev/sda10 video=efifb
  initrd /boot/initrd.img-2.6.32-5-686
  boot
}

menuentry "Linux (without bios dump)" {
  fakebios
  linux  /boot/vmlinuz-2.6.32-5-686 root=/dev/sda10 video=efifb
  initrd /boot/initrd.img-2.6.32-5-686
  boot
}

menuentry "Linux (as is)" {
  fakebios
  linux  /boot/vmlinuz-2.6.32-5-686 root=/dev/sda10 video=efifb
  initrd /boot/initrd.img-2.6.32-5-686
  boot
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Mac OS X (32-bit) (on /dev/sda2)" {
        insmod part_gpt
        insmod hfsplus
        set root='(hd0,gpt2)'
        search --no-floppy --fs-uuid --set 225d42ddb3806084
        load_video
        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 225d42ddb3806084 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 part_gpt
        insmod hfsplus
        set root='(hd0,gpt2)'
        search --no-floppy --fs-uuid --set 225d42ddb3806084
        load_video
        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 225d42ddb3806084 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 "Ubuntu, with Linux 2.6.32-24-generic (on /dev/sda9)" {
        insmod part_gpt
        insmod ext2
        set root='(hd0,gpt9)'
        search --no-floppy --fs-uuid --set fd8a9e07-c054-4d6c-a1c9-ab27f1d49d20
        linux /boot/vmlinuz-2.6.32-24-generic 
root=UUID=fd8a9e07-c054-4d6c-a1c9-ab27f1d49d20 ro quiet splash
        initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry "Ubuntu, with Linux 2.6.32-24-generic (recovery mode) (on /dev/sda9)" 
{
        insmod part_gpt
        insmod ext2
        set root='(hd0,gpt9)'
        search --no-floppy --fs-uuid --set fd8a9e07-c054-4d6c-a1c9-ab27f1d49d20
        linux /boot/vmlinuz-2.6.32-24-generic 
root=UUID=fd8a9e07-c054-4d6c-a1c9-ab27f1d49d20 ro single
        initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry "Ubuntu, with Linux 2.6.32-22-generic (on /dev/sda9)" {
        insmod part_gpt
        insmod ext2
        set root='(hd0,gpt9)'
        search --no-floppy --fs-uuid --set fd8a9e07-c054-4d6c-a1c9-ab27f1d49d20
        linux /boot/vmlinuz-2.6.32-22-generic 
root=UUID=fd8a9e07-c054-4d6c-a1c9-ab27f1d49d20 ro quiet splash
        initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry "Ubuntu, with Linux 2.6.32-22-generic (recovery mode) (on /dev/sda9)" 
{
        insmod part_gpt
        insmod ext2
        set root='(hd0,gpt9)'
        search --no-floppy --fs-uuid --set fd8a9e07-c054-4d6c-a1c9-ab27f1d49d20
        linux /boot/vmlinuz-2.6.32-22-generic 
root=UUID=fd8a9e07-c054-4d6c-a1c9-ab27f1d49d20 ro single
        initrd /boot/initrd.img-2.6.32-22-generic
}
### END /etc/grub.d/30_os-prober ###

### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Attachment: dmesg_succesfull_EFI_boot.bz2
Description: application/bzip

_______________________________________________
Bug-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to