forked from android-rpi/device_arpi_rpi4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aosp_arpi11.patch
106 lines (93 loc) · 3.56 KB
/
aosp_arpi11.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
project device/arpi/rpi4/
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 648481f..cc16165 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -34,7 +34,7 @@ TARGET_BOARD_PLATFORM := bcm2711
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
TARGET_USERIMAGES_USE_EXT4 := true
-BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824 # 1024M
+BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648 # 2048M
BOARD_USERDATAIMAGE_PARTITION_SIZE := 134217728 # 128M
TARGET_COPY_OUT_VENDOR := vendor
project hardware/interfaces/
diff --git a/audio/common/all-versions/default/service/Android.bp b/audio/common/all-versions/default/service/Android.bp
index 3e8b71570..27e647058 100644
--- a/audio/common/all-versions/default/service/Android.bp
+++ b/audio/common/all-versions/default/service/Android.bp
@@ -8,7 +8,7 @@ cc_binary {
// location for init to start it and the build system does not support
// having two binaries installable to the same location even if they are
// not installed in the same build.
- compile_multilib: "32",
+ // compile_multilib: "32",
srcs: ["service.cpp"],
cflags: [
diff --git a/bluetooth/1.0/default/vendor_interface.cc b/bluetooth/1.0/default/vendor_interface.cc
index d809313db..bf348dd44 100644
--- a/bluetooth/1.0/default/vendor_interface.cc
+++ b/bluetooth/1.0/default/vendor_interface.cc
@@ -343,7 +343,8 @@ void VendorInterface::OnFirmwareConfigured(uint8_t result) {
lib_interface_->op(BT_VND_OP_GET_LPM_IDLE_TIMEOUT, &lpm_timeout_ms);
ALOGI("%s: lpm_timeout_ms %d", __func__, lpm_timeout_ms);
- bt_vendor_lpm_mode_t mode = BT_VND_LPM_ENABLE;
+ // bt_vendor_lpm_mode_t mode = BT_VND_LPM_ENABLE;
+ bt_vendor_lpm_mode_t mode = BT_VND_LPM_DISABLE;
lib_interface_->op(BT_VND_OP_LPM_SET_MODE, &mode);
ALOGD("%s Calling StartLowPowerWatchdog()", __func__);
diff --git a/camera/provider/2.5/default/Android.bp b/camera/provider/2.5/default/Android.bp
index 9ddf65144..27bf32b43 100644
--- a/camera/provider/2.5/default/Android.bp
+++ b/camera/provider/2.5/default/Android.bp
@@ -154,7 +154,6 @@ cc_binary {
proprietary: true,
relative_install_path: "hw",
srcs: ["external-service.cpp"],
- compile_multilib: "32",
init_rc: ["[email protected]"],
shared_libs: [
project platform_testing/
diff --git a/build/tasks/tests/native_test_list.mk b/build/tasks/tests/native_test_list.mk
index b1565ecfd..b73ab0ac5 100644
--- a/build/tasks/tests/native_test_list.mk
+++ b/build/tasks/tests/native_test_list.mk
@@ -110,7 +110,6 @@ native_tests := \
prioritydumper_test \
puffin_unittest \
recovery_unit_test \
- resolv_gold_test \
resolv_integration_test \
resolv_unit_test \
scrape_mmap_addr \
project system/bt/
diff --git a/hci/src/hci_layer.cc b/hci/src/hci_layer.cc
index 976d91d56..dad1bc73e 100644
--- a/hci/src/hci_layer.cc
+++ b/hci/src/hci_layer.cc
@@ -375,6 +375,18 @@ static void event_finish_startup(UNUSED_ATTR void* context) {
startup_future = NULL;
}
+#include <fcntl.h>
+#include <sys/ioctl.h>
+static void hw_reset(bool reset) {
+ unsigned buf[8] = { 8 * 4, 0, 0x38041, 8, 8, 128, 0, 0};
+ buf[6] = reset ? 0 : 1;
+ int fd = open("/dev/vcio", 0);
+ if (fd >= 0) {
+ ioctl(fd, _IOWR(100, 0, char *), buf);
+ close(fd);
+ }
+}
+
static void startup_timer_expired(UNUSED_ATTR void* context) {
LOG_ERROR(LOG_TAG, "%s", __func__);
@@ -386,6 +398,10 @@ static void startup_timer_expired(UNUSED_ATTR void* context) {
return;
}
+ hw_reset(true);
+ sleep(2);
+ hw_reset(false);
+
abort();
}