[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [5765] uImage: only try to load 'kernel' images (Hollis Bla
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [5765] uImage: only try to load 'kernel' images (Hollis Blanchard) |
Date: |
Thu, 20 Nov 2008 22:15:48 +0000 |
Revision: 5765
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5765
Author: aliguori
Date: 2008-11-20 22:15:46 +0000 (Thu, 20 Nov 2008)
Log Message:
-----------
uImage: only try to load 'kernel' images (Hollis Blanchard)
Loading other image types (e.g. IH_TYPE_MULTI, IH_TYPE_FLATDT) is not
implemented.
IH_TYPE_STANDALONE images could be loaded, but would unexpectedly fail if they
tried to use any uboot services.
Signed-off-by: Hollis Blanchard <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Modified Paths:
--------------
trunk/loader.c
Modified: trunk/loader.c
===================================================================
--- trunk/loader.c 2008-11-20 22:14:40 UTC (rev 5764)
+++ trunk/loader.c 2008-11-20 22:15:46 UTC (rev 5765)
@@ -479,9 +479,9 @@
if (hdr->ih_magic != IH_MAGIC)
goto out;
- /* TODO: Implement Multi-File images. */
- if (hdr->ih_type == IH_TYPE_MULTI) {
- fprintf(stderr, "Unable to load multi-file u-boot images\n");
+ /* TODO: Implement other image types. */
+ if (hdr->ih_type != IH_TYPE_KERNEL) {
+ fprintf(stderr, "Can only load u-boot image type \"kernel\"\n");
goto out;
}
@@ -498,7 +498,7 @@
/* TODO: Check CPU type. */
if (is_linux) {
- if (hdr->ih_type == IH_TYPE_KERNEL && hdr->ih_os == IH_OS_LINUX)
+ if (hdr->ih_os == IH_OS_LINUX)
*is_linux = 1;
else
*is_linux = 0;
- [Qemu-devel] [5765] uImage: only try to load 'kernel' images (Hollis Blanchard),
Anthony Liguori <=