摘要:Overview#apt-get install git-coreHow to push/pull repos without passwordOn servergit@debian:~$ ssh - keygen - t rsaGenerating public / private rsa key...
阅读全文
摘要: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 ...
阅读全文
摘要:[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":...
阅读全文
摘要:使用内核源代码中的定义 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)...
阅读全文
摘要: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)
阅读全文
摘要: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...
阅读全文