原创 openwrt linux c 修改系統時間
#include <stdio.h> #include<sys/time.h> #include<unistd.h> #include <time.h> typedef struct _SettimeInfo_ { char
原创 openwrt 19.07 resolv.conf 域名解析
search lan nameserver 114.114.114.114 nameserver 127.0.0.1 nameserver 表明DNS服務器的IP地址。 domain 聲明主機的域名。很多程序用到它,如郵件系統; se
原创 openwrt 使用memcpy
使用memcpy一定要注意內存偏移發生錯誤 memcpy(,buffer,sizeof(buffer)); 一定不要越界!!!! https://www.it610.com/article/5211022.htm
原创 openwrt 19.07 SIMCOM8200 5GCPE 驅動移植
1.選擇驅動。 2. /drivers/usb/serial/option.c #define SIMCOM_VENDOR_ID option_ids[] { #if 1 添加相應的代碼 #endif }
原创 openwrt 19.07 恢復出廠設置
設置GPIO後 7 cat /etc/rc.button/reset 8 #!/bin/sh 9 . /lib/functions.sh 10 OVERLAY="$( grep ' /overlay ' /proc/mo
原创 openwrt 報錯小記
1. uboot燒錄固件之後一直jffs2: jffs2_scan_eraseblock(): Magic bitmask 大概率是刷的時候沒刷完
原创 openwrt log
vim /etc/config/system config system ... option log_ip <destination IP> option log_port <destination port> opt
原创 openwrt 19.07 ECMP 負載均衡
轉載至:https://lwz322.github.io/2019/11/03/ECMP.html https://cumulusnetworks.com/blog/celebrating-ecmp-part-t
原创 OpenWRT 小記
查看openwrt內核版本:cat /proc/version 、uname -r