Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4474020
  • 博文数量: 356
  • 博客积分: 10458
  • 博客等级: 上将
  • 技术积分: 4734
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-24 14:59
文章分类

全部博文(356)

文章存档

2020年(17)

2019年(9)

2018年(26)

2017年(5)

2016年(11)

2015年(20)

2014年(2)

2013年(17)

2012年(15)

2011年(4)

2010年(7)

2009年(14)

2008年(209)

发布时间:2015-11-24 20:34:29

从datasheet中查到IO口寄存器基地址Base Address:0x01C20800PE口的寄存器PE Data Register 偏移offset: 0xA0,那么PE_DAT地址就是0x01C208A0现在要访问PE4的值,PE4就是0x01C208A4程序如下:点击(此处)折叠或打开#include <stdio.h>#include <stdlib.h>#include.........【阅读全文】

阅读(6987) | 评论(0) | 转发(0)

发布时间:2015-11-02 18:13:00

make make -C /benew/hello/../linux-3.0 M=/benew/hello modules make[1]: Entering directory '/benew/linux-3.0'  CC [M]  /benew/hello/hello.o In file included from include/linux/compiler.h:48:0,                .........【阅读全文】

阅读(22768) | 评论(0) | 转发(0)

发布时间:2015-10-14 20:46:27

virtualbox 启动问题不能为虚拟电脑 xp 打开一个新任务.Failed to load VMMR0.r0 (VERR_SUPLIB_OWNER_NOT_ROOT).返回 代码:NS_ERROR_FAILURE (0x80004005)组件:Console界面:IConsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6}查找问题在哪ls -l /drwxr-xr-x ?13 abc ?test ? 4096 6月 ? 7 2.........【阅读全文】

阅读(3023) | 评论(0) | 转发(0)

发布时间:2015-08-24 11:10:24

交叉编译zlib  到http://www.zlib.net/下载zlib源码,生成Makefile./configure --prefix=/opt/sun5i/   
修改Makefile,替换里面的gcc成arm-none-linux-gnueabi-gcc
AR=ar改成AR=arm-none-linux-gnueabi-ar  
make
make install

交叉编译lzo   (http://blog.........【阅读全文】

阅读(3565) | 评论(0) | 转发(0)

发布时间:2015-08-24 10:57:07

首先下载lzo源码<br />http://www.oberhumer.com/opensource/lzo/download/<br />解压<br />tar -xvf lzo-2.09.tar.gz&nbsp;<br /><div>cd&nbsp;lzo-2.09<br />编译<br /><div>./configure --prefix=/opt/sun5i/ CC=arm-none-linux-gnueabi-gcc --host=arm-none-linux-gnueabi --enable-shared<br />make<br /.........【阅读全文】

阅读(2187) | 评论(0) | 转发(0)

发布时间:2015-07-28 12:35:23

ftp://ftp.alsa-project.org/pub/utils/<br />下载最新版的alsa-utils<br />解压代码<br />&nbsp;tar -xvf alsa-utils-1.0.9.tar.bz2&nbsp;<span style="line-height:1.5;"><br />cd alsa-utils-1.0.9/<br />配置,需要先编译alsa-lib,我已经编译好安装到/opt/sun5i目录下,alsa-lib编译请参照<a href="http://blog.chi.........【阅读全文】

阅读(2925) | 评论(0) | 转发(0)

发布时间:2015-07-18 14:23:16

板子上需要控制声音,试过salsa的库(精简版的alsa),功能有些受限,在PC上测试无法正常获取声音大小,打算采用alsa
http://www.alsa-project.org/main/index.php/Download
下载.........【阅读全文】

阅读(4618) | 评论(3) | 转发(0)

发布时间:2015-05-16 14:16:31

virtualbox 启动问题不能为虚拟电脑 xp 打开一个新任务.Failed to load VMMR0.r0 (VERR_SUPLIB_OWNER_NOT_ROOT).返回 代码:NS_ERROR_FAILURE (0x80004005)组件:Console界面:IConsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6}查找问题在哪ls -l /drwxr-xr-x  13 abc  test   4096 6月   7 2.........【阅读全文】

阅读(11219) | 评论(0) | 转发(0)

发布时间:2015-05-15 20:38:02

桌面上运行virtualbox出错:The virtual machine 'xp' has terminated unexpectedly during startup with exit code 1 (0x1).Effective UID is not root(euid=1000 egid=482 uid=1000 gid=482)(rc=-10)Please try reinstalling VirtualBox.手动敲命令运行/usr/lib/virtual/VirtualBox的出错提示VirtualBox: Error -10 .........【阅读全文】

阅读(7672) | 评论(0) | 转发(0)

发布时间:2015-05-12 19:59:55

官网可下载源码,http://www.tntnet.org/也可以直接通过git下载源码git clone https://github.com/maekitalo/cxxtools进入目录编译cd cxxtools/autoreconf -i./configure make直接在cxxtools目录下写个测试程序:test.cpp源码 点击(此处)折叠或打开#include <fstream>.........【阅读全文】

阅读(2631) | 评论(0) | 转发(0)

发布时间:2015-05-05 13:44:04

nrf24le1时钟频率为16MHZ,假设每次定时时间间隔是10ms需要设置定时器的初值,用它来设置THx, TLx寄存器,计算公式如下图,其他单片机可以以此类推计算。Keil uVision代码:xdata unsigned int counter = 0;void TimerInit(void){        TMOD = 0x01; // 方式1,16位计数器   &nbs.........【阅读全文】

阅读(3920) | 评论(0) | 转发(0)

发布时间:2015-04-15 18:45:05

我从android的源码中提取了getevent.c getevent.h放在一个目录下, 进行jni编译测试加了个Android.mk内容如下LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE    := GetEventLOCAL_SRC_FILES := getevent.cinclude $(BUILD_SHARED_LIBRARY)进入源码目录,手动编译:ndk-build V=1 2>&1 |.........【阅读全文】

阅读(4185) | 评论(0) | 转发(0)

发布时间:2015-04-15 18:15:16

最近在使用android studio编译安卓程序,要用到jni我在jni源码中引用了__android_log_print ,且在Android.mk中加了LOCAL_LDLIBS := -llog但是编译时还是会出现如下错误:Error:(82) undefined reference to `__android_log_print'原因:默认情况下,存在src/main/jni文件夹时,gradle生成脚本会执行ndk编译生成操作.........【阅读全文】

阅读(11225) | 评论(0) | 转发(0)

发布时间:2015-04-15 18:09:36

使用android studio, 如果编译jni过程出现如下错误:error: format not a string literal and no format arguments [-Werror=format-security]解决方法:在你的ndk目录下修改build/core/default-build-commands.mkTARGET_FORMAT_STRING_CFLAGS := -Wformat -Werror=format-security为TARGET_FORMAT_STRING_CFLAG.........【阅读全文】

阅读(11036) | 评论(0) | 转发(0)

发布时间:2015-04-15 18:06:34

编译JNI,如果没有NDK,会出错Error:Execution failed for task ':app:compileDebugNdk'.> NDK not configured.  Download the NDK from http://developer.android.com/tools/sdk/ndk/.Then add ndk.dir=path/to/ndk in local.properties.    (On Windows, make sure you escape backslashes, e.g. C:\\.........【阅读全文】

阅读(17976) | 评论(0) | 转发(0)

发布时间:2015-03-25 18:24:04

最近要接触android编程,本来想装eclipse,无意间搜到安卓专门出了开发工具android studio,打算装着试用下http://www.android-studio.org/下载 android studio有Windows, Mac OS X ,Linux版本我下的是linux版的android-studio-ide-135.1629389-linux.zip解压 unzip android-studio-ide-135.1629389-linux.zip&n.........【阅读全文】

阅读(33796) | 评论(1) | 转发(4)

发布时间:2015-03-23 17:09:56

平常开发的主要是helper2416开发板的程序,芯片是三星的2416,属于arm9,交叉编译器是公司自行移植的针对helper2416开发板的编译器,支持的是armv5te指令集最近手上有一台android的小米盒子,就想着同是arm的平台,开发板指令集版本不高,能否用开发板的交叉编译器编译个helloworld的c语言程序在小米盒子上运行。说说过程:.........【阅读全文】

阅读(2847) | 评论(0) | 转发(0)

发布时间:2015-03-17 16:44:25

linux 的/etc/input/eventxx 设备可以用来方便地调试 鼠标、键盘、触摸板等输入设备有两个开源可用来读取input event事件的值,evtest与getevent(这个是从android中提取的)evtestEvtest.c点击(此处)折叠或打开/* * $Id: evtest.c,v 1.23 2005/02/06 13:51:42 vojtech .........【阅读全文】

阅读(8016) | 评论(1) | 转发(3)

发布时间:2015-02-11 19:14:42

解决ssh连接提示Connection closed by xx某一天ssh连接外网的一个服务器A,突然连不了了,会提示:Connection closed by A的ip,连局域网内的一台服务器B却没有问题,(机子均为linux)服务器B上ssh连接A没有问题,但是无法用scp传文件给A,传输会一直挂住。改了各种配置文件,没有解决。输出信息如下: ssh -v a@10..........【阅读全文】

阅读(54611) | 评论(0) | 转发(0)

发布时间:2015-01-10 10:56:27

编译libtar -xvf gmock-1.5.0.tar.bz2 cd gmock-1.5.0/./configuremakesudo make install编译自带的测试例子cd makemake./gmock_testRunning main() from gmock_main.cc[==========] Running 13 tests from 3 test cases.[----------] Global test environment set-up.[----------] 6 tests from InitG.........【阅读全文】

阅读(4679) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

chinaunix网友2011-02-15 16:05

看了你的博文,有这么多的体会,很佩服你的学习精神,总结出来写本书如何?我的联系方式:wuyi1352@gmail.com

回复 |  删除 |  举报

chinaunix网友2009-06-11 17:22

你好,问一下SendARP探测活动性的那是原原本本的程序吗,不缺什么吧?我运行之后SendARP的返回值总是31.不知道为什么,麻烦帮忙看看,谢谢了!

回复 |  删除 |  举报

chinaunix网友2009-05-14 17:00

文章都很好 收藏了

回复 |  删除 |  举报

wjksd2009-04-17 11:24

很厉害啊

回复  |  举报

chinaunix网友2008-11-09 16:44

师兄,我来像你学习来啦! 嘎嘎!

回复 |  删除 |  举报
留言热议
请登录后留言。

登录 注册