linux
nmgzhangrl
这个作者很懒,什么都没留下…
展开
-
android6.0下 rtl8152驱动
得到的A64开发板,网卡驱动怎么也不好使,驱动可以加载上,但是ifconfig eth0 up报错,后来发现linux-3.10/drivers/net/usb/r8152.c太古老了,更换新驱动后问题销售驱动下载链接:https://pan.baidu.com/s/1rj5OdaMQWT3uzVwYArUVpA提取码:pv0r启动后自动加载驱动需要在启动...原创 2019-09-20 08:54:32 · 2202 阅读 · 1 评论 -
android 6.0 EC20驱动移植
版本:android 6.0模块:移远EC20 R2.1 PCIE接口参考Quectel_Android_RIL_Driver_User_Guide_V1.6.pdf reference-ril/quectel_ril_porting_guide.txt文档中有描述不全的,结合网上搜索资料,整理一下移植注意事项Linux Kernel Configure by "make me...原创 2019-09-20 08:55:00 · 1405 阅读 · 1 评论 -
CentOS个人版 各种软件安装
来源/版权所有: http://seisman.info/linux-environment-for-seismology-research.html这篇博文记录了我用CentOS 7搭建地震学科研环境的过程,供我个人在未来重装系统时参考。对于其他地震学科研人员,也许有借鉴意义。阅读须知:本文适用于个人电脑,不适用于服务器;不推荐刚接触Linux的人使用Cent转载 2015-11-24 17:32:30 · 1872 阅读 · 0 评论 -
shell 获得本机IP和free端口
#!/bin/bashIPaddr=`ifconfig | grep inet\\\\s | grep -v "127.0.0." | sed "s/addr://g"| awk '{print $2}'`function scanner(){ IPaddr=$1 first_port=$2 last_port=$3 for (( port = $first_port; port /dev/tc原创 2015-09-08 10:06:03 · 843 阅读 · 0 评论 -
linux下怎么杀掉所有子进程
发现kill命令杀掉父进程后,子进程不会被杀掉,查了半天没找到合适的命令。所以自己写了一个shell留作后用#!/bin/shif [ $# -lt 1 ]; then echo "usage: $0 pid" exit 0fifunction killProcess() { # get the child pid children=`ps -a -原创 2015-07-07 10:49:06 · 4025 阅读 · 0 评论 -
zypper 源指定 ISO
在SUSE上安装开发依赖包的时候,遇到了问题,折腾一下午总算找到方法了,记一下。1. 先讲iso mount到本地文件夹,然后用zypper ar 指定原安装失败mount -o loop /nfs/SLE-12-Server-DVD-x86_64-GM-DVD1.iso /dvd1mount -o loop /nfs/SLE-12-Server-DVD-x86_64-GM-DVD原创 2015-05-07 18:14:11 · 4236 阅读 · 0 评论 -
统计代码耗时长短
#include #include #include #define TEST_MAX_SIZE (10)struct timeval testTime[TEST_MAX_SIZE];int testCount[TEST_MAX_SIZE];struct timeval tmpTime[TEST_MAX_SIZE], tmpTime2;#define TIME_TEST(inde原创 2013-09-06 17:49:24 · 597 阅读 · 0 评论 -
超强内存泄露检查工具valgrind
下载地址 http://www.valgrind.org使用方法valgrind --tool=memcheck --leak-check=full-v --log-file=leak ./Demo原创 2013-06-22 15:56:06 · 693 阅读 · 0 评论 -
ubuntu下mount windows的共享文件夹后,只有root用户可写
今天发现在ubuntu下mount windows的共享文件夹后,只有root用户才可以写结果一番搜索,终于找到了方法: mount的时候指定uid和gid1. 查看uid,gid#cat /etc/passwd | grep zhangrlzhangrl:x:1001:1001:zhangrl,,,:/home/zhangrl:/bin/bash从上面能看原创 2012-10-08 11:38:24 · 2521 阅读 · 0 评论 -
Android 中input学习--取得input事件
有的时候我们并不希望起个View,从画面上得到各种输入事件。怎么从底层得到各种input事件呢? 首先android下有个工具getevent,输出结果如下:$ adb shell geteventadd device 1: /dev/input/event7 name: "proximity"add device 2: /dev/input/event6原创 2012-09-29 17:30:31 · 2220 阅读 · 3 评论 -
Android 中input学习--键盘/触摸屏/手柄。。。模拟器
上一篇说过/dev/input/下的设备是各种输入设备怎么用自己的设备/程序模拟这些输入设备呢?------直接写 比如下面这段代码就可以模拟压下,放开事件怎么扩展,留备后用static char TOUCH_DEVICE[256] = "/dev/input/event3";int touchfd = -1;static void init_touch(){原创 2012-09-29 17:43:56 · 1353 阅读 · 0 评论 -
undefined reference to `avcodec_init()'
最近在NDK编译FFMPEG的时候,遇到一个奇怪的问题明明连接了对应的库,可是怎么也编译不过代码 main.cpp#include #include "libavcodec/avcodec.h"#include "libavformat/avformat.h"int main(int argc, char* argv[]){ avcodec_init(); pr原创 2012-03-14 13:45:45 · 4246 阅读 · 0 评论 -
Linux makefile中 nm命令的使用
1. 说明:nm用来列出目标文件的符号清单。Makefile中将产生的目标文件的符号清单列出,调查bug时,可以工具清单中的信息准确定位问题。2. 用法下面是nm命令的格式:nm [-a│--debug-syms] [-g│--extern-only] [-B] [-C│--demangle[=style]] [-D│--dynamic] [-S│--print-size] [-s│-转载 2010-07-21 12:00:00 · 1908 阅读 · 0 评论