Next Previous Contents

3. ¸Ñ¨M¦w¸Ë»P«Øºcªº°ÝÃD

¦b¥»³¹¸`ùØ·|«ü¥X¤@¨Ç±`¨£ªº PCMCIA ¤l¨t²Îªº¥¢±Ñ¼Ò¦¡¡C½Ð±z¸ÕµÛ¦b ³o¨Ç¨Ò¤l¤¤§ä¥X±z©Ò¹J¨ìªº°ÝÃD¤§¯gª¬¡C¥»³¹¥u´y­z¡¨¤@¯ëªº¿ù»~¡¨°ÝÃD¡A ¦]¦¹¨Ã¤£°w¹ï¯S©wªº¥d¤ù©ÎÅX°Êµ{¦¡¡C

·Q­n°£¿ù¦b§Ú­Ì¸ÕµÛ¸g¥Ñ PCMCIA ¸Ë¸m¨Ó¦w¸Ë Linux ®É¹J¨ìªº PCMCIA ÅX °Êµ{¦¡°ÝÃD´Xªñ¥G¤£¥i¯à¡C¬Æ¦Ü±z¯à±q¯gª¬¤¤ª¾¹D¬O­þ¤è­±ªº°ÝÃD¡A·Q­n­× §ï¦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

3.1 °ò¥» PCMCIA ®Ö¤ß¼Ò²Õ¨Ã¨S¸ü¤J

¯gª¬:

®Ö¤ß¼Ò²Õ¤¤¥]¬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

3.2 ´¡Â_±½´y¥¢±Ñ

¯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:

¥t¤@­Ó¤èªk¡A§Ú­Ì¥i¥H¨Ï¥Î¦b PCMCIA ±Ò°Ê¤â½Z¤¤«ü©w PCIC_OPTS ªº ³]©w¡A¨Ò¦p:

PCIC_OPTS="irq_list=5,9,10"

3.3 °O¾ÐÅé°»´ú¥¢±Ñ

¯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

3.4 ¿ù»~¦a°»´ú¥d¤ùªº´¡¤J»P©â¥X

¯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

3.5 ¨â±i¥d¤§¶¡ªº¸ê·½¬Û½Ä¬ð

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

3.6 ³]³Æ«Øºc¨Ã¨S¦³§¹¦¨

¯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


Next Previous Contents