Next Previous Contents

6. ¨Ï¥Î¥¼³Q¤ä´©ªº¥d¤ù

6.1 «ØºcµLªk³Q¿ëµøªº¥d¤ù

²{¦b§Ú­Ì°²³]§Aªº¥d¤ù¤w³Q²{¦³ªºÅX°Êµ{¦¡©Ò¤ä´©¡A§Ú­Ì©Ò»Ý­n°µªº¬O¦b /etc/pcmcia/config ¤¤¥[¤J¤@­Ó±ø¥Ø¨Ó§i¶D cardmgr ¦p¦ó ¨Ó¿ëµø³o±i¥d¡A­þ¨ÇÅX°Êµ{¦¡»Ý­n³sµ²¨ì³o±i¥d¤ù¤W¡C«ØºcÀɮתº®æ¦¡²Ó¸` ½Ð¬d¬Ý pcmcia ªº man ­¶¡C ¦pªG§A´¡¤J¤@±i¤£³Q»{±oªº¥d¤ù¡A cardmgr ¥¿±`¨Ó»¡·|°O¿ý¤@¨Ç¿ëµø¸ê°T¨ì¨t²Î¤é»x¤W¡A §Ú­Ì¥i¥H§Q¥Î ³o¨Ç¸ê°T¨Ó«Ø³y¥¦ªº«Øºc±ø¥Ø¡C

¥H¤U¬O­Ó cardmgr ¦p¦ó±N¥¼¤ä´©¥dªº³ø§i¨ì /usr/adm/messages ¤ºªº¨Ò¤l¡C

cardmgr[460]: unsupported card in socket 1
cardmgr[460]: version info: "MEGAHERTZ", "XJ2288", "V.34 PCMCIA MODEM"

¬Û¹ïÀ³¨ì/etc/pcmcia/config ªº±ø¥Ø¥i¥H¬O:

card "Megahertz XJ2288 V.34 Fax Modem"
  version "MEGAHERTZ", "XJ2288", "V.34 PCMCIA MODEM"
  bind "serial_cs"

§A¥i¥H¨Ï¥Î ``*'' ¨Ó¥N´À¤£¾å±oªº¦r¦ê¡A¹³ª©¥»¸¹½X°Õ¡C ·í§A¼g·sªº«Øºc ±ø¥Ø®É¡A½Ð¤p¤ß¦a§â§¹¾ãªº¦r¦ê«þ¨©¹L¥h¡A«O«ù­ì¦³ªº¤j¤p¼gÅé¥H¤ÎªÅ¥Õ¦r ¤¸¡CÁÙ¦³¡A½Ð½T»{«Øºc±ø¥Ø»P³Q³ø§i¨ì¤é»xÀÉ®×ùتº¸ê®Æ¦³¦P¼Ë¼Æ¥Øªº¦r¦ê ¡C

½Ð¨c°O±z´X¥G¥i¥H«ü©w¥ô¦óªºÅX°Êµ{¦¡µ¹¤@±i¥d¨Ï¥Î¡A¦ý¦pªG§A¥u¬O­J¶Ã¦a ¶Ã§Ë¡A¨Ã¤£¬O­Ó«Ü¦³¥Í²£®Ä²vªº§@ªk¡C§A¤]¥i¯à«Ü©¯¹B¦aµo²{²{¦³ªºÅX°Êµ{ ¦¡¤w¤ä´©¤F§Aªº¥d¤ù¡CµM¦Ó¡A¤j³¡¥÷ªºµ²ªG¬O¨º¨ÇÅX°Êµ{¦¡¨ÃµLªk¤u§@¡A¤] ¦³¥i¯à·|²£¥ÍÃä»Ú®ÄÀ³¹³Âꦺ§Aªº¨t²Î¤F¡C¤£¹³¤@¯ëªº³]³ÆÅX°Êµ{¦¡¥u±´´ú ¾A·íªº¥d¤ù¡A±´´ú PCMCIA ³]³Æªº¤u§@¬O¥Ñ cardmgr ©Ò°õ¦æ¡AÅX°Êµ{ ¦¡¥»¨­¦b¸ÕµÛ»P³]³Æ·¾³q«e¨Ã¤£·|°µÔ£»ò½T»{°Ê§@ªº¡C

¦b½s­× /etc/pcmcia/config ¤§«á¡A §A¥i¥H·t¥Ü cardmgr ­«·s¸ü¤J¸ÓÀɮסA¨Ï¥Î:

kill -HUP `cat /var/run/cardmgr.pid`

¦pªG§A³]©w¦n¤F¤@±i·sªº¥d¤ù¡A½Ð±H¤@¥÷³]©wµ¹§Ú¡A³o¼Ë¤l§Ú´N¥i¥H§â¥¦¥] §t¶i¼Ð·Ç«ØºcÀÉ®×ùØ¡C

6.2 ¼W¦C¹ï NE2000¬Û®e¤A¤Óºô¸ô¥dªº¤ä´©

­º¥ý¡A ¥ý¬d¬Ý¬Ý³o±i¥d¬O§_¤w³Q cardmgr ©Ò¿ëÃÑ¡C ¦³¨Ç¨S¦³³Q¦C¦b SUPPORTED.CARDS ¤ºªº¥d¤ù¨Æ¹ê¤W¬O¦³¨Ç³Q¤ä´©ªº¥dªº OEM ª©¥»¡C¦p ªG§Aµo²{¤F¹³³o¼Ëªº¥d¤ù¡A½ÐÅý§Úª¾¹D¡A³o¼Ë¤~¯à§â¥¦¥[¨ì¦Cªí¤º¡C

¦pªG§Aªº¥d¤ù¨S³Q¿ë§O¨ì¡A ½Ð¨Ì·Ó 3.6 ¤º ªº¨BÆJ¬°§Aªº¥d¤ù«Ø¥ß¤@­Ó«Øºc±ø¥Ø¡A¨Ã§â³o±i¥d¤ù³sô¤W pcnet_cs ÅX°Êµ{¦¡¡C ­«·s°õ¦æ cardmgr §Y¥i¨Ï¥Î³Q§ó·sªº«ØºcÀɮפF¡C

¦pªG pcnet_cs ÅX°Êµ{¦¡»¡¥¦µLªk¨M©w§Aªº¥d¤ù¤§µwÅé¤A¤Óºô¸ô¦ì§} ¡A¨º»ò½Ð½s­×§Aªº·s«Øºc±ø¥Ø±N³o±i¥d¤ù³sô¤W°O¾ÐÅé¥d¤ùÅX°Êµ{¦¡ memory_cs ¤W¡C ­«·s°õ¦æ cardmgr §Y¥i¨Ï¥Î³Q§ó·sªº«ØºcÀÉ®× ¤F¡C§A»Ý­nª¾¹D§Aªº¥d¤ùªºµwÅé¤A¤Óºô¸ô¦ì§}ªº­È¡C³o­Ó¦ì§}¬O­Ó¥H¤G­Ó¤Q ¤»¦ì¤¸¦r¤¸¸¹½X©Ò±Æ¦¨ªº¤»­Ó¼Æ¦r¡A³q±`¥¦·|³Q¦L¦b¥d¤ù¤W¡C¦pªG¥¦¨S¦³¦L ¦b¥d¤ù¤W¡A§A¥i¥H¨Ï¥Î DOS ªºÅX°Êµ{¦¡¨ÓÅã¥Ü³o­Ó¦ì§}¡C ¥u­n§A¤@ª¾¹D³o ­Ó­È¡A½Ð°õ¦æ:

dd if=/dev/mem0a count=20 | od -Ax -t x1

µM«á´M§ä§Aªº¦ì§}¤§¿é¥X¡C¥u¦³°¸¼Æ¦ì¤¸²Õ³Q©w¸q¤F¡A¦]¦¹¥i¥H©¿²¤¶É¦L¸ê ®Æ¤ºªº©_¼Æ¦ì¤¸²Õ¡C°O¤U¦ì§}ªº²Ä¤@­Ó¦ì¤¸²Õªº¤Q¤»¦ì¤¸¦ì²¾¡C²{¦b¡A½s­× modules/pcnet_cs.c ¨Ã´M§ä hw_info ºc³y¡C§A»Ý­n¬°§Aªº ¥d¤ù«Ø¥ß¤@­Ó·sªº±ø¥Ø¡C²Ä¤@­ÓÄæ¦ì´N¬O°O¾ÐÅé¦ì²¾¡C±µµÛªº¤T­ÓÄæ¦ì´N²Ä µwÅé¦ì§}ªº«e¤T­Ó¦ì¤¸²Õ¡C³Ì«á¤@Äæ¦ì§t¦³¥d¤ùªº¯S§O¥\¯àªººX¼Ð; ¶}©l®É ½Ð¸ÕµÛ±N¥¦³]¬° 0¡C

½s­×§¹ pcnet_cs.c «á¡A ½sĶ»P¦w¸Ë·sªº¼Ò²Õ¡C ¦A¦¸­×§ï /etc/pcmcia/config¡A µM«á§ïÅÜ¥d¤ùªº³sô±q memory_cs ´«¦¨ pcnet_cs¡C¶¶µÛ«ü¥Ü­«·s¸ü¤J«ØºcÀɮ׫á´N§¹¦¨¤F¡C½Ð±z±Hµ¹§Ú ¤@¥÷§Aªº·shw_info ÀÉ®×¥H¤Î«Øºcªº±ø¥Ø¤º®e¡C

¦pªG§A¨S¦³¦b¤Q¤»¶i¦ì¶É¦L¤º§ä¨ì§Aªº¥d¤ùªºµwÅé¦ì§}¡C³Ì«áªº¤@­Ó¤èªk¡A ·í pcnet_cs ¼Ò²Õªì©l¤Æ®É·Q­n ``hard-wire( µwÅé±µ¦X )'' ¬O¦³¥i ¯àªº¡C½Ð½s­× /etc/pcmcia/config.opts ¨Ã¥[¤J hw_addr= ¿ï¶µ¡A¹³³o¼Ë:

module "pcnet_cs" opts "hw_addr=0x00,0x80,0xc8,0x01,0x02,0x03"

¦b¾A©yªº¦a¤è¥N´«±¼§A¦Û¤vªº¥d¤ù¤§µwÅé¦ì§}¡C·íµM¡A½Ð¤p¤ß¦pªG§A¤w¸g°µ ¤F¨º»ò¦h¤F¡A¨º§Aªº¥d¤ù´N¤£¤Ó¹³¬O­Ó NE2000 ¬Û®e¥d¤F¡C¨Æ¹ê¤W¡A§Ú¨Ã¤£ ½T©w¬O§_¦³ ¥ô¦ó ¥d¤ù¦b¸g¹L¤F«e­±¨âºØ¤èªk¤§¤@«áÁÙ¤£¯à¥Îªº¤F ¡C

6.3 PCMCIA ³nºÐ¾÷¤¶­±¥d

¦b Compaq Aero ¤Î¤Ö¼Æ¤@¨Çµ§°O«¬¹q¸£©Ò¨Ï¥Îªº PCMCIA ³nºÐ¾÷¤¶­±¥d¥Ø «e©|¥¼³Q¤ä´©¡C ¥D­n»Ùê¦b©ó Aero ¦ü¥G¨Ï¥Î¦Û­qªº PCMCIA ±±¨î¾¹¨Ó¨Ï DMA ¤ä´©³nºÐ¾÷¡C¦b¤£¾å±o³o¬O¦p¦ó¿ì¨ìªº±¡ªp¤U¡A§Ú­Ì´NµLªk§ä¥X¸Ñ¨Mªº ¤èªk¡C

¦pªG¦b Aero ³Q¶}±Ò®É³nºÐ¾÷¤¶­±¥d¬O´¡µÛªº¡A Aero ªº BIOS ´N·|«Øºc¸Ó ¥d¡A¦¹®É Linux ·|§â¥¦µø¬°¤@¯ëªº³nºÐ¾÷¡C·í Linux ªº PCMCIA ÅX°Êµ{¦¡ ³Q¸ü¤J®É¡A ¥¦­Ì·|¬d¹î¨ì³o¥d¤w³Q«Øºc¨Ã¤wªþµÛ¦b Linux ªºÅX°Êµ{¦¡¤W¡A ¦Ó³o´¡¼Ñ¤]·|³Q©¿²¤¤£ºÞ¤F¡C©Ò¥H¡A¦pªG¦b¶}¾÷®É¥d¤ù§Y´¡µÛ¤F¨º´N¥i¥H¨Ï ¥Î¡A¦ý¥¦¤£¨ã³Æ¼ö¾÷¥æ´«ªº¥\¯à¡C

6.4 ¤ä´© Xircom ¥d¨ì©³«ç»ò¤F¡H

¦b¥Ø«eªº PCMCIA ®M¥ó¤¤¦³§t¤F¤@­Ó¥j´© Xircom ¤A¤Óºô¸ô¤Î¤A¤Óºô¸ô / ¼Æ¾Ú¾÷ªºÅX°Êµ{¦¡¡C ³o­n·PÁ Werner Koch ¥ý¥Í¡C§Ú¦³³]¥ß¤@­Ó±Mªù°Q½× Xircom ÅX°Êµ{¦¡½×ôΪº¶W´CÅé·s»D¡A¦b http://hyper.stanford.edu/hypernews/get/pcmcia/xircom.html¡C

¥H«e Xircom ¥d¨Ã¨S³Q¤ä´©¬O¦]¬° Xircom ¤½¥q¦³¤£¯à¬ªÅS¥L­Ìªº¥d¤ù¤§§Þ ³N¸ê°T¡C«á¨Ó¡A¥L­Ì©ñÃP³o¨Ç³W©w¡A²{¦b¥D°Ê´£¨ÑÅX°Êµ{¦¡ªº¸ê°T¡C


Next Previous Contents