RK1808调试

一.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文件


image.png

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
来完成编译,编译结果如下


image.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 203,271评论 5 476
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 85,275评论 2 380
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 150,151评论 0 336
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,550评论 1 273
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,553评论 5 365
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,559评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,924评论 3 395
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,580评论 0 257
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,826评论 1 297
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,578评论 2 320
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,661评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,363评论 4 318
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,940评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,926评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,156评论 1 259
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,872评论 2 349
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,391评论 2 342

推荐阅读更多精彩内容