¦pªG©Ò¦³ªº¼Ò²Õ³£³Q¥¿½T¦a¸ü¤J¤F¡A¦b¨S¦³¥d¤ù³Q´¡¤Jªºª¬ºA¤U¡A lsmod
©R¥Oªº¿é¥X·|¬Ý°_¨Ó¹³¥H¦Cªº¼Ë¤l¡C
Module Size Used by
ds 5640 2
i82365 15452 2
pcmcia_core 30012 3 [ds i82365]
¨t²Î¤é»x¤]À³¸Ó¥]§t´¡¼ÑÅX°Êµ{¦¡¹ï©óþ¨Ç¥D±±¨î¾¹³Qµo²{¤F¡B¦³´XÓ´¡¼Ñ ³Q°»´ú¨ì¤Fªº¿é¥X¡C
cardmgr
ºëÆFt³dºÊ±± PCMCIA ´¡¼Ñ¡A¦³»Ýn®É¸ü¤J
¨ä¥LªºÅX°Êµ{¦¡¡A¨Ã¥B°õ¦æ¨Ï¥ÎªÌ¶¥¼hªº¤â½Z¨Ó¤ÏÀ³¥d¤ùªº´¡¤J»P²¾¥X¡C¥¦
·|§â¥¦ªº°Ê§@°O¿ý¦b¨t²Î¤é»x¤º¨Ã¥Î¹ÍÁn¨Ó¦^À³¥d¤ùª¬ºAªº§ïÅÜ¡C¹ÍÁnªºµ
½Õªí¥Ü«Øºc¨BÆJ¬O¦¨¥\ÁÙ¬O¥¢±Ñ¡C¨âÓ°ªµÁnÅTªí¥Ü¨B¤ù¤w³Q¦¨¥\¦a¿ëµø»P
«Øºc¤F¡C¤@°ªµ¤@§CµÁnÅTªí¥Ü¥d¤ù³Q¿ëµø¡A¦ý¦]¬Y¨Çì¦]µLªk³Q«Øºc¡C¤@
§Cµ¹ÍÁnªí¥Ü¥d¤ùµLªk³Q¿ëµø¡C
Cardmgr
·|§â¨C¤@Ó´¡¼Ñªº³]³Æ¸ê°T°O¿ý¦b /var/run/stab
ùØ¡C¥H¤U¬O /var/run/stab
ªº¦Cªí¨Ò¤l¡G
Socket 0: Adaptec APA-1460 SlimSCSI
0 scsi aha152x_cs 0 sda 8 0
0 scsi aha152x_cs 1 scd0 11 0
Socket 1: Serial or Modem Card
1 serial serial_cs 0 ttyS1 5 65
¦b³o´X¦æ©Ò´yzªº³]³Æ¤¤¡A²Ä¤@ÓÄæ¦ìªí¥Ü´¡¼Ñ¡B²Ä¤G¬°³]³ÆÃþ§O¡B²Ä¤T¬° ÅX°Êµ{¦¡¦WºÙ¡B²Ä¥|³Q¥Î¨Ó«ü©w¦b¦P¤@ÅX°Êµ{¦¡¤U¨Ï¥Îªº¨CÓ³]³Æ¨ú¸¹½X¡B ²Ä¤Ó¬O³]³Æ¦WºÙ¡B³Ì«á¨âÓÄæ¦ì¬O³oÓ³]³Æªº¥Dn¤Î¦¸n¸¹½X¡C¡]¦pªG¥i §ä¨ìªº¸Ü¡^
cardmgr
ºëÆF¨Ì¾Ú³Q¦s¦b /etc/pcmcia/config
¤ºªº¤wª¾¤§
¥d¤ù¸ê®Æ®w¨Ó«Øºc³o¨Ç¥d¤ù¡C³oÓÀÉ®×´yz¤F³\¦hÓ§OªºÅX°Êµ{¦¡¡A¥H¤Î¦p
¦ó¿ëµø³\¦hªº¥d¤ù¡AÁÙ¦³þÓÅX°Êµ{¦¡ÄÝ©óþÓ¥d¤ùªº¡C³oÓÀɮתº®æ¦¡¦b
pcmcia(5)
ªº man ¶ùئ³¸Ô²Óªº¸ê®Æ¡C
cardctl
©R¥O¥i¥H¥Î¨ÓÀˬd´¡¼Ñªºª¬ºA¡A ©Î¬Ý¥¦Ì¬O¦p¦ó³Q«Øºcªº¡C
¥¦¤]¥i¥H³Q¥Î¨Óĵ¥Ü¤@Ó¥d¤ùªº«Øºcª¬ºA¡C ³o¨à¦³Ó ``cardctl
config
'' ©R¥Oªº¿é¥X¨Ò¤l¡G
Socket 0:
Socket 1:
Vcc = 5.0, Vpp1 = 0.0, Vpp2 = 0.0
Card type is memory and I/O
IRQ 3 is dynamic shared, level mode, enabled
Speaker output is enabled
Function 0:
Config register base = 0x0800
Option = 0x63, status = 0x08
I/O window 1: 0x0280 to 0x02bf, auto sized
I/O window 2: 0x02f8 to 0x02ff, 8 bit
``cardctl suspend
'' ©M ``cardctl resume
'' ¨âÓ©R¥O¥i¥H¥Î
¨Ó¦b¤£»Ý¨ø¤U¥¦ªº¬ÛÃöÅX°Êµ{¦¡ªºª¬ªp¤UÃö³¬¥d¤ù¡C``cardctl
reset
'' ©R¥O·|«·s³]©w¤Î«Øºc¥d¤ù¡C ``cardctl insert
'' ©M
``cardctl eject
'' ºNÀÀ·í¤@Ó¹êÅ骺¥d¤ù´¡¤J©Î©â¥X®É©Ò°µªº°Ê§@
¡A³o¥]§t¸ü¤J©Î¨ø¤UÅX°Êµ{¦¡¥H¤Î«Øºc©ÎÃö³¬³]³Æ¡C
¦pªG±z¥¿°õ¦æ X¡A cardinfo
¤½¥Îµ{¦¡·|²£¥Í¤@Ó¹Ï
¥Ü¨ÓÅã¥Ü©Ò¦³ªº PCMCIA ´¡¼Ñªº²{ªp¡A ¤º®e©M°õ¦æ ``cardctl
config
'' Ãþ¦ü¡C¥¦ÁÙ´£¨Ñ¨ä¥L cardctl
¥\¯àªº¹Ï§Î¤Æ¥\¯à¡C
¦b²z½×¤W¡A§A¥i¥H¦b¥ô¦ó®É¶¡´¡¤J©Î²¾¥X PCMCIA ¥d¤ù¡CµM¦Ó¡A§â¥¿¦b³Q¨ä ¥Lµ{¦¡¨Ï¥Î¤¤ªº¥d¤ù²¾¥X¨Ó¨Ã¤£¬OÓ¦n¥D·N¡C¦b®Ö¤ß 1.1.77 ª©¥H«eªº¨t²Î ±`·|¦b¦ê¦C¡þ¼Æ¾Ú¾÷¥d¤ù³Q²¾¥X®É³y¦¨·í¾÷¡A¦ý²{¦b¤w¦³×¥¿¤èªk¤F¡C
¥d¤ùªA°Èµ{¦¡¥i¥H½sĶ¦¨¤ä´© APM ( ¶i¶¥¯à·½ºÞ²z) ¡A ¦pªG§A¤w¦w¸Ë¤F³oÓ®M¥ó¨ì§Aªº¨t²Î¤ºªº¸Ü¡C APM ¦b®Ö¤ß 1.3.46 ¡]§t¡^¥H«á´N³Q¾ã¦X¤F¡C ²{¦b³o®M¥ó³Q Rick Faith (faith@cs.unc.edu) ©ÒºûÅ@¡A APM ¤u¨ã¥i¥H¥Ñ ftp://ftp.cs.unc.edu/pub/users/faith/linux ®³¨ì¡C¦pªG§Aªº¨t ²Î³Q°»´ú¥X¦³Ó¬Û®eªºª©¥»¦bªº¸Ü¡A PCMCIA ¼Ò²Õ·|³Q¦Û°Ê¦a«Øºc¦¨¤ä´© APMM ¥\¯à¡C
¦pªG¨S¦³ÂÇµÛ APM¡A §A¥i¥H¦bÄa¸m§Aªºµ§°O¹q¸£«e°õ¦æ ``cardctl
suspend
''¡A¥H¤Î¦b¦^ÂЫá°õ¦æ ``cardctl resume
''¡A¤~¯à¾A·í¦aÃö
¤W©Î«±Ò§Aªº PCMCIA ¥d¡C ³o¹ï¥¿¦b¨Ï¥Î¤¤ªº¼Æ¾Ú¾÷¨Ã¤£¾A¥Î¡A ¥Ð¦]§Ç
¦CÅX°Êµ{¦¡¨ÃµLªkÀx¦s»P¦^À³¼Æ¾Ú¾÷ªº¹B§@°Ñ¼Æ¡C
APM ¦b¦³¨Ç¨t²Î¤W¦ü¥G¦³ÂI¤£¤Óéw¡C ¦pªG§A¹J¨ì APM ©M PCMCIA ¦@¥Î®É ¦³¥ô¦ó°ÝÃD¡A½Ð±z¦b´£¥Xµ{¦¡¤p¦ä³ø§i«e¥ý¸ÕµÛ§â°ÝÃD²¤Æ¡C
¦³¨ÇÅX°Êµ{¦¡¡A ¤ñ¦p»¡ PCMCIA SCSI ÅX°Êµ{¦¡¡AµLªk±qÄa¸m¡þ«·s°Ê§@¶g
´Á¤U¦^ÂйL¨Ó¡C ¦b¨Ï¥Î PCMCIA SCSI ¥d®É¡A ¦bÄa¸m¨t²Î«e¥ý°õ¦æ
``cardctl eject
''¡C
n¨ø¤U¾ãÓªº PCMCIA ®M¥ó¡A invoke rc.pcmcia
with:
/etc/rc.d/rc.pcmcia stop
³oÓ¤â½Z·|ªá´X¬íÄÁ¨Ó°õ¦æ¡Aµ¹¥þ³¡ªº«È¤á¦ÛqÅX°Êµ{¦¡¨Ó§¹¬ü¦aÃö³¬
¡C¦pªG¦³Ó PCMCIA ³]³Æ¥¿³Q¨Ï¥Î¤¤¡A³o¼ËÃö¥i¯à¤£·|«Ü§¹¾ã¦aÃö³¬¡A¦³¨Ç
®Ö¤ß¼Ò²Õ¥i¯à¤£·|³Q¨ø¤U¡C n¨¾¤îµo¥Í³oºØª¬ªp¡A ½Ð¦b°õ¦æ
rc.pcmcia
¤§«e¨Ï¥Î ``cardctl eject
'' ¨ÓÃö³¬©Ò¦³ªº´¡¼Ñ¡C
cardctl
©R¥OªºÂ÷¶}ª¬ºA·|Åã¥Ü¦pªG¦³¥ô¦óªº´¡¼Ñ¤£¯à³QÃö³¬ªº¡C
¨C¤@Ó PCMCIA ³]³Æ³£·|¦³Ó¬Û¹ïÀ³ªº `` Ãþ§O '' ¨Ó´yz¥¦À³¸Ó¦p¦ó³Q«Ø
ºc»PºÞ²zªº¡C³o¨ÇÃþ§O»P³]³ÆÅX°Êµ{¦¡³£³Q²Õ´¦b
/etc/pcmcia/config
¤º¡C¥Ø«e¦@¦³¤ºØ¿é¥X¿é¤J³]³ÆªºÃþ§O (ºô
¸ô¡B SCSI¡B cdrom¡BµwºÐ¥H¤Î¦ê¦C ) ¥H¤Î¤GºØ°O¾ÐÅé³]³ÆÃþ§O (°O¾ÐÅé»P
FTL)¡C¦b¨C¤@ÓÃþ§O¤¤¡A³£¦³¤GÓ¤â½Z©ñ¦b /etc/pcmcia/config
¤º¡G¤@Ó¥Dn«Øºc¤â½Z (¨Ò¦p¡A /etc/pcmcia/scsi
¬O SCSI ³]
³Æªº )¡A¥H¤Î¤@ӿﶵ¤â½Z (¨Ò¦p¡A /etc/pcmcia/scsi.opts
)¡C
¥D¤â½Z¦b¥d¤ù³Q´¡¤J®É·|³Q±Ò¥Î¨Ó«Øºc¸Ó³]³Æ¡A·í¥d¤ù³Q©â¥X®ÉÃö±¼¸Ó³]³Æ
¡C¹ï©ó¤ä´©¦hºØ³]³Æªº¥d¤ù¡A°w¹ï¦U§O¤£¦Pªº³]³Æªº¤â½Z³£·|³Q±Ò¥Î¡C
³o config ¤â½Z·|±q /var/run/stab
ùظѥX¤@¨Ç¦³Ãö©ó³]³Æ¤Wªº
¸ê®Æ¶}©l¡C ¨C¤@Ó¤â½Z·|ºc¿v¤@Ó `` ³]³Æ¦ì§} ''¡A¥¦¬O¿W¤@µL¤Gªº¦ì§}
¥Î¨Ó´yz¸Ó³]³Æ¦b ADDRESS
shell ÅܼƤº³Qn¨D³Q«Øºcªº¤è¦¡¡C¥¦·|
³Q¶Ç»¼¨ì *.opts
¤â½Z¤W¡A ¸Ó¤â½Z¦A¦^À³¦³Ãö©ó¦b³o¦ì§}¤Wªº³]³ÆÀ³
¸Ón«ç¼Ë¦a«Øºc¤~¥i¥Hªº¸ê°T¡C ¦³¨Ç³]³Æ¡A ¥¦ªº³]³Æ¦ì§}´N¬O´¡¼Ñ¸¹½X¡C
ÁÙ¦³¨ä¥Lªº³]³Æ¡A¥¦·|¥]§t¥t¥~ªº¦³¥Î¸ê°T¥i¥H¥Î¨Ó¨M©w¦p¦ó¨Ó«Øºc¸Ó³]³Æ
¡C¨Ò¦p¡Aºô¸ô³]³Æ·|¶Ç»¼¥L̪ºµwºÐ¤A¤Óºô¸ô¦ì§}°µ¬°³]³Æ¦ì§}ªº¤@³¡¥÷¡A
¨ÓÅý network.opts
¤â½Z¯à°÷¨Ï¥Î³o¶µ¸ê°T¨Ó±q³\¦h¤£¦Pªº«Øºc¤¤°µ
¥¿½Tªº¿ï¾Ü¡C
©Ò¦³ªº³]³Æ¦ì§}ªººn³¡¥÷¬O¥Ø«eªº PCMCIA ``scheme''¡C³oӰѼƬO³Q¥Î
¦b¥u¦³¤@Ó¥~³¡¨Ï¥ÎªÌ«ü©wÅܼƮɥΨӹï³]³Æ«Øºc¤§¦hºØ³]©wªº¡C¹ï©ó¥¦ªº
À³¥Î¡A ¨Ò¦p§ÚÌ¥i¥H¦³Ó ``home'' scheme ¥H¤Î¤@Ó ``work'' scheme¡A
¥¦Ì¥]¬A¤F¤£¦Pªººô¸ô«Øºc°Ñ¼Æªº²Õ¦X¡C ¥Ø«eªº scheme ¥i¥H¨Ï¥Î
``cardctl scheme
'' ©R¥O¨Ó°µ¿ï¾Ü¡C¦pªG¨S¦³ scheme ³Q«ü©wªº¸Ü´N
¥H¤º©wȨӳ]©w¡C
¤@¯ëì«h¤W¡A·ín«Øºc Linux ¦bµ§°O«¬¹q¸£¤W®É¡APCMCIA ªº³]³Æ¥u¯à³Q¸g ¥Ñ PCMCIA ³]³Æ¤â½Z¨Ó«Øºc¡C ½Ð¤£¥H¸ÕµÛ¥H«Øºc©T©w³]³Æªº¤è¦¡¨Ó«Øºc PCMCIA ³]³Æ¡CµM¦Ó¡A¦³¨Ç Linux ¨ÑÀ³ª©°Ó´£¨Ñ¤w±µ¦b¥L̦ۤwªº³]³Æ«Øºc ¤u¨ã¤Wªº PCMCIA ®M¥ó¡C¦b³oºØ±¡ªp¤U¡A¥H¤Uªº´XÓ¥DÃD¥i¯àµLªk¨Ï¥Î¡A¦Ó ¨ÑÀ³ª©°ÓÀ³¸Ó·|¦³¥L̦ۤvªº³oÃþ¤å¥ó¡C
Linux ªº¤A¤Ó«¬ºô¸ô¥d¤¶±³q±`³QºÙ°µ eth0
¡Beth1
µ¥µ¥¡CÀô§Î
¥d¥ç¦P¼Ë¦a³Q¬Ý«Ý¡C µM¦Ó¥¦Ì³QºÙ°µ tr0
¡B tr1
µ¥µ¥¡C
ifconfig
©R¥O¬O³Q¥Î¨ÓÆ[¬Ý¤Îקïºô¸ô¤¶±ª¬ºAªº¡CLinux ªº¥t¤@¯S
ÂI¬Oºô¸ô¤¶±¨Ã¤£·|¹³¨ä¥L³]³Æ¤@¼Ë¦a³Q¬Ý¦¨¬O¤@Ó¦b /dev
ùØ
ÀYªºÀɮסC©Ò¥H¦pªG±z¦b /dev ¤º§ä¤£¨ì¥¦Ì®É½Ð¤£nı±oÅå³Y¡C
·í¤@Ó PCMCIA ¤A¤Óºô¸ô¥d³Q°»´ú¨ì®É¡A¥¦·|³Q«ü©w¬°²Ä¤@Ó¥i¥Îªº¤¶±¥d
¦W¦r¡A ³q±`¬° eth0
¡C Cardmgr
©R¥O·|°õ¦æ
/etc/pcmcia/network
¤â½Z¨Ó«Øºc¥¦ªº¤¶±¡C
½Ð¤Å±N±zªº PCMCIA ¤A¤Óºô¸ô¥d«Øºc¦b /etc/rc.d/rc.inet1
¤º
¡A¦]¬°·í³oÓ¤â½Z³Q°õ¦æ®É¤]³\¥d¤ù¨Ã¤£¦b´¡¼ÑùØ¡C ¦b rc.inet1
¤º
°£¤F¦^Âkªº¶µ¥Ø¤§¥~¡A ¨ä¥¦ªº©R¥O¦C½Ð±N¥L̵ù¸Ñ±¼¡C ¦Ó¥t¥~קï
/etc/pcmcia/network.opts
¨Ó°t¦X±zªº¥»¦aºô¸ô³]©w¡C
network
©M network.opts
¤â½Z¥u¦³¦b±zªº¤A¤Óºô¸ô¥d¦s¦b®É¤~
·|³Q°õ¦æ¡C ¦pªG±zªº¨t²Î¦³¦Û°Êºô¸ô«Øºcµ{¦¡¡A ¥¦¤]³\¬O¤]³\¤£¬O
PCMCIA-aware¡C ½Ð±q±zªº Linux ¨ÑÀ³ª©¥»ªº¤å¥ó¤¤¬d¬Ý¬Ý¬O§_ PCMCIA ºô
¸ô³]³Æ¬O§_»Ýn¨Ï¥Î¦Û°Ê¤Æ¤u¨ã¨Ó«Øºc©Î¥u»Ý½s¿è network.opts
§Y
¥i¡C
¶Ç¨ì network.opts
ªº³]³Æ¦ì§}¤¤¥]§t¤F¥|Ó¥H³r¸¹¨Ó¤À¶}ªºÄæ¦ì¡G
scheme¡B´¡¼Ñ¸¹½X¡B³]³Æ´£Ä³¤Î¥d¤ùµwÅ骺¤A¤Óºô¸ô¦ì§}¡C³]³Æ´£Ä³¬O¥Î¨Ó
µ¹¦³³\¦hºô¸ô¤¶±ªº¥d¤ù¨ú¸¹½X¤§¥Î¡A³q±`¬° 0¡C¦pªG±z¦³³\¦h¤£¦P¨Ï¥Î¥Ø
¦aªº¥d¤ù®É¡A¥t¤@«ö·Ó´¡¼Ñ¦ì¸m¦Ó«Øºcªº¿ï¶µÀ³¸Ó³Q³]©w¡A¦p¦P¦b¡G
case "$ADDRESS" in
*,0,*,*)
# definitions for network card in socket 0
;;
*,1,*,*)
# definitions for network card in socket 1
;;
esac
©Î¬O¡A¥¦Ì¥i¯à³Q¥H¦Û¤vªºµwÅé¦ì§}³Q«Øºc¡A¦p¤U¡G
case "$ADDRESS" in
*,*,*,00:80:C8:76:00:B1)
# definitions for a D-Link card
;;
*,*,*,08:00:5A:44:80:01)
# definitions for an IBM card
esac
¥H¤Uªº°Ñ¼Æ¥i¦b network.opts
¤º³Q¨Ï¥Î¡G
IF_PORT
«ü©w¤A¤Óºô¸ô¦¬µo¾¹Ãþ«¬¡A ³o¬O°w¹ï¨º¨ÇµLªk¦Û°Ê°»´úªº¥d¨Ï¥Î¡C ½Ð¬Ý
``man ifport
'' ¤º¦³¦¬µo¾¹¦WºÙ¡C
BOOTP
¥¬ªL (y/n) ³]©w¡G ªí¥Ü¬O§_¥D¾÷ªº IP ¦ì§}©M¤À¸ô¸ê°T¬O§_¥i¥H¸g¥Ñ BOOTP ¨ó©w¨ÓÀò¨ú¡C
IPADDR
«ü©wIP¦ì§}¡C
NETMASK
, BROADCAST
, NETWORK
°ò¥»ºô¸ô°Ñ¼Æ¡G ½Ð°Ñ¾\ networking HOWTO
GATEWAY
µ¹¥D¾÷ªº¤lºô¸ô¨Ï¥Îªº³q°T¹h IP ¦ì§}¡C¥un¬O¦b³oÓ¤lºô¸ô¥H¥~ªº«Ê¥]³£ ·|³QÂà¨ì³oÓ¹h¹D¡C
DOMAIN
µ¹¥D¾÷ªººô¸ô domain name¡A³Q¥Î¨Ó«Ø¥ß /etc/resolv.conf
¡C
DNS_1
, DNS_2
, DNS_3
¥D¾÷¦WºÙ©Î¬O IP ¦ì§}µ¹³oÓ¤¶±ªº nameservers¡A ³Q¥[¨ì
/etc/resolv.conf
¤º¡C
MOUNTS
A µ¹³oÓ¤¶±¨Ï¥Î¨Ó°µ NFS ±¾¤JÂIªº¦Cªí¡C
IPX_FRAME
, IPX_NETNUM
¹ï IPX ºô¸ô: frame type ¤Îºô¸ô¸¹½X±N³Q¶Ç¿é¨ì ipx_interface
©R¥O¤W¡C
¨Ò¦p¡G
case "$ADDRESS" in
*,*,*,*)
IF_PORT="10base2"
BOOTP="n"
IPADDR="10.0.0.1"
NETMASK="255.255.255.0"
NETWORK="10.0.0.0"
BROADCAST="10.0.0.255"
GATEWAY="10.0.0.1"
DOMAIN="domain.org"
DNS_1="dns1.domain.org"
;;
esac
Y·Q¦Û°Ê±¾¤W©Î¨ø¤Uºô¸ôÀɮרt²Î¡Aº¥ý±NÀɮרt²Î¥[¨ì /etc/fstab
¤º¡A¦b±¾¤W¿ï¶µ¤W¥[¤W noauto
¡C ¦b network.opts
¤º
¨Ï¥Î MOUNTS
ÅܼƦC©úÀɮרt²Îªº±¾¤JÂI¡C ³o¯S§O¬O¦b¨Ï¥Î
cardctl
©Î cardinfo
©R¥O¨ÓÃö³¬·íºô¸ôÀɮרt²Î¬O¥Î³oÓ¤èªk
«Øºc¦Ó±¾¤Wªººô¸ô¥d®É¡C¦pªG¦b¨S¹wĵ¤Uºô¸ô¥d³Q²¾¥X®É¡A¬OµLªk§¹¥þ¦a¨ø
¤Uºô¸ôÀɮרt²Îªº¡C
°£¤F¤@¯ëªººô¸ô«Øºc°Ñ¼Æ¤§¥~¡Anetwork.opts
¤â½Z¥i¥Î¨Ó¦b¤¶±¤w¸g
³Q«Øºc°_«á©Î³QÃö³¬«á°µ¥t¥~ªº°Ê§@®É¨Ï¥Î¡C ¦pªG network.opts
©w
¸q¤F¤@Ó¥s start_fn
ªº©R¥O¼h¥\¯à©I¥s¡A ·í¤¶±³Q«Øºc«á¥¦·|³Qºô
¸ô¤â½Z©Ò±Ò¥Î¡A¦Ó¤¶±¦WºÙ±N·|³Q¶Ç°e¨ì³oÓ¥\¯à¨ç¼Æ°µ¬°²Ä¤@ӰѼơ]¤]
¥u¦³³oÓ¡^¡C¬Û¦P¦a¡A¦pªG stop_fn
³Q©w¸q¤F¡A¨º»ò¥¦·|¦bÃö³¬¤@Ó
¤¶±«e³Q±Ò¥Î¡C
¦¬µo¾¹Ãþ«¬¥i¥H¥Î IF_PORT
¨Ó³]©w¡C¥¦¥i¥H¬O PCMCIA ¤§«eª©¥»ªº¼Æ
Ȫí¥Ü©Î¬OÃѧO¦¬µo¾¹ªºÃöÁä¦r¡C©Ò¦³ªººô¸ôÅX°Êµ{¦¡¾¨¥i¯à±N¥¦³]©w¬°¦Û
°Ê°»´ú¡]¦pªG¥i¯àªº¸Ü¡^¤¶±©Î¬O 10baseT ªº¡C ifport
©R¥O¥i¥Î¨Ó
Àˬd©Î³]©w¥Ø«eªº¦¬µo¾¹Ãþ«¬¡A¨Ò¦p¡G
# ifport eth0 10base2
#
# ifport eth0
eth0 2 (10base2)
¥Ø«eªº 3c589 ÅX°Êµ{¦¡ª©¥»·|¦Û°Ê°»´úºô¸ôªº³sµ²¡A ¦ýÁÙµLªk§¹¥þµo´§¥¦ ªº¥\¯à¡CY·Q¥H¦Û°Ê°»´ú¨Ó¤u§@¡A¦bºô¸ô¥d³Q«Øºc«eºô¸ô½uÀ³¸Ó¬O¤w³s±µµÛ ºô¸ô¥d¤Wªº¡Cn¤£µM¡Aµ¥ºô¸ô±µ¦n«á¡A±z¥i¥H¤U¦C©R¥O¢¨ÏÅX°Êµ{¦¡Àˬd³s µ²¡G
ifconfig eth0 down up
pcnet_cs
¼Ò²Õ¤ºªº mem_speed=#
¿ï¶µ
¼W¥[°O¾ÐÅé¦s¨ú®É¶¡¡C¦b¼Ð·Çªº config.opts
Àɮפº¦³Ó±Ð§A¦p¦ó°µ
ªº½d¨Ò¡C½Ð¸Õ¬Ý¬Ý³t«×¦b 1000 ns(©`¬í)¥H¤W¡Cpcmcia_core
¼Ò²Õ³Q¸ü¤J®É¡A ¥H io_speed=#
¿ï¶µ¨Ó¼W¥[ IO °ðªº¦s¨ú®É¶¡¡C
¦b±Ò°Ê¤â½Zªº CORE_OPTS
¿ï¶µ¥i¥H³]©w¥¦¡Cpcmcia_core
¼Ò²Õ®É³]©w probe_io=0
§Y¥i¡Cjt@hplb.hpl.hp.com
)
¼g¤F¤@½gµL½uªº (³]³Æ ) wireless HOWTO ©ñ¦b
http: //www-uk.hpl.hp.com/people/jt/Linux/Wavelan.html ¤º¡C
cardmgr
¤w¥¿½T¦a¿ëµø¤F³o±i¥d¡A¦Ó¥B¤w±Ò°Ê¤F¤@ºØºô¸ôÅX°Êµ{¦¡¤F¡C¦pªG¨S¦³¡A±z
ªº¥d¤ù¤]¥i¯àÁÙ¬O¥i¥H¨Ï¥Î¡A¥un¥¦»P¥ô¤@ºØ³Q¤ä´©ªº¥d¤ù¬Û®eªº¸Ü¡C¥un
¬O³o¥d¤ù¬O»P NE2000 ¬Û®eªº¥d¤ù³£¥i¥H°µ¨ì¡Ccardmgr
©Ò¿ëµø¤F¡A¦ý¥¦ÁÙ¬OµLªk¤u§@¡A³o¥i¯à¬O¦]¬°¥¦»P¨ä¥Lªº³]³Æ
µo¥Í´¡Â_©Î°ðªº½Ä¬ð¤F¡C½Ð¬d©ú³o±i¥d¤ù¨Ï¥Î¤F¶Ü¨Ç¸ê·½ (±q¨t²Î¤é»xùاä
)¡A µM«á¸ÕµÛ¦b /etc/pcmcia/config.opts
¤º§â³o¨Çµ¹±Æ°£±¼¨Ó
¢¨Ï¥d¤ù¨Ï¥Î¨ä¥Lªº¸ê·½¡C/etc/pcmcia/network.opts
¦³³]©w¿ù»~ªº¦a¤è¡C ¥t¥~¡A¿ù
»~¦a«Øºcªº¥d¤ù³q±`·|¦wÀR¦aµo¥Í°ÝÃD¡C/etc/pcmcia/network.opts
¤ºªº¿ù»~¡A ¶}©l½Ð¥ý¸ÕµÛ
¥H¥¦Ìªº IP ¦ì§}¨Ó ping ¦P¤@¦¸ºô¸ôªº¨ä¥L¨t²Î¡CµM«á¸ÕµÛ ping §Aªº¹h
¹D¡AµM«á¨ä¥L¦¸ºô¸ô¤º¾÷¾¹¡C¦b¸Õ§¹³o¨Ç¸û²³æªº´ú¸Õ«á¡A¦A¥H¾÷¾¹ªº¦W¦r
¨Ó Ping¡C/etc/pcmcia/network.opts
¤â½Z¤ºªº¥ô¦óקï¡C¨Ã½T»{§AªºÆl½u
¡B``T'' ±µÀY¡B²×ºÝ¹qªý¾¹µ¥µ¥ªº¤¸¥ó³£¥i¥¿±`¤u§@¡C
Linux ªº¦ê¦C³]³Æ³£¬O³Q¸g¥Ñ /dev/cua*
©M /dev/ttyS*
¯S®í³]³ÆÀɮרӰµ¨ú¥Î¡C ttyS*
ªº³]³Æ³Q¨Ï¥Î¦b¶i¨Óªº³s±µ¡A¨Ò¦pª½
±µ¦a³s±µ²×ºÝ¾÷¡Ccua*
ªº³]³Æ³Q¨Ï¥Î¦b©¹¥~ªº³s±µ¡A¤ñ¦p»¡¼Æ¾Ú¾÷¡C
¦Ó¨C¤@Ó¹êÅé¦ê¦C°ð³£¦U¦³ ttyS
©M cua
¨âÓ³]³ÆÀÉ¡G n¨Ï¥Î
þÓ¾A·íªº³]³Æ¨ì§AªºÀ³¥Î¤W³£¥Ñ±z¨Ó¨M©w¡C
¹ï©ó¦ê¦C³]³Æªº«Øºc¡A±z¥i¨Ï¥Î setserial
©R¥O¨ÓÀˬd»Pקï¡C
·í¤@Ó PCMCIA ¦ê¦C¥d©Î¼Æ¾Ú¥d³Q°»´ú¨ì®É¡A¥¦·|³Q«ü©w¦¨¬°²Ä¤@Ó¥i¥Îªº
¦ê¦C³]³Æ¡C³q±`¬O /dev/ttyS1
(cua1
) ©Î /dev/ttyS2
(cua2
) ¡A³o§¹¦¨¬Ýì¤w¤º«Øªº¦ê¦C°ð¼Æ¥Ø¡C ttyS*
³]³Æ·|³Q
³ø§i¦b /var/run/stab
¤º¡C 줺©wªº¦ê¦C³]³Æ¿ï¶µ¤â½Z
/etc/pcmcia/serial.opts
·|±N¤§³sµ²¨ì¬Û¹ïÀ³ªº cua*
³]
³ÆÀɮצ¨¬° /dev/modem
¡C³o¼Ë´N«Ü«K§Q¤F¡C
½Ð¤Å¨Ï¥Î /etc/rc.d/rc.serial
¨Ó«Øºc PCMCIA ¼Æ¾Ú¾÷¡C³oÓ¤â
½ZÀ³¸Ó¥u¯à³Q¥Î¨Ó«Øºc¨º¨Ç«D¥i²¾°Êªº³]³Æ¡C¦pªG§A·Qn³]©w§Aªº¼Æ¾Ú¾÷¨Ó
°µ¥ô¦ó¯S§Oªº°Ê§@®É¡A½Ðקï /etc/pcmcia/serial.opts
³oÓ¤â
½Z¡C ¥t¥~¡A ¤]½Ð¤Å¨Ï¥Î setserial
¨Ó§ïÅÜ PCMCIA ¦ê¦C³]³Æªº³]³Æ
IO °ð©M´¡Â_³]©w¡C ³o¼Ë°µ¥u·|§i¶D¦ê¦CÅX°Êµ{¦¡¨ì¤£¹ïªº¦a¤è´M§ä¦ê¦C³]
³Æ¡A¦ý¤£·|§ïÅÜ¥d¤ùµwÅé¤è±¯u¥¿³Q«Øºcªº¨Æ¹ê¡C¦ê¦C«Øºc¤â½Z¤¹³\±z«ü©w
¨ä¥Lªº setserial
¿ï¶µ¡A ¥H¤Î¬O§_±z¸Ó¦b /etc/inittab
¤º¬°³oÓ°ð¥[¤@¦æ³]©w¡C
§Ö¶Ç°e¨ì serial.opts
ªº³]³Æ¦ì§}¦@¦³¤TӥѳrÂI©Ò¤À¶}ªºÄæ¦ì¡G²Ä
¤@¬O scheme¡B ²Ä¤G¬O´¡¼Ñ¸¹½X¥H¤Î²Ä¬O device instance¡C The device
instance ·|¬°¤ä´©¦h¦ê¦C°ðªº¥d¿ï¥Î¦hӼƾڡA¦ý¹ï©ó³æ¤@°ð¥d¨Ó»¡¡A ¥¦
¥Ã»·³£¬O¹s¡C ¦pªG§A±`¨Ï¥Î¤£¥u¤@Óªº PCMCIAl ¼Æ¾Ú¾÷¡A§A¥i¯à»Ýn°w¹ï
¦U§O´¡¼Ñ¤ºªº¼Æ¾Ú¾÷°µ¤£¦Pªº³]©w¡C¦p¤U¡G
case "$ADDRESS" in
*,0,*)
# Options for modem in socket 0
LINK=/dev/modem0
;;
*,1,*)
# Options for modem in socket 1
LINK=/dev/modem1
;;
esac
¦pªG PCMCIA ¼Æ¾Ú¥d¦b Linux ±Ò°Ê®É§Y³Q«Øºc¦n¤F¡A ¨º¥¦¥i¯à¤w³Q¿ù»~¦a
³Q¿ëÃѦ¨¬°¤@¯ëªº¤º«Ø¦ê¦C°ð¤F¡C³oÁöµMµL®`³B¡A¦ý¬O¡A·í PCMCIA ÅX°Êµ{
¦¡±µ¤â¨Ó±±¨î¼Æ¾Ú¾÷®É¡A ¥¦·|³Q«ü¬£¦¨¤£¤@¼Ëªº³]³Æ´¡¤Õ¡C ³Ì¦n¬O parse
/var/run/stab
©Î¨Ï¥Î /dev/modem
¡A ¦Ó¤£¬O´Á±æ
PCMCIA ¼Æ¾Ú¾÷Á`¬O³Q«ü¬£¦¨¬Û¦Pªº³]³Æ¡C
¦pªG§A«Øºc§Aªº®Ö¤ß¨Ó¸ü¤J°ò¥»ªº Linux ¦ê¦C°ðÅX°Êµ{¦¡¦¨¬°¤@Ó¼Ò²Õ¡A
§A¥²¶·½s× /etc/pcmcia/config
¨Ó«ü¥X¸Ó¼Ò²Õ¥²¶·³Q¸ü¤J¡C ½s
צê¦C³]³Æ¨º¦C¦p¤U¡G
device "serial_cs"
class "serial" module "misc/serial", "serial_cs"
¥H¤Uªº°Ñ¼Æ¥i¥HÓ³ serial.opts
¤º³Q©w¸q¡G
LINK
¬°²Å¸¹³sµ² (symbolic link)«ü©wÓn³Q«Ø¥ßªº¸ô®| ``dialout'' ©Î¬O
/dev/cua*
³]³Æ¡C
SERIAL_OPTS
«ü©w¦³þ¨Ç¿ï¶µ±N³Q¶Ç°e¨ì setserial
©R¥O¡C
INITTAB
¦pªG¦³«ü©wªº¸Ü¡A¥¦±N³Q¥Î¨Ó¦b inittab
¤¤¬°¸Ó³]³Æ«Ø¥ß¤@Ó±ø¥Ø¡C
¨Ò¦p¡G
case "$ADDRESS" in
*,*,*,*)
LINK="/dev/modem"
SERIAL_OPTS=""
INITTAB="/sbin/getty"
cardmgr
¦³¥¿½T
¦a¿ëÃѤF³o±i¥d¡A¨Ã¥B±Ò°Ê¤F serial_cs
ÅX°Êµ{¦¡¡C¦pªG¨S¦³¡A§A¥i
¯à»Ýn¦b§Aªº /etc/pcmcia/config
Àɮפ¤¥[¤J¤@±øÀ³¸Ó³Q¾A·í
¦a¿ëÃѪº±ø¥Ø¡C²Ó¸`½Ð¬Ý³¹¸`
3.6¡C/etc/pcmcia/config.opts
§â³Q°t¸mµ¹¼Æ¾Ú
¥dªº°ð½d³òµ¹±Æ°£¡Csetserial
¨Ó§â irq §ï¦¨ 0¡A ¦A¬Ý¬Ý¼Æ¾Ú¾÷¬O§_¥i¥H¤u§@
¤F¡C³o¼Ë·|Åý¦ê¦CÅX°Êµ{¦¡¨Ï¥Î¤@ÓºC¤@¨Çªº²¼¿ï¼Ò¦¡¦Ó¤£¨Ï¥Î´¡Â_¨Ó¤u§@
¡C¦pªG³o¼Ë¥i¥H×¥¿³oÓ°ÝÃD¡A¨º´N¬O¦b§Aªº¨t²Î¤¤¦³¬YÓ¨ä¥Lªº³]³Æ¨Ï¥Î
¤F³Q serial_cs ©Ò¿ï¥Îªº´¡Â_¦b¤u§@µÛ¡C§AÀ³¸Ó¦b /etc/pcmcia/config.opts
¤¤¥[¤@¦æ©R¥O±N³oÓ´¡Â_µ¹±Æ°£±¼¡C/etc/pcmcia/config
¨ÓÅý serial
¼Ò²ÕÀ³¸Ó
¦b¸ü¤J serial_cs
«e´N³Q¸ü¤J¤F¡C
¥Ø«e©Ò¦³³Q¤ä´©ªº PCMCIA SCSI ¥d³£¤u§@ªº¹³¤U¦Cªº ISA ¶×¬y±Æ¥dªº¼Ë¤l
¡G Qlogic¡BAdaptec AHA-152X ©Î¬O Future Domain TMC-16x0¡CPCMCIA ÅX
°Êµ{¦¡³Q«Ø¥ß¦¨»P PCMCIA ¯S§Oµ{¦¡½X¬Û³sµ² (¦p qlogic_cs.c
¡B
toaster_cs.c
©Î fdomain_cs.c
) ¥H¤Î¥¿±`ªº Linux SCSI ÅX°Ê
µ{¦¡¡C
·í¤@Ó·sªº SCSI ¥D¥d³Q°»´ú¨ì®É¡A SCSI ÅX°Êµ{¦¡·|´M§ä³s±µµÛªº³]³Æ¡C
½ÐÀˬd¨t²Î¤é»x§Aªº³]³Æ³Q¥¿½T¦a°»´ú¨ì¤F¡C·sªº SCSI ³]³Æ·|³Q«ü©w¬°²Ä
¤@Ó¥i¥Îªº SCSI ³]³ÆÀÉ¡C²Ä¤@Ó SCSI µwºÐ¬O /dev/sda
¡A²Ä¤@
Ó SCSI ºÏ±a¾÷¬O /dev/st0
¡A ÁÙ¦³¡A ²Ä¤@Ó CD-ROM ·|¬O
/dev/scd0
¡C
¦b 1.3.X (§t ) ¥H«áªº®Ö¤ßùØ¡APCMCIA ®Ö¤ßÅX°Êµ{¦¡¥i¥H±q¨t²Î®Ö¤ß¤¤§ä
¥X¦³þ¨Ç SCSI ³]³Æ¦³³s±µ¦b¤¶±¥d¤W¡C¥¦Ì·|³Q¦Cªí¦b /var/run/stab
¡A ¦Ó SCSI ºc«Ø¤â½Z /etc/pcmcia/scsi
¤]·|³Q¨C¤@Ó³s±µµÛªº
³]³Æ©Ò©I¥s¨Ó«Øºc©ÎÃö³¬¸Ó³]³Æ¡C¤º©wªº¤â½Z¨Ã¤£·|°µ¥ô¦ó«Øºc SCSI ³]³Æ
ªº°Ê§@¡A¦ý¥¦·|§´·í¦a¦b¤¶±¥d³Q²¾¨«®É¨ø¤U¦b SCSI ³]³Æ¤WÀɮרt²Î¡C
¦b 1.2.X ®Ö¤ßùØ¡APCMCIA ÅX°Êµ{¦¡µLªk¦Û°Ê¦a±À´úþÓ³]³Æ³Q¦w¸Ë¦bþÓ
¯S©wªº SCSI ¤¶±¥d¤W¡CµM¦Ó¡A¦pªG§A¦³¤@Ó¥¿±`ªº SCSI ³]³Æ¤§«Øºc¡A§A
¥i¥H±N³o¨Ç³]³Æ¦C©ú¦b /etc/pcmcia/scsi.opts
¤¤¡C¨Ò¦p¡A¦pªG
§A¥¿±`³£¦³Ó SCSI ºÏºÐ¥H¤Î¤@Ó CD-ROM¡A§A¥i¥H¨Ï¥Î¥H¤U¡G
# For 1.2 kernels: list of attached devices
SCSI_DEVICES="sda scd0"
³Q¶Ç¨ì <scsi.opts
ªº³]³Æ¦ì§}¦³ÂI½ÆÂø¡A ¨º¬O¦]¬°¦³³\¦hºØÃþªºªF
¦è¥i¥H³Q³s±µ¨ì SCSI ¤¶±¥d¤W¡C³o¨Ç¦ì§}¥]§t¤F¤£¬O 6 Ó´N¬O 7 Ó¥H³r
¸¹¨Ó¤À¶}ªºÄæ¦ì¸ê®Æ¡G ²{¦bªº¬[ºc¡B³]³ÆºØÃþ¡B´¡¼Ñ¸¹½X¡BSCSI ÀW¹D¡BÃÑ
§O¸¹¡BÅÞ¿è³æ¦ì¸¹½X¡A¥H¤Î¿ï¾Ü©Êªº¤À³Î¸¹½X¡C³]³ÆºØ³Æ¬° ``sd'' «üºÏºÐ
¡B``st'' «üºÏ±a¡B``sr'' «ü CD-ROM ³]³Æ¡A ÁÙ¦³ ``sg'' «ü¤@¯ëªº SCSI
³]³Æ¡C ¤j³¡¥÷ªº³]©w¤¤¡ASCSI ÀW¹DÁÙ¦³ÅÞ¿è³æ¦ì¸¹½X³£³]¬° 0¡C¹ï©ó¦³³\
¦hºÏºÐ¤À³Î°ÏªººÏºÐ³]³Æ¡Ascsi.opts
·|¥ý³Q¥H 5 ÓÄæ¦ìªº¦ì§}©Ò©I
¥s¡C ³o¤â½ZÀ³¸Ón³]¤@Ó PARTS
ÅܼƨӦC©ú³o¨Ç¤À³Î¡C µM«á¡A
scsi.opts
·|³Q¨C¤@ӺϰϥH¸ûªøªº 7 Äæ¦ì¦ì§}©Ò©I¥s¨Ï¥Î¡C
¦pªG§Aªº®Ö¤ß¨S¦³°w¹ï¯S©wªº SCSI ³]³Æµ¹¤W¼hÅX°Êµ{¦¡ (ºÏºÐ¡BºÏ±aµ¥ )
¡A¨º»ò³o¨Ç³]³Æ´N¤£·|³Q¡@ PCMCIA ÅX°Êµ{¦¡©Ò«Øºc¡C¦ý¦³ÓÃä»Ú®ÄÀ³¬O¡A
¸Ó³]³Æªº¦W¦r¦b /var/run/stab
¤º·|Åܬ°¹³ ``sd#nnnn''
ªº¦W¦r¡C³o ``nnnn'' ¬OÓ 4 ӼƦrªº¤Q¤»¶i¦ì¸¹½X¡C¥un cardmgr
µLªkÂàĶ¤@Ó SCSI ³]³ÆªºÃѧO¸¹½X¨ì¬Û¹ïÀ³ªº Linux ³]³Æ¦W¦r®É³£·|µo
¥Í³oºØ¨Æ¡C
n±N¤W¼hªº SCSI ÅX°Êµ{¦¡¼Ò²Õ¤Æ¦¨¥u¦³·í PCMCIA SCSI ¥d³Q°»´ú¨ì®É¥¦
̤~·|³Q¸ü¤J¬O¦³¥i¯àªº¡Cn³o»ò°µ¡A§A»Ýn½s× /etc/pcmcia/config
¨Ó§i¶D cardmgr
¦³þÓ¥t¥~ªº¼Ò²Õ¦b¤¶±¥d³Q«Øºc®É¤]n±N¥¦¸ü¤J¡C
¨Ò¦p¡G
device "aha152x_cs"
class "scsi" module "scsi/scsi_mod", "scsi/sd_mod", "aha152x_cs"
·|¦b¸ü¤J¤@¯ëªº PCMCIA ÅX°Êµ{¦¡¼Ò²Õ«e±N¥Dnªº SCSI ¼Ò²Õ©M¤W¼hªººÏºÐ ÅX°Êµ{¦¡¼Ò²Õµ¹¸ü¤J¡CPCMCIA «Øºc¤â½Z¤£·|¦Û°Ê¦a°»´ú³Q¼Ò²Õ¤Æ¤Fªº SCSI ¼Ò²Õ¡A©Ò¥H§A¥²»Ý¤â°Ê«Øºc¿ï¶µ¨Ó±N SCSI ¤ä´©ªº¥\¯à¥´¶}¡C
¨C¦¸¦b¶}¾÷±zªºµ§°O«¬¹q¸£«e¥ý±N SCSI ³]³Æ¶}¾÷¡A©Î¬O¦b´¡¤J±±¨î¥d«e¡A
³o¼Ë¤l SCSI ¶×¬y±Æ·|¦b±±¨î¥d³Q«Øºc«á¥¿½T¦a³Q²×¤î¡C¥t¥~ÁÙnª`·N©â¥X
SCSI ±±¨î¥d¡C °O±on½T»{¦b©â¥X±±¨î¥d«e³Q³s±µµÛªº SCSI ³]³Æ³£³Q¥¿½T
¦a¨ø¤U»PÃö³¬¤F¡C ³Ì¦nªº½T»{¤èªk¬O¦b¹êÅé©â¥X¥d¤ù«e¨Ï¥Î cardctl
©Î cardinfo
¨Ón¨D¥d¤ùªº²¾¥X°Ê§@¡C ´N³o¼Ë¡A©Ò¦³ªº SCSI ³]³Æ¥²
¶·¦b´¡¤W SCSI ±±¨î¥d«e¤w¶}±Ò¤F¹q·½¡A¦Ó¦b§A©â¥X±±¨î¥d©M¡þ©ÎÃö¾÷µ§°O
¹q¸£«e³£¶·n«O«ùµÛ¥¦Ì¬O³s±µµÛªº¡C
¨Ï¥Î¤@¯ëªº ISA ¶×¬y±Æ¤¶±¥d®É¥i¯à·|¦³¼ç¦bªº½ÆÂø©Ê¡A ¤×¨ä¬OµLªk±Ò°Ê ¡C SCSI ¶×¬y±Æ·f¸ü¤@Ó¬°¤F¾A·í¦a¨Ï¥Î³Q°Ê¦¡ SCSI ²×ºÝ¾¹©Ò¥²¶·ªº `` ²×ºÝ¹q·½ '' «H¸¹¡CPCMCIA SCSI ¥d¨Ã¤£¨ÑÀ³²×ºÝ¹q·½¡A©Ò¥H¦pªG»Ýn¸Ó¹q ·½ªº¸Ü¡A´N¥²¶·¥Ñ¥~±µªº³]³Æ¨Ó¨ÑÀ³¥¦¡C¦³¨Ç¥~±µªº SCSI ³]³Æ¥i¥H³Q«Øºc ¦¨¨ÑÀ³³oӲ׺ݹq·½¡C¨ä¥Lªº¡A¦p Zip ºÏºÐ¥H¤Î Syquest EZ-Drive¡A¥¦Ì ¨Ï¥Î¥D°Ê¦¡²×ºÝ¹qªý´N¤£»Ýn¦p¦¹¤F¡C¦³®ÉÔ¡A¥i¯à»Ýn¨Ï¥Î¤@Ó¯S§Oªº²× ºÝ¹qªý¾¹¦p APS SCSI Sentry 2¡A¥¦¦³Ó¥~±µªº¹q·½¨ÑÀ³¡C ·í±z«Øºc SCSI ³]³Æ¦ê±µ®É¡A½Ðª`·N¬O§_¨ä¤¤¦³¥ô¦óªº³]³Æ»Ýn©Î¥i¥H´£¨Ñ²×ºÝ¹qªý¹q·½ªº ¡C
Adaptec APA-460 SlimSCSI ¥d¨Ã¤£³Q¤ä´©¡C³o±i¥d쥻¬O¥H Trantor ªº¦W ºÙ³Q³c½æªº¡A ·í Adaptec ¨ÖÁʤF Trantor «á¡A¥L̤´Ä~Äò¥H Adaptec ªº °Ó¼Ð¨Ó½æ Trantor ªº¥d¡A¤Ï¥¿¡AAPA-460 ¤£³Q²{¦³ªº¥ô¦ó¤@ Linux ÅX°Êµ{ ¦¡©Ò¬Û®e¡C
§Ú¤£½T©wn¼gÓÅX°Êµ{¦¡·|¦³¦hÃø¡A §Ú¤£»{¬°¦³¥ô¦ó¤H¥i¥H±q Adaptec ¨º ¨à®³¨ì§Þ³N¸ê°T¡C
(¥¼³Q¤ä´©ªº ) Trantor SlimSCSI ¥i¥Î¥H¤U¤èªk³QÃѧO¡G
Trantor / Adaptec APA-460 SlimSCSI
FCC ID: IE8T460
Shipped with SCSIworks! driver software
(¥¼³Q¤ä´©ªº) Adaptec SlimSCSI ¥i¥Î¥H¤U¤èªk³QÃѧO¡G
Adaptec APA-1460 SlimSCSI
FCC ID: FGT1460
P/N: 900100
Shipped with EZ-SCSI driver software
¥H¤Uªº°Ñ¼Æ¥i¥H³Q©w¸q¦b scsi.opts
¤º¡G
DO_FSTAB
¥¬ªL (y/n) ³]©w¡G«ü©w¬O§_³oÓ³]³ÆÀ³¸Ó¦b /etc/fstab
¤º¥[Ó
±ø¥Ø¡C
DO_FSCK
¥¬ªL (y/n) ³]©w¡G«ü©w¬O§_Àɮרt²ÎÀ³¸Ó¦b³Q±¾¤W«e¥H ``fsck -Ta
''
¨ÓÀˬd¤@¤U¡C
DO_MOUNT
¥¬ªL (y/n) ³]©w¡G «ü©w¬O§_³oÓ³]³ÆÀ³¸Ó¦b¥d¤ù³Q´¡¤Jªº¦P®É³Q¦Û°Ê¦a³Q ±¾¤W¡C
FSTYPE
, OPTS
, MOUNTPT
Àɮרt²Î«¬ºA¡B ±¾¤W¿ï¶µ¡B¥H¤Î³Q¥Î¨Ó°µ¬° fstab ªº¶µ¥Ø¤Î¡þ©Î±¾¤W¸Ó³] ³Æªº±¾¤WÂI¡C
¨Ò¦p¡A¥H¤U¬O¤@ӫغc¤@Ó SCSI ID ¬° 3¡B¦³ 2 Ó¤À³Î°ÏªººÏºÐ³]³ÆÁÙ¦³ ¤@Ó SCSI ID ¬° 6 ªº CD-ROM ¤§¤â½Z¡G
case "$ADDRESS" in
*,sd,*,0,3,0)
# This device has two partitions...
PARTS="1 2"
;;
*,sd,*,0,3,0,1)
# Options for partition 1:
# update /etc/fstab, and mount an ext2 fs on /usr1
DO_FSTAB="y" ; DO_FSCK="y" ; DO_MOUNT="y"
FSTYPE="ext2"
OPTS=""
MOUNTPT="/usr1"
;;
*,sd,*,0,3,0,2)
# Options for partition 2:
# update /etc/fstab, and mount an MS-DOS fs on /usr2
DO_FSTAB="y" ; DO_FSCK="y" ; DO_MOUNT="y"
FSTYPE="msdos"
OPTS=""
MOUNTPT="/usr2"
;;
*,sr,*,0,6,0)
# Options for CD-ROM at SCSI ID 6
PARTS=""
DO_FSTAB="y" ; DO_FSCK="n" ; DO_MOUNT="y"
FSTYPE="iso9660"
OPTS="ro"
MOUNTPT="/cdrom"
;;
esac
aha152x_cs
ÅX°Êµ{¦¡ (³Q Adaptec¡B New Media ¥H¤Î¦³¨ÇµP¤l
©Ò¨Ï¥Î )¡A¦ü¥G¦b SCSI ²æÂ÷³s±µ¡þ¦A³s±µ¤ä´©®É¨Ï¥ÎºÏ±a¾÷®É±`·|¦³°ÝÃD
¡Cn±N³oÓ°ÝÃD¸Ñ°£¡A½Ð¦b /etc/pcmcia/config.opts
¤¤¥[¤J¤U
¦C³o¦æ¡G
module "aha152x_cs" opts "reconnect=0"
CONFIG_SCSI
is ``m'')¡A¦b
«Øºc PCMCIA ®É¡A §A¥²¶·«ü©wn§â«Ø¥ß SCSI ÅX°Êµ{¦¡¡C §A¤]nקï
/etc/pcmcia/config
¦b¾A¦Xªº *_cs
ÅX°Êµ{¦¡³Q¸ü¤J
«e¸ü¤J SCSI ¼Ò²Õ¡C
1tt/memory_cs/ ÅX°Êµ{¦¡t³d©Ò¦³«¬ºAªº³]¾Ð¥d¡A ¨Ã¥BÁÙ´£¨Ñ¹ï©ó¨º¨Ç¦³ ¨ä¥L¥\¯àªº¥dªº PCMCIA °O¾ÐÅé¦ì§}ªÅ¶¡ª½±µ¦s¨ú¥\¯à¡C·í³Q¸ü¤J®É¡A¥¦«Ø ¥ß¤F¤@Ó¦r¤¸»P°Ï¶ô³]³Æªº²Õ¦XÅé¡C ½Ð¬Ý³o¼Ò²Õªº man ¶¤¤¦³Ó§¹¾ãªº³] ³Æ¨ú¦W³W«hªº´yz¡C°Ï¶ô³]³Æ³Q¥Î¨Ó°µºÏºÐÃþ«¬ªº¦s¨ú («Ø¥ß©M±¾¤WÀɮרt ²Îµ¥µ¥ )¡C¦Ó¦r¤¸³]³Æ³Q¥Î¨Ó°µ " ¥¼¥[¤u " ªº¥¼³Q½w½Ä¤§ÀH·N¦ì¸m¤WŪ»P ¼g¡C
³Q¶Ç°e¨ì memory.opts
ªº³]³Æ¦ì§}¥]§t¤F 2 ÓÄæ¦ì¡G ¬[ºc©M´¡¼Ñ¸¹
½X¡C³oӿﶵ³Q©ñ¦b¬Û¹ïÀ³ªº°O¾Ð¥d¤ºªº²Ä¤@Ó¦@¦P°O¾Ð¤À³Î°Ï¤¤¡C
¦³¨Ç«¬ªº°O¾Ð¥d¡A ÁÙ¦³¤j³¡¥÷ªºÂ²³æÀRºA RAM ¥d¡A³£¯Ê¤Ö `` ¥d¤ù¸ê°T
¬[ºc '' (CIS)¡Ae PCMCIA ¥d¥Î¨Ó¿ëµø¥¦Ì¦Û¤wªº¤@ºØ scheme¡C ¤@¯ë¨Ó»¡
¡A cardmgr
·|±N¥ô¦ó¯Ê¤Ö CIS ªº¥d¤ùµø¬°¤@Ó²³æ°O¾Ð¥d¡A ¨Ã¸ü¤J
memory_cs
ÅX°Êµ{¦¡¡C ¦]¦¹¡A¦³ÓÃä»Ú®ÄÀ³¬O¡A¤@¯ëªºÃѧO°ÝÃD¬O¨ä
¥L«¬¦¡ªº¥d¤ù¥i¯à·|¿ù»~¦a³Q°»´ú¬°°O¾Ð¥d¤F¡C
memory_cs
ÅX°Êµ{¦¡¨Ï¥Î¤F heuristic ¨Ó²q´ú³o¨Ç¥d¤ùªº®e¶q¡C
heuristic ¦b¼g¤J«OÅ@ªº¥d¤ù¤W¨ÃµLªk¤u§@¡A ¦³®ÉÁÙ¦³¥i¯à·|¥X¿ù»~¡C
¦pªG¥d¤ù³Q»~§P¤F¡A·í§A¦b¨Ï¥Î¹³ dd
©Î mkfs
³o¼Ëªº©R¥O®É¡A
¥¦ªº®e¶qÀ³n©ú½T¦a³Q«ü©w¡C
¤U¦C°Ñ¼Æ¥i¥H©ñ¦b memory.opts
¤º¡G
DO_FSTAB
¥¬ªL (y/n) ³]©w¡G«ü©w¬O§_³oÓ³]³ÆÀ³¸Ó¦b /etc/fstab
¤º¥[Ó
±ø¥Ø¡C
DO_FSCK
¥¬ªL (y/n) ³]©w¡G «ü©w¬O§_Àɮרt²ÎÀ³¸Ó¦b³Q±¾¤W«e¥H ``fsck
-Ta
'' ¨ÓÀˬd¤@¤U¡C
DO_MOUNT
¥¬ªL (y/n) ³]©w¡G «ü©w¬O§_³oÓ³]³ÆÀ³¸Ó¦b¥d¤ù³Q´¡¤Jªº¦P®É³Q¦Û°Ê¦a³Q ±¾¤W¡C
FSTYPE
, OPTS
, MOUNTPT
Àɮרt²Î«¬ºA¡B ±¾¤W¿ï¶µ¡B¥H¤Î³Q¥Î¨Ó°µ¬° fstab ªº¶µ¥Ø¤Î¡þ©Î±¾¤W¸Ó³] ³Æªº±¾¤WÂI¡C
¥H¤U½d¨Ò·|°w¹ï´¡¤W¥ô¤@´¡¼Ñªº°O¾Ð¥d°µ¦Û°Ê±¾¤W°Ê§@ªº¤â½Z¡G
case "$ADDRESS" in
*,0,0)
# Mount filesystem, but don't update /etc/fstab
DO_FSTAB="n" ; DO_FSCK="y" ; DO_MOUNT="y"
FSTYPE="ext2" ; OPTS=""
MOUNTPT="/mem0"
;;
*,1,0)
# Mount filesystem, but don't update /etc/fstab
DO_FSTAB="n" ; DO_FSCK="y" ; DO_MOUNT="y"
FSTYPE="ext2" ; OPTS=""
MOUNTPT="/mem1"
;;
esac
¶Ç¨ì ftl.opts
¤ºªº³]³Æ¦ì§}¦³ 3 ©Î 4 ÓÄæ¦ì¡G the scheme¡B´¡¼Ñ
¸¹½X¡B°Ï¸¹½X¥H¤Î¥t¥~ªº¿ï¶µ¡A¤À³Î¸¹½X¡C¤j³¡¥÷ªº§Ö°{¥d¥u¦³¤@Ó§Ö°{°O
¾ÐÅé°Ï¡A©Ò¥H¤j³¡¥÷ªº°Ï¸¹½X³£¬O 0 ªº¡C
n±N§Ö°{°O¾Ð¥d·í¦¨¤@¯ëªººÏºÐ¨Ó¨Ï¥Î¡A º¥ýn«Ø¥ß FTL¡A©Î
`` §Ö°{ÂàĶ¼h¯Å (flash translation layer)''¡A¥¦¬O¤@Ó¨Ï
¥Î ftl_format
©R¥O¦b³]³Æ¤W°µ¦¨ªº¤@Ó¤À³Î¡C ³o¼h¸ê®ÆÁôÂäF§Ö°{
°O¾ÐÅéµ{¦¡ªº³]³Æ«ü©w²Ó¸`¡A¨ÃÅý¥d¤ù¬Ý°_¨Ó´N¹³¬OÓ²³æªº°Ï¶ô³]³Æ¡C¨Ò
¦p¡G
ftl_format -i /dev/mem0c0c
°O±o³oÓ©R¥O¬O¸g¥Ñ `` ¥¼¥[¤uªº '' °O¾ÐÅé¥d¤ù¤¶±¨Ó¦s¨ú¥d¤ùªº¡C¤@¸g
®æ¦¡¤Æ«á¡A ³oÓ¥d´N¥i¥H¸g¥Ñ ftl_cs
ÅX°Êµ{¦¡±N¥¦·í¦¨¤@¯ëªº°Ï¶ô
³]³Æ¨º¼Ë¦a°µ¦s¨ú¤F¡C¨Ò¦p¡G
mke2fs /dev/ftl0c0
mount -t ext2 /dev/ftl0c0 /mnt
³Q©R¦W¦¨ FTL Ãþªº³]³Æ³£¦³ÂI©Ç©Çªº¡CMinor device numbers ¦³¤TÓ³¡¥÷ : ¥d¤ù¸¹½X¡B¥d¤ù¤ºªº°Ï°ì¸¹½X¥H¤Î¿ï¶µ¡Ð¦b°Ï°ì¸¹½X¤ºªº¤À³Î¡C³o¨àªº°Ï °ì¥i¥H³Q¬Ý¦¨¬°¨S¦³¤À³Îªí®æªº³æ¤@°Ï¶ô³]³Æ (´N¹³³nÅé¤ù¤@¼Ë ) ©ÎªÌ¥¦ ¤]¥i¥H³Q¤À³Î¡A´N¹³¬OÓµwºÐ³]³Æ¤@¼Ë¡C ``ftl0c0'' ³]³Æ¬O¥d¤ù 0¡A¦@¦P °O¾ÐÅé°Ï°ì¬° 0¡A ¾ãÓ°Ï°ì¡C ¦pªG³oÓ°Ï°ì¤w³Q¤À³Î¤F¡A ¨º»ò±q ``ftl0c0p1'' ¨ì ``ftl0c0p4'' ªº³]³Æ¬O¥D¤ÀÃB°Ï 1 ¨ì 4 ¤F¡C
§Ö°{°O¾ÐÅé¥d¤ù¦³¨âºØ¥Dnªº®æ¦¡: FTL «¬¦¡¡A ¥H¤Î Microsoft ªº§Ö°{Àɮרt²Î Flash File System¡CFTL ®æ¦¡¬O³Ì¦³¼u©Êªº ¡A¦]¬°¥¦¤¹³\¤@¯ëªº¥ô¦ó°ª¶¥Àɮרt²Î (ext2¡Bms-dos µ¥µ¥ ) ³£¥iµø¬°¤@ ¯ëºÏºÐ³]³Æ¯ë¦a¨Ó¨Ï¥Î¡CFFS «h§¹¥þ¬OÓ¤£¦PªºÀɮרt²ÎÃþ«¬¤F¡CLinux ¥Ø «eµLªk³B²z¥Î FFS ®æ¦¡¤Æªº¥d¤ù¡C
¹ï ATA/IDE ºÏºÐ¾÷ªº¤ä´©»Ýn 1.3.72 ©Î§ó·sªº®Ö¤ßª©¥»¡C ÅX°Êµ{¦¡¤º
«ü©w PCMCIA ªº³¡¥÷¬O fixed_cs
¡C ½Ð°O±o¦b©â¥X ATA/IDE ¥d«e½Ð¨Ï
¥Î cardctl
©Î cardinfo
µ{¦¡§â¥¦¥ýÃö³¬¡A ¦]¬°³oÓÅX°Êµ{¦¡
¨Ã¨S¦³³Q³]p¦¨¥i ``¨¾¤î¼ö¸m´«ªº''¡C
¶Ç°e¨ì fixed.opts
¤ºªº³]³Æ¦ì¸m¥]§t¤T©Î¥|ÓÄæ¦ì: ¥Ø«eªº
scheme¡B´¡¼Ñ¸¹½X¡BºÏºÐªº§Ç¸¹¥H¤Î¿ï¶µªº¤À³Î¸¹½X¡Cide_info
¥i¥H
³Q¥Î¨ÓÀò±o IDE ºÏºÐªº§Ç¸¹¡C ¨Ï¥Î SCSI ³]³Æ®É¡Afixed.opts
·|¦b
²Ä¤@¦¸³Q©I¥sµ¹¾ãÓ³]³Æ°µ³]©w¡C ¦pªG fixed.opts
¦^À³¤F¤@Ó¦b
PARTS
ÅܼƤºªº¤@¦ê¤À³Î¸ê°T¡A ©R¥O¤â½Z±µµÛ´N·|¬°¨C¤@Ó¤À³Î°µ³]
©w¡C
¥H¤Uªº°Ñ¼Æ¥i¥H³Q©w¸q¦b fixed.opts
¤º¡G
DO_FSTAB
¥¬ªL (y/n) ³]©w¡G«ü©w¬O§_³oÓ³]³ÆÀ³¸Ó¦b /etc/fstab
¤º¥[Ó
±ø¥Ø¡C
DO_FSCK
¥¬ªL (y/n) ³]©w¡G«ü©w¬O§_Àɮרt²ÎÀ³¸Ó¦b³Q±¾¤W«e¥H ``fsck -Ta
''
¨ÓÀˬd¤@¤U¡C
DO_MOUNT
¥¬ªL (y/n) ³]©w¡G «ü©w¬O§_³oÓ³]³ÆÀ³¸Ó¦b¥d¤ù³Q´¡¤Jªº¦P®É³Q¦Û°Ê¦a³Q ±¾¤W¡C
FSTYPE
, OPTS
, MOUNTPT
Àɮרt²Î«¬ºA¡B ±¾¤W¿ï¶µ¡B¥H¤Î³Q¥Î¨Ó°µ¬° fstab ªº¶µ¥Ø¤Î¡þ©Î±¾¤W¸Ó³] ³Æªº±¾¤WÂI¡C
¥H¤U¬OÓ fixed.opts
Àɮתº¨Ò¤l¥Î¨Ó±¾¤W¥ô¤@Ó ATA/IDE ¥dªº²Ä¤@
Ó¤À³Î¨ì /mnt
¥Ø¿ý¤W¡C
case "$ADDRESS" in
*,*,*)
PARTS="1"
;;
*,*,*,1)
DO_FSTAB="y" ; DO_FSCK="y" ; DO_MOUNT="y"
FSTYPE="msdos"
OPTS=""
MOUNTPT="/mnt"
;;
esac
pcmcia_core
¼Ò²Õ°t¦X
¤U±ªº³]©w:
CORE_OPTS="unreset_delay=400"
CONFIG_BLK_DEV_IDECD
¥\¯à¥´¶}¥B½sĶ¶i¥h¡C³q±`¼Ð·Çªº®Ö¤ß³£¤w¤ä´©¤F¡AµM¦Ó¦pªG§A·Q½sĶӦÛ
©wªº®Ö¤ß½Ð°O±onÂÔ·V¨Ç¡C
±q 1.3.73 Linux ®Ö¤ß¶}©l¡A´XÓÅX°Êµ{¦¡¥i¥H¦@¥Î³æ¤@Ó´¡Â_¡A¹³¦ê¦C°ð ÅX°Êµ{¦¡»P¤@Ó¤A¤Óºô¸ôÅX°Êµ{¦¡¡C¦b·sªº®Ö¤ß¤U¨Ï¥Î¦h¥\¯à¥d¤ù®É¡A©Ò¦³ ªº¥d¤ù¥i¥H¤£¥Î¦b¸ü¤J©Î±s¤UÅX°Êµ{¦¡ªºª¬ªp¤U¨Ï¥Î¥d¤ùªº©Ò¦³¥\¯à¡C
«Ü¦hªºµwÅé¼t°Ó¦Û¤w°µ¤F¤£¤Ó¯à¤¬¬Û¬Û®eªº (¦³¨Ç¥i»¡¬O¿W¥ßªº ) ´¡Â_¦@ ¨É¤èªk¨Ó¼ÒÀÀ¨Ï¥Î¤GÓ¥dªº¥\¯à¡C¦³¨Ç¥d¤ù (Diamonds ªº Ositech Jack¡B ¡B3Com ªº 3c562¡BLinksys) ªºÅX°Êµ{¦¡¥i¥H¥¿½T¦a¤ä´©³o¼Ëªº¼ÒÀÀ¦s¨ú¡A ¦ý¬O¦³¨Ç¥d (¯S§O¬O Megahertz) «h¤£¯à¡C
¦´Áªº®Ö¤ß¨Ã¤£¤ä´©´¡Â_¤À¨Éµ¹¤£¦Pªº³]³ÆÅX°Êµ{¦¡¡C©Òn PCMCIA ÅX°Êµ{ ¦¡¤£¥i¯à«Øºc¦¹¥d¤ùÅý¥¦¥i¼ÒÀÀ¤A¤Óºô¸ô¥d»P¼Æ¾Ú¥dªº¦s¨ú¡C¤A¤Óºô¸ô¥d»P ¦ê¦C°ðÅX°Êµ{¦¡·|³Q¦Û°Ê¦a¸ü¤J¡CµM¦Ó¡A¤º©w¤W¬O¤A¤Óºô¸ôÅX°Êµ{¦¡ `` ¾Ö ¦³ '' ³o±i¥d¤ùªº´¡Â_¡Cn¨Ï¥Î¼Æ¾Ú¾÷¡A§A¥i¥H¨ø¤U¤A¤Óºô¸ôÅX°Êµ{¦¡¡AµM «á¨Ï¥Î¥H¦C¤èªk«·s«Øºc¦ê¦C°ð:
ifconfig eth0 down
rmmod 3c589_cs
setserial /dev/modem autoconfig auto_irq
setserial /dev/modem
²Ä¤GÓ setserial
·|¬dµý¥X¸Ó°ð¦b¥ý«e¬O¥Ñ¤A¤Óºô¸ôÅX°Êµ{¦¡©Ò¨Ï¥Î
ªº´¡Â_¡C