Skip to content

Instantly share code, notes, and snippets.

@luftreich
Created November 8, 2014 03:09
Show Gist options
  • Save luftreich/95819e69b90fc2a007a7 to your computer and use it in GitHub Desktop.
Save luftreich/95819e69b90fc2a007a7 to your computer and use it in GitHub Desktop.
s805 rtl8189es -> ap6210
diff --git a/device/amlogic/m201_8189_1G/Kernel.mk b/device/amlogic/m201_8189_1G/Kernel.mk
index 6f5159b..e4ce7be 100755
--- a/device/amlogic/m201_8189_1G/Kernel.mk
+++ b/device/amlogic/m201_8189_1G/Kernel.mk
@@ -30,8 +30,8 @@ mkdir -p $(TARGET_OUT)/lib
#cp $(UMP_OUT)/ump.ko $(PRODUCT_OUT)/root/boot/
cp $(MALI_OUT)/mali.ko $(PRODUCT_OUT)/root/boot/
-#cp $(WIFI_OUT)/broadcom/drivers/ap6xxx/broadcm_40181/dhd.ko $(TARGET_OUT)/lib/
-cp $(WIFI_OUT)/realtek/drivers/8189es/rtl8189ES/8189es.ko $(TARGET_OUT)/lib/
+cp $(WIFI_OUT)/broadcom/drivers/ap6xxx/broadcm_40181/dhd.ko $(TARGET_OUT)/lib/
+#cp $(WIFI_OUT)/realtek/drivers/8189es/rtl8189ES/8189es.ko $(TARGET_OUT)/lib/
cp $(KERNET_ROOTDIR)/arch/arm/boot/dts/amlogic/$(KERNEL_DEVICETREE).dtd $(PRODUCT_OUT)/meson_target.dtd
cp $(KERNEL_OUT)/arch/arm/boot/meson.dtd $(PRODUCT_OUT)/meson.dtd
cp $(KERNEL_OUT)/arch/arm/boot/dts/amlogic/$(KERNEL_DEVICETREE).dtb $(PRODUCT_OUT)/meson.dtb
diff --git a/device/amlogic/m201_8189_1G/m201_8189_1G.mk b/device/amlogic/m201_8189_1G/m201_8189_1G.mk
index 2f82f88..a788ffa 100755
--- a/device/amlogic/m201_8189_1G/m201_8189_1G.mk
+++ b/device/amlogic/m201_8189_1G/m201_8189_1G.mk
@@ -96,8 +96,10 @@ BOARD_USES_USB_PM := true
#
#########################################################################
-WIFI_MODULE := rtl8189es
-#WIFI_AP6xxx_MODULE := AP6210
+#szmhere
+WIFI_MODULE := bcm40181
+WIFI_AP6xxx_MODULE := AP6210
+#szmhere
include device/amlogic/common/wifi.mk
# Change this to match target country
@@ -115,13 +117,13 @@ endif
#
#########################################################################
-BOARD_HAVE_BLUETOOTH := false
-#BLUETOOTH_MODULE := AP6210
+BOARD_HAVE_BLUETOOTH := true
+BLUETOOTH_MODULE := AP6210
-#include device/amlogic/common/bluetooth.mk
+include device/amlogic/common/bluetooth.mk
-#PRODUCT_COPY_FILES += \
-# frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml
+PRODUCT_COPY_FILES += \
+ frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml
#########################################################################
#
@@ -339,8 +341,7 @@ PRODUCT_COPY_FILES += \
# bootanimation and bootvideo
PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/bootanimation.zip:system/media/bootanimation.zip \
- $(LOCAL_PATH)/mbox.mp4:system/etc/bootvideo
+ $(LOCAL_PATH)/Intro_720p_29f.mp4:system/etc/bootvideo
# inherit from the non-open-source side, if present
$(call inherit-product-if-exists, vendor/amlogic/m201_8189_1G/device-vendor.mk)
diff --git a/device/amlogic/m201_8189_1G/system.prop b/device/amlogic/m201_8189_1G/system.prop
index ff8be15..e98b923 100755
--- a/device/amlogic/m201_8189_1G/system.prop
+++ b/device/amlogic/m201_8189_1G/system.prop
@@ -225,7 +225,7 @@ ro.osd2.size=64x64
ro.alarm.align=true
#add for video boot, 1 means use video boot, others not .
-service.bootvideo=0
+service.bootvideo=1
#new feature 81297
ro.permissions.settings=true
@@ -242,3 +242,6 @@ config.enable_quickboot=true
#has spdif output
ro.hdmi.spdif=true
+#support for OTAUpdate
+ro.product.firmware=00441001
+ro.product.otaupdateurl=http://192.168.1.20:8080/otaupdate/update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment