标题1
top -------------查看内存占用
make package/luci/applications/luci-app-wifi/clean V=s -j$(grep processor /proc/cpuinfo | wc -l) --------------启动多线程删除wifi模块缓存
make package/luci/applications/luci-app-wifi/compile V=s -j$(grep processor /proc/cpuinfo | wc -l) -----启用多线程编译wifi模块
make menuconfig --------------界面编译
标题2
make tools/install V=s -j$(grep processor /proc/cpuinfo | wc -l)
make toolchain/install V=s -j$(grep processor /proc/cpuinfo | wc -l) -----------------获取对应设备交叉编译所需的编译链
./scripts/feeds update
./scripts/feeds install ---------------更新内置软件包列表并链接到编译工具中
adb push xxxxxx.ipk /tmp/myipk.ipk -----------------复制ipk到tmp目录
opkg install myipk.ipk ---------------------安装ipk
opkg remove luci-mod-status --force-depends ---------------卸载系统应用
logread -f --------------------显示实时日志
ubus -v list --------------显示所有ubus命令
vi /etc/wireless/mediatek/mt7915.dbdc.b0.dat --------------4G配置文件
vi /etc/wireless/mediatek/mt7915.dbdc.b1.dat --------------5G配置文件
make distclean -----------------清理编译缓存
make clean ------------------清理编译缓存
/etc/config # vi luci --------------修改语言和缓存
uci set luci.main.lang="zh_cn" --------------------设置语言
uci get luci.ccache.enable ----------------查看缓存是否关闭
uci set luci.ccache.enable=0 ----------------关闭缓存
ubus call file list '{"path":"/www/luci-static/resources/view/status/includ"}' ----------------------查看文件目录
ubus call file stat '{"path":"/www/luci-static/resources/view/status/include/10_system.js"}' ------查看文件信息
ubus call file md5 '{"path":"/www/luci-static/resources/view/status/include/10_system.js"}' ----------查看指纹
ubus call file exec '{"command":"/www/luci-static/resources/view/status/include/60_wifi.lua", "params":['wifirate']}' ---------------执行方法
iwconfig rai0 ---------------查看5G配置
iwconfig ra0 --------------查看4G配置
ifconfig ------------------查看配置
标题3
target/linux/mt6890/evb6890v1_64_cpe_nand/target.config --------------添加语言配置
modules/luci-base/root/usr/libexec/rpcd/luci ----------添加系统方法 参考https://www.right.com.cn/forum/thread-3218699-1-1.html
quectel/package/telephony/ql-ril-client/nw --------------信号强度文件
uci show --------------查看uci可调用方法
ps |grep xxx|grep -v grep |head -n 1 |awk '{printf $1}' |xargs kill -9 ----------------杀死进程xxx
https://layui.itze.cn/ https://github.com/layui/layui/releases/tag/v2.8.0-rc.2 -----------------layui官网
openwrt/package/stoneoim/telephony/stoneoim-ril-client/makefile ---------------makefile 文件路径
man 3 xxx --------------------c语言的方法查看应用的包 xxx是方法名
ln -s /etc/init.d/test /etc/rc.d/S75test ---------------------创建软链接
iwconfig -------------------查看配置
gcc bbb.c cJSON.c cJSON.h -o bbb -lm -----------------C语言编译c.json
/etc/init.d/network stop -----------------停止网络
/etc/init.d/network restart -------------------重启网络
hfmx ----------------10010查话费
https://tool.letmetellyou.xyz/pdu/ -----------------生成pdu
./etc/init.d/cpe_customer restart ---------------- 测试init
dnsmasq -v ---------------------路由器分配
单编wifi模块
cd ~/stoneoim_projects_bu2/buildbot/build2/fe_platform_rg500l_t750_vtrunk/openwrt
make package/luci/applications/luci-app-wifi/clean V=s -j(grep processor /proc/cpuinfo | wc -l)是启用多线程编译,也可以用make package/luci/applications/luci-app-wifi/clean
make package/luci/applications/luci-app-wifi/compile V=s -j$(grep processor /proc/cpuinfo | wc -l) //开始编译,编译后bin目录下生成xxx.ipk
adb push xxx.ipk /tmp/ //复制到tmp目录下
adb shell
cd tmp
opkg list |grep wifi //查找wifi模块
opkg remove luci-app-wifi //删除wifi模块
opkg install xxx.ipk //安装后生效
新增文件或者修改lua代码文件,编译模块后需要重启一下板子才能生效,按一下板子重启键
luci分析
modules/luci-base/root/www/index.html //启动页面
modules/luci-base/htdocs/cgi-bin/luci //启动luci
modules/luci-base/luasrc/sgi/cgi.lua //启动
modules/luci-mod-admin-mini/luasrc/controller/mini/index.lua//初始页面
modules/luci-mod-admin-mini/luasrc/model/cbi/mini/index.lua //返回模板