自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 windows7 android studio jni 例程

一、下载 ndk        1、ndk 下载地址 http://tools.android-studio.org/        2、根据自己的需要选择版本,我选择了 android-ndk64-r10-windows-x86_64.zip        3、这个软件不需要安装,直接解压就可以使用。我把它解压在E:\Android\ndk下,这个在第二步设置环境变量时用得上

2016-01-07 17:07:51 618

原创 android studio preview 出现 Rendering Problems的解决方法

1.  打开 res/values/styles.xml  内容如下resources> style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> item name="colorPrimary">@color/colorPrimaryitem>

2016-01-07 15:23:20 3172 2

原创 在linux驱动中调用I2C的方法

一、在相应的平台文件中添加I2C的注册信息1)、创建一个i2c_board_info结构体struct tda_platform_data                           //这可以随便定义自己想要的结构{unsigned char register0;unsigned char register1;unsigned char register2;}

2013-07-22 11:35:55 919

原创 linux内核定时器的使用例子

#include #include #include #include struct timer_list my_timer1;static void my_timer_func(unsigned long data){int i = my_timer1.data;printk("%d\n",i);my_timer1.data = i+1

2013-07-18 16:13:31 907 1

转载 ISO7816标准--机卡交互状态字

Table 12 - Coding of SW1-SW2   SW1-SW2 Meaning    Normal processing   '9000' No further qualification   '61XX' SW2 indicates the number of response bytes still available (see text below)   

2013-07-09 17:31:02 2076

原创 设置arm-linux-gcc环境变量

1、sudo gedit /etc/profile2、在最后一行输入export PATH=$PATH:/opt/devkit8500/arm-eabi-4.4.0/bin3、重启即可

2013-07-08 17:33:44 589

原创 ubuntu文件夹共享设置

一、修改你想要共享文件夹的权限例如:sudo  chmod -R 777 /opt/test二、右键点击文件夹,选择properties,然后点击share项,把share this file选上,如果ubuntu没有安装samba,则会自己跳出提示要安装samba的对话框,全部选择默认yes 安装即可。三,选择或者创建登陆samba服务器的用户名和密码,如果已经存在一个登陆ubu

2013-07-02 18:57:37 1044

原创 设置AM3715 GPIO的方法

unsigned int *reg;reg= ioremap(0x48002190, 4);      //0x48002190为选择模式的物理地址if(reg == NULL){        printk("%s:IORemap register memory faild!!!\n",__FUNCTION__);return (-1);}__raw_writel(0

2013-06-19 20:14:09 727

转载 ubuntu11.10安装谷歌拼音

sudo apt-get install git-coregit clone git://github.com/tchaikov/scim-googlepinyin.git    //下载google拼音cd scim-googlepinyinsudo apt-get install autotools-dev libgtk2.0-dev libscim-dev libtool aut

2013-05-22 19:19:30 414

转载 ubuntu 安装ncurses

编译Linux内核时会提示:Unable to find the ncurses libraries or the required header files.'make menuconfig' requires the ncurses libraries.Install ncurses (ncurses-devel) and try again.解决方法:

2013-02-22 16:03:24 601

原创 获取u-boot源码

三星的很多源码都放在这个网址下:http://git.insignal.co.kr/ 。我的uboot源码就是从这上面git下来的,执行下面的命令就可以下载uboot:1、执行:git clone git:\\git.insignal.co.kr/insignal/u-boot,大概36M吧。2、下载后发现文件夹u-boot是空的,明明已经下载并显示有36.5M,怎么会是空的呢?原来没

2012-12-05 16:11:43 485

原创 安装git

安装git命令:sudo apt-get install git-all。

2012-12-05 15:29:46 233

原创 ubuntu11.04改用户名

如果安装ubuntu时取的用户名是XXX,打开命令终端时会显示XXX@XXX_virtual_machine。现在要改变后面的XXX_virtual_machine,执行下面步骤便可更改:1、修改/etc/hosts文件,输入命令:vi /etc/hosts 把XXX_virtual_machine改成你想要的名字,保存退出。        2、修改/etc/hostname文件,输入命令

2012-12-05 10:48:32 351

原创 ubuntu 11.04 root 用户登录

1、输入命令:sudo passwd root 2、输入新密码,再次输入确认密码3、重启便可用root登录了。

2012-12-05 10:27:01 272

原创 获取uboot for tiny210源码

咱两年前也自学过linux的,对uboot的移植也有所了解。但由于后来进入了WinCE行业,把这些东西全都忘光了。现在这方面完全是个菜鸟,只懂得些术语了,linux的命令也是只记得常用的那几个了。       友善的Tiny210光盘里没有提供uboot代码。我在其论坛里搜索拿到源代码的,网址:http://www.arm9home.net/read.php?tid-16001-fpage-0

2012-05-29 00:14:36 887

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除