Page 9 of 123 FirstFirst ... 78910111959109 ... LastLast
Results 81 to 90 of 1226

Thread: grub2 EFI boot loader internal/external booting

  1. #81
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Chainloading ?

    Quote Originally Posted by cyberdork33 View Post
    So, in essence, it does the same thing as rEFIt here.
    Yes I suspect refit uses the same appleloader EFI function, not sure though.
    The refit and grub source code is very different, but I am still reading that (slowly).

  2. #82
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    To check if your EFI is 64 or 32 bit
    Then you can use the 32 or 64 bit grub.efi test versions posted above to confirm.

    Use the rEFIt GUI "About rEFIt" icon centre bottom row.
    Code:
    			Imac81			MacBook21
    
    EFI Revision       1.10                 1.10
    Platform           x86_64 (64bit)        x86 (32bit)
    Firmware           Apple 1.10            Apple 4096.01
    Screen Output  UGA Draw (EFI 1.10)     UGA Draw (EFI 1.10)
    			1920x1200              120x800
    And some other interesting info using 'file' in MacOSX or Ubuntu terminal
    Code:
    im81:~ pxw$ file /efi/refit/refit.efi 
    /efi/refit/refit.efi: Universal EFI binary with 2 architectures, i386, x86_64
    
    im81:~ pxw$ file /usr/standalone/i386/boot.efi 
    /usr/standalone/i386/boot.efi: Universal EFI binary with 2 architectures, i386, x86_64
    
    im81:~ pxw$ file /usr/lib/libSystem.B.dylib 
    /usr/lib/libSystem.B.dylib: Mach-O universal binary with 4 architectures
    /usr/lib/libSystem.B.dylib (for architecture ppc7400):
    	Mach-O dynamically linked shared library ppc
    /usr/lib/libSystem.B.dylib (for architecture ppc64):
    	Mach-O 64-bit dynamically linked shared library ppc64
    /usr/lib/libSystem.B.dylib (for architecture i386):
    	Mach-O dynamically linked shared library i386
    /usr/lib/libSystem.B.dylib (for architecture x86_64):
    	Mach-O 64-bit dynamically linked shared library x86_64
    The grub2efi PE format is acceptable to apple EFI but a separate file is required for 64/32 bit.
    Code:
     
    im81:~ pxw$ file /Volumes/usbhfsp1/EFI/grub64/grub.efi 
    /Volumes/usbhfsp1/EFI/grub64/grub.efi: MS-DOS executable PE  for MS Windows
    
    im81:~ pxw$ file /Volumes/usbhfsp1/EFI/grub32/grub.efi 
    /Volumes/usbhfsp1/EFI/grub32/grub.efi: MS-DOS executable PE  for MS Windows Intel 80386 32-bit

  3. #83
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by shadowdude1794 View Post
    Ok, so I actually waited about 5-10 minutes for it to load, it never did. I tried that command, gave me an error, can you do without it? The three drives are the internal hard drive, the flash drive, and the CD drive which rEFIt is on. As for full kernel name, vmlinuz-2.6.27-7-generic.


    EDIT: It's i386
    I tried to reproduce the conditions for your boot bug, by using the refit CD, booting grub.efi from the HD, and setting up a USB stick with msdos partitioning and partitions for ubuntu, swap and fat32 - as close as I could to your install.

    But it booted vmlinuz and initrd (2.6.27-7-generic) and continued on happily with screen text after the boot command, where your screen froze.

    So I think you had everything right and the presence of the CD was not the problem and it all should work - except for one possibility.

    According to info on the rEFIt site documentation, there have been changes in the Apple EFI graphics mode support "late 2008". This might be responsible for the loss of any screen output after the boot command.

    It involves 2 modes - the UgaDraw protocol (EFI 1.x) and the GraphicsOutput protocol (UEFI 2.x).

    It is easy to see this information using the 'About rEFIt' icon in the refit GUI screen - shown in the 'Screen Output' line.

    For the MacBook 2,1 and the Imac 8,1 the About refit info is -

    Screen Output UGA Draw (EFI 1.10)

    (the full output is in my post above).

    You might like to check your 'About refit' to compare.

  4. #84
    Join Date
    Jan 2009
    Beans
    36
    Distro
    Ubuntu Development Release

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by pxwpxw View Post
    Thanks for testing on the MacBook Air.

    Have you installed my full package from this thread post #57
    grubefi64.tar.gz

    You need to look at the grub.cfg text to see examples.

    Have you installed it in the MacOSX /efi folder with refit.

    If you are not seeing a menu try changing the /efi name to /EFI there is a case issue.

    It will only boot normal ext2/3 linux kernel and initrd, I dont
    know if wubi gives you a normal linux system. You may.

    It is compiled from grub2 svn trunk a few days a go, version 1952 I think. In Ubuntu 810 i386 cross compiled using current gcc-libs and multilib
    ./configure --with-platform=efi --target=x86_64.
    Then using grub-mkimage -> grub.efi
    Plus modules and grub.cfg.

    Edit:
    There is a log of the build procedure for the i386 version at my post #17
    Only difference for x86_64 id the --target=x86_64
    Yes, I installed the full package. Directory structure as follows:
    /efi
    /efi/grub64
    *.efi, *.icns, *cfg + lots of *.mod files
    /efi/refit
    /efi/tools

    I did look at grub.cfg and also added one entry of my own. However it's not that an entry doesn't work, it just doesn't show the list entries / the menu at all.
    I will try changing the directory to /EFI just refit had it with /efi so i thought that would be good. Well, wubi gives you a norma linux system ... it is basically a normal linux file system just in a file on the windows disk, and a small initrd / kernel on the os x disk. This works with windows, and from what I know/read about grub2 it should be supported by grub, so I think it will work with os x. But I can rly investigate this later, right know it at least needs to display the menu and stuff, then I can investigate this further. I turned on debug with debug=all on commandline, however the output was way too much for my screen. Some guy on grub irc said that if you envoke grub_set_env() in grub_main() it should log debug output to disk, so could you maybe do a debug build?

  5. #85
    Join Date
    Aug 2005
    Location
    Huntsville, AL, USA
    Beans
    7,526
    Distro
    Ubuntu

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by step21 View Post
    I will try changing the directory to /EFI just refit had it with /efi so i thought that would be good.
    I don't think this *should* matter, but for some reason it appears to be the case for rEFIt to see executables. It may also be that this is only required for Case-Sensitive HFS+ partitions as there should be no real distinction between lower-case and upper-case in normal HFS+ and FAT32

  6. #86
    Join Date
    Aug 2005
    Location
    Huntsville, AL, USA
    Beans
    7,526
    Distro
    Ubuntu

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by pxwpxw View Post
    To check if your EFI is 64 or 32 bit
    Then you can use the 32 or 64 bit grub.efi test versions posted above to confirm.

    Use the rEFIt GUI "About rEFIt" icon centre bottom row.
    Code:
                        iMac5,1    (20in)          MacBookPro4,1 (15in)
    
    EFI Revision        1.10                    1.10
    Platform            x86 (32bit)             x86_64 (64bit)
    Firmware            Apple 4096.01           Apple 1.10
    Screen Output     UGA Draw (EFI 1.10)     UGA Draw (EFI 1.10)
                        1680x1050               1440x900
    Maybe we should start a database:

    Code:
                        iMac5,1    (20in)            MacBookPro4,1 (15in)
    
    EFI Revision        1.10                    1.10
    Platform            x86 (32bit)                x86_64 (64bit)
    Firmware            Apple 4096.01            Apple 1.10
    Screen Output        UGA Draw (EFI 1.10)        UGA Draw (EFI 1.10)
                        1680x1050                1440x900
    Last edited by cyberdork33; January 25th, 2009 at 06:15 PM.

  7. #87
    Join Date
    Mar 2008
    Location
    In a fantasy land
    Beans
    96
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    Pxwpxw, I checked and I have "Screen Output UGA Draw (EFI 1.10)"
    Good? Bad?

  8. #88
    Join Date
    Jan 2009
    Beans
    36
    Distro
    Ubuntu Development Release

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by cyberdork33 View Post
    I don't think this *should* matter, but for some reason it appears to be the case for rEFIt to see executables. It may also be that this is only required for Case-Sensitive HFS+ partitions as there should be no real distinction between lower-case and upper-case in normal HFS+ and FAT32
    Yeah, it should not, as my hfs+ is not case-sensitive, which is the default too I think.

  9. #89
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by step21 View Post
    Yeah, it should not, as my hfs+ is not case-sensitive, which is the default too I think.
    EFI and efi

    EFi gets a menu from grub.cfg
    efi gets a grub> command line

    It is the way rEFIt is coded - it sees 'efi' then passes 'EFI' to grub and grub cant find grub.cfg.
    If grub is put in another partiton is should also be /EFI for refit to recognise it. (Or maybe seen as EFI if you can work that out).

    But change the case using the finder gui, otherwise you will find it difficult to "$ mv efi EFI"
    Attached Images Attached Images
    Last edited by pxwpxw; January 26th, 2009 at 03:46 AM.

  10. #90
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by shadowdude1794 View Post
    Pxwpxw, I checked and I have "Screen Output UGA Draw (EFI 1.10)"
    Good? Bad?
    Same as everyone else so far, so I think not the problem, but could you post the full details and MacBook model to add to the database ( see cyberdork33 post above).

    You have got it nearly beaten and grub.efi has finished its job, its just the final hurdle getting the screen and ubuntu kernel working.

    Looking at other possibilities -
    Did you have any install problems or unknowns for the ubuntu install to the usb.
    Did you see what happened with grub legacy, it usually gets installed by default and it is compatible with grub-efi unless something goes wrong.
    Maybe a reinstall could be worth a try, but not before you comment.

    It seems -
    (a) there is a video problem with efi for that Mac model hiding whatever progress is happening.
    (b) there is a problem with running the initrd.img - could be a bad install, could be lots of other things. However from your previous post, the sizes for vmlinuz and initrd are as expected.
    Last edited by pxwpxw; January 26th, 2009 at 07:35 AM.

Page 9 of 123 FirstFirst ... 78910111959109 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •