?? 00000011.htm
字號:
<?xml version="1.0" encoding="gb2312"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"/><title>linux for ppc chapter11 jacobw </title></head><body><center><h1>BBS 水木清華站∶精華區</h1></center><a name="top"></a>發信人: 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: <a href="http://lists.linuxp">http://lists.linuxp</a> <br />pc.org/listarcs/linuxppc-embedded/200001/msg00221.html <br /><a href="ftp://ftp.denx.de/pub/LinuxPPC/usr/src/drivers.tar.gz">ftp://ftp.denx.de/pub/LinuxPPC/usr/src/drivers.tar.gz</a> <br />11.2 Flash memory <br />Flash Device Driver <br /><a href="ftp://ftp.denx.de/pub/LinuxPPC/usr/src/CDK.tar.gz">ftp://ftp.denx.de/pub/LinuxPPC/usr/src/CDK.tar.gz</a> <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 /><a href="http://qslinux.org/">http://qslinux.org/</a> <a href="ftp://qslinux.org/">ftp://qslinux.org/</a> <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 /><a href="http://www.linux-mtd.infradead.org/">http://www.linux-mtd.infradead.org/</a> <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 /><a href="http://www.linux-mtd.infradead.org/doc2000.html">http://www.linux-mtd.infradead.org/doc2000.html</a> <br />This is supported via the Memory Technology Device Subsystem. <br />11.3 PCMCIA Cards <br />For a PCMCIA driver, see: <a href="http://lists.linuxppc.org/listarcs/linuxppc-embedd">http://lists.linuxppc.org/listarcs/linuxppc-embedd</a> <br />ed/200002/msg00093.html <br />There are also some fairly detailed notes available at: <a href="ftp://ftp.absoval.co">ftp://ftp.absoval.co</a> <br />m/pub/rpxlite/ and <a href="http://lists.linuxppc.org/listarcs/linuxppc-embedded/2000">http://lists.linuxppc.org/listarcs/linuxppc-embedded/2000</a> <br />05/msg00227.html <br />For generic Linux PCMCIA info, see: <a href="http://pcmcia.sourceforge.org/ftp/doc/PC">http://pcmcia.sourceforge.org/ftp/doc/PC</a> <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: <a href="http://www.bluebutton.com/proj/mbxlinux/.">http://www.bluebutton.com/proj/mbxlinux/.</a> <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: <a href="http://lists.linuxpp">http://lists.linuxpp</a> <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 /><a href="http://www.honeywell.se/inu/usb/">http://www.honeywell.se/inu/usb/</a> and <a href="http://lists.suse.com/archives/linux-us">http://lists.suse.com/archives/linux-us</a> <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 <a href="http://usb.in">http://usb.in</a> <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: <a href="ftp://vlab1.iram.es/pub/linux-vme/">ftp://vlab1.iram.es/pub/linux-vme/</a> <br />11.10 HDLC/PPP <br /><a href="http://qslinux.org/docs/snmc/hdlc/index.html">http://qslinux.org/docs/snmc/hdlc/index.html</a> <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 /><a href="ftp://216.118.31.75/pub/">ftp://216.118.31.75/pub/</a> <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 /><a href="http://www.gcom.com/home/linux/lis/">http://www.gcom.com/home/linux/lis/</a> <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 /> <a href="ftp://ftp.denx.de/pub/LinuxPPC/usr/src/LiS/">ftp://ftp.denx.de/pub/LinuxPPC/usr/src/LiS/</a> <br />---------------------------------------------------------------------------- <br />---- <br />Next Previous Contents <br /> <br />-- <br /> <br />※ 來源:·BBS 水木清華站 smth.org·[FROM: 166.111.161.8] <br /><a href="00000010.htm">上一篇</a><a href="javascript:history.go(-1)">返回上一頁</a><a href="index.htm">回到目錄</a><a href="#top">回到頁首</a><a href="00000012.htm">下一篇</a></h1></center><center><h1>BBS 水木清華站∶精華區</h1></center></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -