随笔分类 -  OpenWRT

摘要:make package/boot/uboot-sunxi/{clean,prepare} V=s QUILT=1 make package/boot/uboot-sunxi/update make target/linux/{clean,prepare} V=s QUILT=1 make targ 阅读全文
posted @ 2022-05-30 09:29 轻轻的吻 阅读(98) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> #include <string.h> unsigned short utils_crc16_modbus( unsigned char *buff,int len) { unsigned short tmp = 0xffff; unsigned short r 阅读全文
posted @ 2022-01-11 17:35 轻轻的吻 阅读(218) 评论(0) 推荐(0) 编辑
摘要:#include<stdio.h> void main() { char chn[10]="测试中..."; printf("%X %X %X %X %X %X %X %X %X %X\n",chn[0]&0xff,chn[1]&0xff,chn[2]&0xff,chn[3]&0xff,chn[4] 阅读全文
posted @ 2022-01-11 17:33 轻轻的吻 阅读(693) 评论(0) 推荐(0) 编辑
摘要:解决方式: openwrt防火墙导致的这个问题,只需修改防火墙的过滤策略。 阅读全文
posted @ 2021-12-22 17:32 轻轻的吻 阅读(182) 评论(0) 推荐(0) 编辑
摘要:知识链接:linux平台下防火墙iptables原理 一、 OpenWrt 内置防火墙介绍 Openwrt 是一个 GNU/Linux 的发行版, 和其他大多数的发行版一样,Openwrt 的防火墙同样也是基于 iptables。 在 OpenWRT 下防火墙的默认行为已经可以满足路由器的需要,一般 阅读全文
posted @ 2021-12-22 16:59 轻轻的吻 阅读(8980) 评论(0) 推荐(0) 编辑
摘要:lan_test() { ifconfig br-lan if [ $? -ne 0 ]; then echo "[lan_test]:br-lan network error!!!!" > /dev/console return 1 else ipaddr=`ifconfig br-lan | g 阅读全文
posted @ 2021-12-18 11:31 轻轻的吻 阅读(407) 评论(0) 推荐(0) 编辑
摘要:一、有线网卡 1、开启 ifup lan 2、关闭 ifdown lan 二、无线网卡 1、开启 ifup wwan wifi up 2、关闭 ifdown wwan wifi down 三、外网连接测试 local server="www.baidu.com" status=$(ping -q - 阅读全文
posted @ 2021-12-18 09:30 轻轻的吻 阅读(2353) 评论(0) 推荐(0) 编辑
摘要:ifconfig wlan0 up /* 打开无线网卡 */ ifconfig wlan0 down /* 关闭无线网卡 */ iw list /* 列出WIFI网卡的性能*/ iw dev wlan0 scan // 扫描WIFI AP iw wlan0 connect linux // 连接到W 阅读全文
posted @ 2021-12-17 18:02 轻轻的吻 阅读(883) 评论(0) 推荐(0) 编辑
摘要:1、查看flash参数 dmesg |grep spi |grep Kbytes 2、查看RAM大小 cat /proc/meminfo |grep MemTota 3、已使用RAM大小 free -h |grep Mem | awk -F ' ' '{print $3}' 4、空闲可使用的RAM大 阅读全文
posted @ 2021-12-06 19:55 轻轻的吻 阅读(4465) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-11-22 16:18 轻轻的吻 阅读(680) 评论(0) 推荐(0) 编辑
摘要:1、概述EEPROM特点 各型号EEPROM内存大小: 型号 内存大小 字地址长度 WP脚 AT24C02 2K(256字节) 一个字节0xff(256) 高电平写保护,低电平取消写保护 AT24C04 4K(512字节) 两个字节 高电平写保护,低电平取消写保护 AT24C32 32K(4096字 阅读全文
posted @ 2021-11-22 13:18 轻轻的吻 阅读(2345) 评论(0) 推荐(0) 编辑
摘要:一、PSU-3300电源 1、功能说明 主要通过此电源的主路电压给算力板供电,侧路电压接口给控制板供电,可以通过控制板的i2c接口去动态调节算力板供电电压。 2、参数说明 IIC设备地址为0x2c。 PSU version为0x04. 通讯速度为50khz. 数据传输指令格式为N byte data 阅读全文
posted @ 2021-11-20 10:52 轻轻的吻 阅读(404) 评论(0) 推荐(0) 编辑
摘要:logread 阅读全文
posted @ 2021-11-12 17:24 轻轻的吻 阅读(1005) 评论(0) 推荐(0) 编辑
摘要:static char *getipolloinfo(__maybe_unused struct api_data *root) { FILE *fstream=NULL; char ipaddr[16]; char macaddr[18]; char gateway[16]; char netma 阅读全文
posted @ 2021-10-28 20:33 轻轻的吻 阅读(79) 评论(0) 推荐(0) 编辑
摘要:临时屏蔽串口终端: systemctl mask serial-getty@ttyS0.service 阅读全文
posted @ 2021-09-28 11:52 轻轻的吻 阅读(1306) 评论(0) 推荐(0) 编辑
摘要:一、reset 按键 1、概述 (1)根据客户要求,重启长按3秒,红绿灯常亮,重启。 (2)长按reset键,然后上电开机,绿灯闪烁,红灯灭,恢复出厂设置。 2、分析 要获取reset按键pressed的持续时间,通过按下按键的时间来处理重启和复位的动作。 reset按键的处理主要在 openwrt 阅读全文
posted @ 2021-09-10 20:10 轻轻的吻 阅读(1798) 评论(0) 推荐(0) 编辑
摘要:1、修改一个环境变量 export STAGING_DIR=/home/yangweitao/share/openwrt-cgminer/build/openwrt.b1_c1/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl 阅读全文
posted @ 2021-09-10 14:19 轻轻的吻 阅读(567) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示