![](https://img-blog.csdnimg.cn/20190927151132530.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
linux驱动开发
驱动开发
石头与代码
驱动猿
展开
-
什么是C运行时库
转自https://blog.csdn.net/wqvbjhc/article/details/6612099什么是C运行时库1)C运行时库就是 C run-time library,是 C 而非 C++ 语言世界的概念:取这个名字就是因为你的 C 程序运行时需要这些库中的函数.2)C 语言是所谓的“小内核”语言,就其语言本身来说很小(不多的关键字,程序流程控制,数据类型等);所以,C 语言内核开发出来之后,Dennis Ritchie 和 Brian Kernighan 就用 C 本身重写了转载 2020-11-13 17:04:06 · 304 阅读 · 0 评论 -
arm-linux-androideabi 和 arm-linux-gnueabi
编译环境:ubuntu18.04软件版本:全志SDK,安卓版本8.1.0,linux-4.9.0问题描述:在全志的安卓系统中,需要运行C项目代码,在查找交叉编译工具时,shell里直接arm- tab出来的是arm-linux-androideabi,尝试用arm-linux-androideabi编译了C 的源码,发现报错无法编译问题分析:搜索了下这个问题:编译可能意味着不仅仅是将源代码转换为二进制代码。像GCC这样的编译器也提供了某些库,在这种情况下,libgcc...原创 2020-11-13 16:56:12 · 1835 阅读 · 0 评论 -
ubuntu18.04虚拟机无法发现ADB设备解决办法
bell@r311:~/r311/android$ adb shellerror: insufficient permissions for device: user in plugdev group; are your udev rules wrong?See [http://developer.android.com/tools/device.html] for more informationbell@r311:~/r311/android$ adb devices List of devi.原创 2020-11-11 09:24:32 · 1400 阅读 · 0 评论 -
ninja: error: ‘system/bt/EventLogTags.logtags‘, needed by ‘out/target/common/obj/all-event-log-tags.
项目场景:编译环境:ubuntu18.04软件版本:全志SDK,安卓版本8.1.0,linux-4.9.0示:这里简述项目相关背景:例如:项目场景:示例:通过蓝牙芯片(HC-05)与手机 APP 通信,每隔 5s 传输一批传感器数据(不是很大)问题描述:编译SDK时遇到这个问题:[ 97% 43/44] glob device/*/*/Android.bpninja: error: 'system/bt/EventLogTags.logtags', needed by ...原创 2020-11-06 18:06:53 · 562 阅读 · 1 评论 -
全志安卓移植蓝牙报错--type android.DeviceConfig has no field or method BtConfigVendor)
编译环境:ubuntu18.04软件版本:全志SDK,安卓版本8.1.0,linux-4.9.0移植蓝牙时遇到一个报错,现已解决,提供解决过程及方法如下:[2/2] bootstrap out/soong/.minibootstrap/build.ninja.in[1/1] out/soong/.bootstrap/bin/minibp out/soong/.bootstrap/build.ninja[43/44] glob system/bt/vendor_libs/test_vendo原创 2020-11-06 17:46:58 · 707 阅读 · 1 评论 -
ubuntu18.04的vim无法使用---解决方法
bell@r311:~/r311/android/device/softwinner/lily-perf$ sudo apt install vim[sudo] password for bell: Reading package lists... DoneBuilding dependency tree Reading state information... DoneSome packages could not be installed. This may mean that .原创 2020-11-05 13:53:08 · 2027 阅读 · 0 评论 -
ubuntu16.04安装vscode,亲测可用
cust@virtualbox:~/Downloads$ lscode_1.44.2-1587059832_amd64.deb从官网下载vscode的deb包cust@virtualbox:~/Downloads$ sudo dpkg -i code_1.44.2-1587059832_amd64.deb [sudo] password for cust: Selecting p...原创 2020-04-27 14:37:21 · 567 阅读 · 1 评论 -
RK3308板子ADB功能在ubuntu下无法使用
首先要在ubuntu虚拟机中安装ADB工具sudo apt install adb之后在虚拟机设置界面,勾选上3308板子adb shell命令后发现出错cust@virtualbox:~$ adb shell* daemon not running; starting now at tcp:5037* daemon started successfullyerror...原创 2020-04-27 09:52:47 · 657 阅读 · 0 评论 -
芯科zigbee协调器Z3gateway在全志R11平台交叉编译报错问题
../../../sl/developer/sdks/gecko_sdk_suite/v2.7/protocol/zigbee/app/ezsp-host/ezsp-host-io.c:254:25: error: 'CSTART' undeclared (first use in this function) tios.c_cc[VSTART] = CSTART; ...原创 2020-04-26 14:13:18 · 794 阅读 · 0 评论 -
localhost导致MQTT本地客户端与本地broker无法连接问题
今天在调试时发现一个localhost问题:#defineEMBER_AF_PLUGIN_TRANSPORT_MQTT_BROKER_ADDRESS"tcp://localhost:1883"#defineEMBER_AF_PLUGIN_TRANSPORT_MQTT_BROKER_ADDRESS_LENGTH(20)当MQTT客户端设置本地地址为localhost:1883时,...原创 2020-04-20 15:16:56 · 4259 阅读 · 0 评论 -
移植TCPdump调试工具到全志R11平台
近日一个项目需要用到tcpdump工具抓包,发现网关板子上没有这个工具,所以移植了一个,以下是移植方法:1、前往官网下载工具源码 http://www.tcpdump.org/2、下载文件 1)tcpdump-4.9.3.tar.gz 2)libpcap-1.9.1.tar.gz3、将其放在同一目录下 1) 安装bison包: sudo a...原创 2020-04-15 16:42:17 · 206 阅读 · 0 评论