duos: support bluetooth
This commit is contained in:
@ -35,6 +35,10 @@
|
|||||||
max-frequency = <100000000>;
|
max-frequency = <100000000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&uart4 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -495,3 +495,35 @@ CONFIG_EPOLL=n
|
|||||||
CONFIG_ELF_CORE=y
|
CONFIG_ELF_CORE=y
|
||||||
CONFIG_COREDUMP=y
|
CONFIG_COREDUMP=y
|
||||||
CONFIG_PROC_SYSCTL=y
|
CONFIG_PROC_SYSCTL=y
|
||||||
|
|
||||||
|
CONFIG_BT=y
|
||||||
|
CONFIG_BT_BREDR=y
|
||||||
|
CONFIG_BT_RFCOMM=y
|
||||||
|
CONFIG_BT_RFCOMM_TTY=y
|
||||||
|
CONFIG_BT_BNEP=y
|
||||||
|
CONFIG_BT_BNEP_MC_FILTER=y
|
||||||
|
CONFIG_BT_BNEP_PROTO_FILTER=y
|
||||||
|
CONFIG_BT_HIDP=y
|
||||||
|
CONFIG_BT_HS=y
|
||||||
|
CONFIG_BT_LE=y
|
||||||
|
# CONFIG_BT_MSFTEXT is not set
|
||||||
|
CONFIG_BT_DEBUGFS=y
|
||||||
|
# CONFIG_BT_SELFTEST is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bluetooth device drivers
|
||||||
|
#
|
||||||
|
# CONFIG_BT_HCIBTUSB is not set
|
||||||
|
# CONFIG_BT_HCIBTSDIO is not set
|
||||||
|
CONFIG_BT_HCIUART=y
|
||||||
|
CONFIG_BT_HCIUART_H4=y
|
||||||
|
# CONFIG_BT_HCIUART_BCSP is not set
|
||||||
|
# CONFIG_BT_HCIUART_ATH3K is not set
|
||||||
|
# CONFIG_BT_HCIUART_INTEL is not set
|
||||||
|
# CONFIG_BT_HCIUART_AG6XX is not set
|
||||||
|
# CONFIG_BT_HCIBCM203X is not set
|
||||||
|
# CONFIG_BT_HCIBPA10X is not set
|
||||||
|
# CONFIG_BT_HCIBFUSB is not set
|
||||||
|
# CONFIG_BT_HCIVHCI is not set
|
||||||
|
# CONFIG_BT_MRVL is not set
|
||||||
|
# CONFIG_BT_MTKSDIO is not set
|
||||||
|
|||||||
@ -19,6 +19,10 @@ int cvi_board_init(void)
|
|||||||
|
|
||||||
// WIFI/BT
|
// WIFI/BT
|
||||||
PINMUX_CONFIG(CLK32K, PWR_GPIO_10);
|
PINMUX_CONFIG(CLK32K, PWR_GPIO_10);
|
||||||
|
PINMUX_CONFIG(UART2_RX, UART4_RX);
|
||||||
|
PINMUX_CONFIG(UART2_TX, UART4_TX);
|
||||||
|
PINMUX_CONFIG(UART2_CTS, UART4_CTS);
|
||||||
|
PINMUX_CONFIG(UART2_RTS, UART4_RTS);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,6 +35,10 @@
|
|||||||
max-frequency = <100000000>;
|
max-frequency = <100000000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&uart4 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -495,3 +495,35 @@ CONFIG_EPOLL=n
|
|||||||
CONFIG_ELF_CORE=y
|
CONFIG_ELF_CORE=y
|
||||||
CONFIG_COREDUMP=y
|
CONFIG_COREDUMP=y
|
||||||
CONFIG_PROC_SYSCTL=y
|
CONFIG_PROC_SYSCTL=y
|
||||||
|
|
||||||
|
CONFIG_BT=y
|
||||||
|
CONFIG_BT_BREDR=y
|
||||||
|
CONFIG_BT_RFCOMM=y
|
||||||
|
CONFIG_BT_RFCOMM_TTY=y
|
||||||
|
CONFIG_BT_BNEP=y
|
||||||
|
CONFIG_BT_BNEP_MC_FILTER=y
|
||||||
|
CONFIG_BT_BNEP_PROTO_FILTER=y
|
||||||
|
CONFIG_BT_HIDP=y
|
||||||
|
CONFIG_BT_HS=y
|
||||||
|
CONFIG_BT_LE=y
|
||||||
|
# CONFIG_BT_MSFTEXT is not set
|
||||||
|
CONFIG_BT_DEBUGFS=y
|
||||||
|
# CONFIG_BT_SELFTEST is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bluetooth device drivers
|
||||||
|
#
|
||||||
|
# CONFIG_BT_HCIBTUSB is not set
|
||||||
|
# CONFIG_BT_HCIBTSDIO is not set
|
||||||
|
CONFIG_BT_HCIUART=y
|
||||||
|
CONFIG_BT_HCIUART_H4=y
|
||||||
|
# CONFIG_BT_HCIUART_BCSP is not set
|
||||||
|
# CONFIG_BT_HCIUART_ATH3K is not set
|
||||||
|
# CONFIG_BT_HCIUART_INTEL is not set
|
||||||
|
# CONFIG_BT_HCIUART_AG6XX is not set
|
||||||
|
# CONFIG_BT_HCIBCM203X is not set
|
||||||
|
# CONFIG_BT_HCIBPA10X is not set
|
||||||
|
# CONFIG_BT_HCIBFUSB is not set
|
||||||
|
# CONFIG_BT_HCIVHCI is not set
|
||||||
|
# CONFIG_BT_MRVL is not set
|
||||||
|
# CONFIG_BT_MTKSDIO is not set
|
||||||
|
|||||||
@ -19,6 +19,10 @@ int cvi_board_init(void)
|
|||||||
|
|
||||||
// WIFI/BT
|
// WIFI/BT
|
||||||
PINMUX_CONFIG(CLK32K, PWR_GPIO_10);
|
PINMUX_CONFIG(CLK32K, PWR_GPIO_10);
|
||||||
|
PINMUX_CONFIG(UART2_RX, UART4_RX);
|
||||||
|
PINMUX_CONFIG(UART2_TX, UART4_TX);
|
||||||
|
PINMUX_CONFIG(UART2_CTS, UART4_CTS);
|
||||||
|
PINMUX_CONFIG(UART2_RTS, UART4_RTS);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -59,7 +59,7 @@ BR2_BZCAT="bzcat"
|
|||||||
BR2_XZCAT="xzcat"
|
BR2_XZCAT="xzcat"
|
||||||
BR2_LZCAT="lzip -d -c"
|
BR2_LZCAT="lzip -d -c"
|
||||||
BR2_TAR_OPTIONS=""
|
BR2_TAR_OPTIONS=""
|
||||||
BR2_DEFCONFIG="./configs/milkv-duos_musl_riscv64_defconfig"
|
BR2_DEFCONFIG="./configs/milkv-duos-emmc_musl_riscv64_defconfig"
|
||||||
BR2_DL_DIR="$(TOPDIR)/dl"
|
BR2_DL_DIR="$(TOPDIR)/dl"
|
||||||
BR2_HOST_DIR="$(BASE_DIR)/host"
|
BR2_HOST_DIR="$(BASE_DIR)/host"
|
||||||
|
|
||||||
@ -470,3 +470,17 @@ BR2_PACKAGE_IPERF3=y
|
|||||||
BR2_PACKAGE_NTP=y
|
BR2_PACKAGE_NTP=y
|
||||||
BR2_PACKAGE_NTP_NTPDATE=y
|
BR2_PACKAGE_NTP_NTPDATE=y
|
||||||
BR2_PACKAGE_NTP_NTPTIME=y
|
BR2_PACKAGE_NTP_NTPTIME=y
|
||||||
|
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_OBEX=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HEALTH=y
|
||||||
|
# BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_MESH is not set
|
||||||
|
# BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_MIDI is not set
|
||||||
|
# BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_NFC is not set
|
||||||
|
# BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_SAP is not set
|
||||||
|
# BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_SIXAXIS is not set
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_TEST=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_TOOLS_HID2HCI=y
|
||||||
|
|||||||
@ -470,3 +470,17 @@ BR2_PACKAGE_IPERF3=y
|
|||||||
BR2_PACKAGE_NTP=y
|
BR2_PACKAGE_NTP=y
|
||||||
BR2_PACKAGE_NTP_NTPDATE=y
|
BR2_PACKAGE_NTP_NTPDATE=y
|
||||||
BR2_PACKAGE_NTP_NTPTIME=y
|
BR2_PACKAGE_NTP_NTPTIME=y
|
||||||
|
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_OBEX=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HEALTH=y
|
||||||
|
# BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_MESH is not set
|
||||||
|
# BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_MIDI is not set
|
||||||
|
# BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_NFC is not set
|
||||||
|
# BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_SAP is not set
|
||||||
|
# BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_SIXAXIS is not set
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_TEST=y
|
||||||
|
BR2_PACKAGE_BLUEZ5_UTILS_TOOLS_HID2HCI=y
|
||||||
|
|||||||
0
buildroot-2021.05/dl/bluez5_utils/.lock
Normal file
0
buildroot-2021.05/dl/bluez5_utils/.lock
Normal file
BIN
buildroot-2021.05/dl/bluez5_utils/bluez-5.58.tar.xz
Normal file
BIN
buildroot-2021.05/dl/bluez5_utils/bluez-5.58.tar.xz
Normal file
Binary file not shown.
0
buildroot-2021.05/dl/dbus/.lock
Normal file
0
buildroot-2021.05/dl/dbus/.lock
Normal file
BIN
buildroot-2021.05/dl/dbus/dbus-1.12.20.tar.gz
Normal file
BIN
buildroot-2021.05/dl/dbus/dbus-1.12.20.tar.gz
Normal file
Binary file not shown.
0
buildroot-2021.05/dl/libglib2/.lock
Normal file
0
buildroot-2021.05/dl/libglib2/.lock
Normal file
BIN
buildroot-2021.05/dl/libglib2/glib-2.66.8.tar.xz
Normal file
BIN
buildroot-2021.05/dl/libglib2/glib-2.66.8.tar.xz
Normal file
Binary file not shown.
0
buildroot-2021.05/dl/libical/.lock
Normal file
0
buildroot-2021.05/dl/libical/.lock
Normal file
BIN
buildroot-2021.05/dl/libical/libical-1.0.1.tar.gz
Normal file
BIN
buildroot-2021.05/dl/libical/libical-1.0.1.tar.gz
Normal file
Binary file not shown.
0
buildroot-2021.05/dl/meson/.lock
Normal file
0
buildroot-2021.05/dl/meson/.lock
Normal file
BIN
buildroot-2021.05/dl/meson/meson-0.57.2.tar.gz
Normal file
BIN
buildroot-2021.05/dl/meson/meson-0.57.2.tar.gz
Normal file
Binary file not shown.
0
buildroot-2021.05/dl/ninja/.lock
Normal file
0
buildroot-2021.05/dl/ninja/.lock
Normal file
BIN
buildroot-2021.05/dl/ninja/ninja-1.10.2.tar.gz
Normal file
BIN
buildroot-2021.05/dl/ninja/ninja-1.10.2.tar.gz
Normal file
Binary file not shown.
0
buildroot-2021.05/dl/pcre/.lock
Normal file
0
buildroot-2021.05/dl/pcre/.lock
Normal file
BIN
buildroot-2021.05/dl/pcre/pcre-8.44.tar.bz2
Normal file
BIN
buildroot-2021.05/dl/pcre/pcre-8.44.tar.bz2
Normal file
Binary file not shown.
0
buildroot-2021.05/dl/tzdata/.lock
Normal file
0
buildroot-2021.05/dl/tzdata/.lock
Normal file
BIN
buildroot-2021.05/dl/tzdata/tzdata2021a.tar.gz
Normal file
BIN
buildroot-2021.05/dl/tzdata/tzdata2021a.tar.gz
Normal file
Binary file not shown.
0
buildroot-2021.05/dl/zic/.lock
Normal file
0
buildroot-2021.05/dl/zic/.lock
Normal file
BIN
buildroot-2021.05/dl/zic/tzcode2020f.tar.gz
Normal file
BIN
buildroot-2021.05/dl/zic/tzcode2020f.tar.gz
Normal file
Binary file not shown.
@ -21,6 +21,11 @@ function set_gpio()
|
|||||||
wifi_power=495
|
wifi_power=495
|
||||||
set_gpio ${wifi_power} 1
|
set_gpio ${wifi_power} 1
|
||||||
|
|
||||||
|
# Host Wake BT
|
||||||
|
host_wake_bt=362
|
||||||
|
set_gpio ${host_wake_bt} 1
|
||||||
|
|
||||||
|
# WIFI/BT Module
|
||||||
insmod /mnt/system/ko/aic8800_bsp.ko
|
insmod /mnt/system/ko/aic8800_bsp.ko
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
insmod /mnt/system/ko/aic8800_fdrv.ko
|
insmod /mnt/system/ko/aic8800_fdrv.ko
|
||||||
|
|||||||
Reference in New Issue
Block a user