Markdown语法教程
摘要:Markdown语法教程 (Markdown syntax tutorial) for gitee.com 用法1用法2结果 *Italic* _Italic_ Italic **Bold** __Bold__ Bold # Heading 1 Heading 1 Heading 1 ## Head
阅读全文
posted @
2022-07-05 10:11
listenerln
阅读(82)
推荐(0)
MT7621 将gpio对应pin设置gpio模式
摘要:文档: MT7621A_Datasheet 查找gpio对应的pin文档: MT7621_ProgrammingGuide_Preliminary_Platform 找到对应pin地址位 将GPIO4 设置为gpio模式根据Datasheet 找到 GPIO4 对应 pin为 I2C 找到I2C设置
阅读全文
posted @
2022-03-23 11:26
listenerln
阅读(962)
推荐(0)
linux Makefile 内置宏 #err #warn, 代码注释标记TODO
摘要:1 出错提醒 2 #err aaaaaaaaa 3 类似err 4 #warn aaa 5 6 提示内容, 不断开编译 7 #warning aaaaaaaa 8 9 输出信息,类似可以带VT码带颜色输出 10 #pragma message("\033[41;37m aaaaa \033[0m")
阅读全文
posted @
2021-11-05 13:40
listenerln
阅读(147)
推荐(0)
linux ftp 挂载 serv-u
摘要:serv-u 新建用户anonymous 密码空, 用来匿名访问 linux curlftpfs ftp://192.168.1.1 mount/ 挂载到当前mount目录 curlftpfs -o codepage=gbk ftp://username:password@192.168.0.2 /
阅读全文
posted @
2019-12-21 14:06
listenerln
阅读(830)
推荐(0)
linux所有版本下载链接
摘要:http://mirrors.ustc.edu.cn/kernel.org/linux/kernel/
阅读全文
posted @
2019-04-12 09:09
listenerln
阅读(360)
推荐(0)
openwrt package Makefile
摘要:ppp 添加ipv6菜单项 Makefile增加菜单 增加子菜单 增加展开菜单 ...
阅读全文
posted @
2019-03-22 17:47
listenerln
阅读(760)
推荐(0)
openwrt 中个网络接口协议说明[转]
摘要:openwrt 中个网络接口协议说明 ref: https://blog.csdn.net/u011641885/article/details/46650099 openwrt 中个网络接口协议说明 ref: https://blog.csdn.net/u011641885/article/det
阅读全文
posted @
2019-03-16 22:31
listenerln
阅读(2465)
推荐(0)
linux kernel 从cmdline 提取值
摘要:1 // 从cmdline 提取 rootfsname= 的值到 val_buf 2 char val_buf[64]; 3 #define ROOTFS_CMDLINE "rootfsname=" 4 5 static void __init gluebi_read_cmdline (void) 6...
阅读全文
posted @
2019-01-19 16:33
listenerln
阅读(2233)
推荐(0)
Linux C语言中sscanf 的详细用法[转载]
摘要:sscanf() - 从一个字符串中读进与指定格式相符的数据. 说明: sscanf与scanf类似,都是用于输入的,只是后者以屏幕(stdin)为输入源,前者以固定字符串为输入源。其中的format可以是一个或多个 {%[*] [width] [{h | l | I64 | L}]type | '
阅读全文
posted @
2018-06-15 10:44
listenerln
阅读(3969)
推荐(0)
isc-dhcp 自定义option 配置, option 43, option 60
摘要:本文为原创, 转载请注明出处 配置选项对应的指令列表: isc-dhcp-ipv4/dhcp-4.2.4/common/tables.c 私有编号: 1. 定义: # 配置文件有声明的编号 会在接收的时候 替换成类似new_acip1=value 形式 # 声明一个私有编号名字: acip1, 编号
阅读全文
posted @
2018-05-30 15:08
listenerln
阅读(4205)
推荐(0)
pf_ring 编译移植
摘要:下载地址: http://sourceforge.net/projects/ntop/files/PF_RING/ 编译模块: cd kernel/ pf_ring.ko 编译libpcapcd userland/libpcap-1.7.4 ./configure --target=mips-ope
阅读全文
posted @
2018-04-17 09:30
listenerln
阅读(718)
推荐(0)
linux下CJson使用
摘要:ref: https://blog.csdn.net/taiyang1987912/article/details/49862141
阅读全文
posted @
2018-04-03 15:14
listenerln
阅读(567)
推荐(0)
libxml -- 解析 XML 文档
摘要:ref: http://www.360doc.com/content/10/1210/16/4384349_76816020.shtml 参考 XML 介绍:XML 和 DOM libxml 介绍 数据类型 — xmlChar 数据结构 创建 XML 文档 解析 XML 文档 修改 xml 文档 X
阅读全文
posted @
2018-03-23 16:20
listenerln
阅读(1315)
推荐(0)
Ubuntu 语言设置
摘要:默认语言 /etc/default/locale 安装的语言
阅读全文
posted @
2018-01-12 16:38
listenerln
阅读(171)
推荐(0)
panic[转]
摘要:简介 在内存发生panic时,需要把panic的日志保存下来。以方便日后进行分析。 目前有三种记录的方式: kdump; mtdoops; crashlog 大家对kdump比较了解。它主要使用于x86系统。因为它使用占用大量内存和硬盘。 mtdoops和crashlog主要用于嵌入式的环境。也只是
阅读全文
posted @
2017-10-12 16:33
listenerln
阅读(901)
推荐(0)
Uncompressing Linux... done, booting the kernel
摘要:今天用主线Linux内核移植到MINI6410,主线内核2.6.37.1基本已经支持了MINI6410的板子,所以移植到能够启动起来的阶段很简单,但是在移植的时候还是出现了一个比较常见的问题: MINI6410 # bootm 0x50008000 ## Booting kernel from Le
阅读全文
posted @
2017-09-14 16:02
listenerln
阅读(711)
推荐(0)
linux 内核模块最小环境编译
摘要:1. gcc编译环境 2. linux-kernel: 所有*.c *.o 文件都可以去掉 .├── arch: 平台相关文件(可以适当删减)├── include: 头文件(必须)├── Makefile: 必须├── Module.symvers: 建议存在├── scripts: 一些编译所需
阅读全文
posted @
2017-09-12 16:43
listenerln
阅读(433)
推荐(0)
select 定时器
摘要:在编写程序时,我们经常会用到定时器。首先看看select函数原型如下: 1 int select(int nfds, fd_set *readfds, fd_set *writefds, 2 fd_set *exceptfds, struct timeval *timeout); 参数说明:slec
阅读全文
posted @
2017-09-11 11:00
listenerln
阅读(489)
推荐(0)