一.wifi连接
adb shell
/ # wpa_supplicant -Dwext -ieth0 -c etc/wpa_supplicant.conf -B
Successfully initialized wpa_supplicant
rfkill: Cannot get wiphy information
Could not read interface eth0 flags: No such device
WEXT: Could not set interface 'eth0' UP
eth0: Failed to initialize driver interface
/ # wpa_supplicant -Dwext -iwlan0 -c etc/wpa_supplicant.conf -B
Successfully initialized wpa_supplicant
ioctl[SIOCSIWMODE]: Operation not permitted
/ # wpa_cli
wpa_cli v2.6
Copyright (c) 2004-2016, Jouni Malinen j@w1.fi and contributors
This software may be distributed under the terms of the BSD license.
See README for more details.
Selected interface 'wlan0'
Interactive mode
status
wpa_state=DISCONNECTED
address=8c:f7:10:c4:ca:2d
uuid=7bf11b77-30ba-5557-8bd2-72e97d3279fd
scan
OK
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
<3>CTRL-EVENT-NETWORK-NOT-FOUND
scan_result
bssid / frequency / signal level / flags / ssid
d8:32:5a:26:aa:d7 2437 -52 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-eFYC
7c:03:c9:54:45:a9 2447 -54 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-cyJx
08:10:77:9c:e5:b0 2467 -55 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] AVA-5F
b0:d5:9d:ff:40:33 2412 -56 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] CMCC-jKmn
dc:90:88:07:b1:9a 2462 -56 [WPA2-PSK-CCMP][ESS] HONOR V20
a4:29:40:e3:66:91 2427 -58 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-RvbQ
6c:e8:73:e6:2a:10 2412 -62 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][ESS] weiweiwei
d4:ee:07:2c:80:78 2417 -62 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] HiWiFi_grtest
e6:6a:6a:c1:85:11 2462 -64 [WPA2-PSK-CCMP][WPS][ESS] DIRECT-AzMARTINZOZXOEmsJo
52:52:16:bc:12:65 2462 -65 [WPA2-PSK-CCMP][ESS] king_wf
54:75:95:18:80:b9 2412 -73 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] BW
56:75:95:18:80:b9 2412 -74 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] BWguest
d4:ee:07:47:34:ee 2422 -76 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] HiWiFi_4734EE
08:10:79:ac:c2:4d 2462 -78 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] pan
48:0e:ec:e5:25:16 2462 -81 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] TP-LINK_lhf
d0:16:b4:3d:b1:64 2437 -87 [WPA-PSK-CCMP][WPA2-PSK-CCMP][WPS][ESS] GBD
08:10:7a:18:95:41 2462 -89 [WPA2-PSK-CCMP][WPS][ESS] Wandefour2
e8:4e:06:47:3a:c4 2462 -89 [WPA2-PSK-CCMP][WPS][ESS] fb
94:87:e0:87:d9:7c 2472 -64 [WPA2-PSK-CCMP][ESS] \xe4\xbc\x9f\xe5\xa4\xa7\xe7\x9a\x84\xe5\xa4\xa7\xe7\x83\x9f\xe6\x9e\xaa
08:10:77:9c:e0:15 2437 -62 [ESS] Netcore_2_4G
scan
OK
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
<3>CTRL-EVENT-NETWORK-NOT-FOUND
scan
OK
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
<3>CTRL-EVENT-NETWORK-NOT-FOUND
scan_result
bssid / frequency / signal level / flags / ssid
d8:32:5a:26:aa:d7 2437 -54 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-eFYC
7c:03:c9:54:45:a9 2447 -59 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-cyJx
08:10:77:9c:e5:b0 2467 -58 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] AVA-5F
b0:d5:9d:ff:40:33 2412 -55 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] CMCC-jKmn
dc:90:88:07:b1:9a 2462 -50 [WPA2-PSK-CCMP][ESS] HONOR V20
a4:29:40:e3:66:91 2427 -58 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-RvbQ
6c:e8:73:e6:2a:10 2412 -63 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][ESS] weiweiwei
d4:ee:07:2c:80:78 2417 -63 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] HiWiFi_grtest
e6:6a:6a:c1:85:11 2462 -61 [WPA2-PSK-CCMP][WPS][ESS] DIRECT-AzMARTINZOZXOEmsJo
52:52:16:bc:12:65 2462 -65 [WPA2-PSK-CCMP][ESS] king_wf
54:75:95:18:80:b9 2412 -73 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] BW
56:75:95:18:80:b9 2412 -73 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] BWguest
d4:ee:07:47:34:ee 2422 -75 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] HiWiFi_4734EE
08:10:79:ac:c2:4d 2462 -69 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] pan
48:0e:ec:e5:25:16 2462 -77 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] TP-LINK_lhf
d0:16:b4:3d:b1:64 2437 -85 [WPA-PSK-CCMP][WPA2-PSK-CCMP][WPS][ESS] GBD
94:87:e0:87:d9:7c 2472 -66 [WPA2-PSK-CCMP][ESS] \xe4\xbc\x9f\xe5\xa4\xa7\xe7\x9a\x84\xe5\xa4\xa7\xe7\x83\x9f\xe6\x9e\xaa
08:10:77:9c:e0:15 2437 -62 [ESS] Netcore_2_4G
08:10:77:9b:1c:e5 2442 -86 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] AVA.GZ
44:97:5a:22:fc:0e 2472 -76 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] FAST_FC0E
scan
OK
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
<3>CTRL-EVENT-NETWORK-NOT-FOUND
scan_result
bssid / frequency / signal level / flags / ssid
d8:32:5a:26:aa:d7 2437 -50 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-eFYC
7c:03:c9:54:45:a9 2447 -55 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-cyJx
08:10:77:9c:e5:b0 2467 -58 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] AVA-5F
b0:d5:9d:ff:40:33 2412 -56 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] CMCC-jKmn
dc:90:88:07:b1:9a 2437 -52 [WPA2-PSK-CCMP][ESS] HONOR V20
a4:29:40:e3:66:91 2427 -58 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-RvbQ
6c:e8:73:e6:2a:10 2412 -65 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][ESS] weiweiwei
d4:ee:07:2c:80:78 2417 -63 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] HiWiFi_grtest
e6:6a:6a:c1:85:11 2462 -64 [WPA2-PSK-CCMP][WPS][ESS] DIRECT-AzMARTINZOZXOEmsJo
52:52:16:bc:12:65 2462 -63 [WPA2-PSK-CCMP][ESS] king_wf
54:75:95:18:80:b9 2412 -74 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] BW
56:75:95:18:80:b9 2412 -72 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] BWguest
d4:ee:07:47:34:ee 2422 -76 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] HiWiFi_4734EE
08:10:79:ac:c2:4d 2462 -67 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] pan
48:0e:ec:e5:25:16 2462 -76 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] TP-LINK_lhf
d0:16:b4:3d:b1:64 2437 -85 [WPA-PSK-CCMP][WPA2-PSK-CCMP][WPS][ESS] GBD
94:87:e0:87:d9:7c 2472 -64 [WPA2-PSK-CCMP][ESS] \xe4\xbc\x9f\xe5\xa4\xa7\xe7\x9a\x84\xe5\xa4\xa7\xe7\x83\x9f\xe6\x9e\xaa
08:10:77:9c:e0:15 2437 -66 [ESS] Netcore_2_4G
44:97:5a:22:fc:0e 2472 -76 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] FAST_FC0E
e8:4e:06:47:3a:c4 2462 -80 [WPA2-PSK-CCMP][WPS][ESS] fb
08:10:77:9a:dc:30 2442 -87 [ESS] ZNetcore_2_4G
scan
OK
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
<3>CTRL-EVENT-NETWORK-NOT-FOUND
scan_result
bssid / frequency / signal level / flags / ssid
d8:32:5a:26:aa:d7 2437 -53 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-eFYC
7c:03:c9:54:45:a9 2447 -55 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-cyJx
08:10:77:9c:e5:b0 2467 -56 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] AVA-5F
b0:d5:9d:ff:40:33 2412 -54 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] CMCC-jKmn
dc:90:88:07:b1:9a 2437 -61 [WPA2-PSK-CCMP][ESS] HONOR V20
a4:29:40:e3:66:91 2427 -57 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-RvbQ
6c:e8:73:e6:2a:10 2412 -62 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][ESS] weiweiwei
e6:6a:6a:c1:85:11 2462 -66 [WPA2-PSK-CCMP][WPS][ESS] DIRECT-AzMARTINZOZXOEmsJo
52:52:16:bc:12:65 2462 -62 [WPA2-PSK-CCMP][ESS] king_wf
54:75:95:18:80:b9 2412 -75 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] BW
56:75:95:18:80:b9 2412 -72 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] BWguest
d4:ee:07:47:34:ee 2422 -77 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] HiWiFi_4734EE
08:10:79:ac:c2:4d 2462 -72 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] pan
48:0e:ec:e5:25:16 2462 -74 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] TP-LINK_lhf
d0:16:b4:3d:b1:64 2437 -85 [WPA-PSK-CCMP][WPA2-PSK-CCMP][WPS][ESS] GBD
94:87:e0:87:d9:7c 2472 -64 [WPA2-PSK-CCMP][ESS] \xe4\xbc\x9f\xe5\xa4\xa7\xe7\x9a\x84\xe5\xa4\xa7\xe7\x83\x9f\xe6\x9e\xaa
08:10:77:9c:e0:15 2437 -69 [ESS] Netcore_2_4G
44:97:5a:22:fc:0e 2472 -77 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] FAST_FC0E
e8:4e:06:47:3a:c4 2462 -82 [WPA2-PSK-CCMP][WPS][ESS] fb
08:10:77:9a:dc:30 2442 -82 [ESS] ZNetcore_2_4G
08:10:77:9b:1c:e5 2442 -84 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] AVA.GZ
08:10:7a:18:95:41 2462 -84 [WPA2-PSK-CCMP][WPS][ESS] Wandefour2
0c:72:2c:eb:07:ee 2412 -91 [WPS][ESS] TP-LINK_EB07EE
scan_result
bssid / frequency / signal level / flags / ssid
d8:32:5a:26:aa:d7 2437 -53 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-eFYC
7c:03:c9:54:45:a9 2447 -55 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-cyJx
08:10:77:9c:e5:b0 2467 -56 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] AVA-5F
b0:d5:9d:ff:40:33 2412 -54 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] CMCC-jKmn
dc:90:88:07:b1:9a 2437 -61 [WPA2-PSK-CCMP][ESS] HONOR V20
a4:29:40:e3:66:91 2427 -57 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS] ChinaNet-RvbQ
6c:e8:73:e6:2a:10 2412 -62 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][ESS] weiweiwei
e6:6a:6a:c1:85:11 2462 -66 [WPA2-PSK-CCMP][WPS][ESS] DIRECT-AzMARTINZOZXOEmsJo
52:52:16:bc:12:65 2462 -62 [WPA2-PSK-CCMP][ESS] king_wf
54:75:95:18:80:b9 2412 -75 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] BW
56:75:95:18:80:b9 2412 -72 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] BWguest
d4:ee:07:47:34:ee 2422 -77 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] HiWiFi_4734EE
08:10:79:ac:c2:4d 2462 -72 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] pan
48:0e:ec:e5:25:16 2462 -74 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] TP-LINK_lhf
d0:16:b4:3d:b1:64 2437 -85 [WPA-PSK-CCMP][WPA2-PSK-CCMP][WPS][ESS] GBD
94:87:e0:87:d9:7c 2472 -64 [WPA2-PSK-CCMP][ESS] \xe4\xbc\x9f\xe5\xa4\xa7\xe7\x9a\x84\xe5\xa4\xa7\xe7\x83\x9f\xe6\x9e\xaa
08:10:77:9c:e0:15 2437 -69 [ESS] Netcore_2_4G
44:97:5a:22:fc:0e 2472 -77 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] FAST_FC0E
e8:4e:06:47:3a:c4 2462 -82 [WPA2-PSK-CCMP][WPS][ESS] fb
08:10:77:9a:dc:30 2442 -82 [ESS] ZNetcore_2_4G
08:10:77:9b:1c:e5 2442 -84 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] AVA.GZ
08:10:7a:18:95:41 2462 -84 [WPA2-PSK-CCMP][WPS][ESS] Wandefour2
0c:72:2c:eb:07:ee 2412 -91 [WPS][ESS] TP-LINK_EB07EE
add_network
0
set_network 0 ssid "wft123456"
OK
set_network 0 psk "13632796092"
OK
select_net 0
OK
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
<3>Trying to associate with dc:90:88:07:b1:9a (SSID='HONOR V20' freq=2462 MHz)
<3>Association request to the driver failed
<3>Associated with dc:90:88:07:b1:9a
<3>WPA: Key negotiation completed with dc:90:88:07:b1:9a [PTK=CCMP GTK=CCMP]
<3>CTRL-EVENT-CONNECTED - Connection to dc:90:88:07:b1:9a completed [id=0 id_str=]
enable_net 0
OK
q
/ # www.baidu.com
/bin/sh: www.baidu.com: not found
/ # ping www.baidu.com
PING www.a.shifen.com (163.177.151.109) 56(84) bytes of data.
64 bytes from 163.177.151.109 (163.177.151.109): icmp_seq=1 ttl=53 time=35.5 ms
二.编译代码
首先编写config和mk文件
Config.in文件
config BR2_PACKAGE_FRSDK_DEMO
bool "frsdk_demo"
depends on BR2_TOOLCHAIN_HAS_THREADS # libv4l
depends on BR2_USE_MMU # libv4l
depends on !BR2_STATIC_LIBS # libv4l
depends on BR2_INSTALL_LIBSTDCPP # libv4l
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # libv4l
select BR2_PACKAGE_JPEG
select BR2_PACKAGE_LIBV4L
select BR2_PACKAGE_LIBPNG12
select BR2_PACKAGE_JPEG
select BR2_PACKAGE_MINIGUI
select BR2_PACKAGE_LIBDRM
select BR2_PACKAGE_UVC_APP
help
Utility for grabbing JPEGs form V4L2 devices. This tool is
similar to v4l2grab available from libv4l contrib directory,
but provides additional features such as JPEG output.
http://www.twam.info/software/v4l2grab-grabbing-jpegs-from-v4l2-devices
if BR2_PACKAGE_FRSDK_DEMO
choice
prompt "frsdk demo type"
default BR2_PACKAGE_FRSDK_DEMO_ENABLE_SSD
help
Select a demo function type of rknn.
config BR2_PACKAGE_FRSDK_DEMO_ENABLE_SSD
bool "ssd"
depends on BR2_PACKAGE_FRSDK_DEMO
config BR2_PACKAGE_FRSDK_DEMO_ENABLE_JOINT
bool "joint"
depends on BR2_PACKAGE_FRSDK_DEMO
config BR2_PACKAGE_FRSDK_DEMO_ENABLE_FRG
bool "face recognize"
depends on BR2_PACKAGE_FRSDK_DEMO
comment "v4l2grab needs a toolchain w/ threads, dynamic library, C++ and headers >= 3.0"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
|| !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
endchoice
endif
frsdk_demo.mk
################################################################################
#
# rknn demo
#
################################################################################
FRSDK_DEMO_VERSION = 1.0.0
FRSDK_DEMO_SITE = $(TOPDIR)/../external/frsdk_demo
FRSDK_DEMO_SITE_METHOD = local
FRSDK_DEMO_DEPENDENCIES = jpeg libpng12 libv4l linux-rga minigui camera_engine_rkisp libdrm mpp uvc_app
ifeq ($(BR2_PACKAGE_RK1808),y)
FRSDK_DEMO_CONF_OPTS += -DNEED_RKNNAPI=0
FRSDK_DEMO_DEPENDENCIES += rknpu
endif
ifeq ($(BR2_PACKAGE_RK3399PRO),y)
FRSDK_DEMO_CONF_OPTS += -DNEED_RKNNAPI=1
define FRSDK_DEMO_BUILD_CMDS
$(INSTALL) -D -m 0644 $(@D)/rknn/rknn_api/librknn_api.so $(TARGET_DIR)/usr/lib
$(INSTALL) -D -m 0644 $(@D)/rknn/rknn_api/librknn_api.so $(STAGING_DIR)/usr/lib
$(TARGET_MAKE_ENV) $($(PKG)_MAKE_ENV) $($(PKG)_MAKE) $($(PKG)_MAKE_OPTS) -C $($(PKG)_BUILDDIR)
endef
endif
FRSDK_DEMO_USER_CONF_OPTS =
ifeq ($(BR2_PACKAGE_FRSDK_DEMO_ENABLE_JOINT),y)
FRSDK_DEMO_USER_CONF_OPTS += -DENABLE_JOINT=1
endif
ifeq ($(BR2_PACKAGE_FRSDK_DEMO_ENABLE_FRG),y)
FRSDK_DEMO_USER_CONF_OPTS += -DENABLE_FRG=1
endif
ifeq ($(FRSDK_DEMO_USER_CONF_OPTS),)
BR2_PACKAGE_FRSDK_DEMO_ENABLE_SSD=y
FRSDK_DEMO_CONF_OPTS += -DENABLE_SSD=1
else
FRSDK_DEMO_CONF_OPTS += $(FRSDK_DEMO_USER_CONF_OPTS)
endif
ifeq ($(BR2_PACKAGE_RK1808),y)
FRSDK_DEMO_MINIGUI_CFG=minigui/MiniGUI-1280x720.cfg
endif
ifeq ($(BR2_PACKAGE_RK3399PRO),y)
FRSDK_DEMO_MINIGUI_CFG=minigui/MiniGUI-2048x1536.cfg
endif
FRSDK_DEMO_CONF_OPTS += -DMINIGUI_CFG=$(FRSDK_DEMO_MINIGUI_CFG)
ifeq ($(BR2_PACKAGE_FRSDK_DEMO_ENABLE_JOINT),y)
RKNN_MODEL_RESOURCE_FILES = rknn/joint/cpm.rknn
endif
ifeq ($(BR2_PACKAGE_FRSDK_DEMO_ENABLE_FRG),y)
RKNN_MODEL_RESOURCE_FILES = rknn/frg/frgsdk_rk1808/model/align.rknn \
rknn/frg/frgsdk_rk1808/model/detect.rknn \
rknn/frg/frgsdk_rk1808/model/recognize.rknn
endif
ifeq ($(BR2_PACKAGE_FRSDK_DEMO_ENABLE_SSD),y)
ifeq ($(BR2_PACKAGE_RK1808),y)
RKNN_MODEL_RESOURCE_FILES = rknn/ssd/ssd_1808/ssd_inception_v2.rknn \
rknn/ssd/ssd_1808/coco_labels_list.txt \
rknn/ssd/ssd_1808/box_priors.txt
else
RKNN_MODEL_RESOURCE_FILES = rknn/ssd/ssd_3399pro/mobilenet_ssd.rknn \
rknn/ssd/ssd_3399pro/coco_labels_list.txt \
rknn/ssd/ssd_3399pro/box_priors.txt
endif
endif
FRSDK_DEMO_CONF_OPTS += -DMODEL_RESOURCE_FILES="$(RKNN_MODEL_RESOURCE_FILES)"
$(eval $(cmake-package))
然后再上一级Config.in包含进去
source "package/rockchip/rknn_demo/Config.in"
source "package/rockchip/frsdk_demo/Config.in"
source "package/rockchip/wenfeng_demo/Config.in"
然后先后执行source envsetup.sh ,make menuconfig,make frsdk_demo,make frsdk_demo-rebuild
来完成编译,编译结果如下