Return-path: Received: from sandesh.cdotd.ernet.in ([196.1.105.47]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1Q1xXG-0004Q7-3y for kexec@lists.infradead.org; Tue, 22 Mar 2011 09:05:55 +0000 Received: from mail1.cdotd.ernet.in (mail1.cdotd.ernet.in [196.1.105.196]) by sandesh.cdotd.ernet.in (Postfix) with ESMTP id C4B45193C54 for ; Tue, 22 Mar 2011 14:03:07 +0530 (IST) Received: from cdotd.ernet.in (mail1.cdotd.ernet.in [127.0.0.1]) by mail1.cdotd.ernet.in (8.12.5/8.12.5) with ESMTP id p2M8aNnu005702 for ; Tue, 22 Mar 2011 14:06:23 +0530 From: "Deepak Gaur" Subject: KEXEC on Montavista PPC LINUX (2.6.10) with U-BOOT Date: Tue, 22 Mar 2011 14:06:23 +0530 Message-Id: <20110322083453.M34905@cdotd.ernet.in> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0703143552==" Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: kexec@lists.infradead.org --===============0703143552== Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi All
=20
I have a MPC8560 based custom board with linux 2.6.10 as OS and U-BOOT as a= bootloader.
The compressed OS and rootfilesytem are combined in one multi image (ubImgae)and it resides in a flash partition as raw data. Bootloader is able to load the image, decompress it and execute it . The sytem comes up properly.
=20
In order to reduce the bootup time i was planning to use kexec to reboot th= e OS. My version of kexec is=20
./kexec -v
kexec 1.101 released 15 February 2005
=20
I tried to load the OS+Rootfile Filesystem (with U-BOOT header) but it gave= following output
=20
./kexec -l ./ubImage --append=3D\"`cat /proc/cmdline`\"
Invalid memory range : (nil) - (nil)
Could not get memory layout
=20
My question is
=20
Does Kexec understand u-boot images ? Or I am missing some parameters
=20
I searched the Internet forum for this and got the guideline that os and initrd should be given seperately (---initrd=3D/boot/vmlinuz-rootfs.img)
=20
but the kexec does not recognize such an option and its help does not show = any such option (--initrd)
=20
# ./kexec --help
kexec 1.101 released 15 February 2005
Usage: kexec [OPTION]... [kernel]
Directly reboot into a new kernel
=20
-h, --help Print this help.
-v, --version Print the version of kexec.
-f, --force Force an immediate kexec, don't call shutdown.
-x, --no-ifdown Don't bring down network interfaces.
(if used, must be last option specified)
-l, --load Load the new kernel into the current kernel.
-p, --load-panic Load the new kernel for use on panic.
-u, --unload Unload the current kexec target kernel.
-e, --exec Execute a currently loaded kernel.
-t, --type=3DTYPE Specify the new kernel is of this type.
--mem-min=3D<addr> Specify the lowest memory addres to load code= into.
--mem-max=3D<addr> Specify the highest memory addres to load cod= e into.
=20
Supported kernel file types and options:
elf-ppc
--command-line=3DSTRING Set the kernel command line to STRING.
--append=3DSTRING Set the kernel command line to STRING.
--gamecube=3D1|0 Enable/disable support for ELFs with changed
addresses suitable for the GameCube.
dol-ppc
-d, --debug Enable debugging to help spot a failure.
--command-line=3DSTRING Set the kernel command line to STRING.
--append=3DSTRING Set the kernel command line to STRING.
Architecture options:
the following parameters should be specified:
--start-memory-range=3D<addr>
--end-memory-range=3D<addr>
=20
for this reason i was trying with a combined OS and Rootfs image
=20
my kernel command line is
=20
# cat /proc/cmdline
console=3DttyCPM,9600n8 wdt=3D1 ip=3Ddhcp root=3D/dev/ram0 rw crashkernel= =3D128M@16M
=20
and I have compiled the kernel with all option related to KEXEC on.
=20
Please help me in understand the method for using kexec with U-BOOT as a bo= otloader. The ARCH is ppc in kernel 2.6.10.=20
=20
Do i need to use kexec with uncompressed OS image , but as the tool kexec does not recognize --initrd option, how to inform kexec abt it?
=20
with regards,
=20
Deepak Gaur
--===============0703143552== 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 --===============0703143552==--