摘要: 步骤如下:·rgb2565为out/host/linux-x86/bin/rgb2565#!/bin/shconvert -depth 8 initlogo.bmp rgb:initlogo.raw./rgb2565 -rle initlogo.rle· 拷贝initlogo.rle至/root目录 阅读全文
posted @ 2013-12-02 15:38 easynote 阅读(430) 评论(0) 推荐(0) 编辑
摘要: 原文转自:http://m.blog.csdn.net/blog/lushengchu2003/9368031最近闲来无事情做,想到以前项目中遇到串口硬件流控制的问题,蓝牙串口控制返回错误,上层读写串口buffer溢出的问题等,也折腾了一阵子,虽然 最终证明与串口驱动无关,但是排查问题时候毫无疑问会查看串口驱动的相关代码,所以把串口驱动的流程过了一遍,方便以后再用到时拿来用。分析的是全志代码 A20。直接开始代码分析吧。串口驱动代码在linux-3.3/drivers/tty/serial目录下,全志把自己平台相关的代码集中到了一个文件中,叫sw_uart.c,那就从它的__init开始了:s 阅读全文
posted @ 2013-11-05 22:29 easynote 阅读(4739) 评论(0) 推荐(0) 编辑
摘要: 缺省配置下,用Ubuntu 的文本编辑器(gedit)打开GB18030/GBK/GB2312 等类型的中文编码文本文件时,将会出现乱码。 出现这种情况的原因是,gedit 使用一个编码匹配列表,只有在这个列表中的编码才会进行匹配,不在这个列表中的编码将显示为乱码。 要做的就是将GB18030 加入这个匹配列表。 命令行下输入: gsettings set org.gnome.gedit.preferences.encodings auto-detected "['UTF-8','GB18030','GB2312','GBK&# 阅读全文
posted @ 2013-10-31 11:54 easynote 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 1.bootable\recovery\ recovery修改了对SD卡和触屏的支持2. build\ 对构建系统增加了fex和boot的修改3. device\common\libbt\ 蓝牙芯片级的支持4. device\softwinner\ 平台和产品级的支持5. external\bluetooth\ 添加蓝牙列表的支持6. external\ppp\chat\ 增加点对点通信的串口GSM的AT命令支持7. external\tinyalsa\ 增加alsa支持8. external\wpa_supplicant_8\ 增加wifi下P2P的支持9. frameworks\av\ 视 阅读全文
posted @ 2013-10-29 18:20 easynote 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 错误信息:Build path is incomplete. Cannot find class file for ...解决方法:下载commons-pool.jar包加入lib目录,配置.classpath文件,刷新项目即可。问题原因:导入commons-dbcp.jar和commons-pool.jar,dbcp依赖于commons-pool.jar参考:http://ninnd.iteye.com/blog/903463 阅读全文
posted @ 2013-09-24 15:32 easynote 阅读(359) 评论(0) 推荐(0) 编辑
摘要: Spring 2.5引入了更多典型化注解(stereotype annotations):@Component、@Service和@Controller。@Component是所有受Spring管理组件的通用形式;而@Repository、@Service和@Controller则是@Component的细化,用来表示更具体的用例(例如,分别对应了持久化层、服务层和表现层)。也就是说,你能用@Component来注解你的组件类,但如果用@Repository、@Service或@Controller来注解它们,你的类也许能更好地被工具处理,或与切面进行关联。例如,这些典型化注解可以成为理想的切 阅读全文
posted @ 2013-09-24 15:32 easynote 阅读(114) 评论(0) 推荐(0) 编辑
摘要: · 下载ADThttp://developer.android.com/sdk/installing/installing-adt.html· 下载SDKhttp://developer.android.com/sdk/index.html· 解压ADT将features和plugins文件夹复制到MyEclipse的dropins目录下· 解压SDK解压到任意目录· 启动MyEclipse在windows->preference中选择android配置SDK目录· 下载SDK工具配置c:/windows/system32/dr 阅读全文
posted @ 2013-08-29 15:45 easynote 阅读(660) 评论(0) 推荐(0) 编辑
摘要: id生成:hibernate内不可使用的id生成器可见代码使用@GeneratedValue1 正对不同的数据库可以同时使用 @Id @GeneratedValue(strategy = GenerationType.AUTO)2 针对mysql @Id @GeneratedValue(strategy = GenerationType.IDENTITY)3 针对oracle @Id @GeneratedValue(strategy = GenerationType.SEQUENCE,generator="s_gen") @SequenceGenerator(name=&q 阅读全文
posted @ 2013-08-25 10:01 easynote 阅读(273) 评论(0) 推荐(0) 编辑
摘要: · iptables相关命令开机启动:iptables --level 345 iptables on保存规则:service iptables save重启服务:service iptables restart· iptables管理防火墙说明解释:#允许本地回环接口(即运行本机访问本机)iptables -A INPUT -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT# 允许已建立的或相关连的通行iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT#允许所有本机向外的访问 阅读全文
posted @ 2013-08-24 17:55 easynote 阅读(755) 评论(0) 推荐(0) 编辑
摘要: · 清空用户数据sqlplus / as sysdba>drop user xxx cascade;>create user xxx identified by xxoo;>grant connect,resource,dba to xxx;· 恢复用户数据imp xxx/xxoo@localhost:8987/xxxdb file=zzz.dmp 阅读全文
posted @ 2013-08-24 17:52 easynote 阅读(205) 评论(0) 推荐(0) 编辑