Page 106 of 123 FirstFirst ... 65696104105106107108116 ... LastLast
Results 1,051 to 1,060 of 1226

Thread: grub2 EFI boot loader internal/external booting

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

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by davibe View Post
    I built my own grub.efi on macosx using svn version of grub 2 from savannah.

    I'm trying 2 things :

    1) to boot a live iso of ubuntu 9.04 using

    menuentry "C image.iso fbdev persistent" {
    fakebios
    search --set -f /image.iso
    loopback loop /image.iso
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/image.iso video=efifb fbdev noefi
    initrd (loop)/casper/initrd.gz
    }

    the problem here is that I always end up in a (initramfs)$ console after mounting root fs. why is that ?
    I also tryed 9.10 image but in this case it fails looking for /dev/scd0 ..

    2) to boot a standard ubuntu 9.10 installation on external hardisk (ext4) by copying vmlinuz and initrd on main osx partition and using

    menuentry "usb " {
    search --set -f /usbvmlinuz
    fakebios
    linux /usbvmlinuz root=/dev/sdb2 video=efifb fbdev noefi
    initrd /usbinitrd.img
    }

    in this case it does load the framebuffered console and gets stuck before as if I do not sepcify "efifb"

    My hardware is macbook 5,1

    Any idea ?
    pxwpxw : since grub 2 seems to support persistent rw to disk I think it would be possible to create something like WUBY for windows on our macs (MUBI). Or at least something similar for people that want to try linux without partitioning. Do you think we are too far from that?

    1. If the 9.04 stops at busybox prompt (initramfs) you may neeed more grub modules,
    you may see something in casper.log.

    This was a preloaded module list reported to work on MB5,1 for gentoo kernel

    minicmd part_msdos part_gpt fat ext2 hfsplus ntfs reiserfs xfs iso9660 ls search loopback linux chain reboot halt appleldr help configfile hexdump loadbios fixvideo sh

    ( grub-devel list - Grub2 and Efi (MacBook 5,1)
    http://lists.gnu.org/archive/html/gr.../msg00314.html )

    If in doubt, it can be quicker to just copy all the modules with grub.efi
    $ cp *.mod *.lst grubfolder

    If you are getting past (initramfs) have you tried it with 'single' to get a root# prompt for editing xorg.conf Section "Device" Driver fbdev.
    Code:
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/image.iso video=efifb fbdev noefi single
    2. Booting with grub.efi a standard install from external HD does not need kernel copied to internal HD, can just search for the external vmlinuz, however your menuentry should still work, so I would blame the 910 alpha kernel version (I think the beta is due out now). I have given up trying to boot karmic with efi until it gets past the ubuntu 2.6.31 kernel configuration, it does not work for me (MBP4,1 IMAC8,1),

    3. I have not used wubi, but you can boot the live iso from an internal HD fat32 or ext3 partition, however I think it it get stuck with the ubuntu loop mounting if it is on hfsplus.( http://ubuntuforums.org/showpost.php...&postcount=919 )
    Last edited by pxwpxw; October 1st, 2009 at 08:09 AM.

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

    Re: grub2 EFI boot loader internal/external booting

    Thu 01 Oct 2009 17:20:24

    Quote Originally Posted by aladi View Post
    I am trying to boot Karmic Koala Xubuntu alpha 5 in a Intel x86 based computer from a 64bit EFI shell. I have installed the Xubuntu in a disk , MBR based partition. I am able to boot to the Xubuntu using the PC BIOS loader. Now I am trying the EFI loader grub64.efi attached in the comment #849.

    I have put a shell in the external USB disk. and I launched the shell and from the shell, I have launched the grub64.efi. Console is displayed.

    I have entered the following commands
    set root
    search
    linux /boot/vmlinuz-2.6.31-9-generic root= uuid=xxxx
    initrd /boot/initrd.img-2.6.32-9-generic
    boot

    I am able to boot the Xubuntu using the above commands.
    I dont want to type the all commands in every boot.
    I want to go to shell and issue a single command and boot to ubuntu. In other words, I want to make a grub.cfg for the boot manually. Could you please help me?
    I don't know what efi shell you are using, but if it works thats good.

    From the grub-efi shell -
    grub-sh> set

    This will list 'prefix .....' which should be where grub.efi is booted from.

    It might depend on the efi shell you are using to boot grub.efi, but you can try just creating your grub.cfg and placing it beside grub.efi

    Then grub.efi should load grub.cfg.

    Put a simple reboot menuentry in grub.cfg to test
    Code:
    menuentry "Reboot" {
    reboot
    }
    Last edited by pxwpxw; October 1st, 2009 at 08:21 AM.

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

    Re: grub2 EFI boot loader internal/external booting

    20091001

    [GITGRUB] New menu interface (implementation)

    http://lists.gnu.org/archive/html/gr.../msg00285.html
    http://lists.gnu.org/archive/html/gr.../msg00000.html

    I have problem for gfx with the github bean123 menu branch current, using grub.efi with all modules, on MBP4,1 (nvida) or IMAC8,1 (radeon) - both uga draw.

    I have the demo menutest running for menu_region.text, but menu_region.gfx just goes to black screen, responds to key press to exit back to menuentry, but that is all.

    Using demo menu.cfg and grub.efi with efi_fb.mod preloaded (no vbe).
    With updated /menu/layout.txt for latest update http://lists.gnu.org/archive/html/gr.../msg00492.html

    Code:
    set gfxmode="640x480"
    loadfont /menu/unifont.pf2
    #insmod vbe
    insmod png
    insmod coreui
    loadcfg /menu/layout.txt
    
    menuentry "text mode" {
      menu_region.text
      menutest
    }
    
    menuentry "graphic mode" {
      menu_region.gfx
      menutest
      menu_region.text
    }
    Question - is the gfx demo running with grub.efi on Apple, I would like to be able to see it.

  4. #1054
    Join Date
    May 2007
    Beans
    465

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by pxwpxw View Post
    20091001

    [GITGRUB] New menu interface (implementation)

    http://lists.gnu.org/archive/html/gr.../msg00285.html
    http://lists.gnu.org/archive/html/gr.../msg00000.html

    I have problem for gfx with the github bean123 menu branch current, using grub.efi with all modules, on MBP4,1 (nvida) or IMAC8,1 (radeon) - both uga draw.

    I have the demo menutest running for menu_region.text, but menu_region.gfx just goes to black screen, responds to key press to exit back to menuentry, but that is all.

    Using demo menu.cfg and grub.efi with efi_fb.mod preloaded (no vbe).
    With updated /menu/layout.txt for latest update http://lists.gnu.org/archive/html/gr.../msg00492.html

    Code:
    set gfxmode="640x480"
    loadfont /menu/unifont.pf2
    #insmod vbe
    insmod png
    insmod coreui
    loadcfg /menu/layout.txt
    
    menuentry "text mode" {
      menu_region.text
      menutest
    }
    
    menuentry "graphic mode" {
      menu_region.gfx
      menutest
      menu_region.text
    }
    Question - is the gfx demo running with grub.efi on Apple, I would like to be able to see it.
    Hi,

    Oh, it's a small problem with double buffer, previously to test Colin's patch, I enable the double buffer support, but my graphic menu system uses new update algorithm, double buffer is not needed any more, I've disable double buffer support in the menu branch now.

    The menu for efi looks like this:

    set gfxmode="auto"
    loadfont /menu/unifont.pf2
    loadcfg /menu/menu.txt

    menuentry "text mode" {
    menu_region.text
    menutest
    }

    menuentry "graphic mode" {
    menu_region.gfx
    menutest
    menu_region.text
    }

    The following modules should be added when creating grub.efi:
    coreui loadcfg menutest gfxmenu textmenu

    I've uploaded a new resource file at:

    http://grub4dos.sourceforge.net/menu.zip

    The config file for efi is menu_efi.cfg.

    BTW, this is the new binary that contain the latest gfx menu test demo.
    Attached Files Attached Files

  5. #1055
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by bean123 View Post
    Hi,

    Oh, it's a small problem with double buffer, previously to test Colin's patch, I enable the double buffer support, but my graphic menu system uses new update algorithm, double buffer is not needed any more, I've disable double buffer support in the menu branch now.

    The menu for efi looks like this:

    set gfxmode="auto"
    loadfont /menu/unifont.pf2
    loadcfg /menu/menu.txt

    menuentry "text mode" {
    menu_region.text
    menutest
    }

    menuentry "graphic mode" {
    menu_region.gfx
    menutest
    menu_region.text
    }

    The following modules should be added when creating grub.efi:
    coreui loadcfg menutest gfxmenu textmenu

    I've uploaded a new resource file at:

    http://grub4dos.sourceforge.net/menu.zip

    The config file for efi is menu_efi.cfg.

    BTW, this is the new binary that contain the latest gfx menu test demo.
    Thanks, nice demo.

    All works now in text and gfx, 1920 x 1200 on the IMAC81.
    Now I can watch the grub-devel thread, and see results.

    Checked with your
    http://grub4dos.sourceforge.net/menu.zip
    and binary grub64.efi above or
    grub.efi compiled from
    http://github.com/bean123/grub/tree/menu

    pxw@im:~/src/grub$ git log --stat -n 2
    commit abc797630c45bc029638e4d6503d4d10f1f4a327
    Author: Bean <bean123ch@gmail.com>
    Date: Thu Oct 1 19:59:19 2009 +0800

    Disable double buffer for EFI

    video/efi/efi_fb.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)
    ---------------------------------------------------------

    I used this preloaded module list -

    minicmd part_msdos part_gpt fat ext2 hfsplus ntfs reiserfs xfs iso9660 ls search loopback linux chain reboot halt appleldr help configfile hexdump loadbios fixvideo sh video efi_fb gfxterm font png jpeg coreui loadcfg menutest gfxmenu textmenu


    grub.cfg was
    Code:
    # grub.cfg for bean gfx/text menu tests. 20091001
    
    . /menu/menu_efi.cfg
    
    menuentry "OSX" {
    	search --set -f /usr/standalone/i386/boot.efi
    	chainloader /usr/standalone/i386/boot.efi
    }
    menuentry "d501 2.2.26-2-amd64 fbdev sda4" {
    	fakebios
    	root=hd0,4
    	linux /vmlinuz root=/dev/sda4 fbdev
    	initrd /initrd.img
    }
    menuentry "u904 2.6.28-11-amd64 radeon sda6" {
    	fakebios
    	root=hd0,6
    	linux /vmlinuz root=/dev/sda6 noefi
    	initrd /initrd.img
    }
    menuentry "MBR1" {
       appleloader HD
    }
    menuentry " REBOOT" {
    reboot
    }
    Last edited by pxwpxw; October 1st, 2009 at 03:57 PM.

  6. #1056
    Join Date
    Aug 2009
    Beans
    6

    Question Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by pxwpxw View Post
    Thu 01 Oct 2009 17:20:24



    I don't know what efi shell you are using, but if it works thats good.

    From the grub-efi shell -
    grub-sh> set

    This will list 'prefix .....' which should be where grub.efi is booted from.

    It might depend on the efi shell you are using to boot grub.efi, but you can try just creating your grub.cfg and placing it beside grub.efi

    Then grub.efi should load grub.cfg.

    Put a simple reboot menuentry in grub.cfg to test
    Code:
    menuentry "Reboot" {
    reboot
    }
    Thanks. I have put the grub.cfg file beside and it was working fine few times. After that , I am continously getting error "Too little memory . Aborted . press any key to exit"
    I could not into the grub console.

    Do I miss anything?

    Thanks
    Siva

  7. #1057
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by aladi View Post
    Thanks. I have put the grub.cfg file beside and it was working fine few times. After that , I am continously getting error "Too little memory . Aborted . press any key to exit"
    I could not into the grub console.

    Do I miss anything?

    Thanks
    Siva
    That error message "too little memory" is in grub initialization, before it loads anything.
    Does it still happen after full shut down and restart?
    And what size RAM do you have?
    Last edited by pxwpxw; October 3rd, 2009 at 03:39 AM.

  8. #1058
    Join Date
    Aug 2009
    Beans
    6

    Exclamation Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by pxwpxw View Post
    That error message is in grub initialization, before it loads anything.
    Does it still happen after full shut down and restart?
    And what size RAM do you have?
    Yes I have tried shutdown and reset many times. The system memory size is 2 GB.

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

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by aladi View Post
    Yes I have tried shutdown and reset many times. The system memory size is 2 GB.
    Could you go back a few steps to your first post, booting from the grub shell command line, which was working, and post exactly what commands made it work. It seems something has broken.

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

    Re: grub2 EFI boot loader internal/external booting

    @aladi

    I reproduced your bug error message on Apple Mac Imac8,1 with 4gb ram by running rEFIt EFI shell command line for a while and then exit the rEFIt EFI shell and boot grub.efi from GUI boot menu (without restart)

    resulting in this message -

    Starting grub.efi
    too little memory
    Aborted, Press key to exit.

    Not a problem for me, just required shutdown restart.
    There is always a hangup if the EFI shell is run followed by exit from shell and attempt to rerun it without restart.

    Suggests the bug is with your EFI shell memory management and method of booting grub, and not a problem in grub.efi.

Page 106 of 123 FirstFirst ... 65696104105106107108116 ... 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
  •