From 789d4d969027c745837f437298ab42957b5576ac Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Fri, 11 Jun 2010 11:24:07 -0700 Subject: [PATCH] hacks for dell streak --- default_recovery_ui.c | 8 ++++---- mkfstab.sh | 8 +++++--- roots.c | 8 ++++---- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/default_recovery_ui.c b/default_recovery_ui.c index f189da4..1e14bb9 100644 --- a/default_recovery_ui.c +++ b/default_recovery_ui.c @@ -51,12 +51,12 @@ int device_reboot_now(volatile char* key_pressed, int key_code) { int device_handle_key(int key_code, int visible) { if (visible) { switch (key_code) { - case KEY_DOWN: - case KEY_VOLUMEDOWN: - return HIGHLIGHT_DOWN; - case KEY_UP: case KEY_VOLUMEUP: + return HIGHLIGHT_DOWN; + + case KEY_DOWN: + case KEY_VOLUMEDOWN: return HIGHLIGHT_UP; #ifdef KEY_POWER_IS_SELECT_ITEM diff --git a/mkfstab.sh b/mkfstab.sh index c30737f..86dedbf 100755 --- a/mkfstab.sh +++ b/mkfstab.sh @@ -21,7 +21,7 @@ do elif [ "$partition" = "userdata" ] then type=yaffs2 - mount=data + mount=firstboot elif [ "$partition" == "cache" ] then type=yaffs2 @@ -31,5 +31,7 @@ do echo "/dev/block/mtdblock$mtd /$mount $type rw" >> /etc/fstab done -echo "/dev/block/mmcblk0p1" /sdcard vfat rw >> /etc/fstab -echo "/dev/block/mmcblk0p2" /sd-ext ext4 rw >> /etc/fstab +echo "/dev/block/mmcblk1p1" /sdcard vfat rw >> /etc/fstab +echo "/dev/block/mmcblk1p2" /sd-ext auto rw >> /etc/fstab +echo "/dev/block/innersd0p5" /cache ext3 rw >> /etc/fstab +echo "/dev/block/innersd0p6" /data ext3 rw >> /etc/fstab \ No newline at end of file diff --git a/roots.c b/roots.c index abfb4ce..5e0628e 100644 --- a/roots.c +++ b/roots.c @@ -47,13 +47,13 @@ static const char g_package_file[] = "@\0g_package_file"; static RootInfo g_roots[] = { { "BOOT:", g_mtd_device, NULL, "boot", NULL, g_raw }, - { "CACHE:", g_mtd_device, NULL, "cache", "/cache", "yaffs2" }, - { "DATA:", g_mtd_device, NULL, "userdata", "/data", "yaffs2" }, + { "CACHE:", "/dev/block/innersd0p5", NULL, "cache", "/cache", "ext3" }, + { "DATA:", "/dev/block/innersd0p6", NULL, "userdata", "/data", "ext3" }, { "MISC:", g_mtd_device, NULL, "misc", NULL, g_raw }, { "PACKAGE:", NULL, NULL, NULL, NULL, g_package_file }, { "RECOVERY:", g_mtd_device, NULL, "recovery", "/", g_raw }, - { "SDCARD:", "/dev/block/mmcblk0p1", "/dev/block/mmcblk0", NULL, "/sdcard", "vfat" }, - { "SDEXT:", "/dev/block/mmcblk0p2", NULL, NULL, "/sd-ext", "ext4" }, + { "SDCARD:", "/dev/block/mmcblk1p1", "/dev/block/mmcblk0", NULL, "/sdcard", "vfat" }, + { "SDEXT:", "/dev/block/mmcblk1p2", NULL, NULL, "/sd-ext", "ext3" }, { "SYSTEM:", g_mtd_device, NULL, "system", "/system", "yaffs2" }, { "MBM:", g_mtd_device, NULL, "mbm", NULL, g_raw }, { "TMP:", NULL, NULL, NULL, "/tmp", NULL },