Skip to content

Commit e3684a0

Browse files
author
Jianhui Wang
committed
bringup rk3368 android qt
Change-Id: Ie2bc237a75c9ddecc8b8a39a32144a22b5978eba Signed-off-by: Jianhui Wang <[email protected]>
1 parent 4697a90 commit e3684a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+587
-825
lines changed

AndroidProducts.mk

100755100644
+5-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
#
1616

1717
PRODUCT_MAKEFILES := \
18-
$(LOCAL_DIR)/rk3368.mk \
19-
$(LOCAL_DIR)/rk3368_box.mk \
18+
$(LOCAL_DIR)/rk3368_Android10/rk3368_Android10.mk \
19+
20+
COMMON_LUNCH_CHOICES := \
21+
rk3368_Android10-userdebug \
22+
rk3368_Android10-user \

BoardConfig.mk

100755100644
+13-4
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616

1717
# Use the non-open-source parts, if they're present
1818
-include vendor/rockchip/rk3368/BoardConfigVendor.mk
19-
-include device/rockchip/common/BoardConfig.mk
2019

21-
CURRENT_SDK_VERSION := RK3368_ANDROID9.0_MID_V1.0
20+
CURRENT_SDK_VERSION := RK3368_ANDROID10.0_MID_V1.0
2221

2322
TARGET_ARCH := arm64
2423
TARGET_ARCH_VARIANT := armv8-a
@@ -34,9 +33,13 @@ TARGET_2ND_CPU_ABI2 := armeabi
3433
TARGET_2ND_CPU_VARIANT := cortex-a7
3534

3635
TARGET_PREBUILT_KERNEL := kernel/arch/arm64/boot/Image
37-
PRODUCT_PACKAGE_OVERLAYS += device/rockchip/rk3368/overlay
36+
BOARD_PREBUILT_DTBIMAGE_DIR := kernel/arch/arm64/boot/dts/rockchip
37+
PRODUCT_KERNEL_DTS ?= rk3368-xikp-avb.dts
38+
PRODUCT_KERNEL_CONFIG ?= rockchip_defconfig
3839

39-
BOARD_AVB_ENABLE := true
40+
SF_PRIMARY_DISPLAY_ORIENTATION := 0
41+
42+
BOARD_AVB_ENABLE := false
4043

4144

4245
# Disable emulator for "make dist" until there is a 64-bit qemu kernel
@@ -120,3 +123,9 @@ BOARD_SUPPORT_VP6 := false
120123

121124
#for camera autofocus support
122125
CAMERA_SUPPORT_AUTOFOCUS=false
126+
127+
ifeq ($(strip $(BOARD_USES_AB_IMAGE)), true)
128+
DEVICE_MANIFEST_FILE := device/rockchip/rk3368/manifest_ab.xml
129+
else
130+
DEVICE_MANIFEST_FILE := device/rockchip/rk3368/manifest.xml
131+
endif

buildspec.mk

100755100644
-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ TARGET_BOARD_PLATFORM_GPU ?= G6110
2929
ifndef TARGET_PRODUCT
3030
TARGET_PRODUCT:=rk3368
3131
endif
32-
ifndef TARGET_DEVICE
33-
TARGET_DEVICE:=rk3368
34-
endif
3532

3633
# Choose a variant to build. If you don't pick one, the default is eng.
3734
# User is what we ship. Userdebug is that, with a few flags turned on

buildspec_box.mk

100755100644
File mode changed.

device.mk

100755100644
+11-2
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ ifeq ($(HOST_OS),linux)
3333
TARGET_USERIMAGES_USE_F2FS := true
3434
endif
3535

36+
PRODUCT_COPY_FILES += \
37+
$(LOCAL_PATH)/init.recovery.rk30board.rc:recovery/root/init.recovery.rk30board.rc \
38+
vendor/rockchip/common/bin/$(TARGET_ARCH)/busybox:recovery/root/sbin/busybox \
39+
3640
PRODUCT_COPY_FILES += \
3741
$(LOCAL_PATH)/init.rk3368.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.rk3368.rc \
38-
$(LOCAL_PATH)/init.rk30board.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.rk30board.usb.rc \
42+
$(LOCAL_PATH)/init.rk3368.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.rk3368.usb.rc \
3943
$(LOCAL_PATH)/wake_lock_filter.xml:system/etc/wake_lock_filter.xml \
40-
device/rockchip/rk3368/package_performance.xml:$(TARGET_COPY_OUT_OEM)/etc/package_performance.xml \
44+
device/rockchip/rk3368/package_performance.xml:$(TARGET_COPY_OUT_ODM)/etc/package_performance.xml \
4145
device/rockchip/$(TARGET_BOARD_PLATFORM)/media_profiles_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
4246

4347
# setup dalvik vm configs.
@@ -57,6 +61,11 @@ PRODUCT_PROPERTY_OVERRIDES += ro.tee.storage=rkss
5761

5862
endif
5963

64+
PRODUCT_PACKAGES += \
65+
66+
67+
memtrack.$(TARGET_BOARD_PLATFORM)
68+
6069
#
6170
#add Rockchip properties here
6271
#

dtbo.img

100755100644
File mode changed.

external_camera_config.xml

100755100644
File mode changed.

fstab.rk30board

100755100644
File mode changed.

init.recovery.rk30board.rc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on early-fs
2+
setprop sys.usb.controller "ff580000.usb"
3+
setprop sys.usb.configfs 1
4+
5+
on fs && property:sys.usb.configfs=1
6+
write /config/usb_gadget/g1/bcdDevice 0x0310
7+
write /config/usb_gadget/g1/bcdUSB 0x0200
8+
write /config/usb_gadget/g1/os_desc/b_vendor_code 0x1
9+
write /config/usb_gadget/g1/os_desc/qw_sign "MSFT100"
10+
write /config/usb_gadget/g1/configs/b.1/MaxPower 500
11+
symlink /config/usb_gadget/g1/configs/b.1 /config/usb_gadget/g1/os_desc/b.1
12+
13+
# Always start console on userdebug and eng builds
14+
on fs && property:ro.debuggable=1
15+
start console
16+
17+
service console /system/bin/sh
18+
console
19+
disabled
20+
seclabel u:r:shell:s0

init.rk30board.usb.rc

-79
This file was deleted.

init.rk3368.rc

100755100644
+5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
on property:sys.boot_completed=1
22
chown system system /sys/class/devfreq/ffa30000.rogue-g6110/governor
3+
chmod 0664 /sys/class/devfreq/ffa30000.rogue-g6110/governor
34
chown system system /sys/class/devfreq/ffa30000.rogue-g6110/min_freq
5+
chmod 0664 /sys/class/devfreq/ffa30000.rogue-g6110/min_freq
46
chown system system /sys/class/devfreq/ffa30000.rogue-g6110/max_freq
7+
chmod 0664 /sys/class/devfreq/ffa30000.rogue-g6110/max_freq
8+
chown root system /sys/class/devfreq/dmc/governor
9+
chmod 0664 /sys/class/devfreq/dmc/governor
510

611
on early-boot
712
# Update dm-verity state and set partition.*.verified properties

init.rk3368.usb.rc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
on boot
2+
setprop sys.usb.controller "ff580000.usb"

0 commit comments

Comments
 (0)