From 9dcdcddb337aaad83acba77300ec84d1c96c1f05 Mon Sep 17 00:00:00 2001 From: "Eugene San (eugenesan)" Date: Thu, 15 Aug 2013 07:56:50 +0300 Subject: [PATCH 01/10] disable -O3 but Krait optimisations stays -O3 caused some devices to boot into black screen (kernel start failour) In meanwhile -O3 stays disabled until we find a solution. Since Krait optimisations seems to be helpful, they stays. Change-Id: Ib80e0b1d6e1d1fbdec50bac011b7aa18b3b46747 --- BoardConfig.mk | 2 -- 1 file changed, 2 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 9a26a532f..cf722473e 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -33,8 +33,6 @@ TARGET_KRAIT_BIONIC_PLDTHRESH := 10 TARGET_KRAIT_BIONIC_BBTHRESH := 64 TARGET_KRAIT_BIONIC_PLDSIZE := 64 -TARGET_USE_O3 := true - TARGET_NO_BOOTLOADER := true TARGET_KERNEL_CONFIG := mako_defconfig From 591da9d3707904e020020e019867a72983fc4aa2 Mon Sep 17 00:00:00 2001 From: "Eugene San (eugenesan)" Date: Wed, 14 Aug 2013 10:55:24 +0300 Subject: [PATCH 02/10] increase headphones safe volume level With 4.3 audio levels, especially headphones, are lower then previousely. This commit might help, reports are welcome. Change-Id: Iedae891c1f18eeebe178214a41d70ae3f784f569 --- overlay/frameworks/base/core/res/res/values/config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index fc5a5b8b0..fede7dd6c 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -228,7 +228,7 @@ - 7 + 10 true From 6051c9da3e10f7aa94c86c7001dfd191c2cf2fde Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Thu, 4 Jul 2013 13:54:51 +0200 Subject: [PATCH 03/10] Mark internal storage as primary. Change-Id: I5a985dbddd7010db80c07202ae7811f0d99d0a13 --- overlay/frameworks/base/core/res/res/xml/storage_list.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/overlay/frameworks/base/core/res/res/xml/storage_list.xml b/overlay/frameworks/base/core/res/res/xml/storage_list.xml index 344fe1e10..53e41b770 100644 --- a/overlay/frameworks/base/core/res/res/xml/storage_list.xml +++ b/overlay/frameworks/base/core/res/res/xml/storage_list.xml @@ -23,6 +23,7 @@ From e1da2a40914cd79e4c21646998a474af72dfdfc0 Mon Sep 17 00:00:00 2001 From: Lars Greiss Date: Thu, 5 Sep 2013 20:29:12 +0200 Subject: [PATCH 04/10] Mako: Set for JWR kernel Change-Id: I721d5a829db48c33cb613a2cd3a6c3412a1420f2 --- BoardConfig.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index cf722473e..994187fd7 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -15,7 +15,7 @@ # TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp -TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp +TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp -DTARGET_MAKO_JWR66 TARGET_CPU_ABI := armeabi-v7a TARGET_CPU_ABI2 := armeabi TARGET_CPU_SMP := true From e92516e4b8e47b1a0214c31bb60b833eeede573b Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Thu, 15 Aug 2013 16:57:51 +0100 Subject: [PATCH 05/10] Add missing anc firmware symlinks Change-Id: I1fc3a4bf53db3d485f3f680f3aae0fe56ae681cd --- Android.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Android.mk b/Android.mk index 4712da3eb..108716393 100644 --- a/Android.mk +++ b/Android.mk @@ -46,3 +46,18 @@ include $(BUILD_PREBUILT) endif include $(call first-makefiles-under,$(LOCAL_PATH)) + +ifeq ($(TARGET_DEVICE),mako) + +# This is ugly for more reasons than I can mention. Don't think +# that this is a good idea. It's not. It's horrible. It's truly +# entirely horrible. It's not an elegant hack in any way. + +$(shell mkdir -p $(TARGET_OUT_ETC)/firmware/wcd9310; \ + ln -sf /data/misc/audio/wcd9310_anc.bin \ + $(TARGET_OUT_ETC)/firmware/wcd9310/wcd9310_anc.bin; \ + ln -sf /data/misc/audio/mbhc.bin \ + $(TARGET_OUT_ETC)/firmware/wcd9310/wcd9310_mbhc.bin) + +endif + From e3707a8cce84fa56159827e0e920e7670208c6bf Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Fri, 6 Sep 2013 18:03:19 -0700 Subject: [PATCH 06/10] mako: Enable QCOM Bluetooth enhancements Change-Id: Ibd967c43f7b7a73978e261ac6edb0ae198b6bd77 --- bluetooth/bdroid_buildcfg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h index ed417ede2..dbc147192 100644 --- a/bluetooth/bdroid_buildcfg.h +++ b/bluetooth/bdroid_buildcfg.h @@ -19,5 +19,5 @@ #define BTM_DEF_LOCAL_NAME "Nexus 4" #define BTA_DISABLE_DELAY 1000 /* in milliseconds */ - +#define BLUETOOTH_QCOM_SW TRUE #endif From b8e412490d3207b80d3e73e8e21ea69fd66f812a Mon Sep 17 00:00:00 2001 From: prbassplayer Date: Thu, 4 Apr 2013 04:51:43 +0200 Subject: [PATCH 07/10] Mako: Adds init.d support Change-Id: I99c126c5099ca724276ee10bb8c190935dd90946 --- init.mako.rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.mako.rc b/init.mako.rc index 0c77562ec..5187acf9b 100644 --- a/init.mako.rc +++ b/init.mako.rc @@ -414,5 +414,11 @@ service diag_mdlog /system/bin/logwrapper /system/bin/diag_mdlog -s 100 class late_start disabled +service userinit /system/xbin/busybox run-parts /system/etc/init.d + oneshot + class late_start + user root + group root + # on property:gsm.sim.state=READY # start diag_mdlog From 6d9330a2553a35a2fdfb38e98c3f98f4e4ea8186 Mon Sep 17 00:00:00 2001 From: ayysir Date: Fri, 13 Sep 2013 13:39:08 -0400 Subject: [PATCH 08/10] Enable USB otg storage support Requires use of an OTG Y cable to provide power to the external drive. Change-Id: I31adc77c3a5af61bb41d2264a7e715f2f6eab80e Signed-off-by: Evan Anderson --- device.mk | 3 ++- fstab.mako | 2 ++ init.mako.rc | 4 ++++ overlay/frameworks/base/core/res/res/xml/storage_list.xml | 5 +++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/device.mk b/device.mk index 1546e6d67..eec95d802 100644 --- a/device.mk +++ b/device.mk @@ -97,7 +97,8 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \ frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ - frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml + frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ + frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml # GPS configuration PRODUCT_COPY_FILES += \ diff --git a/fstab.mako b/fstab.mako index 3ae7c2a81..adad30692 100644 --- a/fstab.mako +++ b/fstab.mako @@ -18,3 +18,5 @@ /dev/block/platform/msm_sdcc.1/by-name/tz /tz emmc defaults defaults /dev/block/platform/msm_sdcc.1/by-name/rpm /rpm emmc defaults defaults /dev/block/platform/msm_sdcc.1/by-name/aboot /aboot emmc defaults defaults + +/devices/platform/msm_hsusb_host/usb2 /storage/usbdisk0 auto defaults voldmanaged=usbdisk:auto diff --git a/init.mako.rc b/init.mako.rc index 5187acf9b..09d92c3d4 100644 --- a/init.mako.rc +++ b/init.mako.rc @@ -23,6 +23,7 @@ on init # See storage config details at http://source.android.com/tech/storage/ mkdir /mnt/shell/emulated 0700 shell shell mkdir /storage/emulated 0555 root root + mkdir /storage/usbdisk0 0666 system system # Set permissions for persist partition mkdir /persist 0771 system system @@ -31,12 +32,15 @@ on init export EXTERNAL_STORAGE /storage/emulated/legacy export EMULATED_STORAGE_SOURCE /mnt/shell/emulated export EMULATED_STORAGE_TARGET /storage/emulated + export SECONDARY_STORAGE /storage/usbdisk0 # Support legacy paths symlink /storage/emulated/legacy /sdcard symlink /storage/emulated/legacy /mnt/sdcard symlink /storage/emulated/legacy /storage/sdcard0 symlink /mnt/shell/emulated/0 /storage/emulated/legacy + symlink /storage/usbdisk0 /usbdisk + symlink /storage/usbdisk0 /mnt/usbdisk # Setup custom emergency number list based on # the MCC. This is needed by RIL. diff --git a/overlay/frameworks/base/core/res/res/xml/storage_list.xml b/overlay/frameworks/base/core/res/res/xml/storage_list.xml index 53e41b770..a43d4f9e9 100644 --- a/overlay/frameworks/base/core/res/res/xml/storage_list.xml +++ b/overlay/frameworks/base/core/res/res/xml/storage_list.xml @@ -26,4 +26,9 @@ android:primary="true" android:emulated="true" android:mtpReserve="100" /> + From bb568754dcec748898b2c3381ca9f2e485203dc6 Mon Sep 17 00:00:00 2001 From: Lars Greiss Date: Wed, 11 Sep 2013 10:56:04 +0200 Subject: [PATCH 09/10] mako: do not use global cpp flag at least the result is the same but let us user the propper way like we do it with all flags and do not set if over a global cpp flag Change-Id: I1b7a229226af96cdfd294752823939a2cf870649 --- BoardConfig.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 994187fd7..f0473d2db 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -15,7 +15,7 @@ # TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp -TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp -DTARGET_MAKO_JWR66 +TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp TARGET_CPU_ABI := armeabi-v7a TARGET_CPU_ABI2 := armeabi TARGET_CPU_SMP := true @@ -36,6 +36,9 @@ TARGET_KRAIT_BIONIC_PLDSIZE := 64 TARGET_NO_BOOTLOADER := true TARGET_KERNEL_CONFIG := mako_defconfig +# Use JWR66Y kernel compatibility fix +TARGET_USE_JWR66Y := true + BOARD_KERNEL_BASE := 0x80200000 BOARD_KERNEL_PAGESIZE := 2048 BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=mako lpj=67677 From 38020d121f4634366c52ce264a514bc8e53d94fd Mon Sep 17 00:00:00 2001 From: fairct Date: Tue, 24 Sep 2013 12:53:21 -0400 Subject: [PATCH 10/10] Modified to add in the overlay pieces necessary to enable the battery charging led --- overlay/frameworks/base/core/res/res/values/config.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index fede7dd6c..7d0e5d09c 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -31,6 +31,12 @@ 9000 + + true + + + true + true