Page 17 of 123 FirstFirst ... 715161718192767117 ... LastLast
Results 161 to 170 of 1226

Thread: grub2 EFI boot loader internal/external booting

  1. #161
    pxwpxw's Avatar
    pxwpxw is offline Chocolate Ubuntu Mocha Blend
    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
    Thanks a lot for your testing, this is a full version that contains most useful commands.
    Full version is in trouble again, starts to the

    Code:
      Welcome to GRUB!
     -
    Then it hangs there. Have not yet tried on 2GB.
    Last edited by pxwpxw; February 17th, 2009 at 06:28 AM.

  2. #162
    pxwpxw's Avatar
    pxwpxw is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by pxwpxw View Post
    Full version is in trouble again, starts to the

    Code:
      Welcome to GRUB!
     -
    Then it hangs there. Have not yet tried on 2GB.
    Also giving the original chainloader error "cannot load image"
    for MacOSX, as checked with 2GB RAM on MBPro41.

  3. #163
    Join Date
    May 2007
    Beans
    465

    Re: grub2 EFI boot loader internal/external booting

    Perhaps you can try this one.

    It it still hangs, you can rename grub.cfg and see if it can boot to command line.

    BTW, the "cannot load image" issue is compiler related ! Previously, I use gcc 4.2.3 which generate a working image. But when I switch to 4.3.2, this problem occurs. Unfortunately, the old 4.2.3 doesn't support large memory modal which is essential for the workaround on 4G memory. I'm looking at the source code more closely and try to figure it out.
    Attached Files Attached Files

  4. #164
    pxwpxw's Avatar
    pxwpxw is offline Chocolate Ubuntu Mocha Blend
    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
    Perhaps you can try this one.

    It it still hangs, you can rename grub.cfg and see if it can boot to command line.

    BTW, the "cannot load image" issue is compiler related ! Previously, I use gcc 4.2.3 which generate a working image. But when I switch to 4.3.2, this problem occurs. Unfortunately, the old 4.2.3 doesn't support large memory modal which is essential for the workaround on 4G memory. I'm looking at the source code more closely and try to figure it out.
    Thanks, that latest grub.efi 64 is now working on 4GB Imac for linux boot.

    That leaves me with the blank linux boot and init screen, and I would need to try changing the source video settings again to see the linux init text.

    The video settings shown for 4GB RAM are now
    Code:
    Video mode 1920x1200 - 32@60
    Video frame buffer: d0520000    ( was 0x90520000 for 2GB RAM )
    I expect the VFB value needs changing again.

    So I cant try that until I can build with your fix for the 4GB.

    I am using gcc-4.3
    pxw@im81:~$ aptitude search gcc | grep ^i
    i gcc - The GNU C compiler
    i gcc-4.3 - The GNU C compiler
    i gcc-4.3-base - The GNU Compiler Collection (base package)
    i A gcc-4.3-multilib - The GNU C compiler (multilib files)
    i gcc-multilib - The GNU C compiler (multilib files)
    i A lib64gcc1 - GCC support library (64bit)
    i libgcc1 - GCC support library
    pxw@im81:~$

    I have posted more (as 'Cros' ) about the video problem on grub-devel list in reply to you.

  5. #165
    Join Date
    May 2007
    Beans
    465

    Re: grub2 EFI boot loader internal/external booting

    This is the patch file, you may need to ignore white space when applying it. After the patch is applied, run ./autogen.sh to update the makefiles.
    Attached Files Attached Files

  6. #166
    Join Date
    May 2007
    Beans
    465

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by bean123 View Post
    Perhaps you can try this one.
    BTW, the "cannot load image" issue is compiler related ! Previously, I use gcc 4.2.3 which generate a working image. But when I switch to 4.3.2, this problem occurs. Unfortunately, the old 4.2.3 doesn't support large memory modal which is essential for the workaround on 4G memory. I'm looking at the source code more closely and try to figure it out.
    I've isolated this bug to the hfs+ file system driver hfsplus.mod. Perhaps it has some well hidden bug that would trigger when compiled with gcc 4.3 (it may also has problem in 4.2, but at least not so visible). I replace hfsplus.mod with the one compiled with gcc 4.2 and the problem goes away. Another method is to copy boot.efi to some other partition, like fat. Just make sure root variable is pointing to osx partition:

    set root=(hd0,2)
    chainloader (hd0,3)/boot.efi
    boot
    Last edited by bean123; February 17th, 2009 at 03:11 PM.

  7. #167
    Join Date
    May 2007
    Beans
    465

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by pxwpxw View Post
    The video settings shown for 4GB RAM are now
    Code:
    Video mode 1920x1200 - 32@60
    Video frame buffer: d0520000    ( was 0x90520000 for 2GB RAM )
    I expect the VFB value needs changing again.
    Please try this grub.efi, which would dump extra information in the linux command.
    Attached Files Attached Files

  8. #168
    pxwpxw's Avatar
    pxwpxw is offline Chocolate Ubuntu Mocha Blend
    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
    Please try this grub.efi, which would dump extra information in the linux command.
    Attached picture,thanks for patches and suggestions, working on that.
    Attached Images Attached Images

  9. #169
    Join Date
    May 2007
    Beans
    465

    Re: grub2 EFI boot loader internal/external booting

    Oh, it seems the pci scan method doesn't work very well. Fortunately, there are only a few different frame buffer addresses, we can try them one by one. Currently, I check the following location:

    0x40000000, 0x80000000, 0x80010000

    If your model uses a different frame buffer address, please let me known.

    This new version also detect line length instead of using fixed number 8192.
    Attached Files Attached Files

  10. #170
    pxwpxw's Avatar
    pxwpxw is offline Chocolate Ubuntu Mocha Blend
    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
    Oh, it seems the pci scan method doesn't work very well. Fortunately, there are only a few different frame buffer addresses, we can try them one by one. Currently, I check the following location:

    0x40000000, 0x80000000, 0x80010000

    If your model uses a different frame buffer address, please let me known.

    This new version also detect line length instead of using fixed number 8192.
    Just about to try that, meanwhile progress report for the efi.diff and some initial fiddling with video.

    Patched rev 1996 now running on Imac81 with 4GB RAM.

    pxw@im81:~/src/grub1996b$ patch -p1 <efi.diff
    patching file conf/x86_64-efi.rmk
    patching file include/grub/efi/pe32.h
    patching file kern/x86_64/dl.c
    patching file kern/x86_64/efi/startup.S
    patching file loader/efi/appleloader.c
    patching file util/i386/efi/grub-mkimage.c
    pxw@im81:~/src/grub1996b$ ./autogen.sh
    pxw@im81:~/src/grub1996b/build$ ../configure --with-platform=efi --target=x86_64
    ... make ...
    pxw@im81:~/src/grub1996b/build$ ./grub-mkimage -d . -o grub4g.efi `cat ../../modules`

    pxw@im81:~/src/grub1996b/build$ cat ../../modules
    apple appleldr boot cat chain configfile cpio date ext2 echo fat gpt help hexdump hfs hfsplus iso9660 linux ls normal pc reboot reiserfs scsi search sleep xfs

    Results -

    Initially Video frame buffer d0520000, no linux video
    Change to 0xc0000000, giving visible raw video

    then changed

    params->lfb_line_len = 8192;
    /*pxwdebug*/ params->lfb_line_len = width*4;

    giving clear linux text, horiz shifted 1/2 screen, but all readable.

Page 17 of 123 FirstFirst ... 715161718192767117 ... 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
  •