From a68ca50aed6f17ad4d45c8c689b44ab2a4694347 Mon Sep 17 00:00:00 2001 From: Yargil Date: Wed, 14 Sep 2011 18:47:07 +0200 Subject: [PATCH] Can't boot from the u-boot.bin file in current directory The mini2440 boot always on the mini2440/u-boot.bin file. The problem is just that image_size is an uint32_t. Signed-off-by: Fabrice Jouhaud Signed-off-by: Michel Pollet --- hw/mini2440.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/mini2440.c b/hw/mini2440.c index 5decf4b51c..6a888158dc 100644 --- a/hw/mini2440.c +++ b/hw/mini2440.c @@ -256,7 +256,7 @@ static int mini2440_load_from_nand(NANDFlashState *nand, static void mini2440_reset(void *opaque) { struct mini2440_board_s *s = (struct mini2440_board_s *) opaque; - uint32_t image_size; + int32_t image_size; /* * Normally we would load 4 KB of nand to SRAM and jump there, but -- 2.11.4.GIT