xianfengdesign.blogspot.com
Xianfeng Design: linux下USB器件驱动程序相关
http://xianfengdesign.blogspot.com/2007/05/linuxusb.html
今天上网,查找USB驱动相关的问题时找到一个好网站(www.linux-usb.org),若要做linux下的USB 驱动,到这个网站可以找到很多好东西。今天匆匆看了一下,了解了linux的USB从设备(器件)驱动的一些知识,记录如下。 Linux下U盘的实现其实很简单,基于一个g file storage的模块,使用文件或其他块设备(如MTD设备)作为U盘的存储器即可,不用自己编写驱动程序。以文件为例的具体步骤如下所示:. Root@localhost data]# dd bs=1M count=64 if=/dev/zero of=/root/data/backing file. 183; 用fdisk对该文件存储器分区,可以不做,但有的版本的windows会不认这个U盘. Root@localhost data]# fdisk file=/root/data/backing file. 183; 格式化该文件存储器上的分区,若未使用fdisk,则如下操作. Root@localhost data]# mkdosfs /root/data/backing file.
xianfengdesign.blogspot.com
Xianfeng Design: SR-1/Software Radio
http://xianfengdesign.blogspot.com/2007/05/sr-1software-radio.html
Http:/ volodya-project.sourceforge.net/SR/SR-1/sr1.php. Before implementing full blown software radio I needed to become familiar with CY7C68013 and to answer a few questions:. How much data can it pump thorough? How much data can linux USB driver handle without overburdening cpu too much? Also it would be a good idea to develop a few tools that would become useful later. Hence, SR-1: a usb device that is just CY7C68013 without anything to pass data from. I ordered my parts from Arrow electronics. Since ...
xianfengdesign.blogspot.com
Xianfeng Design: CFQ to become the default I/O scheduler in 2.6.18
http://xianfengdesign.blogspot.com/2007/05/cfq-to-become-default-io-scheduler-in.html
CFQ to become the default I/O scheduler in 2.6.18. Judging by this commit. CFQ (Complete Fair Queuing) I/O scheduler will become the default one in the upcoming 2.6.18 kernel. For a long time, anticipatory scheduler. Has been the default, although even back in late 2004 there was some thinking about replacing it with CFQ. And it seems the time has finally come. CFQ scheduler has been gaining adoption since then, to the point that it's the default I/O scheduler for RHEL 4, Suse, and other distros.
xianfengdesign.blogspot.com
Xianfeng Design: CodeViz 安装
http://xianfengdesign.blogspot.com/2007/05/codeviz.html
1 graphviz 2.2.1. Http:/ www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-2.2.1.tar.gz. 了,但是make install是错现错误,另外,最新版并没有太大的update,所以 还是选用这个版本。 安装: 1. 解压该文件后运行./configure. 2 make; make install. 2 codeviz-1.0.11.tar.gz. Http:/ www.csn.ul.ie/ mel/projects/codeviz/codeviz-1.0.11.tar.gz. 安装: 1. 解压该文件后运行./configure. 2 make; make install. 65288;1)指定make CC=/usr/local/gccgraph/bin/gcc CXX=/usr/local/gccgraph/bin/g (好象也不用). 例如:/usr/local/gccgraph/bin/gcc -c ok.c 此时产生了两个文件ok.c和ok.c.cdepn. Cd linux-2.6.17.
xianfengdesign.blogspot.com
Xianfeng Design: 三月 2007
http://xianfengdesign.blogspot.com/2007_03_01_archive.html
Http:/ www.mkssoftware.com/docs/man4/cpio.4.asp. This document describes the format of archives read and written by the. Archive consists of the concatenation of one or more member files. Each member file contains a header (as described later in this reference page) optionally followed by file contents as indicated in the header. The end of the archive is indicated by another header describing an (empty) file named. There are two types of. Writes archives with binary headers. Device where file resides.
xianfengdesign.blogspot.com
Xianfeng Design: I2C Drivers
http://xianfengdesign.blogspot.com/2007/05/i2c-drivers.html
I2C Drivers, Part I. The I2C bus helps you monitor the health of your system. Here's how to develop a driver that will get you all the hardware info you need to know. In the June and August 2003 issues of. My column covered the Linux kernel driver model, and the I2C subsystem was used as an example. This month, we discuss what the I2C subsystem does and how to write a driver for it. Struct module *owner; -set to the value (THIS MODULE) that allows the proper module reference counting. Unsigned int class;...