随笔分类 -  openwrt

摘要:Qt是通过官方的非核心源video来安装编译的。我需要用Qt的mqtt模块,官方仓库在mqtt。 makefile如下: # # Copyright (C) 2020 OpenWrt # Author: Mirko Vogt <mirko-openwrt@nanl.de> # This is fre 阅读全文
posted @ 2024-08-09 18:43 thammer 阅读(58) 评论(0) 推荐(0) 编辑
摘要:m4 c-stack.c:55:26: error: missing binary operator before token “(“ 55 | #elif HAVE_LIBSIGSEGV && 解决方法: wget https://raw.githubusercontent.com/keyfour 阅读全文
posted @ 2024-06-13 20:30 thammer 阅读(396) 评论(0) 推荐(0) 编辑
摘要:lua-emmyluadebugger A OpenWrt package of EmmyLuaDebugger IntelliJ-EmmyLua EmmyLuaDebugger IntelliJ-EmmyLua是一个给JetBrains全家桶用的lua插件,也有VSCode版本VSCode-Emm 阅读全文
posted @ 2024-03-20 19:46 thammer 阅读(244) 评论(0) 推荐(0) 编辑
摘要:设备使用4G网络,设备间需要通讯,又是短连接,必须要是静态ip,所以选择使用l2tp。然后LNS端通过/etc/ppp/chap-secrets为每个帐号绑定一个ip,每个设备使用一个帐号,LNS这端设备默认的隧道保活时间为60s。这时设备端(LAC)正常拨号时获取到的ip为LNS端绑定的,但是如果 阅读全文
posted @ 2023-11-17 16:58 thammer 阅读(1244) 评论(0) 推荐(0) 编辑
摘要:clion是linux下比较强大的C/C++ IDE,通过扩展也可以支持很多其他语言,例如shell,lua, perl, python,rust。唯一缺点是收费,但是相对它给我带来的便利,这点费用不算什么。我一般用来开发C/C++/项目,它支持3种方式解析工程源码,分别是 - Makefile - 阅读全文
posted @ 2023-08-29 21:05 thammer 阅读(593) 评论(0) 推荐(0) 编辑
摘要:​ 平时构建用buildroot,openwrt,在openwrt下,官方文档介绍的是使用quilt生成补丁文件,在buildroot下好像并没有太详细的介绍。不过生成补丁和你所使用的构建框架并没很大的联系,一般来说,有3种方式,diff,quilt, git。 1. 使用diff生成补丁文件 ​ 阅读全文
posted @ 2023-02-03 17:53 thammer 阅读(836) 评论(0) 推荐(0) 编辑
摘要:depends Examples: - opt:depends("foo", "test") Require the value of `foo` to be `test`. - opt:depends({ foo: "test" }) Equivalent to the previous exam 阅读全文
posted @ 2021-06-25 17:29 thammer 阅读(99) 评论(0) 推荐(0) 编辑
摘要:内核启动加载根文件系统后,执行的第一个脚本是init,具体参见内核源码kernel/init/main.c static int __ref kernel_init(void *unused) { ... ... ... if (!try_to_run_init_process("/sbin/ini 阅读全文
posted @ 2021-06-03 20:21 thammer 阅读(1094) 评论(0) 推荐(0) 编辑
摘要:luci原生的调试接口用起来不太舒服,在网上搜到如下调试方法。 将下面的lua代码保存为 log.lua,然后放置于 /usr/lib/lua/luci ,即可在 luci 任意目录进行调用 local M = {} local tconcat = table.concat local tinser 阅读全文
posted @ 2021-03-10 09:42 thammer 阅读(1965) 评论(0) 推荐(0) 编辑
摘要:L2TP: 第二层隧道协议(英语:Layer Two Tunneling Protocol,缩写为L2TP)是一种虚拟隧道协议,通常用于虚拟专用网。L2TP协议自身不提供加密与可靠性验证的功能,可以和安全协议搭配使用,从而实现数据的加密传输。经常与L2TP协议搭配的加密协议是IPsec,当这两个协议 阅读全文
posted @ 2021-01-27 20:48 thammer 阅读(4255) 评论(0) 推荐(0) 编辑
摘要:PPTP(点对点隧道协议):控制包和数据包分开,控制包采用TCP控制,数据包部分封装PPP协议然后封装GREV2协议。由此可见PPTP建立连接前,要求有IP网络。 Ubuntu 20.04.1 上搭建PPtP Server和Client Server端 安装ppp sudo apt install 阅读全文
posted @ 2021-01-27 16:50 thammer 阅读(3621) 评论(0) 推荐(0) 编辑
摘要:openwrt /etc/config/下的一些默认的配置是由config_generate脚本生成,例如网络配置文件/etc/config/network。具体的涉及的脚本和调用过程大致如下: /etc/rc.d/S10boot > /bin/config_generate > /bin/boar 阅读全文
posted @ 2020-12-11 17:24 thammer 阅读(1955) 评论(0) 推荐(0) 编辑
摘要:前提,被分析机器上有tcpdump,支持ssh登录。 http://sakananote2.blogspot.com/2010/10/ssh-wireshark.html ssh root@192.168.123.101 tcpdump -U -s0 -w - 'not port 22' | wir 阅读全文
posted @ 2020-11-19 09:42 thammer 阅读(451) 评论(0) 推荐(0) 编辑
摘要:简介 OpenVPN 是一个健壮且高度灵活的VPN守护进程。OpenVPN 支持 SSL/TLS 安全性、以太网桥接、TCP 或 UDP 隧道通过代理或 NAT 传输、对动态 IP 地址和 DHCP 的支持、对成百上千用户的可扩展性以及大多数主要操作系统平台的可移植性。OpenVPN 与 OpenS 阅读全文
posted @ 2020-09-23 15:27 thammer 阅读(5) 评论(0) 推荐(0) 编辑
摘要:CBI models are Lua files describing the structure of an UCI config file and the resulting HTML form to be evaluated by the CBI parser. All CBI model f 阅读全文
posted @ 2020-09-08 11:25 thammer 阅读(1149) 评论(0) 推荐(0) 编辑
摘要:quilt介绍 openwrt使用quilt工具对patch进行管理,quilt其实就是一系列shell脚本组成的一个工具。 安装quilt openwrt好像在host tools里面有quilt,不过也可以通过apt安装 sudo apt install quilt -y 配置quilt qui 阅读全文
posted @ 2020-09-03 16:36 thammer 阅读(1431) 评论(0) 推荐(0) 编辑
摘要:openwrt编译下载各种源码在国内非常费时间,甚至是github上的东西都非常慢,还不用说是SourceForge上面那些,下载openwrt和它的几个feeds倒是可以用gitee来下 https://gitee.com/openwrt-mirror 这个镜像包含了openwrt,package 阅读全文
posted @ 2020-08-19 18:35 thammer 阅读(2923) 评论(1) 推荐(0) 编辑
摘要:1. OpenWrt目录结构说明 作者:辛勤的摆渡人 来源:CSDN 原文:https://blog.csdn.net/hunter168_wang/article/details/50780597 1.1. bin bin目录存放的是一些输出文件,主要是存放OpenWrt编译好的开发环境,比如to 阅读全文
posted @ 2019-05-23 16:55 thammer 阅读(629) 评论(0) 推荐(0) 编辑
摘要:cat /proc/sys/kernel/hotplug /sbin/hotplug cat /sbin/hotplug-call #!/bin/sh # Copyright (C) 2006-2010 OpenWrt.org export HOTPLUG_TYPE="$1" . /lib/func 阅读全文
posted @ 2019-05-08 16:00 thammer 阅读(493) 评论(0) 推荐(0) 编辑

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