摘要: 最近新到一个板子,需要编译usb网卡驱动,鼓捣了一阵,现将编译的步骤记录 开发板型号:zlg EPC-6G2C-L ARM架构:Cortex-A7 Kernel :4.1.15 CPU:[iMX_6UL系列]MCIMX6G2CVM05AA 主频528MHz RAM: IS43TR16128B , 2 阅读全文
posted @ 2021-10-18 14:36 流逝的轻风 阅读(581) 评论(0) 推荐(1) 编辑
摘要: 1.官方下载libev源码 git clone https://github.com/enki/libev.git 2.编译生成Makefile ./configure --host=arm-linux CC=arm-linux-gnueabihf-gcc --prefix=/mnt/share/l 阅读全文
posted @ 2021-10-09 14:52 流逝的轻风 阅读(586) 评论(0) 推荐(0) 编辑
摘要: LINK = @echo linking $@ && arm-linux-gnueabihf-g++ GCC = @echo compiling $@ && arm-linux-gnueabihf-g++ GC = @echo compiling $@ && arm-linux-gnueabihf- 阅读全文
posted @ 2021-08-05 16:14 流逝的轻风 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 背景 有些情况下,嵌入式设备文件上传需要的网络库不可以太大,诸如 curl 之类的库可能就太大了,好在有一种 libghttp 的库,可以用来发送 http 请求。 编译Libghttp 首先需要安装 libghttp 库到 arm 的系统中。 下载源码: $ git clone https://g 阅读全文
posted @ 2021-08-05 15:48 流逝的轻风 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 介绍gcc - 参数 -I ( i 的大写) :指定头文件路径(相对路径或觉得路径,建议相对路径) -i :指定头文件名字 (一般不使用,而是直接放在**.c 文件中通过#include<***.h> 添加) -L :指定连接的动态库或者静态库路径(相对路径或觉得路径,建议相对路径) -l (L的小 阅读全文
posted @ 2021-08-05 15:35 流逝的轻风 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 在linux下监听socket的连接状态 /************************************************* Function: // Net::getTcpState Description: // TCP监听状态 @ips ip @timeout 超时时间 ** 阅读全文
posted @ 2021-07-23 14:51 流逝的轻风 阅读(635) 评论(0) 推荐(0) 编辑
摘要: 1.下载到本地 git clone https://github.com/sknown/libghttp.gt 2.修改Makefile all: arm-linux-gnueabihf-gcc -DGHTTP_MAJOR_VERSION=1 -DGHTTP_MINOR_VERSION=0 -DGH 阅读全文
posted @ 2021-07-22 15:31 流逝的轻风 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1.下载openssl wget https://www.openssl.org/source/old/1.1.1/openssl-1.1.1.tar.gz 解压到当前目录 tar xvf openssl-1.1.1.tar.gz 二.配置openssl 1.配置编译的参数 export PATH= 阅读全文
posted @ 2021-07-12 16:47 流逝的轻风 阅读(4251) 评论(0) 推荐(1) 编辑
摘要: 1.配置 /etc/profile vi /etc/profile 2.在里面增加以下代码 ifconfig eth0 192.168.1.139 netmask 255.255.255.0 route add default gw 192.168.1.1 echo nameserver 114.1 阅读全文
posted @ 2021-07-06 10:08 流逝的轻风 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1.下载ftfp tftp-hpa源码下载地址:https://mirrors.edge.kernel.org/pub/software/network/tftp/ 我们选用的是0.4的版本 wget https://mirrors.edge.kernel.org/pub/software/netw 阅读全文
posted @ 2021-07-02 15:51 流逝的轻风 阅读(974) 评论(0) 推荐(0) 编辑