summaryrefslogtreecommitdiffstats
path: root/bootloader/imx233.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/imx233.c')
-rw-r--r--bootloader/imx233.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/bootloader/imx233.c b/bootloader/imx233.c
index bec8ceec5b..f6c5ad9cf4 100644
--- a/bootloader/imx233.c
+++ b/bootloader/imx233.c
@@ -40,8 +40,8 @@
#include "usb.h"
-void main(void) NORETURN_ATTR;
-void main(void)
+void main(uint32_t arg) NORETURN_ATTR;
+void main(uint32_t arg)
{
unsigned char* loadbuffer;
int buffer_size;
@@ -62,6 +62,8 @@ void main(void)
button_init_device();
//button_debug_screen();
+ printf("arg=%c%c%c%c", arg >> 24,
+ (arg >> 16) & 0xff, (arg >> 8) & 0xff, (arg & 0xff));
ret = storage_init();
if(ret < 0)
@@ -84,6 +86,9 @@ void main(void)
error(EDISK, ret, true);
}
+ if(button_read_device() & BUTTON_VOL_UP)
+ printf("Booting from SD card required.");
+
printf("Loading firmware");
loadbuffer = (unsigned char*)DRAM_ORIG; /* DRAM */