From mboxrd@z Thu Jan 1 00:00:00 1970 From: Graeme Russ Date: Tue, 06 Dec 2011 21:37:38 +1100 Subject: [U-Boot] [PATCH v3 5/6] x86: Refactor the zboot innards so they can be reused with a vboot image In-Reply-To: <1323122967-18033-6-git-send-email-gabeblack@chromium.org> References: <1322911130-29856-1-git-send-email-gabeblack@chromium.org> <1323122967-18033-6-git-send-email-gabeblack@chromium.org> Message-ID: <4EDDF072.2020004@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Gabe, On 06/12/11 09:09, Gabe Black wrote: > If vboot successfully verifies a kernel, it will leave it in place and > basically ready to boot. The zeropage table which is part of the x86 boot > protocol is at the end of the kernel, though, instead of the beginning, and > because the image is already in place there's no need to copy it around. > This change refactors the code which implements the zboot command so that > the configuration of the zeropage table and loading the pieces of the > kernel into memory are done separately. Also, because the command line goes > before the zeropage table in vboot which is somewhat incompatible with the > normal protocol, where to put the command line is a now a parameter instead > of being hard coded. > > > Signed-off-by: Gabe Black > --- > arch/x86/include/asm/zimage.h | 8 +- > arch/x86/lib/bootm.c | 21 +++-- > arch/x86/lib/zimage.c | 183 +++++++++++++++++++++++------------------ > 3 files changed, 122 insertions(+), 90 deletions(-) Applied to u-boot-x86/next Regards, Graeme