⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 211.htm

📁 pcb设计资料初学者难得的入门资料包含工厂制作过程
💻 HTM
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>CTerm非常精华下载</title>
</head>
<body bgcolor="#FFFFFF">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="577">
<tr><td width="32%" rowspan="3" height="123"><img src="DDl_back.jpg" width="300" height="129" alt="DDl_back.jpg"></td><td width="30%" background="DDl_back2.jpg" height="35"><p align="center"><a href="http://202.112.58.200"><font face="黑体"><big><big>Tsinghua</big></big></font></a></td></tr>
<tr>
<td width="68%" background="DDl_back2.jpg" height="44"><big><big><font face="黑体"><p align="center">         嵌入式系统                            (BM: turbolinux jacobw)          </font></big></big></td></tr>
<tr>
<td width="68%" height="44" bgcolor="#000000"><font face="黑体"><big><big><p   align="center"></big></big><a href="http://cterm.163.net"><img src="banner.gif" width="400" height="60" alt="banner.gif"border="0"></a></font></td>
</tr>
<tr><td width="100%" colspan="2" height="100" align="center" valign="top"><br><p align="center">[<a href="嵌入式系统.htm">回到开始</a>][<a href="198.htm">上一层</a>][<a href="212.htm">下一篇</a>]
<hr><p align="left"><small>发信人: plato (纯真年代), 信区: Embedded <br>

标  题: linux for ppc chapter11 <br>

发信站: BBS 水木清华站 (Wed May 30 23:17:11 2001) <br>

  <br>

Next Previous Contents <br>

---------------------------------------------------------------------------- <br>

---- <br>

11. Device Drivers <br>

The kernel already includes device drivers for the on-chip serial and ethern <br>

et ports. <br>

11.1 Examples <br>

For helpful MPC8xx-specific device driver examples, see: http://lists.linuxp <br>

pc.org/listarcs/linuxppc-embedded/200001/msg00221.html <br>

ftp://ftp.denx.de/pub/LinuxPPC/usr/src/drivers.tar.gz <br>

11.2 Flash memory <br>

Flash Device Driver <br>

ftp://ftp.denx.de/pub/LinuxPPC/usr/src/CDK.tar.gz <br>

A flash driver will give you access to /dev/flash devices, which are useful <br>

during development, for field upgrades and are ideal for storing fixed size <br>

persistent configuration data like your board's Ethernet MAC address. Includ <br>

es drivers supporting a number of vendor's devices. <br>

The flash driver does auto-erase when the length of data written per write() <br>

 is exactly the corresponding erase block size. So usually you just need to <br>



do: <br>

open (/dev/flash???) <br>

lseek(specific erase region) <br>

write(data, region size) <br>

QSLinux Flash Driver <br>

http://qslinux.org/ ftp://qslinux.org/ <br>

QSLinux contains a fully functioning FLASH driver, and an interface to the E <br>

xt2FS filesystem, with compression. <br>

Memory Technology Device Subsystem <br>

http://www.linux-mtd.infradead.org/ <br>

The MTD subsystem offers a more general solution which allows you to treat t <br>

he flash as a regular block device on which you can mount a filesystem. It's <br>

 ideal for large amounts of variable sized data or applications requiring a <br>

traditional writable filesystem, provided by the Journaling Flash Filesystem <br>

. <br>

However, some work is required to get the MTP to run on PowerPC, as it doesn <br>

't yet support big endian. <br>

M-Systems Disk-On-Chip <br>

http://www.linux-mtd.infradead.org/doc2000.html <br>

This is supported via the Memory Technology Device Subsystem. <br>

11.3 PCMCIA Cards <br>

For a PCMCIA driver, see: http://lists.linuxppc.org/listarcs/linuxppc-embedd <br>



ed/200002/msg00093.html <br>

There are also some fairly detailed notes available at: ftp://ftp.absoval.co <br>

m/pub/rpxlite/ and http://lists.linuxppc.org/listarcs/linuxppc-embedded/2000 <br>

05/msg00227.html <br>

For generic Linux PCMCIA info, see: http://pcmcia.sourceforge.org/ftp/doc/PC <br>

MCIA-PROG.html <br>

11.4 IDE/ATA Disk Drives <br>

There are lots of options for connecting IDE drives. You need to at least co <br>

nfigure CONFIG_BLK_DEV_IDE and CONFIG_BLK_DEV_IDEDISK. Search for IDE. <br>

Also, see: http://www.bluebutton.com/proj/mbxlinux/. <br>

11.5 PCI Bridge <br>

Search for QSPAN or PowerSpan. <br>

11.6 Watchdog <br>

Using the on-chip watchdog to provide the basic "write kicked" /dev/watchdog <br>

 interface described in Documentation/watchdog.txt is problematic, because t <br>

he SYPCR register controlling it can only be written once after reset to bot <br>

h set the timeout and enable the watchdog. Once enabled, the boot loader and <br>

 kernel must keep it from expiring up until the point where the user applica <br>

tion opens /dev/watchdog. Littering the generic kernel decompress and startu <br>

p code with watchdog kicks to do this isn't acceptable to other Linux users. <br>

 Hence, hardware watchdog support hasn't been implemented yet. <br>

The general plan to solve this problem is described in: http://lists.linuxpp <br>



c.org/listarcs/linuxppc-embedded/199910/msg00026.html <br>

You can probably use Linux's software watchdog in the mean time. <br>

11.7 USB for MPC850/823 <br>

http://www.honeywell.se/inu/usb/ and http://lists.suse.com/archives/linux-us <br>

b/2000-Mar/0234.html <br>

These devices can be made to operate as a USB host or slave. Search for USB. <br>

  <br>

Also see the Programming Guide for Linux USB Device Drivers at http://usb.in <br>

.tum.de/usbdoc/ <br>

11.8 A/D and D/A <br>

Use something that "frames" the data and the SI/TDM interface works really s <br>

weet. Take a look at the CS4218 audio codec driver for the Embedded Planet b <br>

oards. It's floating around in the 2.2.13 kernels on the MontaVista site. <br>

11.9 VME <br>

Numerous VME board vendors offer Linux support through software partners suc <br>

h as Denx. <br>

Some older patches and tarballs to use Linux on VME boards and simplify the <br>

access to the VME bus are available at: ftp://vlab1.iram.es/pub/linux-vme/ <br>

11.10 HDLC/PPP <br>

http://qslinux.org/docs/snmc/hdlc/index.html <br>

Provides support for the HDLC protocol, running the PPP layer in order to tr <br>

ansport IP packets across a synchronous serial link. <br>



11.11 SPI <br>

ftp://216.118.31.75/pub/ <br>

This driver is an interface for the SPI controller in MPC8xx. The driver is <br>

written to work with the microcode patches to correct the parameter ram prob <br>

lems. The driver supports basic init,open,close,read and write functions. <br>

11.12 Linux STREAMS (LiS) <br>

http://www.gcom.com/home/linux/lis/ <br>

LiS is a software package that comprises an implementation of SVR4 compatibl <br>

e STREAMS for Linux in the form of a loadable kernel module. <br>

A patch to port it to MPC8xx based Embedded PowerPC systems is available at: <br>

 ftp://ftp.denx.de/pub/LinuxPPC/usr/src/LiS/ <br>

---------------------------------------------------------------------------- <br>

---- <br>

Next Previous Contents <br>

  <br>

-- <br>

  <br>

※ 来源:·BBS 水木清华站 smth.org·[FROM: 166.111.161.8] <br>

</small><hr>
<p align="center">[<a href="嵌入式系统.htm">回到开始</a>][<a href="198.htm">上一层</a>][<a href="212.htm">下一篇</a>]
<p align="center"><a href="http://cterm.163.net">欢迎访问Cterm主页</a></p>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -