aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2009-12-01 13:38:21 -0800
committerDavid 'Digit' Turner <digit@google.com>2009-12-01 14:16:04 -0800
commit8b657e5deaa03b989b0b36791fcf2aa6b2882656 (patch)
tree7bebb5ed69bce8d88d6c4f47caa6694db909f3c9 /android
parent5bc6182ae984796a6d14be7f7b8eb73c1b630b8e (diff)
downloadexternal_qemu-8b657e5deaa03b989b0b36791fcf2aa6b2882656.zip
external_qemu-8b657e5deaa03b989b0b36791fcf2aa6b2882656.tar.gz
external_qemu-8b657e5deaa03b989b0b36791fcf2aa6b2882656.tar.bz2
Fix a crash when using an 8MB SD Card image file.
The minimum size is now 9MB. This appears to be a limitation of the emulated MMC hardware code and/or kernel device driver.
Diffstat (limited to 'android')
-rw-r--r--android/android.h2
-rw-r--r--android/main.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/android/android.h b/android/android.h
index 6d092fd..b19d8d3 100644
--- a/android/android.h
+++ b/android/android.h
@@ -13,7 +13,7 @@
#define _qemu_android_h
#define ANDROID_VERSION_MAJOR 1
-#define ANDROID_VERSION_MINOR 12
+#define ANDROID_VERSION_MINOR 14
#define CONFIG_SHAPER 1
diff --git a/android/main.c b/android/main.c
index 7b20919..45ea968 100644
--- a/android/main.c
+++ b/android/main.c
@@ -2478,8 +2478,11 @@ int main(int argc, char **argv)
uint64_t size;
if (path_get_size(opts->sdcard, &size) == 0) {
/* see if we have an sdcard image. get its size if it exists */
- if (size < 8*1024*1024ULL) {
- fprintf(stderr, "### WARNING: SD Card files must be at least 8 MB, ignoring '%s'\n", opts->sdcard);
+ /* due to what looks like limitations of the MMC protocol, one has
+ * to use an SD Card image that is equal or larger than 9 MB
+ */
+ if (size < 9*1024*1024ULL) {
+ fprintf(stderr, "### WARNING: SD Card files must be at least 9MB, ignoring '%s'\n", opts->sdcard);
} else {
args[n++] = "-hda";
args[n++] = opts->sdcard;