¦b¥»³¹¸`ùØ·|«ü¥X¤@¨Ç±`¨£ªº PCMCIA ¤l¨t²Îªº¥¢±Ñ¼Ò¦¡¡C½Ð±z¸ÕµÛ¦b ³o¨Ç¨Ò¤l¤¤§ä¥X±z©Ò¹J¨ìªº°ÝÃD¤§¯gª¬¡C¥»³¹¥u´yz¡¨¤@¯ëªº¿ù»~¡¨°ÝÃD¡A ¦]¦¹¨Ã¤£°w¹ï¯S©wªº¥d¤ù©ÎÅX°Êµ{¦¡¡C
·Qn°£¿ù¦b§Ú̸յ۸g¥Ñ PCMCIA ¸Ë¸m¨Ó¦w¸Ë Linux ®É¹J¨ìªº PCMCIA ÅX °Êµ{¦¡°ÝÃD´Xªñ¥G¤£¥i¯à¡C¬Æ¦Ü±z¯à±q¯gª¬¤¤ª¾¹D¬Oþ¤è±ªº°ÝÃD¡A·Qn× §ï¦w¸ËºÏ¤ù¤S«ÜÃø¡A¤×¨ä¬OµLªk¦b Linux ¨t²Î¤U¦s¨ú®É¡C n¦Ûq¦w¸ËºÏ¤ù §¹¥þn¥õ¿à Linux ¨ÑÀ³ªÌªºªº¿ï¾Ü¤F¡A³o¤]¤£¦b¥»¤å¥óªº½d³ò¤º¡C ¦ý¤@¯ë ¨Ó»¡¡A ³Ì¨Îªº¨BÆJ¬O¥ý¨Ï¥Î¨ä¥Lªº¤èªk¨Ó¦w¸Ë¦n Linux¡A µM«á®³¨ì³Ì·sªº PCMCIA ÅX°Êµ{¦¡«á¡A¦A¨Ó°£¿ù¨º¨Ç¤´¦s¦bªº°ÝÃD¡C
¯gª¬:
lsmod
¨Ã¨S¨q¥X¥ô¦óªº PCMCIA ¼Ò²Õ¡Ccardmgr
°õ¦æ³ø§i ``no pcmcia driver in /proc/devices''
¦b¨t²Î¤é»x¤¤¡C®Ö¤ß¼Ò²Õ¤¤¥]¬A¥¦ªºª©¥»¸ê°T·|¦b¼Ò²Õ³Q¸ü¤J®É»P²{¦bªº®Ö¤ß¬Û®Ö¹ï¡CÀˬd
ªº¤è¦¡µø CONFIG_MODVERSIONS
³o¶µ®Ö¤ß¿ï¶µ¨Ó¬Ý¡C ¦pªG³o¶µ¥Ø¬O§_
©wªº¡A ®Ö¤ßª©¥»¸¹½X´N·|³Q½sĶ¨ì¨C¤@Ó¼Ò²Õ¤º¡A¦Ó insmod
·|Àˬd
³o¶µ¬O§_»P°õ¦æ¤¤ªº®Ö¤ß¬O¬Û²Å¦Xªº¡C ¦pªG CONFIG_MODVERSIONS
¬O
yes¡A®Ö¤ß©Ò´£³øªº¨CӲŸ¹·|³Q°µ¦¨¤@¥÷ÀˬdÁ`Äý (Checksum)¡C³o¨Çµ{¦¡
½X³£·|³Q»P¬Û¹ïÀ³ªºµ{¦¡½X¬Û¤ñ¹ï«á½sĶ¦¨¼Ò²Õ¡C³o»ò°µ¦®¦bÅý¼Ò²ÕÌ´î¤Ö
ª©¥»¨Ì¿à«×¡A ¦]¬°ÀˬdÁ`Äý¥u·|¦b®Ö¤ß¤¶±§ó°Ê®É¤~·|¸òµÛÅÜ°Ê¡A ¥B¹ï©ó
¤p¤pªº®Ö¤ß§ó·s¤É¯Å´X¥Gºû«ù»Pì¨Ó¬Û¦P¡C¦b¹ê°È¤W¡AÀˬdÁ`Äý¤wÅܦ¨§ó¥[
ªºÄY®æ¡A¦]¬°¦³³\¦hªº®Ö¤ß¤¶±³£¨Ì¿à¬O¦b½sĶ®É´Á®É®Ö¤ß¿ï¶µªº³]©w¡C¦Ó
¥B¡AÀˬdÁ`Äý¤vÅܦ¨¤@Ó§PÂ_¬Û®e«×ªº·¥ºÝ´dÆ[ªº¤u¨ã¤F¡C
¦³¨Ç PCMCIA ¼Ò²Õ»Ýn®Ö¤ßªA°Èµ{¦¡¡A¦ý³o¨ÇªA°Èµ{¦¡¥i¯à¦s¦b©Î¤£¦s¦b¡A
³o§¹¥þn¬Ý®Ö¤ßªº«Øºc¡C ¨Ò¦p¡ASCSI ±±¨î¥dÅX°Êµ{¦¡´N»Ýn®Ö¤ß¤w³Q«Øºc
¤ä´©¤F SCSI ¤F¡Cºô¸ôÅX°Êµ{¦¡´N»Ýn¤ä´©ºô¸ôªº®Ö¤ß¡C¦pªG®Ö¤ß¯Ê¤Ö¤F¤@
»Ýnªº¥\¯à¡Ainsmod
¥i¯à·|³ø§i¥X¦³¥¼©w¸qªº²Å¸¹¦Ó¤£¥h¸ü¤J¸Ó¼Ò²Õ
¡C
³o¼ËÄ~Äòªºµ²ªG¬O¡A®Ö¤ß¼Ò²Õºò±K¦a»P®Ö¤ßª©¥»¥H¤Î³\¦hªº®Ö¤ß«Øºc¿ï¶µªº ³]©w¬Ûµ²¦X¡C¤@¯ë¨Ó»¡¡Aµ²®Ö¤ß 2.0.31 ª©ªº¤@²Õ³Q½sĶ¦nªº¼Ò²Õ¨ÃµLªk³Q ¨ä¥Lªº®Ö¤ß 2.0.31 ª©¥»¤W¨Ï¥Î¡C°£«D¦³¯S§O¦aª`·N¨ì±N¨âӫغc¦¨¬Û¦Pªº ³]©w¡C³oÓ°ÝÃD¡A´NÅý¨º¨Ç¨ÑÀ³¤w½sĶ¦nªº®Ö¤ß¼Ò²Õªº¤u§@Åܱo¦³ÂI©_©Ç¤F ¡C
±z¦³´XºØ¿ï¶µ¡G
Documentation/Changes
Àɮפº°w¹ï¼Ò²Õ¤½¥Îµ{¦¡¤Î¤G¶i¦ì¤½¨ã
µ{¦¡¤¤¦C©úªº³Ì¤p»Ý¨D (``minimal requirements'')¡C
¯gª¬:
¦b¿ëµø PCMCIA ±±¨î¾¹¤§«á¡A´¡¼ÑÅX°Êµ{¦¡·|°»´úªÅµÛªº´¡Â_¸¹½X¡C³oÓ°Ê §@·|¬°¨CÓÅãµM¬OªÅµÛªº´¡Â_°µµ{¦¡¤Æ, µM«á²£¥Í¤@Ó `` ³nªº '' ´¡Â_¡A ¨Ó¬Ý¬Ý¬O§_³oÓ´¡Â_¥i¥H³Q¥¿½T¦a³Q°»´ú¨ì¡C¦³¨Ç®ÉÔ¡A°»´ú¨ì¤@¨Ç¯S®íªº ´¡Â_®É·|¼vÅT¨ì¨ä¥Lªº¨t²Î³]³Æ¡C
³o»ò°»´úªº²z¥Ñ¬O¡A§ÚÌn¿ëµø¥X¯u¥¿ªÅµÛ¥i¥Îªº´¡Â_¡C (¨Ò¦p¡A¨º¨Ç¤£¬O ³Q¥ô¦ó¨ä¥L Linux ³]³ÆÅX°Êµ{¦¡©Ò¹w¯dµÛªº¡A ¤]¨Ã«D¹êÅé¤W¤w³s±µµÛ PCMCIA ±±¨î¾¹ªº¡A©Î¬O¤w³s±µµÛ¨ä¥Lªº³]³Æ¦ý¨Ã¨S¦³ÅX°Êµ{¦¡ªº¡C)
¦³¤GºØÄ~Äòªº¤èªk:
irq_list
°Ñ¼Æ³]©w¨Ó¨î
¥u¹ï¬Y¨Ç´¡¼Ñ¹ê¬I¦Ó¤w¡C¨Ò¦p ``irq_list=5, 9, 10
'' ·|¨î¥u¹ï³o
¤TÓ´¡Â_°µ±½´y±´´ú¦Ó¤w¡C©Ò¦³ªº PCMCIA ³]³Æ·|³Q¨î¥u¯à¨Ï¥Î³o´XÓ´¡
Â_¦Ó¤w (°²¦p¥¦Ì²¤¹L¤F°»´ú°Ê§@ )¡C§A¥i¯à»ÝnÀ|¸Õ´X¦¸¥¢±Ñ¨Ã¦A±µ¦A¼F
¦a¤~¯à§ä¨ìþ¨Ç´¡Â_¥i¥H³Q¦w¥þ¦a°»´ú¨Ï¥Îªº¡C¥t¤@Ó¤èªk¡A§ÚÌ¥i¥H¨Ï¥Î¦b PCMCIA ±Ò°Ê¤â½Z¤¤«ü©w PCIC_OPTS
ªº
³]©w¡A¨Ò¦p:
PCIC_OPTS="irq_list=5,9,10"
¯gª¬:
©Î¬O¡G
¥D¼Ò²Õµ{¦¡¦b²Ä¤@¦¸´¡¤J¥d¤ù¨Ï°µ¤@©w°O¾ÐÅé±½´y¡C³oӰʧ@¦³¼ç¦b¥i¯à¦a
¤z¯A¨ì¨ä¥L°O¾ÐÅé¬M®gªº³]³Æ¡C¥t¥~¡Apre-3.0.0 ª©¥»«eªºÅX°Êµ{¦¡®M¥óÁÙ
·|°µ¤ñ²{¤µªºÅX°Êµ{¦¡ª©¥»§ó¶i¤@¨Bªº±½´y¡C°O¾ÐÅ鵡¬O³Q©w¸q¦b
/etc/pcmcia/config.opts
¤º¡C ¹w³]ªºµ¡¤f«Ü¤j¡A©Ò¥H¥¦¥i¯à·|
À°§U¨Ó¨î±½´y¨ì¸û¯¶ªº½d³ò¡C¤ñ¸û¦X²zªº½d³ò¥i¸Õ¬Ý¬Ý¥]§t¶i¥H¤Uªº¦ì§}
¡G0xd0000-0xdffff, 0xc0000-0xcffff, 0xc8000-0xcffff, ©Î
0xd8000-0xdffff¡C
¦pªG§A¦³ DOS ©Î Windows ª©ªº PCMCIA ÅX°Êµ{¦¡¡A §A´N¥i¥H you may be
able to deduce what memory region those drivers use. ½Ð°O±o DOS ªº
°O¾ÐÅé¦ì§}³q±`³£¨Ï¥Î `` ¬q '' ¦ì§}§Î¦¡¡A¤]´N¬O¥¦·|±N§À¤Úªº¤Q¤»¦ì¤¸
¼Æ¦r¬Ù²¤±¼¡]©Ò¥H 0xd0000 ªºµ´¹ï¦ì§}´N¬O 0xd000 ¡^¡C °O±o¦b§ï
/etc/pcmcia/config.opts
®Én½T»{³o¶µ¡C
¯gª¬¡G
¤@¯ë¨Ó»¡¡A¥d¼ÑÅX°Êµ{¦¡ (i82365
©Î tcic
) ·|¦Û°Ê¦a°»´ú¨Ã¿ï
¾Ü¤@Ó¾A¦Xªº´¡Â_¨Ó¶Ç°e¥d¤ùª¬ºAªº§ó°Ê¡C ¬Y¨Ç Intel ¬Û®e±±¨î¾¹ªº¦Û°Ê
´¡Â_°»´ú¤£¯à¤u§@¡C ¥]§t Cirrus ´¹¤ù©M¸Ë¦b IBM ThinkPads ¤Wªº´¹¤ù¡C
¦pªG¦b°»´ú®É³]³ÆµLªk°_°Ê¡A¥¦ªº´¡Â_¤]·|¬O¶¢¸mªº¡C³oºØª¬ºA¤U¡A¥d¼ÑÅX
°Êµ{¦¡¤]³\·|¬D¨ì¤@Ó¤w³Q¨ä¥L¸Ë¸m¨Ï¥Î¤¤ªº´¡Â_¨Ó¨Ï¥Î¡C
¦b i82365
©M tcic
ªºÅX°Êµ{¦¡ùتº irq_list
¿ï¶µ¥i¥H
¥Î¨Ó¨îþ¨Ç´¡Â_¥i¥H³Q´ú¸Õªº¡C³oÓ´¡Â_¦Cªí¥i³Q¨î¦¨¥u³Q PCMCIA ¥d
©Ò¨Ï¥Î©Î¥Î¨ÓºÊ±±¥d¤ùª¬ºAªº§ïÅÜ¡C ¥t¥~ cs_irq
¿ï¶µ¥i©ú¥Õ¦a³]©w
þÓ´¡Â_n³Q¥Î¨ÓºÊ±±¥d¤ùª¬ºAªº§ïÅܪº¡C
¦pªG±zµLªk§ä¨ì¥i¥¿±`¤u§@ªº´¡Â_¸¹½X¡AÁÙ¦³¤@Ó²¼¿ïª¬ºA¼Ò¦¡¥i¥Î¡G¤£½×
¬O i82365
©Î tcic
³£±µ¨ü poll_interval=100
³o¿ï¶µ¡A
¥Î¨Ó²¼¿ï¥d¤ùªº¨C¬íªº§ïÅܪ¬ºA¡C¦pªG±zªº¨t²Î¤wµu¯Ê¥i³Q PCMCIA ¥d¨Ï¥Î
ªº´¡Â_®É³oӿﶵ¤]¥i¥H³Q¨Ï¥Î¡C¯S§O¬O¦b¨t²Î¤º¦³¤@ºØ¥H¤Wªº PCMCIA ±±
¨î¾¹®É´N¥²¶·ª`·N³oÂI¤F¡C
©Ò¦³ªº³o¨Ç¿ï¶µ¥²¶·¦b PCIC_OPTS=
³o¦æ¨Ó³]©w¡A ¬Ý±zªº¨t²Î¬O³]¦b
/etc/rc.d/rc.pcmcia
ùةάO /etc/sysconfig/pcmcia
¡C
Symptoms:
³q±`³o´Nªí¥Ü¤w¸g©M¬YÓ Linux ¤£ª¾¹Dªº¨t²Î³]³Æ¬Û½Ä¬ð¤F¡CPCMCIA ³]³Æ ¬O³Q°ÊºA«Øºcªº¡A©Ò¥H¡A¨Ò¦p¡A´¡Â_¬O¦b³Q»Ýn®É³Q¤À°tªº¡A¦Ó¤£¬O¯S§O³Q «ü©w¨ì¯S§Oªº¥d¤ù©Î¬O´¡¼Ñªº¡C²{¦b¦³¤@Ó¥i¥Î¸ê·½ªº²M³æ¡A¥d¤ù·|¦b¥LÌ ³Q«Øºc®É¨Ì§Ç¦a³Q«ü¬£µ¹¸ê·½ªº¡C¦b³oºØª¬ªp¤U¡A³Ì«á³Q«Øºcªº¥d¤ù·|³Q«ü ¬£¨ì¤@ӨëD¬OªÅ¶¢µÛªº¸ê·½¤W¤F¡C
±z¥iÀˬd¨t²Î¤é»x¦³þ¨Ç¸ê·½³Q«D¥¿¦b¤u§@ªº¥d¤ù©Ò¦û¥ÎµÛ¡C¦b
/etc/pcmcia/config.opts
ùاâ³o¨Ç±Æ°£¦b¥~¡A ¦A«·s±Ò°Ê
cardmgr
ºëÆF¨Ó¦A¸ü¤J¸ê·½¸ê®Æ®w¡C
¯gª¬¡G
³oªí¥Ü¥d¤ù¤w³Q¦¨¥\¦a¿ëµø¤F¡C¦ý¬O cardmgr
¦]¬Y¨Çì¦]¤wµLªk§¹¦¨
«Øºcµ{§Ç¡C³Ì¦³¥i¯àªºì¦]¬O¦b¥d¤ù³]©w¤â½Zªº¬Y¤@¨BÆJ³Q§x¦í¤F¡C·í¤@Ó
ºô¸ô¥d³Q´¡¤J®É¨Ã¨S¦³±µ¤W¤@Ó¥¿¬¡°Ê¤¤ªººô¸ô¤W®É¡Aºô¸ô¤â½Z³Q§x¦í¤F¡A
³o´N¬O³Ì¦nªº¨Ò¤l¡C
n§ä¥X°ÝÃD¥X¦bþùØ¡A§A¥i¥H¤â°Ê°õ¦æ¤@Ó³]©w¤â½Z¨Ó¬Ý¬Ý¥¦¬O³Q§x¦bþ¨à
ªº¡C³oÓ¤â½Z´N©ñ¦b /etc/pcmcia
¥Ø¿ý¤º¡C¥LÌ·|¨Ï¥Î¤GӰѼÆ
¡G³]³Æ¦WºÙ¤Î°Ê¥ó¡C cardmgr
ºë·|§â°O¿ý«Øºcªº©R¥O°O¿ý¦b¨t²Î¤é»x
¤º¡C ¨Ò¦p¡A ¦b¨t²Î¤é»x¤¤Åã¥Ü¥X `./network ©R¥O¶}©l¤F eth0'' ¬O³Q
cardmgr
³Ì«á¤@Ó°õ¦æªº©R¥O¡A¥H¤Uªº©R¥O·|°lÂܳoÓ¤â½Z¡G
cd /etc/pcmcia
sh -x ./network start eth0