add e_player lib remove wifi log
This commit is contained in:
parent
4c2ae49097
commit
988afb1801
@ -46,12 +46,17 @@ extern int aicwf_dbg_level_bsp;
|
|||||||
|
|
||||||
#define AICWF_LOG "AICWFDBG("
|
#define AICWF_LOG "AICWFDBG("
|
||||||
|
|
||||||
#define AICWFDBG(level, args, arg...) \
|
//#define AICWFDBG(level, args, arg...) \
|
||||||
do { \
|
do { \
|
||||||
if (aicwf_dbg_level_bsp & level) { \
|
if (aicwf_dbg_level_bsp & level) { \
|
||||||
printk(AICWF_LOG#level")\t" args, ##arg); \
|
printk(AICWF_LOG#level")\t" args, ##arg); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
#define AICWFDBG(level, args, arg...) \
|
||||||
|
do { \
|
||||||
|
if (aicwf_dbg_level_bsp & level) { \
|
||||||
|
} \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
#define RWNX_DBG(fmt, ...) \
|
#define RWNX_DBG(fmt, ...) \
|
||||||
do { \
|
do { \
|
||||||
|
|||||||
@ -20,12 +20,17 @@ void rwnx_data_dump(char* tag, void* data, unsigned long len);
|
|||||||
|
|
||||||
#define AICWF_LOG "AICWFDBG("
|
#define AICWF_LOG "AICWFDBG("
|
||||||
|
|
||||||
#define AICWFDBG(level, args, arg...) \
|
//#define AICWFDBG(level, args, arg...) \
|
||||||
do { \
|
do { \
|
||||||
if (aicwf_dbg_level & level) { \
|
if (aicwf_dbg_level & level) { \
|
||||||
printk(AICWF_LOG#level")\t" args, ##arg); \
|
printk(AICWF_LOG#level")\t" args, ##arg); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
#define AICWFDBG(level, args, arg...) \
|
||||||
|
do { \
|
||||||
|
if (aicwf_dbg_level & level) { \
|
||||||
|
} \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
#define RWNX_DBG(fmt, ...) \
|
#define RWNX_DBG(fmt, ...) \
|
||||||
do { \
|
do { \
|
||||||
|
|||||||
@ -193,20 +193,20 @@
|
|||||||
u-boot,dm-pre-reloc;
|
u-boot,dm-pre-reloc;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
rfkill_bt {
|
rfkill_bt {
|
||||||
compatible = "rfkill-gpio";
|
compatible = "rfkill-gpio";
|
||||||
rfkill-name = "bluetooth";
|
rfkill-name = "bluetooth";
|
||||||
rfkill-type = <2>;
|
rfkill-type = <2>;
|
||||||
reset-gpios = <&gpio_d 3 GPIO_ACTIVE_HIGH>;
|
reset-gpios = <&gpio_c 6 GPIO_ACTIVE_HIGH>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
rfkill_wlan {
|
rfkill_wlan {
|
||||||
compatible = "rfkill-gpio";
|
compatible = "rfkill-gpio";
|
||||||
rfkill-name = "wlan";
|
rfkill-name = "wlan";
|
||||||
rfkill-type = <1>;
|
rfkill-type = <1>;
|
||||||
reset-gpios = <&gpio_d 1 GPIO_ACTIVE_HIGH>;
|
//reset-gpios = <&gpio_c 6 GPIO_ACTIVE_HIGH>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
@ -451,7 +451,7 @@
|
|||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&sdmc1_pins>;
|
pinctrl-0 = <&sdmc1_pins>;
|
||||||
max-frequency= <40000000>;
|
max-frequency= <40000000>;
|
||||||
power-gpios = <&gpio_c 6 GPIO_ACTIVE_HIGH>;
|
//power-gpios = <&gpio_c 6 GPIO_ACTIVE_HIGH>;
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
no-mmc;
|
no-mmc;
|
||||||
no-sd;
|
no-sd;
|
||||||
|
|||||||
102
target/d211/demo128_nand/rootfs_overlay/etc/init.d/S40bluetooth
Executable file
102
target/d211/demo128_nand/rootfs_overlay/etc/init.d/S40bluetooth
Executable file
@ -0,0 +1,102 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
|
||||||
|
HCI_DEV=hci0
|
||||||
|
UART_DEV=/dev/ttyS2
|
||||||
|
HCIATTACH_BIN=/usr/bin/hciattach
|
||||||
|
HCIATTACH_ARGS="-s 1500000 ${UART_DEV} any 1500000 flow nosleep"
|
||||||
|
HCI_TOOL=/usr/bin/bt-hci-tool
|
||||||
|
BTGATT_BIN=/usr/bin/btgatt-server
|
||||||
|
BTGATT_ARGS="-i ${HCI_DEV} -s low -t public"
|
||||||
|
BT_LOCAL_NAME="DSL-ETAG"
|
||||||
|
HCI_WAIT_TIMEOUT=10
|
||||||
|
|
||||||
|
ATTACH_PIDFILE=/var/run/hciattach.pid
|
||||||
|
BTGATT_PIDFILE=/var/run/btgatt-server.pid
|
||||||
|
|
||||||
|
wait_for_hci()
|
||||||
|
{
|
||||||
|
"${HCI_TOOL}" wait "${HCI_DEV}" "${HCI_WAIT_TIMEOUT}"
|
||||||
|
}
|
||||||
|
|
||||||
|
bring_hci_up()
|
||||||
|
{
|
||||||
|
"${HCI_TOOL}" up "${HCI_DEV}"
|
||||||
|
}
|
||||||
|
|
||||||
|
set_hci_name()
|
||||||
|
{
|
||||||
|
"${HCI_TOOL}" name "${HCI_DEV}" "${BT_LOCAL_NAME}"
|
||||||
|
}
|
||||||
|
|
||||||
|
start_bt()
|
||||||
|
{
|
||||||
|
echo "[BT] Init AIC8800..."
|
||||||
|
insmod /lib/modules/5.10.44/kernel/drivers/net/wireless/aic8800/aic8800_btlpm/aic8800_btlpm.ko
|
||||||
|
sleep 1
|
||||||
|
|
||||||
|
killall hciattach 2>/dev/null
|
||||||
|
killall btgatt-server 2>/dev/null
|
||||||
|
rm -f "${ATTACH_PIDFILE}" "${BTGATT_PIDFILE}"
|
||||||
|
|
||||||
|
"${HCIATTACH_BIN}" ${HCIATTACH_ARGS} &
|
||||||
|
echo $! > "${ATTACH_PIDFILE}"
|
||||||
|
|
||||||
|
if ! wait_for_hci; then
|
||||||
|
echo "[BT] ERROR: ${HCI_DEV} not ready"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! bring_hci_up; then
|
||||||
|
echo "[BT] ERROR: failed to bring ${HCI_DEV} up"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! set_hci_name; then
|
||||||
|
echo "[BT] WARN: failed to set controller local name"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "[BT] HCI ready"
|
||||||
|
|
||||||
|
"${BTGATT_BIN}" ${BTGATT_ARGS} >/dev/null 2>&1 &
|
||||||
|
echo $! > "${BTGATT_PIDFILE}"
|
||||||
|
echo "[BT] GATT server started"
|
||||||
|
}
|
||||||
|
|
||||||
|
stop_bt()
|
||||||
|
{
|
||||||
|
if [ -f "${BTGATT_PIDFILE}" ]; then
|
||||||
|
kill "$(cat "${BTGATT_PIDFILE}")" 2>/dev/null
|
||||||
|
rm -f "${BTGATT_PIDFILE}"
|
||||||
|
else
|
||||||
|
killall btgatt-server 2>/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "${ATTACH_PIDFILE}" ]; then
|
||||||
|
kill "$(cat "${ATTACH_PIDFILE}")" 2>/dev/null
|
||||||
|
rm -f "${ATTACH_PIDFILE}"
|
||||||
|
else
|
||||||
|
killall hciattach 2>/dev/null
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
start_bt
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
stop_bt
|
||||||
|
;;
|
||||||
|
restart)
|
||||||
|
stop_bt
|
||||||
|
sleep 1
|
||||||
|
start_bt
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {start|stop|restart}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit $?
|
||||||
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libaic_mem.so
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libaic_mem.so
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libcurl.so.4
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libcurl.so.4
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/lib/liblogo_fdt.so
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/liblogo_fdt.so
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmedia_audio_player.so
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmedia_audio_player.so
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmedia_player.so
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmedia_player.so
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmedia_recorder.so
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmedia_recorder.so
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmm_base.so
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmm_base.so
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmm_component.so
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmm_component.so
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmosquitto.so.1
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmosquitto.so.1
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmpp_audio_decoder.so
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmpp_audio_decoder.so
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmpp_base.so
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmpp_base.so
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmpp_decoder.so
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmpp_decoder.so
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmpp_encoder.so
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmpp_encoder.so
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmpp_ge.so
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmpp_ge.so
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmpp_ve.so
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/lib/libmpp_ve.so
Executable file
Binary file not shown.
BIN
target/d211/demo128_nand/rootfs_overlay/usr/bin/btgatt-server
Executable file
BIN
target/d211/demo128_nand/rootfs_overlay/usr/bin/btgatt-server
Executable file
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user