From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from sj-iport-6.cisco.com ([171.71.176.117]) by bombadil.infradead.org with esmtps (Exim 4.68 #1 (Red Hat Linux)) id 1LMKyv-00080O-Gz for kexec@lists.infradead.org; Mon, 12 Jan 2009 11:29:25 +0000 Received: from sj-core-1.cisco.com (sj-core-1.cisco.com [171.71.177.237]) by sj-dkim-3.cisco.com (8.12.11/8.12.11) with ESMTP id n0CBTKCv031462 for ; Mon, 12 Jan 2009 03:29:20 -0800 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-1.cisco.com (8.13.8/8.13.8) with ESMTP id n0CBTK9c002936 for ; Mon, 12 Jan 2009 11:29:20 GMT Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: newbie question: kexec linux-based bootstrap Date: Mon, 12 Jan 2009 03:29:19 -0800 Message-ID: From: "Bizhan Gholikhamseh (bgholikh)" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1414076433==" Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: kexec@lists.infradead.org This is a multi-part message in MIME format. --===============1414076433== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C974A9.028D4355" This is a multi-part message in MIME format. ------_=_NextPart_001_01C974A9.028D4355 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable HI all, =20 I have been investigating how to boot Linux as bootstrap to boot another Linux. =20 >From my understanding, Linux has a kexec system call which provides overlay another Linux image on the current running Linux.=20 =20 Is my understanding correct? =20 Is there any other available tool that I can use? =20 =20 =20 Many thanks in advance, =20 Biz =20 ------_=_NextPart_001_01C974A9.028D4355 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

HI = all,

 

I have been = investigating how to boot Linux as bootstrap to boot another = Linux.

 

From my = understanding, Linux has a kexec system call which provides overlay another Linux image on = the current running Linux.

 

Is my understanding = correct?

 

Is there any other = available tool that I can use?

 

 

 

Many thanks in = advance,

 

Biz

 

------_=_NextPart_001_01C974A9.028D4355-- --===============1414076433== 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 --===============1414076433==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from sj-iport-5.cisco.com ([171.68.10.87]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1LMUqC-0005oM-3e for kexec@lists.infradead.org; Mon, 12 Jan 2009 22:01:02 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: newbie question: kexec linux-based bootstrap Date: Mon, 12 Jan 2009 14:00:57 -0800 Message-ID: In-Reply-To: <496B4127.1070201@anduras.de> References: <496B4127.1070201@anduras.de> From: "Bizhan Gholikhamseh (bgholikh)" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Sven Anders Cc: kexec@lists.infradead.org > > > > Yes, it correct. We are using a similiar configuration without problems. > We are using Linux kernel 2.6.23, where could I download the kexec-tools, to compile? Thanks, Bizhan _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from acsinet12.oracle.com ([141.146.126.234]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1LMUtP-0005ZL-0c for kexec@lists.infradead.org; Mon, 12 Jan 2009 22:04:21 +0000 Message-ID: <496BBE57.2040802@oracle.com> Date: Mon, 12 Jan 2009 14:04:07 -0800 From: Randy Dunlap MIME-Version: 1.0 Subject: Re: newbie question: kexec linux-based bootstrap References: <496B4127.1070201@anduras.de> In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: "Bizhan Gholikhamseh (bgholikh)" Cc: Sven Anders , kexec@lists.infradead.org Bizhan Gholikhamseh (bgholikh) wrote: > >> Yes, it correct. We are using a similiar configuration without > problems. > We are using Linux kernel 2.6.23, where could I download the > kexec-tools, to compile? www.google.com/linux, search for kexec-tools, first hit is it. I use kexec daily for boot-testing new kernels. -- ~Randy _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metropolitan.anduras.de ([80.237.200.159]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1LMMYb-0003Mt-OE for kexec@lists.infradead.org; Mon, 12 Jan 2009 13:10:18 +0000 Message-ID: <496B4127.1070201@anduras.de> Date: Mon, 12 Jan 2009 14:09:59 +0100 From: Sven Anders MIME-Version: 1.0 Subject: Re: newbie question: kexec linux-based bootstrap References: In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0771430731==" Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: "Bizhan Gholikhamseh (bgholikh)" Cc: kexec@lists.infradead.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============0771430731== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA3819E75A6CDCC2C2DF6F038" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA3819E75A6CDCC2C2DF6F038 Bizhan Gholikhamseh (bgholikh) schrieb: > > HI all, > > =20 > > I have been investigating how to boot Linux as bootstrap to boot > another Linux. > > =20 > > From my understanding, Linux has a kexec system call which provides > overlay another Linux image on the current running Linux. > > =20 > > Is my understanding correct? > Yes, it correct. We are using a similiar configuration without problems. Mit freundlichen Gr=FC=DFen Sven Anders --=20 Sven Anders () Ascii Ribbon Campaign= /\ Support plain text e-= mail ANDURAS service solutions AG Innstra=DFe 71 - 94036 Passau - Germany Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0)851-4 90 5= 0-55 Rechtsform: Aktiengesellschaft - Sitz: Passau - Amtsgericht Passau HRB 60= 32 Mitglieder des Vorstands: Sven Anders, Marcus Junker Vorsitzender des Aufsichtsrats: Mark Peters --------------020700000505060307000205 Content-Type: text/x-vcard; charset=utf-8; name="anders.vcf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="anders.vcf" begin:vcard fn:Sven Anders n:Anders;Sven org:ANDURAS AG;Research and Development adr;quoted-printable:;;Innstra=3DC3=3D9Fe 71;Passau;Bavaria;94036;Germany= email;internet:anders@anduras.de title:Dipl. Inf. tel;work:++49 (0)851 / 490 50 -0 tel;fax:++49 (0)851 / 590 50 - 55 x-mozilla-html:FALSE url:http://www.anduras.de version:2.1 end:vcard --------------020700000505060307000205-- --------------enigA3819E75A6CDCC2C2DF6F038 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAklrQTUACgkQ5lKZ7Feg4EeVfwCgk4dy85BE3v8Q8Ox6R7zEnmK7 9P4AnR29mKleIpulIVdazgZlhoagUzmV =oYnN -----END PGP SIGNATURE----- --------------enigA3819E75A6CDCC2C2DF6F038-- --===============0771430731== 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 --===============0771430731==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from sj-iport-3.cisco.com ([171.71.176.72]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1LMVWZ-0006nP-8u for kexec@lists.infradead.org; Mon, 12 Jan 2009 22:44:50 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: newbie question: kexec linux-based bootstrap Date: Mon, 12 Jan 2009 14:44:44 -0800 Message-ID: In-Reply-To: <496BBE57.2040802@oracle.com> References: <496B4127.1070201@anduras.de> <496BBE57.2040802@oracle.com> From: "Bizhan Gholikhamseh (bgholikh)" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Randy Dunlap Cc: Sven Anders , kexec@lists.infradead.org > I use kexec daily for boot-testing new kernels. I have enabled the kexec in the kernel configuration, when I ran the kexec I get the following error: # ./kexec -l ./bzImage kexec_load failed: Function not implemented entry = 0x977b8 flags = 0 nr_segments = 3 segment[0].buf = 0x8071600 segment[0].bufsz = 2a00 segment[0].mem = 0x3000 segment[0].memsz = 3000 segment[1].buf = 0x806a550 segment[1].bufsz = 7060 segment[1].mem = 0x97000 segment[1].memsz = 9000 segment[2].buf = 0xb7c3aa08 segment[2].bufsz = 1d7eb8 segment[2].mem = 0x100000 segment[2].memsz = 1d8000 ??? _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from rcsinet12.oracle.com ([148.87.113.124] helo=rgminet12.oracle.com) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1LMVhc-0008JQ-NS for kexec@lists.infradead.org; Mon, 12 Jan 2009 22:56:15 +0000 Message-ID: <496BCA08.4000901@oracle.com> Date: Mon, 12 Jan 2009 14:54:00 -0800 From: Randy Dunlap MIME-Version: 1.0 Subject: Re: newbie question: kexec linux-based bootstrap References: <496B4127.1070201@anduras.de> <496BBE57.2040802@oracle.com> In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: "Bizhan Gholikhamseh (bgholikh)" Cc: Sven Anders , kexec@lists.infradead.org Bizhan Gholikhamseh (bgholikh) wrote: > >> I use kexec daily for boot-testing new kernels. > I have enabled the kexec in the kernel configuration, when I ran the > kexec I get the following error: You enabled kexec in the new kernel that you are trying to load or in the first/running kernel? It appears that kexec is not loaded in the first/running kernel, but it must be enabled for kexec-tools to work correctly. > # ./kexec -l ./bzImage > kexec_load failed: Function not implemented > entry = 0x977b8 flags = 0 > nr_segments = 3 > segment[0].buf = 0x8071600 > segment[0].bufsz = 2a00 > segment[0].mem = 0x3000 > segment[0].memsz = 3000 > segment[1].buf = 0x806a550 > segment[1].bufsz = 7060 > segment[1].mem = 0x97000 > segment[1].memsz = 9000 > segment[2].buf = 0xb7c3aa08 > segment[2].bufsz = 1d7eb8 > segment[2].mem = 0x100000 > segment[2].memsz = 1d8000 > > ??? > -- ~Randy _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from sj-iport-6.cisco.com ([171.71.176.117]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1LMVsJ-0003mz-F0 for kexec@lists.infradead.org; Mon, 12 Jan 2009 23:07:18 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: newbie question: kexec linux-based bootstrap Date: Mon, 12 Jan 2009 15:07:11 -0800 Message-ID: In-Reply-To: <496BCA08.4000901@oracle.com> References: <496B4127.1070201@anduras.de> <496BBE57.2040802@oracle.com> <496BCA08.4000901@oracle.com> From: "Bizhan Gholikhamseh (bgholikh)" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Randy Dunlap Cc: Sven Anders , kexec@lists.infradead.org > > You enabled kexec in the new kernel that you are trying to load or in > the first/running kernel? It appears that kexec is not loaded in the > first/running kernel, but it must be enabled for kexec-tools to work > correctly. Yes, that was the problem, now I am getting a new error, I do not care for crash dump, but when I execute kexec -e it ask me to reserve some space for it and use kdump kernel, which is not the case I am interested: # ./kexec -e -append="root/dev/sdb2" Memory for crashkernel is not reserved Please reserve memory by passing "crashkernel=X@Y" parameter to the kernel Then try loading kdump kernel ??? _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from rcsinet11.oracle.com ([148.87.113.123] helo=rgminet11.oracle.com) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1LMW13-0005MR-3f for kexec@lists.infradead.org; Mon, 12 Jan 2009 23:16:19 +0000 Message-ID: <496BCF2F.1060700@oracle.com> Date: Mon, 12 Jan 2009 15:15:59 -0800 From: Randy Dunlap MIME-Version: 1.0 Subject: Re: newbie question: kexec linux-based bootstrap References: <496B4127.1070201@anduras.de> <496BBE57.2040802@oracle.com> <496BCA08.4000901@oracle.com> In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: "Bizhan Gholikhamseh (bgholikh)" Cc: Sven Anders , kexec@lists.infradead.org Bizhan Gholikhamseh (bgholikh) wrote: >> You enabled kexec in the new kernel that you are trying to load or in >> the first/running kernel? It appears that kexec is not loaded in the >> first/running kernel, but it must be enabled for kexec-tools to work >> correctly. > > Yes, that was the problem, now I am getting a new error, I do not care > for crash dump, but when I execute kexec -e it ask me to reserve some > space for it and use kdump kernel, which is not the case I am > interested: > > # ./kexec -e -append="root/dev/sdb2" > Memory for crashkernel is not reserved > Please reserve memory by passing "crashkernel=X@Y" parameter to the > kernel > Then try loading kdump kernel > > > ??? You still need to reserve space for the new kernel to be loaded into. It has to be loaded into memory before it is needed. Those messages that say "crashkernel" can be misleading, but that's what the kernel parameter is named. -- ~Randy _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from e4.ny.us.ibm.com ([32.97.182.144]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1LMawi-0000rq-JJ for kexec@lists.infradead.org; Tue, 13 Jan 2009 04:32:23 +0000 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e4.ny.us.ibm.com (8.13.1/8.13.1) with ESMTP id n0D4Ujqb013688 for ; Mon, 12 Jan 2009 23:30:45 -0500 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id n0D4W7TN169044 for ; Mon, 12 Jan 2009 23:32:07 -0500 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n0D4W72u014470 for ; Mon, 12 Jan 2009 23:32:07 -0500 From: "M. Mohan Kumar" Subject: Re: newbie question: kexec linux-based bootstrap Date: Tue, 13 Jan 2009 10:02:03 +0530 References: <496BCA08.4000901@oracle.com> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200901131002.03658.mohan@in.ibm.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: kexec@lists.infradead.org Cc: Randy Dunlap , Sven Anders , "Bizhan Gholikhamseh (bgholikh)" > # ./kexec -e -append="root/dev/sdb2" > Memory for crashkernel is not reserved > Please reserve memory by passing "crashkernel=X@Y" parameter to the > kernel > Then try loading kdump kernel kexec -e does not take any parameter. Just run "kexec -e" which should start booting the new kernel. Regards, Mohan. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mga10.intel.com ([192.55.52.92] helo=fmsmga102.fm.intel.com) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1LMkmG-0006Ce-Hw for kexec@lists.infradead.org; Tue, 13 Jan 2009 15:02:14 +0000 Date: Tue, 13 Jan 2009 06:49:47 -0800 From: "David N. Lombard" Subject: Re: newbie question: kexec linux-based bootstrap Message-ID: <20090113144947.GA19417@nlxdcldnl2.cl.intel.com> References: <496B4127.1070201@anduras.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <496B4127.1070201@anduras.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Sven Anders Cc: "kexec@lists.infradead.org" , "Bizhan Gholikhamseh (bgholikh)" On Mon, Jan 12, 2009 at 05:09:59AM -0800, Sven Anders wrote: > Bizhan Gholikhamseh (bgholikh) schrieb: > > > > HI all, > > > > =20 > > > > I have been investigating how to boot Linux as bootstrap to boot > > another Linux. > > > > =20 > > > > From my understanding, Linux has a kexec system call which provides > > overlay another Linux image on the current running Linux. > > > > =20 > > > > Is my understanding correct? > > > Yes, it correct. We are using a similiar configuration without problems. I too use kexec & kexec-tools, for a couple of years now. On IA using kexec-tools 2.0.0, use a command like this to load the kernel: kexec -l bzImage --initrd=initrd.img --command-line="kernel-cmd-args" where bzImage is the kernel's bzImage file initrd.img is the initrd image file kernel-cmd-args are the kernel's command line args Then, boot the kernel with: kexec -e -- David N. Lombard, Intel, Irvine, CA I do not speak for Intel Corporation; all comments are strictly my own. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from sj-iport-1.cisco.com ([171.71.176.70]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1LMlPv-0001iP-6p for kexec@lists.infradead.org; Tue, 13 Jan 2009 15:43:05 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: newbie question: kexec linux-based bootstrap Date: Tue, 13 Jan 2009 07:42:57 -0800 Message-ID: In-Reply-To: <20090113144947.GA19417@nlxdcldnl2.cl.intel.com> References: <496B4127.1070201@anduras.de> <20090113144947.GA19417@nlxdcldnl2.cl.intel.com> From: "Bizhan Gholikhamseh (bgholikh)" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: "David N. Lombard" , Sven Anders Cc: kexec@lists.infradead.org > On IA using kexec-tools 2.0.0, use a command like this to load the kernel: > > kexec -l bzImage --initrd=initrd.img --command-line="kernel-cmd-args" > > where > bzImage is the kernel's bzImage file > initrd.img is the initrd image file > kernel-cmd-args are the kernel's command line args > > Then, boot the kernel with: > > kexec -e We are using ramdisk instead of initrd, do you know what arguments I need to pass to point to the ramdisk install on a partition on SATA disk: e.g /dev/sda2? Bizhan _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mga09.intel.com ([134.134.136.24]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1LMmXz-00042V-Oa for kexec@lists.infradead.org; Tue, 13 Jan 2009 16:55:26 +0000 Date: Tue, 13 Jan 2009 08:43:11 -0800 From: "David N. Lombard" Subject: Re: newbie question: kexec linux-based bootstrap Message-ID: <20090113164311.GB19417@nlxdcldnl2.cl.intel.com> References: <496B4127.1070201@anduras.de> <20090113144947.GA19417@nlxdcldnl2.cl.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: "Bizhan Gholikhamseh (bgholikh)" Cc: "David N. Lombard" , Sven Anders , "kexec@lists.infradead.org" On Tue, Jan 13, 2009 at 07:42:57AM -0800, Bizhan Gholikhamseh (bgholikh) wrote: > > On IA using kexec-tools 2.0.0, use a command like this to load the > kernel: > > > > kexec -l bzImage --initrd=initrd.img > --command-line="kernel-cmd-args" > > > > where > > bzImage is the kernel's bzImage file > > initrd.img is the initrd image file > > kernel-cmd-args are the kernel's command line args > > > > Then, boot the kernel with: > > > > kexec -e > > We are using ramdisk instead of initrd, do you know what arguments I > need to pass to point to the ramdisk install on a partition on SATA > disk: e.g /dev/sda2? I'm not sure what you mean by "ramdisk install on ... SATA disk". If you want to just try kexec, take look at your current boot configuration file, e.g., /boot/grub/grub.conf. For example, on my F7 system, I have the following stanza: title Fedora (2.6.23.15-80.fc7) root (hd0,0) kernel /vmlinuz-2.6.23.15-80.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.23.15-80.fc7.img I could boot that as follows: kexec -l /boot/vmlinuz-2.6.23.15-80.fc7 \ --initrd=/boot/initrd-2.6.23.15-80.fc7.img \ --command-line="ro root=/dev/VolGroup00/LogVol00 rhgb quiet" kexec -e Alternatively, to boot a diskless kernel/initrd, I might use kexec -l vmlinuz --initrd=initrd.img --command-line="root=/dev/ram rw" kexec -e -- David N. Lombard, Intel, Irvine, CA I do not speak for Intel Corporation; all comments are strictly my own. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from outbound-wa4.frontbridge.com ([216.32.181.16] helo=WA4EHSOBE004.bigfish.com) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1LMoCm-0004de-4t for kexec@lists.infradead.org; Tue, 13 Jan 2009 18:41:38 +0000 Message-ID: <496CE056.5040904@am.sony.com> Date: Tue, 13 Jan 2009 10:41:26 -0800 From: Geoff Levand MIME-Version: 1.0 Subject: Re: newbie question: kexec linux-based bootstrap References: In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: "Bizhan Gholikhamseh (bgholikh)" Cc: kexec@lists.infradead.org Hi, Bizhan Gholikhamseh (bgholikh) wrote: > I have been investigating how to boot Linux as bootstrap to boot another > Linux. The ps3 uses this method for its bootloaders. The linux kernel and a small file system are put into the system's flash memory. You can find some (old) info about the petitboot bootloader here: http://ozlabs.org/~jk/projects/petitboot/ Another kexec based bootloader is kboot: http://kboot.sourceforge.net/ -Geoff _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec