All of lore.kernel.org
 help / color / mirror / Atom feed
* Recent Kernels failing to boot?
@ 2014-09-02 11:14 John Whitmore
  2014-09-02 11:46 ` Sudip Mukherjee
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: John Whitmore @ 2014-09-02 11:14 UTC (permalink / raw)
  To: kernelnewbies

I'm not even sure that this is the correct home for this question but sure
it's worth a punt. I'm running OpenSUSE on a netbook and use it to compile and
install the latest kernel from Linus's git repo. This has always been a simple
operation pulling the latest, updating the config file, make and install.

A few versions ago I hit a snag in that once installed the new kernel would
show up in the grub2 menu but once selected for boot the machine would just go
to a blank screen and hang. I'd have to do a hard reset. I can't be specific
on which version this started happening on as the problem is intermittent. It
seems to be a race condition sometimes a kernel will boot and sometimes it
won't.

I thought I could investigate this issue but I can't find any debug info for
this problem at all. grub2 is happy as it's handed control over to the kernel
but there's no evidence of any kernel activity in the logs at all for the
requested boot.

So the reason for this post is to ask if anybody could suggest how to debug
this issue. I think it came in about 3.14 but like I say it's intermittent.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Recent Kernels failing to boot?
  2014-09-02 11:14 Recent Kernels failing to boot? John Whitmore
@ 2014-09-02 11:46 ` Sudip Mukherjee
  2014-09-02 12:05 ` Stephan Müller
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Sudip Mukherjee @ 2014-09-02 11:46 UTC (permalink / raw)
  To: kernelnewbies

On Tue, Sep 2, 2014 at 4:44 PM, John Whitmore <arigead@gmail.com> wrote:
> I'm not even sure that this is the correct home for this question but sure
> it's worth a punt. I'm running OpenSUSE on a netbook and use it to compile and
> install the latest kernel from Linus's git repo. This has always been a simple
> operation pulling the latest, updating the config file, make and install.
>
> A few versions ago I hit a snag in that once installed the new kernel would
> show up in the grub2 menu but once selected for boot the machine would just go
> to a blank screen and hang. I'd have to do a hard reset. I can't be specific
> on which version this started happening on as the problem is intermittent. It
> seems to be a race condition sometimes a kernel will boot and sometimes it
> won't.
>
> I thought I could investigate this issue but I can't find any debug info for
> this problem at all. grub2 is happy as it's handed control over to the kernel
> but there's no evidence of any kernel activity in the logs at all for the
> requested boot.
>
> So the reason for this post is to ask if anybody could suggest how to debug
> this issue. I think it came in about 3.14 but like I say it's intermittent.

while in the grub menu choose the entry which shows recovery mode . It
will give you some debugging information on the screen.

thanks
sudip

>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Recent Kernels failing to boot?
  2014-09-02 11:14 Recent Kernels failing to boot? John Whitmore
  2014-09-02 11:46 ` Sudip Mukherjee
@ 2014-09-02 12:05 ` Stephan Müller
  2014-09-02 15:45 ` Valdis.Kletnieks at vt.edu
  2014-09-03  0:01 ` Jonghun John Park
  3 siblings, 0 replies; 7+ messages in thread
From: Stephan Müller @ 2014-09-02 12:05 UTC (permalink / raw)
  To: kernelnewbies

Am 02.09.2014 13:14, schrieb John Whitmore:
> I'm not even sure that this is the correct home for this question but sure
> it's worth a punt. I'm running OpenSUSE on a netbook and use it to compile and
> install the latest kernel from Linus's git repo. This has always been a simple
> operation pulling the latest, updating the config file, make and install.
> 
> A few versions ago I hit a snag in that once installed the new kernel would
> show up in the grub2 menu but once selected for boot the machine would just go
> to a blank screen and hang. I'd have to do a hard reset. I can't be specific
> on which version this started happening on as the problem is intermittent. It
> seems to be a race condition sometimes a kernel will boot and sometimes it
> won't.
> 
> I thought I could investigate this issue but I can't find any debug info for
> this problem at all. grub2 is happy as it's handed control over to the kernel
> but there's no evidence of any kernel activity in the logs at all for the
> requested boot.
> 
> So the reason for this post is to ask if anybody could suggest how to debug
> this issue. I think it came in about 3.14 but like I say it's intermittent.
> 


Hi,
some time ago I had a similar problem. It was caused by an invalid grub.cfg. Have a look there, maybe your kernel never gets started.

  stephan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Recent Kernels failing to boot?
  2014-09-02 11:14 Recent Kernels failing to boot? John Whitmore
  2014-09-02 11:46 ` Sudip Mukherjee
  2014-09-02 12:05 ` Stephan Müller
@ 2014-09-02 15:45 ` Valdis.Kletnieks at vt.edu
  2014-09-02 16:48   ` Jeff Haran
  2014-09-03  0:01 ` Jonghun John Park
  3 siblings, 1 reply; 7+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2014-09-02 15:45 UTC (permalink / raw)
  To: kernelnewbies

On Tue, 02 Sep 2014 12:14:28 +0100, John Whitmore said:
> I'm not even sure that this is the correct home for this question but sure
> it's worth a punt. I'm running OpenSUSE on a netbook and use it to compile and
> install the latest kernel from Linus's git repo.

OK... So you have a git tree handy already.

> A few versions ago I hit a snag in that once installed the new kernel would
> show up in the grub2 menu but once selected for boot the machine would just go
> to a blank screen and hang.

So what was the last version that booted OK for you, and what was the first
one that failed for you?  With that info, you can easily do a 'git bisect' and
track down the commit that broke your hardware.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140902/24e1904b/attachment.bin 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Recent Kernels failing to boot?
  2014-09-02 15:45 ` Valdis.Kletnieks at vt.edu
@ 2014-09-02 16:48   ` Jeff Haran
  0 siblings, 0 replies; 7+ messages in thread
From: Jeff Haran @ 2014-09-02 16:48 UTC (permalink / raw)
  To: kernelnewbies

> -----Original Message-----
> From: kernelnewbies-bounces at kernelnewbies.org [mailto:kernelnewbies-bounces at kernelnewbies.org] On Behalf Of
> Valdis.Kletnieks at vt.edu
> Sent: Tuesday, September 02, 2014 8:45 AM
> To: John Whitmore
> Cc: kernelnewbies at kernelnewbies.org
> Subject: Re: Recent Kernels failing to boot?
> 
> On Tue, 02 Sep 2014 12:14:28 +0100, John Whitmore said:
> > I'm not even sure that this is the correct home for this question but sure
> > it's worth a punt. I'm running OpenSUSE on a netbook and use it to compile and
> > install the latest kernel from Linus's git repo.
> 
> OK... So you have a git tree handy already.
> 
> > A few versions ago I hit a snag in that once installed the new kernel would
> > show up in the grub2 menu but once selected for boot the machine would just go
> > to a blank screen and hang.
> 
> So what was the last version that booted OK for you, and what was the first
> one that failed for you?  With that info, you can easily do a 'git bisect' and
> track down the commit that broke your hardware.

In his original post John said the problem was intermittent:

>I'd have to do a hard reset. I can't be specific
>on which version this started happening on as the problem is intermittent.

Git bisect isn't so helpful in cases like this unfortunately.

Jeff Haran

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Recent Kernels failing to boot?
  2014-09-02 11:14 Recent Kernels failing to boot? John Whitmore
                   ` (2 preceding siblings ...)
  2014-09-02 15:45 ` Valdis.Kletnieks at vt.edu
@ 2014-09-03  0:01 ` Jonghun John Park
  2014-09-03  1:19   ` nick
  3 siblings, 1 reply; 7+ messages in thread
From: Jonghun John Park @ 2014-09-03  0:01 UTC (permalink / raw)
  To: kernelnewbies


> On 2014. 9. 2., at 20:14, John Whitmore <arigead@gmail.com> wrote:
> 
> I'm not even sure that this is the correct home for this question but sure
> it's worth a punt. I'm running OpenSUSE on a netbook and use it to compile and
> install the latest kernel from Linus's git repo. This has always been a simple
> operation pulling the latest, updating the config file, make and install.
> 

did you check what the log files (kernel.log or syslog) told you when you were building and Installing it?
There were  No errors or warnings?

> A few versions ago I hit a snag in that once installed the new kernel would
> show up in the grub2 menu but once selected for boot the machine would just go
> to a blank screen and hang. I'd have to do a hard reset. I can't be specific
> on which version this started happening on as the problem is intermittent. It
> seems to be a race condition sometimes a kernel will boot and sometimes it
> won't.
> 

Running grub2 means that your system cannot read grub.cfg because it has some flaws in most cases. The best way I can recommend you is that try booting with another bootable image and seeing if configuration file is well written unless you are familiar with grub syntax. Of course, you have to mount the root disk you were supposed to mount as a root.


> I thought I could investigate this issue but I can't find any debug info for
> this problem at all. grub2 is happy as it's handed control over to the kernel
> but there's no evidence of any kernel activity in the logs at all for the
> requested boot.
> 

If you had a logging setup via a serial port, you would never miss a line of debug info generated.
Because it already logged tens of lines of debug info before it decided to load the bootstrap you were supposed to use.
I hope the following link is helpful for you to get this right..

http://linuxdeveloper.blogspot.kr/2012/05/debugging-linux-kernel-over-serial-port.html 

> So the reason for this post is to ask if anybody could suggest how to debug
> this issue. I think it came in about 3.14 but like I say it's intermittent.
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies <http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140903/48b005ae/attachment.html 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Recent Kernels failing to boot?
  2014-09-03  0:01 ` Jonghun John Park
@ 2014-09-03  1:19   ` nick
  0 siblings, 0 replies; 7+ messages in thread
From: nick @ 2014-09-03  1:19 UTC (permalink / raw)
  To: kernelnewbies



On 14-09-02 08:01 PM, Jonghun John Park wrote:
> 
>> On 2014. 9. 2., at 20:14, John Whitmore <arigead@gmail.com> wrote:
>>
>> I'm not even sure that this is the correct home for this question but sure
>> it's worth a punt. I'm running OpenSUSE on a netbook and use it to compile and
>> install the latest kernel from Linus's git repo. This has always been a simple
>> operation pulling the latest, updating the config file, make and install.
>>
> 
> did you check what the log files (kernel.log or syslog) told you when you were building and Installing it?
> There were  No errors or warnings?
> 
>> A few versions ago I hit a snag in that once installed the new kernel would
>> show up in the grub2 menu but once selected for boot the machine would just go
>> to a blank screen and hang. I'd have to do a hard reset. I can't be specific
>> on which version this started happening on as the problem is intermittent. It
>> seems to be a race condition sometimes a kernel will boot and sometimes it
>> won't.
>>
> 
> Running grub2 means that your system cannot read grub.cfg because it has some flaws in most cases. The best way I can recommend you is that try booting with another bootable image and seeing if configuration file is well written unless you are familiar with grub syntax. Of course, you have to mount the root disk you were supposed to mount as a root.
> 
> 
>> I thought I could investigate this issue but I can't find any debug info for
>> this problem at all. grub2 is happy as it's handed control over to the kernel
>> but there's no evidence of any kernel activity in the logs at all for the
>> requested boot.
>>
> 
> If you had a logging setup via a serial port, you would never miss a line of debug info generated.
> Because it already logged tens of lines of debug info before it decided to load the bootstrap you were supposed to use.
> I hope the following link is helpful for you to get this right..
> 
> http://linuxdeveloper.blogspot.kr/2012/05/debugging-linux-kernel-over-serial-port.html 
> 
>> So the reason for this post is to ask if anybody could suggest how to debug
>> this issue. I think it came in about 3.14 but like I say it's intermittent.
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies <http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies>
>>
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hey Guys,
I agree with Jonghun here and agree that getting this outputted to a serial port is of use to the kernel developers.
I also recommend reading the link and am going to check it out myself as I need to learn how to debug early boot code
myself :). In addition seems to be an issue with late stage grub or very early kernel as even printk_early is not showing anything and this means your serial port is not initialized on the computer being booted. If that's too 
hard, then run git bisect on the newest kernel tree and give it the last known good kernel version I believe
it's 3.12 or 3.13 from reading this. :) Then post the bad commit log and sha1-id here for us to see.
Cheers and Good Luck,
Nick 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-09-03  1:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-02 11:14 Recent Kernels failing to boot? John Whitmore
2014-09-02 11:46 ` Sudip Mukherjee
2014-09-02 12:05 ` Stephan Müller
2014-09-02 15:45 ` Valdis.Kletnieks at vt.edu
2014-09-02 16:48   ` Jeff Haran
2014-09-03  0:01 ` Jonghun John Park
2014-09-03  1:19   ` nick

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.