arm-linux

http://armboard.taobao.com/

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2010年9月16日

摘要: 1. 制作patchdiff -crN Component_org Component > 01_Component_xxx.patch2. 打patchpatch -pl < ./01_Component_xxx.patch3. 使用quilt 管理patch#tar xvjf prj-0.1-patches.tar.bz2 Component/# quilt push -a <== 打series所有补丁# quilt pop -a <== 退出补丁# quilt diff >xxx.patch 合并所有补丁 阅读全文
posted @ 2010-09-16 19:44 arm-linux 阅读(1730) 评论(0) 推荐(0) 编辑

摘要: Android 加速度传感器的类型是 Sensor.TYPE_ACCELEROMETER 通过 android.hardware.SensorEvent 返回加速度传感器值。 加速度传感器返回值的单位是加速度的单位 m/s^2(米每二次方秒),有三个方向的值分别是 values[0]: x-axis 方向加速度 values[1]: y-axis 方向加速度 values[2]: z-axis 方向加速度 其中x,y,z方向的定义是以水平放置在的手机的右下脚为参照系坐标原点(如下图) x 方向就是手机的水平方向,右为正 y 方向就是手机的水平垂直方向,前为正 y 方向就是手机的空间垂... 阅读全文
posted @ 2010-09-16 19:26 arm-linux 阅读(3912) 评论(0) 推荐(0) 编辑

摘要: 有的时候,使用sudo apt-get install可能导致意想不到的错误,尤其是中途中断了安装时,错误信息为:Errors were encountered while processing:ttf-dustinkhangmankdeedukdeE: Sub-process /usr/bin/dpkg returned an error code (1)此时可以这样解决:cd /var/lib/dpkgsudo mv info info.baksudo mkdir info重新安装,在此为:sudo apt-get --reinstall install ttf-dustin khangm 阅读全文
posted @ 2010-09-16 17:08 arm-linux 阅读(1210) 评论(0) 推荐(1) 编辑

摘要: 浅析dev目录下设备文件mknod节点gid,uid和mode的如何方便设置init=>handle_device_fd 收到uevent信息=>handle_device_event=>static void handle_device_event(struct uevent *uevent){.../* are we block or char? where should we live? */if(!strncmp(uevent->path, "/block", 6)) {block = 1;base = "/dev/block/&q 阅读全文
posted @ 2010-09-16 10:35 arm-linux 阅读(1317) 评论(0) 推荐(0) 编辑