Bug#577700: grub2: cannot boot in efi mode with Macbook 5,1

2011-03-29 Thread Vladimir 'φ-coder/phcoder' Serbinenko
tag 577700 fixed-upstream
thanks

On 13.02.2011 10:01, Giovanni Toraldo wrote:
 A later update on this: I've successfully booted in EFI mode building
 manually grub-1.99~rc1 :)

 Thank you.

   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#577700: grub2: cannot boot in efi mode with Macbook 5,1

2011-02-13 Thread Giovanni Toraldo
A later update on this: I've successfully booted in EFI mode building
manually grub-1.99~rc1 :)

Thank you.

-- 
Giovanni Toraldo
http://gionn.net/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#577700: grub2: cannot boot in efi mode with Macbook 5,1

2010-05-09 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Giovanni Toraldo wrote:
 2010/4/14 Vladimir 'φ-coder/phcoder' Serbinenko phco...@gmail.com:
   
 Giovanni Toraldo wrote:
 
 If I omit sh.mod, grub says {linux|initrd} command not found.

   
Reason for the last problem was discovered and fixed in experimental and
mainline.


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko




signature.asc
Description: OpenPGP digital signature


Bug#577700: grub2: cannot boot in efi mode with Macbook 5,1

2010-04-14 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Giovanni Toraldo wrote:
 Package: grub-efi-amd64
 Version: 1.98-1
 Severity: normal
 Tags: squeeze

   
Can you try grub from experimental upstream bazaar?

-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko




signature.asc
Description: OpenPGP digital signature


Bug#577700: grub2: cannot boot in efi mode with Macbook 5,1

2010-04-14 Thread Giovanni Toraldo
2010/4/14 Vladimir 'φ-coder/phcoder' Serbinenko phco...@gmail.com:
 Giovanni Toraldo wrote:
 Package: grub-efi-amd64
 Version: 1.98-1
 Severity: normal
 Tags: squeeze


 Can you try grub from experimental upstream bazaar?

sc...@antani-deb:~/Desktop/experimental$ ./configure
--with-platform=efi --prefix=$HOME/.opt/
sc...@antani-deb:~/Desktop/experimental$ make
[..]
util/grub-editenv.c:24:26: error: grub/handler.h: No such file or directory
make: *** [grub_editenv-util_grub_editenv.o] Error 1
I commented the include  make  make install

sc...@antani-deb:~/.opt/lib/grub/x86_64-efi$ ~/.opt/bin/grub-mkimage
-d . -o grub.efi part_gpt hfsplus fat ext2 normal sh chain boot
configfile linux
grub-mkimage: error: cannot stat ./sh.mod.

If I omit sh.mod, grub says {linux|initrd} command not found.

-- 
Giovanni scorp Toraldo



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#577700: grub2: cannot boot in efi mode with Macbook 5,1

2010-04-14 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Giovanni Toraldo wrote:
 2010/4/14 Vladimir 'φ-coder/phcoder' Serbinenko phco...@gmail.com:
   
 Giovanni Toraldo wrote:
 
 Package: grub-efi-amd64
 Version: 1.98-1
 Severity: normal
 Tags: squeeze


   
 Can you try grub from experimental upstream bazaar?
 

 sc...@antani-deb:~/Desktop/experimental$ ./configure
 --with-platform=efi --prefix=$HOME/.opt/
 sc...@antani-deb:~/Desktop/experimental$ make
 [..]
 util/grub-editenv.c:24:26: error: grub/handler.h: No such file or directory
 make: *** [grub_editenv-util_grub_editenv.o] Error 1
 I commented the include  make  make install

   
Thanks for reporting this. I didn't notice it because of leftover
headers I have in /usr/include.
 sc...@antani-deb:~/.opt/lib/grub/x86_64-efi$ ~/.opt/bin/grub-mkimage
 -d . -o grub.efi part_gpt hfsplus fat ext2 normal sh chain boot
 configfile linux
 grub-mkimage: error: cannot stat ./sh.mod.

   
sh.mod is merged back into normal.mod
 If I omit sh.mod, grub says {linux|initrd} command not found.

   
Are other commands present? It's pretty strange since linux.mod supplies
linux and initrd commands. I'll run some tests on qemu


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko




signature.asc
Description: OpenPGP digital signature


Bug#577700: grub2: cannot boot in efi mode with Macbook 5,1

2010-04-13 Thread Giovanni Toraldo
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 echoLoading
Linux 2.6.32-3-amd64 ... linux   /boot/vmlinuz-2.6.32-3-amd64
root=/dev/sda4 ro video=efifb echoLoading 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
echoLoading Linux 2.6.32-3-amd64 ...
linux   /boot/vmlinuz-2.6.32-3-amd64 
root=UUID=368f452a-7d18-4d35-b095-ae6011c75dd6 ro  
echoLoading 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
echoLoading Linux 2.6.32-3-amd64 ...
linux   /boot/vmlinuz-2.6.32-3-amd64 
root=UUID=368f452a-7d18-4d35-b095-ae6011c75dd6 ro single 
echoLoading 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 ]; 

Bug#577700: grub2: cannot boot in efi mode with Macbook 5,1

2010-04-13 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Giovanni Toraldo wrote:
 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 echoLoading 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.

   
Can you add debug=all and post the last lines printed by grub?
 -- 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
   echoLoading Linux 2.6.32-3-amd64 ...
   linux   /boot/vmlinuz-2.6.32-3-amd64 
 root=UUID=368f452a-7d18-4d35-b095-ae6011c75dd6 ro  
   echoLoading 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
   echoLoading Linux 2.6.32-3-amd64 ...
   linux   /boot/vmlinuz-2.6.32-3-amd64 
 root=UUID=368f452a-7d18-4d35-b095-ae6011c75dd6 ro single 
   echoLoading 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 ]; 

Bug#577700: grub2: cannot boot in efi mode with Macbook 5,1

2010-04-13 Thread Giovanni Toraldo
2010/4/13 Vladimir 'φ-coder/phcoder' Serbinenko phco...@gmail.com:
 Can you add debug=all and post the last lines printed by grub?

I added `set debug=all` to my grub.cfg entry, and I see *a lot* of
reads, a notice saying closing (hd0,4) and a bunch of pointers being
free.

Thanks.

ps: I think I should file a bugreport also for reportbug, using gtk2
frontend ate all of my br.

-- 
Giovanni scorp Toraldo



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org