tag 标签: 松江

相关博文
  • 热度 27
    2012-4-4 12:11
    1398 次阅读|
    0 个评论
    作者:下家山(转载,请注明) 六:kmsg查看结果 # ls /proc/ 1              6              diskstats      locks          stat 10             7              driver         meminfo        swaps 11             8              execdomains    misc           sys 12             9              filesystems    modules        sysrq-trigger 13             buddyinfo      fs             mounts         sysvipc 18             bus            interrupts     mtd            tty 2              cmdline        iomem          net            uptime 28             cpu            ioports        partitions     version 3              cpuinfo        kallsyms       schedstat      vmstat 4              crypto         kmsg           self           zoneinfo 5              devices        loadavg        slabinfo # cat proc/kmsg 5Linux version 2.6.15 (root@pc-ubuntu) (gcc version 3.4.1) #100 Tue Jan 13 13:44:09 CST 2009 4CPU: ARM920Tid(wb) revision 0 (ARMv4T) 4Machine: SMDK2410 4Warning: bad configuration page, trying to continue 4Memory policy: ECC disabled, Data cache writeback 7On node 0 totalpages: 4096 7  DMA zone: 4096 pages, LIFO batch:0 7  DMA32 zone: 0 pages, LIFO batch:0 7  Normal zone: 0 pages, LIFO batch:0 7  HighMem zone: 0 pages, LIFO batch:0 4to Call s3c_lookup_cpu 4Call s3c_lookup_cpu end 4CPU S3C2410A (id 0x32410002) 4S3C2410: core 202.800 MHz, memory 101.400 MHz, peripheral 50.700 MHz 6S3C2410 Clocks, (c) 2004 Simtec Electronics 4CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on 4CPU0: D VIVT write-back cache 4CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets 4CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets 4Built 1 zonelists 5Kernel command line: noinitrd console=ttySAC0,115200 root=/dev/nfs rw nfsroot=10.128.34.77:/home/cgm/Linux/root_nfs ip=10.128.34.43:10.128.34.77:10.128.34.102:255.255.255.0:host:eth0:off 4irq: clearing subpending status 00000002 4PID hash table entries: 128 (order: 7, 2048 bytes) 4timer tcon=00500000, tcnt a509, tcfg 00000200,00000000, usec 00001e4c 4Console: colour dummy device 80x30 7selected clock c020e26c (pclk) quot 27, calc 113169 4Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) 4Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) 6Memory: 16MB = 16MB total 5Memory: 13820KB available (1899K code, 367K data, 100K init) 7Calibrating delay loop... 50.48 BogoMIPS (lpj=126208) 6io scheduler anticipatory registered 6io scheduler deadline registered 6io scheduler cfq registered 4S3C2410 RTC, (c) 2004 Simtec Electronics 4cs89x0.c: v2.4.3-pre1 Russell Nelson , Andrew Morton @uow.edu.au@crynwr.com 6eth0: cs8900 rev K found at 0xf1300300 6NET: Registered protocol family 2 4IP route cache hash table entries: 256 (order: -2, 1024 bytes) 4TCP established hash table entries: 1024 (order: 0, 4096 bytes) 4TCP bind hash table entries: 1024 (order: 0, 4096 bytes) 6TCP: Hash tables configured (established 1024 bind 1024) 6TCP reno registered 6TCP bic registered 6NET: Registered protocol family 1 6eth0: using half-duplex 10Base-T (RJ-45) 4IP-Config: Complete: 4      device=eth0, addr=10.128.34.43, mask=255.255.255.0, gw=10.128.34.102, 4     host=host, domain=, nis-domain=(none), 4     bootserver=10.128.34.77, rootserver=10.128.34.77, rootpath= 5Looking up port of RPC 100003/2 on 10.128.34.77 5Looking up port of RPC 100005/1 on 10.128.34.77 4VFS: Mounted root (nfs filesystem). 6Freeing init memory: 100K 7selected clock c020e26c (pclk) quot 27, calc 113169 7selected clock c020e26c (pclk) quot 27, calc 113169 7selected clock c020e26c (pclk) quot 27, calc 113169 7selected clock c020e26c (pclk) quot 27, calc 113169 7selected clock c020e26c (pclk) quot 27, calc 113169 7selected clock c020e26c (pclk) quot 27, calc 113169 7selected clock c020e26c (pclk) quot 27, calc 113169 4printk_test: module license 'unspecified' taints kernel. 0Hello0 1Hello1 2Hello2 3Hello3 4Hello4 5Hello5 6Hello6 7Hello7 7Hello7 7Hello7-1 7No external FW image 7No external FW image 6success! 转载:请注明,作者,下家山   请尊重原创! @uow.edu.au@crynwr.com          
  • 热度 25
    2012-4-4 12:09
    2371 次阅读|
    0 个评论
    作者:下家山(转载,请注明)   七:如何查看console_loglevel当前等级          命令:          # cat /proc/sys/kernel/printk 7       4       1       7 这四个数字分别对应:console_loglevel  default_message_loglevel  minimum_console_loglevel  default_console_loglevel 八:如何改变console_loglevel当前等级  九:结束   转载:请注明,作者,下家山   请尊重原创!  
  • 热度 30
    2012-4-4 12:07
    2739 次阅读|
    5 个评论
    作者:下家山(转载,请注明)   一:专业图像识别方法            专业图像识别技术常用:OpenCV和MatLab;            OpenCV : 1:是由Intel公司资助的开源计算机视觉库; 2:包含300多个C/C++函数的跨平台的中高层API。它不依赖于其他外部库,但也可以使用某些外部库。 3:对非商业应用和商业应用都是免费的。          MatLab :                  1:Mathworks公司开发的一款工程数学计算软件。 2:对数学操作(矩阵变换,正,反余玄函数等)进行更直接的描述。它也是一种语言,但不同于C,C++,Java等高级语言是对机器行为进行描述。                  //Matlab的for语句                  for I =1:1:5                       //循环体          End              VC :                  但并不是说不能用VC,如果掌握成像规律,bmp图片格式原理,用什么语言都可以。VC中的CImg类可以很方便的操作位图文件。     图像识别说到复杂会很复杂,比如人脸识别,要红外成像,要做很多模板匹配,两个瞳孔之间的距离,颧骨之间的距离,眉骨之间的距离等等很多个人特征值要做很细致的分析。   说到简单,其实很简单,比如下面我在实际工作中做得一个led自动测试(应用在路由器生产线中判别led灯态),我什么工具(matlab,opencv,vc)都没有用完全是C++来实现的。 二:我们要识别的图形 三:第一步去杂讯        用专业术语说就是“二值化”,其结果如下: 四:行分割        定格每一行 led 的上下边缘,结果如下: 五:列分割        定格每一列 led 的左右边缘,结果如下: 六:行列分割结果   从上面这个图,我们可以取得每个 LED 四个顶点坐标 七:LED框定结果 八:LED坐标精确定位结果       在第六步得到的结果中,有些位置不够精确,如第一行的第四个,其右边缘框定结果并不精确,可以往左移。 九:使用接口部分       只要在配置文件里面给出要识别的是几行几列,每个灯的颜色。 如:有 12 个灯(最多可以识别 12 个灯);         那么在配置文件里应该写成       LedLn = 3 LedCol = 4 LedLnColor_1 = 0x67676767 LedLn1Color_2 = 0x72727272 LedLn1Color_3 = 0x67676767 这里67为’g’的ASCII码,72为’r’的ASCII码,这样每行可以用一个32位16进制数来表示,其中32为可以表示4个字节,每个字节代表一列。 转载:请注明,作者,下家山   请尊重原创!       
  • 热度 24
    2012-4-4 12:06
    1600 次阅读|
    0 个评论
    DirectVNC   的移植会涉及到很多库文件,比如zlib,glib,jpglib,pnglib,free_type zlib配置 export LDFLAGS="-L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/thumb2/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/thumb2/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/var/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/lib -L/usr/local/arm/4.3.3/lib" export CFLAGS="-g -I/usr/local/arm/4.3.3/arm-none-linux-gnueabi/include -I/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/usr/include -I/usr/local/arm/4.3.3//arm-none-linux-gnueabi/libc/armv4t/usr/include -I/usr/local/arm/4.3.3//lib/gcc/arm-none-linux-gnueabi/4.3.3/include -I/usr/local/arm/4.3.3//lib/gcc/arm-none-linux-gnueabi/4.3.3/install-tools/include" ./configure  --prefix=/home/parson/project/podium/zlib-1.2.3/__install   glib配置 export LDFLAGS="-L/home/parson/project/podium/dbus-1.5.8/__install/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/thumb2/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/thumb2/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/var/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/lib -L/usr/local/arm/4.3.3/lib" export CFLAGS="-g -I/home/parson/project/podium/dbus-1.5.8/__install/include -I/usr/local/arm/4.3.3/arm-none-linux-gnueabi/include -I/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/usr/include -I/usr/local/arm/4.3.3//arm-none-linux-gnueabi/libc/armv4t/usr/include -I/usr/local/arm/4.3.3//lib/gcc/arm-none-linux-gnueabi/4.3.3/include -I/usr/local/arm/4.3.3//lib/gcc/arm-none-linux-gnueabi/4.3.3/install-tools/include"   ./configure --host=arm-linux --build=i686-pc-linux CC=arm-none-linux-gnueabi-gcc CCAS=arm-none-linux-gnueabi-as AR=arm-none-linux-gnueabi-ar LD=arm-none-linux-gnueabi-ld --host=arm-linux --prefix=/home/parson/project/podium/glib-2.22.4/__install_arm --cache-file=arm-none-linux-gnueabi.cache freetype编译 export LDFLAGS=" -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/thumb2/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/thumb2/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/var/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/lib -L/usr/local/arm/4.3.3/lib" export CFLAGS="-g  -I/usr/local/arm/4.3.3/arm-none-linux-gnueabi/include -I/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/usr/include -I/usr/local/arm/4.3.3//arm-none-linux-gnueabi/libc/armv4t/usr/include -I/usr/local/arm/4.3.3//lib/gcc/arm-none-linux-gnueabi/4.3.3/include -I/usr/local/arm/4.3.3//lib/gcc/arm-none-linux-gnueabi/4.3.3/install-tools/include"   ./configure CC=arm-none-linux-gnueabi-gcc --host=arm-linux --prefix=/home/parson/project/podium/directFB/freetype-2.4.3/__install --without-zlib dbus编译 export LDFLAGS="-L/home/parson/project/podium/expat-2.0.1/__install/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/thumb2/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/thumb2/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/var/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/lib -L/usr/local/arm/4.3.3/lib" export CFLAGS="-g  -I/home/parson/project/podium/expat-2.0.1/__install/include -I/usr/local/arm/4.3.3/arm-none-linux-gnueabi/include -I/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/usr/include -I/usr/local/arm/4.3.3//arm-none-linux-gnueabi/libc/armv4t/usr/include -I/usr/local/arm/4.3.3//lib/gcc/arm-none-linux-gnueabi/4.3.3/include -I/usr/local/arm/4.3.3//lib/gcc/arm-none-linux-gnueabi/4.3.3/install-tools/include"   ./configure --host=arm-linux --prefix=/home/parson/project/podium/dbus-1.5.8/__install --host=arm-linux --build=i686-pc-linux CC=arm-none-linux-gnueabi-gcc CCAS=arm-none-linux-gnueabi-as AR=arm-none-linux-gnueabi-ar LD=arm-none-linux-gnueabi-ld --host=arm-linux --cache-file=arm-linux.cache --without-x   DirectFB编译 注意顺序 export LDFLAGS="-L/home/parson/project/podium/zlib-1.2.3/__install/lib -L/home/parson/project/podium/glib-2.22.4/__install_arm/lib -L/home/parson/project/podium/directFB/freetype-2.4.3/__install/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/thumb2/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/thumb2/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/var/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/lib -L/usr/local/arm/4.3.3/lib" export CFLAGS="-g -I/home/parson/project/podium/directFB/freetype-2.4.3/__install/include -I/usr/local/arm/4.3.3/arm-none-linux-gnueabi/include -I/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/usr/include -I/usr/local/arm/4.3.3//arm-none-linux-gnueabi/libc/armv4t/usr/include -I/usr/local/arm/4.3.3//lib/gcc/arm-none-linux-gnueabi/4.3.3/include -I/usr/local/arm/4.3.3//lib/gcc/arm-none-linux-gnueabi/4.3.3/install-tools/include"   ./configure CC=arm-none-linux-gnueabi-gcc CCAS=arm-none-linux-gnueabi-as AR=arm-none-linux-gnueabi-ar LD=arm-none-linux-gnueabi-ld --host=arm-linux --prefix=/home/parson/project/podium/directFB/DirectFB-1.2.10/__install --with-gfxdrivers=none --with-inputdrivers=all --enable-png=yes --enable-jpeg=yes --enable-zlib=yes --enable-sdl=no --enable-gif=yes --disable-x11 --enable-vnc=yes --enable-debug=yes --enable-debug-support=yes   directvnc编译 ####################4.3.3################################# export LDFLAGS="-L/home/parson/project/podium/directFB/DirectFB-1.2.10/__install/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/thumb2/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/thumb2/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/var/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/armv4t/lib -L/usr/local/arm/4.3.3/arm-none-linux-gnueabi/lib -L/usr/local/arm/4.3.3/lib" export CFLAGS="-g -I/home/parson/project/podium/directFB/DirectFB-1.2.10/__install/include -I/usr/local/arm/4.3.3/arm-none-linux-gnueabi/include -I/usr/local/arm/4.3.3/arm-none-linux-gnueabi/libc/usr/include -I/usr/local/arm/4.3.3//arm-none-linux-gnueabi/libc/armv4t/usr/include -I/usr/local/arm/4.3.3//lib/gcc/arm-none-linux-gnueabi/4.3.3/include -I/usr/local/arm/4.3.3//lib/gcc/arm-none-linux-gnueabi/4.3.3/install-tools/include"