hacks for dell streak
This commit is contained in:
parent
1741dcdb26
commit
789d4d9690
@ -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
|
||||
|
@ -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
|
8
roots.c
8
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 },
|
||||
|
Loading…
Reference in New Issue
Block a user