diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-10-02 16:49:43 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-10-21 01:23:13 +0200 |
commit | e21d8f59da129d2fa4ab9139ee6cfa1a7f78e275 (patch) | |
tree | 5291838ccd64d517de9a56b54a7c4c3d0dcca27f /bootloader | |
parent | 110e094db57c5a46a1903cff17638b743e31d5c6 (diff) | |
download | rockbox-e21d8f59da129d2fa4ab9139ee6cfa1a7f78e275.tar.gz rockbox-e21d8f59da129d2fa4ab9139ee6cfa1a7f78e275.zip |
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
Diffstat (limited to 'bootloader')
-rw-r--r-- | bootloader/imx233.c | 3 |
1 files changed, 1 insertions, 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) | |||
176 | 176 | ||
177 | /* NOTE: allow disk_init and disk_mount_all to fail since we can do USB after. | 177 | /* NOTE: allow disk_init and disk_mount_all to fail since we can do USB after. |
178 | * We need this order to determine the correct logical sector size */ | 178 | * We need this order to determine the correct logical sector size */ |
179 | while(!disk_init(IF_MV(0))) | 179 | disk_init_subsystem(); |
180 | printf("disk_init failed!"); | ||
181 | 180 | ||
182 | if((ret = disk_mount_all()) <= 0) | 181 | if((ret = disk_mount_all()) <= 0) |
183 | error(EDISK, ret, false); | 182 | error(EDISK, ret, false); |