Received: from [209.242.20.84] (helo=green.dls.net) by linuxtogo.org with esmtp (Exim 4.67) (envelope-from ) id 1Iawvp-0004hB-98 for openembedded-devel@lists.openembedded.org; Thu, 27 Sep 2007 19:13:45 +0200 Received: from twilight (gw.mwester.net [209.242.5.110]) by green.dls.net (Postfix) with ESMTP id E001E412370 for ; Thu, 27 Sep 2007 12:09:06 -0500 (CDT) Message-ID: <00a501c80129$17b0aa80$6e01a8c0@twilight> From: "Mike \(mwester\)" To: References: <20070927162040.GA25054@guralp.com> Date: Thu, 27 Sep 2007 12:08:57 -0500 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896 Subject: Re: arm kexec commandline support X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Sep 2007 17:13:49 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Bob Dunlop, on September 27, 2007, wrote: > Hans Henry von Tresckow wrote: > >On 6/7/07, Thomas Kunze wrote: > ... > >> I have written a quick hack to support custom commandlines for arm with > >> kexec. You need: > >> > >> > >> http://www2.informatik.hu-berlin.de/~tkunze/zaurus/patches/kexec_commandline-3.patch > >> > >> and: > >> > >> > >> http://www2.informatik.hu-berlin.de/~tkunze/zaurus/patches/atag_support.patch > >> > >> (from lak) > ... > > > >I tested this with linux-rp-2.6.20 on poodle. The kernel will boot and I > >can kexec other kernels with built in cmdlines. If I try to set a new > >cmdline however, it segfaults. Here is the crash dump: > > > ><0>Starting new kernel > ><1>Unable to handle kernel paging request at virtual address e0000100 > > I to am searching for a kexec solution (for a Compulab CM-X270) > > I can progress this code a little further and eliminate the segfault with > the following patch, but still nothing after the final Bye! message :( > [patch snipped] Permit me to pop into this thread. At the risk of covering old ground, I believe that the discussion on L-A-K ended with the general conscensus that the preferred approach was to use the "preserve-original-atags" patch [1], and write something new that would permit the user-space "kexec" command to edit/replace/remove the preserved atags. The first half of this is done -- it's been submitted upstream (since it is a useful patch in and of itself even without the ability to change command-lines, permitting kexec to actually work on machines that require bootloader atags, such as the OpenMoko distro on the Neo). The second half has not been started, but probably should begin with Uli's work with the kexec command, I would expect. The advantage of this approach is that the first patch takes care of all the ugly stuff that result in seg faults, and other horrors. All that is required for the second half is to use the pointer to the buffer containing the atags, and replace, or edit, or remove the contents at will. It's on my list of things to do, but for the moment the sysfs approach, while ugly, has worked on all the ARM machines I use. It would be great if someone with a bit more spare time could take a hack at the second part of this problem. Regards, Mike [1] http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=4579/1