gdb command

file kill list next step run quit watch print break shell  gcc -g xxx xxx.c ./xxx gdb xxx file xxx ...
默认分类 | 2015-07-30 14:18 | 1011次阅读 | 0评

udp and tcp

1 udp socket(...); bind(...); while(1) { recvfrom(...); process(...); sendto(...); }   2 tcp socket(...); bind(...); listen(...); while(1) { accept(...); w...
默认分类 | 2015-07-30 11:43 | 624次阅读 | 0评

RT5350 APP

  Step1:install toolchain 拷贝解压文件 cp RT288x_SDK/toolchain/buildroot-gcc342.tar.bz2   /opt tar jxvf buildroot-gcc342.tar.bz2 新建文件 mkdir /opt/buildroot-gdb mkdir /opt/buildroot-gdb/bin Step2:install LZMA Util...
默认分类 | 2015-07-23 08:47 | 2509次阅读 | 0评

RT5350 GPIO

fd = open("/dev/gpio", ORDONLY); if (ioctl(fd, RALINKGPIOSETDIRIN, RALINKGPIO(0)) < 0) // 这里能看到对gpio号0设置输入模式   3. 使能gpio的中断功能; if (ioctl(fd, RALINKGPIOENABLE_INTP) &...
默认分类 | 2015-07-22 19:23 | 2557次阅读 | 0评

file system

#include <fcntl.h>; include <unistd.h>; include <sys/types.h>; include <sys/stat.h>; int open(const char *pathname,int flags); int open(const char *pathname,int flags,mode_t mode); int close(int fd); include <un...
默认分类 | 2015-07-15 22:23 | 713次阅读 | 0评

process management

#include <unistd.h>; int execl(const char *path,const char *arg,...); int execlp(const char *file,const char *arg,...); int execle(const char *path,const char *arg,...); int execv(const char *path,char *const argv[]); int execvp(const char *file,char...
默认分类 | 2015-07-15 22:17 | 668次阅读 | 0评

process function

#include <unistd.h> pidt getpid(void); pidt fork(); int pipe(int fides[2]); int sigemptyset(sigset_t *set); <span st...
默认分类 | 2015-07-15 17:34 | 738次阅读 | 0评

stm32 uclinux 2

cp -a $(rootfsdir)/*   $(targetoutromfs) cp -f $(targetoutkernel)/fs/ext2/ext2.ko $(targetoutromfs)/lib/modules  cp -f $(targetoutkernel)/fs/mbcacke.ko $(targetoutromfs?lic/modules cp -f $(targetout_user)/bin/*  $(target...
默认分类 | 2015-07-14 13:50 | 1314次阅读 | 0评

stm32 uclinux

su apt-get install eclipse-cdt apt-get install genromfs apt-get install libncurses5-dev apt-get install git apt-get install mc mc uclinux ctrl+O .ACTIVE.sh ctrl+...
默认分类 | 2015-07-14 12:30 | 3033次阅读 | 0评
浏览68021次