Skip to content

Instantly share code, notes, and snippets.

@steven676
steven676 / 0002-Allow-targets-to-reenable-support-for-non-PIE-execut.patch
Created August 28, 2015 02:32
[PATCH 2/2] Allow targets to reenable support for non-PIE executables
From 989a14bfb86608aba038b6786a3ab312bd7aeb6e Mon Sep 17 00:00:00 2001
From: Steven Luo <steven+android@steven676.net>
Date: Sat, 15 Nov 2014 17:58:48 -0800
Subject: [PATCH 2/2] Allow targets to reenable support for non-PIE
executables
Many legacy devices have non-PIE binary blob executables which are never
going to be updated by the manufacturer; allow the dynamic linker to
load these executables so that they can work.
@steven676
steven676 / 0001-linker-restore-support-for-skipping-local-scope-in-s.patch
Last active August 28, 2015 02:32
[PATCH 1/2] linker: restore support for skipping local scope in soinfo_do_lookup()
From 630d1e737429f7eb436e5378ed41cd1a2155dce2 Mon Sep 17 00:00:00 2001
From: Steven Luo <steven+android@steven676.net>
Date: Tue, 21 Jul 2015 21:59:36 -0700
Subject: [PATCH 1/2] linker: restore support for skipping local scope in
soinfo_do_lookup()
---
linker/linker.cpp | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
--- .config.old 2014-02-19 15:31:52.000000000 -0800
+++ .config 2014-02-19 15:53:52.000000000 -0800
@@ -52 +52 @@
-# CONFIG_BSD_PROCESS_ACCT_V3 is not set
+CONFIG_BSD_PROCESS_ACCT_V3=y
@@ -80 +80 @@
-CONFIG_CGROUP_DEBUG=y
+# CONFIG_CGROUP_DEBUG is not set
@@ -82,2 +82,3 @@
-# CONFIG_CGROUP_DEVICE is not set
@steven676
steven676 / encore-overclocking-changes.patch
Created April 6, 2014 08:39
[PATCH] encore: overclocking changes
From 505a92254fa541251e2783e0cbc9334cdb9c9572 Mon Sep 17 00:00:00 2001
From: Steven Luo <steven@steven676.net>
Date: Sun, 6 Apr 2014 01:25:07 -0700
Subject: [PATCH] encore: overclocking changes
encore: clean up overclocking config #ifdefs
* Ensure upstream defaults are used when building for non-encore boards
* Don't make DSP OPP4 available on encore with stock clocks
@steven676
steven676 / 0001-Allow-targets-to-choose-to-build-traditional-file-ba.patch
Created May 9, 2015 07:45
[PATCH] Allow targets to choose to build traditional file-based OTAs
From 6cf8a578c2448e46d6c2dcdf0c4c9b58ca0c9040 Mon Sep 17 00:00:00 2001
From: Steven Luo <steven+android@steven676.net>
Date: Sun, 16 Nov 2014 04:02:49 -0800
Subject: [PATCH] Allow targets to choose to build traditional file-based OTAs
---
core/Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/core/Makefile b/core/Makefile
@steven676
steven676 / gist:31d9be3681c25d9d47b7
Last active August 29, 2015 14:21
Try to start pvrsrvinit earlier than SurfaceFlinger
--- a/init.encore.rc 2015-05-17 20:00:45.000000000 -0700
+++ b/init.encore.rc 2015-05-17 18:48:53.000000000 -0700
@@ -210,6 +210,9 @@ on post-fs-data
chown system system /sys/devices/platform/omapdss/display3/timings
chown system system /sys/devices/platform/omapdss/display2/code
+on early-boot
+ start pvrsrvinit
+
on boot
--- keyodi-ti-omap-encore-kernel3-63d6ff0/arch/arm/mach-omap2/board-encore.c 2012-05-30 16:52:45.000000000 -0700
+++ keyodi-ti-omap-encore-kernel3-63d6ff0-1/arch/arm/mach-omap2/board-encore.c 2012-05-31 02:49:59.000000000 -0700
@@ -161,8 +161,7 @@ static void config_wlan_mux(void)
static struct wl12xx_platform_data zoom3_wlan_data __initdata = {
.irq = OMAP_GPIO_IRQ(ZOOM3_WIFI_IRQ_GPIO),
- .board_ref_clock = WL12XX_REFCLOCK_26,
- .board_tcxo_clock = WL12XX_TCXOCLOCK_26,
+ .board_ref_clock = WL12XX_REFCLOCK_38,
};
@steven676
steven676 / disable-cpuidle-below-c1.patch
Created June 3, 2012 09:40
disable CPU idle states below C1
diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c
index da13f2d..6d6603e 100644
--- a/arch/arm/mach-omap2/cpuidle34xx.c
+++ b/arch/arm/mach-omap2/cpuidle34xx.c
@@ -47,6 +47,7 @@
static struct cpuidle_params cpuidle_params_table[] = {
/* C1 */
{2 + 2, 5, 1},
+#if 0
/* C2 */
@steven676
steven676 / gist:2865154
Created June 3, 2012 21:53
diff between defconfig and my .config
--- arch/arm/configs/encore_defconfig 2012-06-01 02:32:44.000000000 -0700
+++ .config 2012-06-03 05:37:56.000000000 -0700
@@ -34 +34 @@
-CONFIG_SCHED_BFS=y
+# CONFIG_SCHED_BFS is not set
@@ -36 +36 @@
-# CONFIG_BROKEN_ON_SMP is not set
+CONFIG_BROKEN_ON_SMP=y
@@ -70,2 +70,2 @@
-CONFIG_TREE_PREEMPT_RCU=y
@steven676
steven676 / changes-from-2.6.32.diff
Created June 4, 2012 11:06
bring some stuff from 2.6.32 over to 3.0
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
index 0c22aad..7f86af3 100644
--- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
@@ -541,9 +541,16 @@ static struct omap_hwmod omap3xxx_l4_per_hwmod = {
.flags = HWMOD_NO_IDLEST,
};
+static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__gpio1;
+static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__timer1;