“helloworld”驱动实现过程(ARM板上)
1、 在/home/sxy/目录下新建hello_1文件夹,在此文件夹下编写hello.c和Makefile文件(假设已经编写好了),make生成模块文件;
PS:hello.ko就是用于需要使用的驱动模块。
hello.c代码:
Makefile代码:
注意Makefile文件中的黑色填充部分:
①选择交叉编译器...
分类:
其他好文 时间:
2014-06-03 04:45:00
阅读次数:
238
Perl中一个很重要的模块就是DBI模块(Perl Database Interface,数据库接口)。DBI模块为很多不同的数据库提供了一个统一的接口。Perl通过此接口可以很容易对数据库进行操作。
下面说下Perl如何对MySQL数据库进行操作。
1. 首先要确保Perl及MySQL数据库已经安装。然后用cpan或者是ppm图形化界面来安装.
cpan> install...
分类:
数据库 时间:
2014-06-03 02:37:21
阅读次数:
284
An iterative way of writing quick sort:
#include
#include
#include
using namespace std;
void quickSort(int A[], int n) {
stack> stk;
stk.push(make_pair(0, n-1));
while (!stk.empty()) {
pair ...
分类:
其他好文 时间:
2014-06-03 00:16:43
阅读次数:
357
最近除了修改论文,也没有什么事,就来学学android开发,第一课android开发,在网上百度各种版本的搭建环境,基本步骤都是1.install
jdk2.install eclipse3.install sdk4.install adt(android develop tool) ,于是开始自己...
分类:
移动开发 时间:
2014-06-02 20:58:43
阅读次数:
326
By reducing your bookmarks to show only the
icons, you can access more of them from the Bookmarks bar. This works great for
sites with recognizable fa...
分类:
其他好文 时间:
2014-06-02 17:39:03
阅读次数:
276
1. 做一个clear脚本,放到/bin下去 $vim /bin/clear #!/bin/bash
cmd /c cls 2. ctrl + L 3. 在cygwind中install ncurses (in Utils) and then you can
use: clear 我倾向于第三种方法...
今天在网络上找到了一个比较好的解决Rhythmbox中文乱码的问题的方法
进入你的音乐文件夹执行如下代码: mid3iconv -e GBK *.mp3 如果没有提示多试几次, 有可能系统会提示:
python-mutagen没有安装。 sudo apt-get install python-mut...
分类:
其他好文 时间:
2014-06-02 17:28:14
阅读次数:
251
Ubuntu下可以直接安装:sudo apt-get install mingw32
mingw32-binutils
mingw32-runtime安装后编译程序可以:i586-mingw32msvc-g++(编译C++程序)i586-mingw32msvc-gcc(编译C程序)用法和gcc/g+...
DVR_RDK编译报错
abnormal termination of /opt/dm8168/dvr_rdk/../ti_tools/cgt_dsp/cgt6x_7_3_5//bin/cmp6x
make[2]: *** [/opt/dm8168/dvr_rdk/../dvr_rdk/build/dvr_rdk/obj/ti816x-evm/c6xdsp/debug/MAIN_APP_c6xdsp_pe674.oe674] Error 1
make[1]: *** [apps] Error 2
m...
分类:
其他好文 时间:
2014-06-01 09:37:14
阅读次数:
204
iscsi initiator端 (1)安装open-scsi sudo apt-get
install open-iscsi open-iscsi-utils (2)发现iscsi target sudo iscsiadm -m discovery
-t sendtargets -p 192.16...
分类:
其他好文 时间:
2014-05-31 19:10:06
阅读次数:
265