You are not logged in.

#1 2011-09-26 12:08:00

Flash99
Member
Registered: 2011-09-16
Posts: 11

[SOVLED]GRUB2 hangs when booted from EFI shell on x86_64 bit system

I want to boot a kernel image using grub2 from the EFI shell. The USB drive will act as EFI system partition and we are installing grub2 on USB. We have downloaded grub2 and compiled it on x86_64 bit machine using the following commands:


./configure --with-platform=efi --target=x86_64 --prefix=/mnt/           
(USB is mounted on /mnt/)

make
make install
modprobe dm-mod
mkdir /mnt/x86_64-boot/
./grub-install --boot-directory=/mnt/x86_64-boot/ --bootloader-id=grub --no-floppy –recheck

After installing grub on USB, I want to copy the Unicode.pf2 font file into the folder where grub.efi is present. I would like to know from where will I get this Unicode.pf2 file? In /mnt/share/x86_64-grub/ folder, there is no such file which gets made in my case?


2) I have made the following entry in grub.cfg file:

insmod efi_gop
insmod efi_uga
insmod font
insmod gfxterm
set gfxmode=auto
set gfxpayload=keep
terminal_output gfxterm

But when I boot from this grub via the EFI shell, the system hangs with absured font “?????” on the screen. If I remove efi_gop and then reboot, the screen displays

“could not find a mode, Booting anyhow” and it hangs.

Could anyone please help?

Regards,
Flash

Last edited by Flash99 (2011-09-27 12:20:12)

Offline

#2 2011-09-26 15:25:44

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: [SOVLED]GRUB2 hangs when booted from EFI shell on x86_64 bit system

Flash99 wrote:

After installing grub on USB, I want to copy the Unicode.pf2 font file into the folder where grub.efi is present. I would like to know from where will I get this Unicode.pf2 file? In /mnt/share/x86_64-grub/ folder, there is no such file which gets made in my case?

Install bdf-unifont package and run

./grub-mkfont -o unicode.pf2 /usr/share/fonts/misc/unifont.bdf

and copy the generated unicode.pf2 file to /mnt/x86_64-boot/grub/ dir.

2) I have made the following entry in grub.cfg file:

insmod efi_gop
insmod efi_uga
insmod font
insmod gfxterm
set gfxmode=auto
set gfxpayload=keep
terminal_output gfxterm

But when I boot from this grub via the EFI shell, the system hangs with absured font “?????” on the screen. If I remove efi_gop and then reboot, the screen displays

“could not find a mode, Booting anyhow” and it hangs.

https://wiki.archlinux.org/index.php/GR … ound_Error


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#3 2011-09-27 12:19:55

Flash99
Member
Registered: 2011-09-16
Posts: 11

Re: [SOVLED]GRUB2 hangs when booted from EFI shell on x86_64 bit system

Thanks so much for replying skodabenz.

We have followed these steps but were still unable to carry out the task. Apparently there problem was associated with the image we were trying to boot. We then booted a different kernel image and we are now successful.

Thanks once again

Offline

Board footer

Powered by FluxBB