Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261166AbVEKLx4 (ORCPT ); Wed, 11 May 2005 07:53:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261169AbVEKLx4 (ORCPT ); Wed, 11 May 2005 07:53:56 -0400 Received: from ZIVLNX17.UNI-MUENSTER.DE ([128.176.188.79]:54748 "EHLO ZIVLNX17.uni-muenster.de") by vger.kernel.org with ESMTP id S261166AbVEKLxl (ORCPT ); Wed, 11 May 2005 07:53:41 -0400 From: Borislav Petkov To: maneesh@in.ibm.com, Vivek Goyal Subject: Re: kexec? Date: Wed, 11 May 2005 13:51:41 +0200 User-Agent: KMail/1.7.2 Cc: coywolf@lovecn.org, "Randy.Dunlap" , Ralf Hildebrandt , linux-kernel@vger.kernel.org References: <20050508202050.GB13789@charite.de> <2cd57c9005051006117d0c343@mail.gmail.com> <20050511060434.GA8856@in.ibm.com> In-Reply-To: <20050511060434.GA8856@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505111351.42266.petkov@uni-muenster.de> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 11314 Lines: 282 On Wednesday 11 May 2005 08:04, Maneesh Soni wrote: > > > [root@zmei]: kexec -p vmlinux --args-linux --append="root=/dev/hda1 > > > maxcpus=1 init 1" > > > > kexec-tools-1.101 loads for me, but if cmdline is used, it hangs up > > after "Starting new kernel" > > Thanks for trying this out. As Vivek mentioned can you please try with > bulding second or dump capture kernel with CONFIG_SMP=N and _without_ > maxcpus= option. Basically the second kernel's job is just to save the dump > and it doesnot need to be a SMP kernel. There are some issues with booting > SMP kernel as dump capture kernel. Hm, without 'maxcpus' seems to work. However, when booting into the new kernel, the rootfs had to be fsck'ed due to "/ was not cleanly unmounted, check forced." and then was forced to reboot linux due to inconsistency in the fs. I simply did kexec -l --args-linux --append="root=/dev/hda1 init 1" and then kexec -e to execute the loaded image. It seems that the filesystems are not unmounted properly before loading the second kernel, (or I am missing something..., which is more likely :)) > Also, it would be great help if you can also send us some hardware details > about the system you are trying, like lspci, [root@zmei] lspci -vv 0000:00:00.0 Host bridge: Intel Corp. 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03) Subsystem: Unknown device 1849:2560 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- 0000:00:01.0 PCI bridge: Intel Corp. 82845G/GL[Brookdale-G]/GE/PE Host-to-AGP Bridge (rev 03) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- Reset- FastB2B- 0000:00:1d.0 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02) (prog-if 00 [UHCI]) Subsystem: Unknown device 1849:24c0 Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- Reset- FastB2B- 0000:00:1f.0 ISA bridge: Intel Corp. 82801DB/DBL (ICH4/ICH4-L) LPC Bridge (rev 02) Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- Region 1: I/O ports at Region 2: I/O ports at Region 3: I/O ports at Region 4: I/O ports at fc00 [size=16] Region 5: Memory at 20000000 (32-bit, non-prefetchable) [size=1K] 0000:01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200 SE] (rev 01) (prog-if 00 [VGA]) Subsystem: C.P. Technology Co. Ltd CN-AG92E Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- Capabilities: [50] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 0000:03:04.0 Multimedia audio controller: Yamaha Corporation YMF-724 (rev 05) Subsystem: Yamaha Corporation YMF724-Based PCI Audio Adapter Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR-