2019年10月18日

清除内核缓冲区

摘要: 方法: sync echo 1 > /proc/sys/vm/drop_caches 注: int fsync(int fd); int fflush(FILE *stream); 阅读全文

posted @ 2019-10-18 17:08 Alvin2012 阅读(191) 评论(0) 推荐(0) 编辑

linux打印重定向丢失问题

摘要: 这是由于缓冲区造成的,解决方法如下: 在打印前加上5,6行 阅读全文

posted @ 2019-10-18 16:50 Alvin2012 阅读(574) 评论(0) 推荐(0) 编辑

2019年9月27日

tftp-hpa交叉编译及使用

摘要: tftp-hpa源码下载地址:https://mirrors.edge.kernel.org/pub/software/network/tftp/ 1.交叉编译 mkdir __install ./configure --host=arm-none-linux-gnueabi --prefix=__ 阅读全文

posted @ 2019-09-27 17:04 Alvin2012 阅读(1046) 评论(0) 推荐(1) 编辑

2019年8月14日

C语言函数头注释

摘要: 1 /* 2 * Function: 3 * Description: 4 * Calls: 5 * Called By: 6 * Input: 7 * Output: 8 * Return: 9 * Others: 10 */ 阅读全文

posted @ 2019-08-14 17:28 Alvin2012 阅读(1891) 评论(0) 推荐(0) 编辑

2019年7月31日

linux上JDK环境配置

摘要: 1 export JAVA_HOME=/opt/jdk1.6.0_45 2 export JRE_HOME=$JAVA_HOME/jre 3 export CLASSPATH=$JAVA_HOME/lib/ 4 export PATH=$PATH:$JAVA_HOME/bin 阅读全文

posted @ 2019-07-31 19:33 Alvin2012 阅读(89) 评论(0) 推荐(0) 编辑

2019年7月30日

linux显示bootup logo

摘要: 1 #!/bin/sh 2 3 # ubuntu下安装图片转换工具 4 # sudo apt-get install netpbm 5 6 7 # 转换png为pnm格式 8 pngtopnm start_logo.png > start_logo.pnm 9 # 转换为224像素 10 pnmquant 224 start_logo.pnm > start_logo22... 阅读全文

posted @ 2019-07-30 10:02 Alvin2012 阅读(251) 评论(0) 推荐(0) 编辑

2019年7月27日

notepad++显示所有字符

摘要: 菜单栏-> View-> Show Symbol-> Show All Characters 阅读全文

posted @ 2019-07-27 10:26 Alvin2012 阅读(228) 评论(0) 推荐(0) 编辑

notepad++转换win、linux、mac的回车换行符转换

摘要: 菜单栏-> Edit-> EOL Conversion-> Windows(CR LF)、Unix(LF)、Macintosh(CR) 阅读全文

posted @ 2019-07-27 10:25 Alvin2012 阅读(752) 评论(0) 推荐(0) 编辑

2019年7月20日

I2C调试

摘要: I2C调试: 包括SCL时钟线,SDA数据线。 I2C调试工具:i2c-tools ubuntu上安装使用命令 :sudo apt-get install i2c-tools 交叉编译的话需要先下载源码,下载地址如下。然后修改Makefile: 下载地址: https://mirrors.edge. 阅读全文

posted @ 2019-07-20 11:35 Alvin2012 阅读(411) 评论(0) 推荐(0) 编辑

2019年7月19日

linux读取cpu温度

摘要: 可以通过读取如下路径中的数据来获取cpu的温度信息,不过读取的数据没有经过处理。 cpu0: cat /sys/class/thermal/thermal_zone0/temp cpu1: cat /sys/class/thermal/thermal_zone1/temp 阅读全文

posted @ 2019-07-19 11:16 Alvin2012 阅读(628) 评论(0) 推荐(0) 编辑

导航