Return-path: Received: from n23b.bullet.mail.mud.yahoo.com ([68.142.206.142]) by bombadil.infradead.org with smtp (Exim 4.69 #1 (Red Hat Linux)) id 1Mt4ZP-0006nb-BJ for kexec@lists.infradead.org; Wed, 30 Sep 2009 19:10:39 +0000 Message-ID: <367789.94839.qm@web65708.mail.ac4.yahoo.com> Date: Wed, 30 Sep 2009 12:03:07 -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="===============1172596881==" 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 --===============1172596881== Content-Type: multipart/alternative; boundary="0-781500450-1254337387=:94839" --0-781500450-1254337387=:94839 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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=0A --0-781500450-1254337387=:94839 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
I have back ported to multiple versions of di= fferent kexec-tools. Also I disabled watchdogs so that the first kernel reb= oot is not kicked in.
Now, with all those kexec-tools I see that it han= gs after post_verification_setup_arch( ).
And I had to hard = reboot the router box.

Is there a specific kexec t= ools 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,<= /div>
Prabhakar

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

F= rom: Eric W. Biederman <ebiederm@xmission.com>
Subject: Re: [Fastb= oot] kexec - 2.6.14 - loads BIOS again
To: "Prabhakar K." <krishkar99@yah= oo.com>
Cc: "Kexec Mailing List" <kexec@lists.infradead.org>, f= astboot@lists.linux-foundation.org
Date: Tuesday, September 29, 2009, 6:= 11 AM

"Prabhakar K." <kri= shkar99@yahoo.com> writes:

>> Hi - After my previous po= sting I was able to make some progress.
>>
>> When I do>>
>> kexec -l vmlinux --append=3D"init 1 root=3D/dev/hda2= " --console-serial
>>
>> and
>> kexec -e,
&g= t;>
>> I get message:
>>
>> Starting new kern= el
>> I'm in purgatory
>>
>> And after that it s= till boots from BIOS (to the same first kernel).
>>
>> Wh= ats the problem here?
>
> I would recommend instrumenting up purgatory and then your target kernel.
>
> It is quite possibl= e the problem is in your backport.
>
>>>>>
>&= nbsp; I have instrumented the purgatory code. when I run kexec -e, It hangs= for a
> while at
> sha256_starts(&ctx); in the function v= erify_sha256_digest(), and then reboots
> to the first kernel (from B= IOS). I have put debug prints in sha256_starts, but
> none of those a= re executed.
>
> Interestingly, the same function sha256_starts= is executed during kexec -l,
> which is called as part of update_pur= gatory( )( 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=0A=0A --0-781500450-1254337387=:94839-- --===============1172596881== 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 --===============1172596881==--