随笔分类 - LINUX/UNIX
摘要:原因是缺少库文件,解决办法:arm-linux-readelf -a helloword | grep NEEDED 拷贝so文件到安卓下或者arm-linux-gcc hello.c -o hello -static
阅读全文
摘要:.├── aclocal.m4├── autoscan.log├── config.log├── config.status├── configure├── configure.in├── Makefile├── Makefile.am├── Makefile.in└── src ├── f...
阅读全文
摘要:查看进程ps -APID进程的sopmap -x pid
阅读全文
摘要:网卡配置静态IP地址 编辑文件/etc/network/interfaces: sudo vi /etc/network/interfaces 并用下面的行来替换有关eth0的行:# The primary network interface auto eth0 iface eth0 inet st
阅读全文
摘要:用海思的交叉编译工具交叉编译live555 ,结合海思例子venc中的H264部分,完成RTSP的视频数据发布。用vlc可以播放,但是实时性比较差,慢了5秒
阅读全文
摘要:2.4.9的opencv安装好交叉编译后,用Cmake 配置opencv修改CMakeCache.txtCMAKE_EXE_LINKER_FLAGS:STRING=-lpthread -lrt -lstdc++
阅读全文
摘要:export LD_LIBRARY_PATH=/usr/local/lib
阅读全文
摘要:在Linux 下经常需要链接一些 *.a的库文件,那怎么查看这些*.a 中包含哪些文件、函数、变量: 1. 查看文件:ar -t *.a 2. 查看函数、变量:nm *.a
阅读全文
摘要:uboot1.1.6\include\configs\smdk6410.h#define CONFIG_BOOTCOMMAND"nand read 0xc0008000 0x200000 0x500000;bootm 0xc0008000"#define CONFIG_BOOTCOMMAND "nand led-start;nand erase ;fatload mmc 0:1 0x50008000 u-boot.bin;nand write.uboot 0x50008000 0 0x200000;fatload mmc 0:1 0x50008000 zImage
阅读全文
摘要:编译gdbserver~/gdb-6.5/gdb/gdbserver$ ./configure --target=arm-linux --host=arm-linuxmake CC=/usr/local/arm/4.3.2/bin/arm-linux-gcc开发板上运行IP:开发板IP 程序是本地程序./gdbserver 192.168.1.20:1234 gdbtest主机:arm-linux-gdb ./ gdbtesttarget remote 192.168.1.20:1234
阅读全文
摘要:arch/arm/mach-s3c64xx/mach-smdk6410.c/* * Configuring Nandflash on SMDK6410 */struct mtd_partition ok6410_nand_part[] = { { .name = "Bootloader", .offset = 0, .size = (1 * SZ_1M), .mask_flags = MTD_CAP_NANDFLASH, }, { .name = "Kernel", .offset = (1 * SZ_1M), .size = (5*SZ_1M) , .
阅读全文
摘要:U-boot的环境变量值得注意的有两个: bootcmd 和bootargs。u-bootcmd 前面有说过bootcmd是自动启动时默认执行的一些命令,因此你可以在当前环境中定义各种不同配置,不同环境的参数设置,然后设置bootcmd为你经常使用的那种参数。u-bootargs bootargs是环境变量中的重中之重,甚至可以说整个环境变量都是围绕着bootargs来设置的。bootargs的种类非常非常的多,我们平常只是使用了几种而已,感兴趣的可以看看这篇文章说的很全:http://blog.chinaunix.net/u2/79570/showart_1675071.html。boo..
阅读全文
摘要:显示这个提示:CS8900 Ethernet chip not found ,表示不支持网络,对应驱动没有被移植替换dm9000x和smdk6410 重新编译u-boot既可http://files.cnblogs.com/ahuo/u-boot-Net.rar
阅读全文
摘要:查找:在当前目录下的.jsp文件中查找“alert”字符串grep "alert" *.jsp在当前目录及其多个子目录中查找文件portal.jspfind . -name "portal.jsp" -print在当前目录及其多个子目录下的.jsp文件中查找字符串"alert"find . -name "*.jsp" -print | xargs grep "alert"替换:在当前目录下的.jsp文件中把字符串"password"替换成"pwd"perl
阅读全文
摘要:1、 Linux中一些头文件的作用:<assert.h>:ANSI C。提供断言,assert(表达式)<glib.h>:GCC。GTK,GNOME的基础库,提供很多有用的函数,如有数据结构操作函数。使用glib只需要包含<glib.h><dirent.h>:GCC。文件夹操作函数。struct dirent,struct DIR,opendir(),closedir(),readdir(),readdir64()等<ctype.h>:ANSI C。字符测试函数。isdigit(),islower()等<errno.h>:
阅读全文
摘要:man -f openopen (3tcl) - 打开基于文件或命令管道的一个通道open (2) - 用来 打开和创建 一个 文件或设备open (n) - Open a file-based or command pipeline channelopen (1) - start a program on a new virtual terminal (VT).man -k openfdopen (3) - 打开流fopen (3) - 打开流freopen (3) - 打开流iconv_open (3) - 分配...
阅读全文
摘要:kill -l1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP6) SIGABRT 7) SIGBUS 8) SIGFPE 9) SIGKILL 10) SIGUSR111) SIGSEGV 12) SIGUSR2 13) SIGPIPE 14) SIGALRM 15) SIGTERM16) SIGSTKFLT 17) SIGCHLD 18) SIGCONT 19) SIGSTOP 20) SIGTSTP21) SIGTTIN 22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGXFSZ26) ...
阅读全文
摘要:/*server.c*/#include<signal.h>#include<sys/wait.h>#include"inet.h"#include<stdlib.h>intinit_ser(int);intmax(inta,intb){intthemax;if(a>b)themax=a;elsethemax=b;returnthemax;}voidset_name(char*line,char*name){strcpy(name,&line[1]);sprintf(line,"%sjointheroom\n&qu
阅读全文
摘要:ssize_t ret; while(len!=0&&(ret=read(fd,buf,len))!=0){if(ret==-1){if(errno==EINTR)continue;perror("read");break;}len-=ret;buf+=ret;}#include <stdio.h>#include <errno.h>#include <string.h>#include <sys/types.h>#include <fcntl.h>intmain (int argc, char *
阅读全文
摘要:ifconfig eth0 ip 更改IP 网关可以用 route命令查看修改添加网关route add default gw 网关地址 删除网关route del default gw 网关地址用这两个命令改`只能保证在电脑开着的时候用` 而且你一重新启动 这俩地址就会还原到以前的`不想还原可以改配置文件网关IP都在 /etc/sysconfig/network-scripts/ifcfg-eth0 这个文件里改 可以永久保存 DNS是在/etc/resolv.conf 这个配置文件里修改 修改后也是永久保存
阅读全文
浙公网安备 33010602011771号