
openwrt/linux
snow_lyGirl
一名程序员
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C语言将double/float 转为字符串(带自定义精度)
char *double_to_string(double d, int decimal){ decimal = decimal < 0 ? 0 : decimal; char *p; char dd[20]; switch (decimal) { case 0: sprin...原创 2019-01-17 11:23:32 · 17432 阅读 · 0 评论 -
libpcap交叉编译到mipsel架构处理器MT7628/n(在Ubuntu系统下,编译出openwrt系统可运行库)
1、OpenWrt SDK下载路径:所有版本固件①针对MT7628处理器下载SDK为: barrier_breaker / 14.07 / ramips / mt7620n 下载相应SDK,解压至任意目录本教程解压至(/usr/local/openwrt14.07下)。②配置环境变量:vim /etc/profile 添加如下配置,source /etc/profile 刷新生效。e...原创 2019-01-07 21:15:12 · 2338 阅读 · 0 评论 -
shell脚本基本语法
#创建 game.sh 测试脚本player1=xiaoming;player2=kenecho "Game Start! $player1 and $player2"if ls -l game.sh;then echo "ls return true"else echo "ls return false"fiif [ "$1" = "me" ]...原创 2019-01-21 11:34:50 · 367 阅读 · 0 评论 -
libubox交叉编译到mipsel架构处理器MT7628/n(在Ubuntu系统下,编译出openwrt系统可运行库)
准备环境:安装cmake#sudo apt-get install cmake1、libubox库依赖json-c库,所以需先下载 json-c.git 源码,并交叉编译git clone https://github.com/json-c/json-c.git注:json-c交叉编译可参考:libpcap的交叉编译过程。2、下载libubox.git源码git ...原创 2019-01-22 20:03:12 · 1463 阅读 · 0 评论 -
libuci交叉编译到mipsel架构处理器MT7628/n(在Ubuntu系统下,编译出openwrt系统可运行库)
前提:交叉编译好libubox库,可参考libubox交叉编译到mipsel架构处理器MT7628/n(在Ubuntu系统下,编译出openwrt系统可运行库)1、下载libuci.git源码#git clone https://git.openwrt.org/project/uci.git uci#cd uci2、修改CMakeLists.txt2.1添加安装目录,编译工具...原创 2019-01-22 20:16:30 · 891 阅读 · 0 评论