随笔分类 -  Linux

Linux - GIT
摘要:Overview#apt-get install git-coreHow to push/pull repos without passwordOn servergit@debian:~$ ssh - keygen - t rsaGenerating public / private rsa key... 阅读全文

posted @ 2015-11-14 13:31 devcfei 阅读(146) 评论(0) 推荐(0)

Linux - SSH
摘要:Overview#apt-get install openssh-server#apt-get install ssh#/etc/init.d/ssh start|stop|restartThe configuration /etc/ssh/sshd_configHow to allow root ... 阅读全文

posted @ 2015-11-14 13:29 devcfei 阅读(127) 评论(0) 推荐(0)

交叉编译lsusb
摘要:[libusb-1.0.8] ./configure CC=arm-linux-gcc --build=i686-linux --host=arm-linux --prefix="$PWD/../usblib-1.0" make install [libusb-compat-0.1.3] export PKG_CONFIG_PATH="$PWD/../usblib-1.0":... 阅读全文

posted @ 2011-08-26 15:41 devcfei 阅读(1551) 评论(0) 推荐(0)

Linux 物理内存和虚拟内存设置(zt)
摘要:使用内核源代码中的定义 PHYS_OFFSET:系统内存的物理起始地址,板级相关,在include/asm-arm/arch-xxx/memory.h中 PAGE_OFFSET:系统内存的虚拟起始地址,体系结构相关,为0xC0000000,在include/asm-arm/memory.h中 MEM_SIZE:系统内存大小,如果板级(include/asm-arm/arch-xxx/xxx.h)... 阅读全文

posted @ 2011-04-21 12:25 devcfei 阅读(2390) 评论(0) 推荐(0)

pppd 强制设置默认网关?
摘要:intsifdefaultroute(intunit,u_int32_touraddr,u_int32_tgateway){structrtentryrt;/*if(defaultroute_exists(&rt)&&strcmp(rt.rt_dev,ifname)!=0){u_int32_told_gateway=SIN_ADDR(rt.rt_gateway);if(old_gateway!=gateway)error("notreplacingexistingdefaultrouteto%s[%I]",rt.rt_dev,old_gateway) 阅读全文

posted @ 2011-02-25 20:12 devcfei 阅读(1585) 评论(0) 推荐(0)

内核模块编程1
摘要:Linux设备驱动是以模块的形式驻留内存,设备驱动编程基本上遵循内核模块编程 准备文件 /*main.c*/#include <linux/init.h>#include <linux/module.h>static int hello_init(void){ printk(”hello!hello_init\n”); return 0;}static void he... 阅读全文

posted @ 2009-05-29 20:24 devcfei 阅读(236) 评论(0) 推荐(0)