Return-path: Received: from web65704.mail.ac4.yahoo.com ([76.13.9.96]) by bombadil.infradead.org with smtp (Exim 4.69 #1 (Red Hat Linux)) id 1Mt9JX-0005wW-Qo for kexec@lists.infradead.org; Thu, 01 Oct 2009 00:14:36 +0000 Message-ID: <564351.23709.qm@web65704.mail.ac4.yahoo.com> Date: Wed, 30 Sep 2009 17:07:51 -0700 (PDT) From: "Prabhakar K." Subject: Re: [Fastboot] kexec - 2.6.14 - loads BIOS again In-Reply-To: MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============2085382395==" Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: "Eric W. Biederman" Cc: fastboot@lists.linux-foundation.org, Kexec Mailing List --===============2085382395== Content-Type: multipart/alternative; boundary="0-1169479822-1254355671=:23709" --0-1169479822-1254355671=:23709 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sending again as it is not posted yet !! I have back ported to multiple versions of different kexec-tools. Also I di= sabled watchdogs so that the first kernel reboot is not kicked in.Now, with= all those kexec-tools I see that it hangs after=A0post_verification_setup_= arch( ).And I had to hard reboot the router box. Is there a specific kexec tools that is known to work with 2.6.14 ? Or any = additional changes needed ? Any inputs welcome , thanks in advance !! Please CC me in reply. Regards,Prabhakar --- On Tue, 9/29/09, Eric W. Biederman wrote: From: Eric W. Biederman Subject: Re: [Fastboot] kexec - 2.6.14 - loads BIOS again To: "Prabhakar K." Cc: "Kexec Mailing List" , fastboot@lists.linux-= foundation.org Date: Tuesday, September 29, 2009, 6:11 AM "Prabhakar K." writes: >> Hi - After my previous posting I was able to make some progress. >> >> When I do >> >> kexec -l vmlinux --append=3D"init 1 root=3D/dev/hda2" --console-serial >> >> and=20 >> kexec -e, >> >> I get message: >> >> Starting new kernel >> I'm in purgatory >> >> And after that it still boots from BIOS (to the same first kernel). >> >> Whats the problem here? > > I would recommend instrumenting up purgatory and then your target kernel. > > It is quite possible the problem is in your backport. > >>>>> >=A0 I have instrumented the purgatory code. when I run kexec -e, It hangs = for a > while at=20 > sha256_starts(&ctx); in the function verify_sha256_digest(), and then reb= oots > to the first kernel (from BIOS). I have put debug prints in sha256_starts= , but > none of those are executed. > > Interestingly, the same function sha256_starts is executed during kexec -= l, > which is called as part of update_purgatory( )( when my_load( ) is called= from > kexec.c). > so its surprise why the same function is giving problems when kexec -e is= run. Do you by any chance have a watchdog you are not petting? Eric =0A=0A__________________________________________________=0ADo You Yahoo!?= =0ATired of spam? Yahoo! Mail has the best spam protection around =0Ahttp:= //mail.yahoo.com --0-1169479822-1254355671=:23709 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Sending again as it is not posted yet !!
<= div>
I have back ported to multiple versions of different kexec-to= ols. Also I disabled watchdogs so that the first kernel reboot is not kicke= d in.
Now, with all those kexec-tools I see = that it hangs after post_verification_setup_arch( ).
And I had to hard reboot the router box.

Is there a specific kexec tools that is known to work with 2= .6.14 ? Or any additional changes needed ?

A= ny inputs welcome , thanks in advance !!
P= lease CC me in reply.

Regards,
Prabhakar

--- On Tue, 9/29/0= 9, Eric W. Biederman <ebiederm@xmission.com> wrote:

From: Eric W. Biederman <ebiederm@xmission.com= >
Subject: Re: [Fastboot] kexec - 2.6.14 - loads BIOS again
To: "P= rabhakar K." <krishkar99@yahoo.com>
Cc: "Kexec Mailing List" <k= exec@lists.infradead.org>, fastboot@lists.linux-foundation.org
Date: = Tuesday, September 29, 2009, 6:11 AM

"Prabh= akar K." <krishkar99@yahoo.com> writes:

>= ;> Hi - After my previous posting I was able to make some progress.
>&g= t;
>> When I do
>>
>> kexec -l vmlinux --append= =3D"init 1 root=3D/dev/hda2" --console-serial
>>
>> and <= br>>> kexec -e,
>>
>> I get message:
>>>> Starting new kernel
>> I'm in purgatory
>>
&= gt;> And after that it still boots from BIOS (to the same first kernel).=
>>
>> Whats the problem here?
>
> I would re= commend instrumenting up purgatory and then your target kernel.
>
= > It is quite possible the problem is in your backport.
>
>&= gt;>>>
>  I have instrumented the purgatory code. when = I run kexec -e, It hangs for a
> while at
> sha256_starts(&= ;ctx); in the function verify_sha256_digest(), and then reboots
> to = the first kernel (from BIOS). I have put debug prints in sha256_starts, but
> none of those are executed.
>
> Interestingly, the= same function sha256_starts is executed during kexec -l,
> which is = called as part of update_purgatory( )( when my_load( ) is called from
&g= t; kexec.c).
> so its surprise why the same function is giving proble= ms when kexec -e is run.

Do you by any chance have a watchdog you ar= e not petting?

Eric


= __________________________________________________
Do You Yahoo!?
Tir= ed of spam? Yahoo! Mail has the best spam protection around
http://mai= l.yahoo.com --0-1169479822-1254355671=:23709-- --===============2085382395== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec --===============2085382395==--