From: Steve Sakoman Date: Thu, 31 Jul 2008 23:34:54 +0000 (-0700) Subject: board.c: print boot method (mmc, onenand, nand) X-Git-Tag: Release-2010-05/1~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e1a4e8d4d670ab7a4c281317a8b440f4ee4581a;p=pandora-x-loader.git board.c: print boot method (mmc, onenand, nand) --- diff --git a/lib/board.c b/lib/board.c index 48825ae..6c85937 100644 --- a/lib/board.c +++ b/lib/board.c @@ -36,7 +36,7 @@ #ifdef CFG_PRINTF int print_info(void) { - printf("\n\nTexas Instruments X-Loader 1.41\n"); + printf("\n\nTexas Instruments X-Loader 1.41sms\n"); return 0; } #endif @@ -69,10 +69,16 @@ void start_armboot (void) buf = (uchar*) CFG_LOADADDR; if ((get_mem_type() == MMC_ONENAND) || (get_mem_type() == MMC_NAND)){ +#ifdef CFG_PRINTF + printf("Booting from mmc . . .\n"); +#endif buf += mmc_boot(buf); } if (get_mem_type() == GPMC_ONENAND){ +#ifdef CFG_PRINTF + printf("Booting from onenand . . .\n"); +#endif for (i = ONENAND_START_BLOCK; i < ONENAND_END_BLOCK; i++){ if (!onenand_read_block(buf, i)) buf += ONENAND_BLOCK_SIZE; @@ -80,6 +86,9 @@ void start_armboot (void) } if (get_mem_type() == GPMC_NAND){ +#ifdef CFG_PRINTF + printf("Booting from nand . . .\n"); +#endif for (i = NAND_UBOOT_START; i < NAND_UBOOT_END; i+= NAND_BLOCK_SIZE){ if (!nand_read_block(buf, i)) buf += NAND_BLOCK_SIZE; /* advance buf ptr */