From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bryan Wu Date: Mon, 4 Aug 2014 17:43:25 -0700 Subject: [U-Boot] [PATCH v2 0/3] introduce genimg_get_kernel_addr() Message-ID: <1407199408-4348-1-git-send-email-pengw@nvidia.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de When trying to fix the error message issue in pxe sysboot, we found it's need a real kernel address for further image format detection. So I take out such code from boot_get_kernel() of bootm.c and create the new API functin genimg_get_kernel_addr(). Then convert pxe/sysboot and bootm.c to use it. v2: - move function description to header file - fix coding style issue - use argc < 1 check when calling genimg_get_kernel_addr() in bootm.c Bryan Wu (3): image: introduce genimg_get_kernel_addr() pxe: detect image format before calling bootm/bootz bootm: use genimg_get_kernel_addr() common/bootm.c | 25 +++++-------------------- common/cmd_pxe.c | 15 +++++++++++---- common/image.c | 32 ++++++++++++++++++++++++++++++++ include/image.h | 12 ++++++++++++ 4 files changed, 60 insertions(+), 24 deletions(-) -- 1.9.1