From e21d8f59da129d2fa4ab9139ee6cfa1a7f78e275 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 2 Oct 2013 16:49:43 +0200 Subject: imx233: fix bootloader The bootloader must call disk_init_subsystem() because it is multithread (because of USB), otherwise strange things might happen. Calling disk_init() is unnecessary since it is call when mounting partitions. Change-Id: If7aff3dea0b96144e2a9b0f6179a9a0a632b93ed --- bootloader/imx233.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bootloader/imx233.c b/bootloader/imx233.c index 75834c3757..6f07d1f1c9 100644 --- a/bootloader/imx233.c +++ b/bootloader/imx233.c @@ -176,8 +176,7 @@ void main(uint32_t arg, uint32_t addr) /* NOTE: allow disk_init and disk_mount_all to fail since we can do USB after. * We need this order to determine the correct logical sector size */ - while(!disk_init(IF_MV(0))) - printf("disk_init failed!"); + disk_init_subsystem(); if((ret = disk_mount_all()) <= 0) error(EDISK, ret, false); -- cgit v1.2.3