* With grub.cfg Linux Kernel boot hangs
@ 2011-04-06 7:38 Naresh Bhat
2011-04-06 8:15 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 11+ messages in thread
From: Naresh Bhat @ 2011-04-06 7:38 UTC (permalink / raw)
To: grub-devel; +Cc: nareshgbhat
Hi All,
I am able to boot my machine with linux kernel 2.6.32.28 from EFI
shell after following the instructions
http://grub.enbug.org/TestingOnMacbook
Plug-in the USB stick on EFI firmware/Shell supported x86 32bit target
board. Edit the BIOS and change the boot priority to EFI shell. After
target is booted on EFI shell execute the below commands
Shell> fs1:
fs1:\> cd efi
fs1:\efi> cd grub
fs1:\efi\grub> grub.efi
grub> set debug=video
grub> insmod efi_gop
grub> boot
But when I created a grub.cfg file and try to boot, my machine will show
"video/efi_gop:357: GOP: Sucess"
and hangs......
Any idea what is wrong with grub.cfg file or with my USB disk partitions ?
My grub.cfg file contents are as below
============================================
set debug=video
insmod efi_gop
menuentry "Linux Kernel-2.6.32.28 (Single Image)" {
linux (hd2,gpt2)/bzImage
}
menuentry "Linux-2.6.32.28 Kernel with custom ramdisk image" {
linux (hd2,gpt2)/bzImage
initrd (hd2,gpt2)/ramdisk.img
}
===============================================================================
My USB disk partitions are as below
================================================================================
Lenovo-Y310 nareshbhat # parted /dev/sdb
GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: Kingston DataTraveler G2 (scsi)
Disk /dev/sdb: 2000MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 744MB 743MB fat32
2 744MB 1585MB 841MB ext2
3 1585MB 1999MB 413MB linux-swap(v1)
(parted)
==================================================================================
Thanks in Advance!!
-Naresh Bhat
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: With grub.cfg Linux Kernel boot hangs
2011-04-06 7:38 With grub.cfg Linux Kernel boot hangs Naresh Bhat
@ 2011-04-06 8:15 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-06 9:39 ` Naresh Bhat
0 siblings, 1 reply; 11+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-04-06 8:15 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 466 bytes --]
On 06.04.2011 09:38, Naresh Bhat wrote:
> grub> set debug=video
> grub> insmod efi_gop
>grub> boot
There are obviously some more commands here. Which ones?
> set debug=video
debug messages can sometimes confuse the EFI console. Have you tried w/o
them?
> insmod efi_gop
>
> menuentry "Linux Kernel-2.6.32.28 (Single Image)" {
> linux (hd2,gpt2)/bzImage
Have you tried with "noefi"
> }
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: With grub.cfg Linux Kernel boot hangs
2011-04-06 8:15 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-04-06 9:39 ` Naresh Bhat
2011-04-06 12:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 11+ messages in thread
From: Naresh Bhat @ 2011-04-06 9:39 UTC (permalink / raw)
To: The development of GNU GRUB
Cc: Vladimir 'φ-coder/phcoder' Serbinenko, nareshgbhat
Hi Vladimir,
Thank you very much for the reply.
Yes, I have tried without "set debug=video" which resulted displaying
nothing on the screen (blank screen).
I have even tried with noefi option as below. The "Linux
Kernel-2.6.32.28 (Single Image)" is hangs the system. But second
menuentry "Linux-2.6.32.28 Kernel with custom ramdisk image" is
booted.
Is there any restriction by considering the ramdisk image size or
kernel image size ? My Image sizes are as below
-rw-r--r-- 1 root root 161694112 2011-04-05 13:28 bzImage-2.6.32
-rw-r--r-- 1 root root 4373376 2011-04-05 18:02 bzImage
-rw-r--r-- 1 root root 20971520 2011-04-05 18:00 ramdisk.img
==========================================================
set debug=video
insmod efi_gop
menuentry "Linux Kernel-2.6.32.28 (Single Image)" {
linux (hd2,gpt2)/bzImage-2.6.32 noefi
}
menuentry "Linux-2.6.32.28 Kernel with custom ramdisk image" {
linux (hd2,gpt2)/bzImage
initrd (hd2,gpt2)/ramdisk.img
}
===========================================================
Thanks
-Naresh Bhat
2011/4/6 Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
> On 06.04.2011 09:38, Naresh Bhat wrote:
>> grub> set debug=video
>
>> grub> insmod efi_gop
>>grub> boot
> There are obviously some more commands here. Which ones?
>
>> set debug=video
> debug messages can sometimes confuse the EFI console. Have you tried w/o
> them?
>> insmod efi_gop
>>
>> menuentry "Linux Kernel-2.6.32.28 (Single Image)" {
>> linux (hd2,gpt2)/bzImage
> Have you tried with "noefi"
>> }
>
>
> --
> Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: With grub.cfg Linux Kernel boot hangs
2011-04-06 9:39 ` Naresh Bhat
@ 2011-04-06 12:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-06 13:54 ` Naresh Bhat
0 siblings, 1 reply; 11+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-04-06 12:14 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 440 bytes --]
On 06.04.2011 11:39, Naresh Bhat wrote:
> I have even tried with noefi option as below. The "Linux
> Kernel-2.6.32.28 (Single Image)" is hangs the system. But second
> menuentry "Linux-2.6.32.28 Kernel with custom ramdisk image" is
> booted.
with or without noefi?
Your issue may be the one discussed in parallel thread "Grub2 EFI: Image
loading from USB takes too long"
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: With grub.cfg Linux Kernel boot hangs
2011-04-06 12:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-04-06 13:54 ` Naresh Bhat
2011-04-06 15:12 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 11+ messages in thread
From: Naresh Bhat @ 2011-04-06 13:54 UTC (permalink / raw)
To: The development of GNU GRUB
Cc: Vladimir 'φ-coder/phcoder' Serbinenko, nareshgbhat
Hi Vladimir
The second menu entry is booted without providing noefi
==========================My Second Menuentry=====================
menuentry "Linux-2.6.32.28 Kernel with custom ramdisk image" {
linux (hd2,gpt2)/bzImage
initrd (hd2,gpt2)/ramdisk.img
}
===============================================================
The above menuentry is booting without any issues.
But, the first menu entry is booting without any issues If and only
if, I load the kernel manually and execute boot command as below
Shell> fs1:
fs1:\> cd efi
fs1:\efi> cd grub
fs1:\efi\grub> grub.efi
grub> set debug=video
grub> insmod efi_gop
grub> linux (hd2,gpt2)/bzImage-2.6.32.28
<----------------- ( bzImage + ramdisk.img - Combined image)
grub> boot
Now, My problem is that When I create a menu entry for the above
manual commands I can see the following message on the screen and
system will hangs...The menu entry I have created as below
=========================My First Menuentry===================================
set debug=video
insmod efi_gop
menuentry "Linux Kernel-2.6.32.28 (Single Image)" {
linux (hd2,gpt2)/bzImage-2.6.32
}
==========================================================================
Now my questions are
1. Is there any size limitations for Kernel Image which is loaded from
EFI shell ?
2. Is there any size limitations for ramdisk Image which is loaded
from EFI shell ?
-- Naresh Bhat
"For things to change, we must change"
2011/4/6 Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
> On 06.04.2011 11:39, Naresh Bhat wrote:
>> I have even tried with noefi option as below. The "Linux
>> Kernel-2.6.32.28 (Single Image)" is hangs the system. But second
>> menuentry "Linux-2.6.32.28 Kernel with custom ramdisk image" is
>> booted.
> with or without noefi?
> Your issue may be the one discussed in parallel thread "Grub2 EFI: Image
> loading from USB takes too long"
>
> --
> Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: With grub.cfg Linux Kernel boot hangs
2011-04-06 13:54 ` Naresh Bhat
@ 2011-04-06 15:12 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-07 11:13 ` Naresh Bhat
0 siblings, 1 reply; 11+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-04-06 15:12 UTC (permalink / raw)
To: Naresh Bhat; +Cc: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 675 bytes --]
> Now, My problem is that When I create a menu entry for the above
> manual commands I can see the following message on the screen and
> system will hangs...The menu entry I have created as below
>
Is it latest bzr?
Can you try with debug=relocator and compare the outputs?
> Now my questions are
> 1. Is there any size limitations for Kernel Image which is loaded from
> EFI shell ?
> 2. Is there any size limitations for ramdisk Image which is loaded
> from EFI shell ?
>
GRUB is limited only by memory map and allocations already done by other
subsystems. Linux itself might have further limits.
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: With grub.cfg Linux Kernel boot hangs
2011-04-06 15:12 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-04-07 11:13 ` Naresh Bhat
2011-04-07 12:01 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-07 15:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 2 replies; 11+ messages in thread
From: Naresh Bhat @ 2011-04-07 11:13 UTC (permalink / raw)
To: Vladimir 'φ-coder/phcoder' Serbinenko
Cc: The development of GNU GRUB, nareshgbhat
Hi Vladimir,
1. I have downloaded GRUB from ftp://alpha.gnu.org/gnu/grub/
2. No luck with debug=relocator option. Same thing is repeated.
When a kernel can boot with the following manual commands
grub> set debug=video
grub> insmod efi_gop
grub> linux (hd2,gpt2)/bzImage-2.6.32.28
grub> boot
Same set of commands if I put inside the grub.cfg file and try to
boot..the output is blank screen and hangs the machine!!!!
=========================================
set debug=video
insmod efi_gop
menuentry "Linux Kernel-2.6.32.28 (Single Image)" {
linux (hd2,gpt2)/bzImage-2.6.32
}
==========================================
There must be something wrong with my grub.cfg file ???
Thanks
-Naresh Bhat
2011/4/6 Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
>
>> Now, My problem is that When I create a menu entry for the above
>> manual commands I can see the following message on the screen and
>> system will hangs...The menu entry I have created as below
>>
> Is it latest bzr?
> Can you try with debug=relocator and compare the outputs?
>> Now my questions are
>> 1. Is there any size limitations for Kernel Image which is loaded from
>> EFI shell ?
>> 2. Is there any size limitations for ramdisk Image which is loaded
>> from EFI shell ?
>>
> GRUB is limited only by memory map and allocations already done by other
> subsystems. Linux itself might have further limits.
>
> --
> Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
>
>
>
--
"For things to change, we must change"
-Naresh Bhat
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: With grub.cfg Linux Kernel boot hangs
2011-04-07 11:13 ` Naresh Bhat
@ 2011-04-07 12:01 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-07 15:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
1 sibling, 0 replies; 11+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-04-07 12:01 UTC (permalink / raw)
To: Naresh Bhat; +Cc: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 371 bytes --]
On 07.04.2011 13:13, Naresh Bhat wrote:
> Hi Vladimir,
>
> 1. I have downloaded GRUB from ftp://alpha.gnu.org/gnu/grub/
> 2. No luck with debug=relocator option. Same thing is repeated.
>
Could you try latest bzr? I've fixed a bug since the 1.99~rc1 which
could result in symptoms like yours.
>
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: With grub.cfg Linux Kernel boot hangs
2011-04-07 11:13 ` Naresh Bhat
2011-04-07 12:01 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-04-07 15:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-12 10:37 ` Naresh Bhat
1 sibling, 1 reply; 11+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-04-07 15:05 UTC (permalink / raw)
Cc: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 340 bytes --]
On 07.04.2011 13:13, Naresh Bhat wrote:
> 1. I have downloaded GRUB from ftp://alpha.gnu.org/gnu/grub/
> 2. No luck with debug=relocator option. Same thing is repeated.
I need the output with debug=relocator in latest bzr. Also the pohotos
you sent me contain only EFI shell
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: With grub.cfg Linux Kernel boot hangs
2011-04-07 15:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-04-12 10:37 ` Naresh Bhat
2011-04-12 10:57 ` Naresh Bhat
0 siblings, 1 reply; 11+ messages in thread
From: Naresh Bhat @ 2011-04-12 10:37 UTC (permalink / raw)
To: The development of GNU GRUB
Cc: Vladimir 'φ-coder/phcoder' Serbinenko
Hi Vladimir,
Yes, I have tried with the option debug=relocator but nothing is the
progress. Yes, I wanted to attach the video. But the video size is
about 38MB size. I am not able to attach to the e-mail...let me see..I
can cut down the video and try to send.
--Thanks and Regards
"For things to change, we must change"
-Naresh Bhat
2011/4/7 Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
> On 07.04.2011 13:13, Naresh Bhat wrote:
>> 1. I have downloaded GRUB from ftp://alpha.gnu.org/gnu/grub/
>> 2. No luck with debug=relocator option. Same thing is repeated.
> I need the output with debug=relocator in latest bzr. Also the pohotos
> you sent me contain only EFI shell
>
> --
> Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: With grub.cfg Linux Kernel boot hangs
2011-04-12 10:37 ` Naresh Bhat
@ 2011-04-12 10:57 ` Naresh Bhat
0 siblings, 0 replies; 11+ messages in thread
From: Naresh Bhat @ 2011-04-12 10:57 UTC (permalink / raw)
To: The development of GNU GRUB
Cc: Vladimir 'φ-coder/phcoder' Serbinenko, nareshgbhat
[-- Attachment #1: Type: text/plain, Size: 1725 bytes --]
Hi Vladimir,
After I selecting the menu entry, the following thing is getting
displayed on the monitor (please refer attached photo). After 2 to 3
min..screen goes blank.
set timeout=10
set default=0
set debug=relocator
insmod efi_gop
menuentry "CGE60 Ramdisk image" {
linux (hd2,gpt2)/boot/bzImage-2.6.32-x86-32bit-initramfs-image
video=efifb noefi
}
and the Image size is 161MB
-rw-r--r-- 1 root root 161714816 2011-04-07 19:38
bzImage-2.6.32-x86-32bit-initramfs-image
As I told you earlier. The above image I am able to boot with the
manual commands (I mean without creating grub.cfg file)
--Thanks and Regards
"For things to change, we must change"
-Naresh Bhat
2011/4/12 Naresh Bhat <nareshgbhat@gmail.com>:
> Hi Vladimir,
>
> Yes, I have tried with the option debug=relocator but nothing is the
> progress. Yes, I wanted to attach the video. But the video size is
> about 38MB size. I am not able to attach to the e-mail...let me see..I
> can cut down the video and try to send.
>
> --Thanks and Regards
> "For things to change, we must change"
> -Naresh Bhat
>
> 2011/4/7 Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
>> On 07.04.2011 13:13, Naresh Bhat wrote:
>>> 1. I have downloaded GRUB from ftp://alpha.gnu.org/gnu/grub/
>>> 2. No luck with debug=relocator option. Same thing is repeated.
>> I need the output with debug=relocator in latest bzr. Also the pohotos
>> you sent me contain only EFI shell
>>
>> --
>> Regards
>> Vladimir 'φ-coder/phcoder' Serbinenko
>>
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>
>>
>
[-- Attachment #2: 12042011057.jpg --]
[-- Type: image/jpeg, Size: 640897 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2011-04-13 20:24 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-06 7:38 With grub.cfg Linux Kernel boot hangs Naresh Bhat
2011-04-06 8:15 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-06 9:39 ` Naresh Bhat
2011-04-06 12:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-06 13:54 ` Naresh Bhat
2011-04-06 15:12 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-07 11:13 ` Naresh Bhat
2011-04-07 12:01 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-07 15:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-12 10:37 ` Naresh Bhat
2011-04-12 10:57 ` Naresh Bhat
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.