Add Pinebook kernel and modules

This commit is contained in:
Kamil Trzcinski 2017-02-02 14:45:18 +01:00
parent 61f0e1020d
commit d267f188dd
103 changed files with 6976 additions and 9 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.AppleDouble/
.DS_Store

View file

@ -8,7 +8,7 @@ ifeq ($(KERNEL_CFG_NAME),)
$(error cannot build kernel, config not specified)
endif
KERNEL_MODULES_TO_ROOT := nand.ko sunxi_tr.ko disp.ko hdmi.ko sw-device.ko gslX680new.ko
KERNEL_MODULES_TO_ROOT := sunxi_tr.ko disp.ko hdmi.ko sw-device.ko gslX680new.ko
KERNEL_TOOLCHAIN_ARCH := $(TARGET_KERNEL_ARCH)
KERNEL_EXTRA_FLAGS := ANDROID_TOOLCHAIN_FLAGS="-mno-android -Werror"

View file

@ -16,4 +16,5 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/tulip_chiphd.mk \
$(LOCAL_DIR)/tulip_chiphd_atv.mk
$(LOCAL_DIR)/tulip_chiphd_atv.mk \
$(LOCAL_DIR)/tulip_chiphd_pinebook.mk

View file

@ -61,8 +61,13 @@ ifeq ($(BOARD_WIFI_VENDOR), realtek)
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_rtl
WIFI_DRIVER_MODULE_PATH := "/system/vendor/modules/8723bs.ko"
WIFI_DRIVER_MODULE_NAME := "8723bs"
ifeq ($(TARGET_PRODUCT),tulip_chiphd_pinebook)
WIFI_DRIVER_MODULE_NAME := "8723cs"
else
WIFI_DRIVER_MODULE_NAME := "8723bs"
endif
WIFI_DRIVER_MODULE_PATH := "/system/vendor/modules/$(WIFI_DRIVER_MODULE_NAME).ko"
WIFI_DRIVER_MODULE_ARG := "ifname=wlan0 if2name=p2p0"
BOARD_USR_WIFI := rtl8723bs

View file

@ -49,7 +49,6 @@ DEVICE_PACKAGE_OVERLAYS += \
device/softwinner/tulip-chiphd/overlay
PRODUCT_COPY_FILES += \
device/softwinner/tulip-chiphd/fstab.sun50iw1p1:root/fstab.sun50iw1p1 \
device/softwinner/tulip-chiphd/init.sun50iw1p1.rc:root/init.sun50iw1p1.rc \
device/softwinner/tulip-chiphd/init.recovery.sun50iw1p1.rc:root/init.recovery.sun50iw1p1.rc \
device/softwinner/tulip-chiphd/ueventd.sun50iw1p1.rc:root/ueventd.sun50iw1p1.rc \
@ -110,7 +109,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
ro.spk_dul.used=false \
PRODUCT_PROPERTY_OVERRIDES += \
service.adb.tcp.port=5555 \
persist.ota.server.ip=ota.pine64.org
PRODUCT_PROPERTY_OVERRIDES += \

View file

@ -0,0 +1,13 @@
/dev/block/mmcblk0p1 /bootloader vfat rw,umask=0077 wait
/dev/block/mmcblk0p2 /system ext4 ro,barrier=1 wait
/dev/block/mmcblk0p3 /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check
/dev/block/mmcblk0p4 /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check
/devices/soc.0/1c10000.sdmmc/mmc_host/mmc* auto auto defaults voldmanaged=sdcard1:auto
/devices/soc.0/1c1a000.ehci0-controller/usb* auto auto defaults voldmanaged=usb:auto
/devices/soc.0/1c1b000.ehci1-controller/usb* auto auto defaults voldmanaged=usb:auto
/devices/soc.0/1c1a000.ohci0-controller/usb* auto auto defaults voldmanaged=usb:auto
/devices/soc.0/1c1b000.ohci1-controller/usb* auto auto defaults voldmanaged=usb:auto
/dev/block/zram0 none swap defaults zramsize=268435456
/devices/soc.0/1c0f000.sdmmc/mmc_host/mmc* auto auto defaults voldmanaged=sdcard0:auto

View file

@ -177,7 +177,8 @@ on charger
write /proc/sys/kernel/printk 0
write /sys/devices/system/cpu/cpu0/cpufreq/boot_lock 1
write /sys/devices/soc.0/cpu_budget_cool.16/roomage "0 4 0 0 1152000 4 0 0"
write /sys/devices/soc.0/cpu_budget_cool.16/roomage "0 0 0 0 1152000 4 0 0"
write /sys/devices/soc.0/cpu_budget_cool.17/roomage "0 0 0 0 1152000 4 0 0"
write /sys/class/devfreq/dramfreq/adaptive/pause 0
write /sys/devices/1c40000.gpu/dvfs/android 4
write /sys/kernel/autohotplug/enable 1
@ -185,11 +186,12 @@ on charger
on property:dev.bootcomplete=1
write /sys/devices/system/cpu/cpu0/cpufreq/boot_lock 1 # AFTER_BOOT
write /sys/devices/soc.0/cpu_budget_cool.16/roomage "0 4 0 0 1152000 4 0 0" # SCALE_UP_TO_4_CPUS
write /sys/devices/soc.0/cpu_budget_cool.16/roomage "0 0 0 0 1152000 4 0 0" # SCALE_UP_TO_4_CPUS
write /sys/devices/soc.0/cpu_budget_cool.17/roomage "0 0 0 0 1152000 4 0 0" # SCALE_UP_TO_4_CPUS
write /sys/class/devfreq/dramfreq/adaptive/pause 1 # DISABLE_DRAM_CHANGE
write /sys/devices/1c40000.gpu/dvfs/android 4 # GPU_NORMAL
write /sys/kernel/autohotplug/enable 1 # AUTO DISCONNECT
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive # INTERACTIVE
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave # INTERACTIVE
ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL), 1)
service optee /system/bin/tee_supplicant

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -13,6 +13,9 @@ PRODUCT_PACKAGES += \
VideoPlayer \
Bluetooth
PRODUCT_COPY_FILES += \
device/softwinner/tulip-chiphd/fstab.sun50iw1p1:root/fstab.sun50iw1p1
PRODUCT_COPY_FILES += \
device/softwinner/common/config/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml
@ -33,6 +36,9 @@ PRODUCT_PROPERTY_OVERRIDES += \
PRODUCT_PROPERTY_OVERRIDES += \
ro.hdmi.device_type=4
PRODUCT_PROPERTY_OVERRIDES += \
service.adb.tcp.port=5555
PRODUCT_CHARACTERISTICS := tablet
PRODUCT_AAPT_CONFIG := mdpi large xlarge

Some files were not shown because too many files have changed in this diff Show more