📄 00000001.htm
字号:
<BR>## 各位看到下面原来的注解了吧 . 当你有一些特殊的卡时 , 你可以把相对应部 <BR>## 份前面的 '#' 去掉 , 以便能做自动设定的工作 . 其实呢 , 这种情况实在 <BR>## 不多 , 大部份人的设备都差不了多少 , 说到关於串连埠 , 差异就更少了 . <BR># <BR># AUTOMATIC CONFIGURATION <BR># <BR># Uncomment the appropriate lines below to enable auto-configuration <BR># of a particular board. Or comment them out to disable them.... <BR># <BR> <BR> <BR>## 好了 , 这下我们又多了一个变数 : AUTO_IRQ , 这在下面会用到 . <BR> <BR>AUTO_IRQ=auto_irq <BR> <BR> <BR>## 下面几行非常整齐 , 它们可以分别被换成 : <BR>## /bin/setserial -b /dev/cua? auto_irq skip_test autoconfig <BR>## setserial 说穿了也没什麽 , 这个指令可以让你对 serial port 做设定及回报 <BR>## 的动作 , 像 IRQ , I/O port 啦等等的事情 . 一般的情况下 , 大家的电脑中 <BR>## 通常只有 COM1-COM4 , 但假如你想增加新的 port , 那 setserial 就派上用 <BR>## 场了 . <BR> <BR># These are the standard COM1 through COM4 devices <BR># <BR># If you have an internal modeme with a Rockwell Chipset, add a "skip_test" <BR># to the /dev/cua3 line below. (It's not added by default because it will <BR># screw up people with 8514 displays). <BR># <BR>${SETSERIAL} /dev/cua0 ${AUTO_IRQ} skip_test autoconfig <BR>${SETSERIAL} /dev/cua1 ${AUTO_IRQ} skip_test autoconfig <BR>${SETSERIAL} /dev/cua2 ${AUTO_IRQ} skip_test autoconfig <BR>${SETSERIAL} /dev/cua3 ${AUTO_IRQ} autoconfig <BR> <BR># These are for the first AST Fourport board (base address 0x1A0) <BR># <BR>${SETSERIAL} /dev/cua4 ${AUTO_IRQ} autoconfig <BR>${SETSERIAL} /dev/cua5 ${AUTO_IRQ} autoconfig <BR>${SETSERIAL} /dev/cua6 ${AUTO_IRQ} autoconfig <BR>${SETSERIAL} /dev/cua7 ${AUTO_IRQ} autoconfig <BR> <BR># These are for the second AST Fourport board (base address 0x2A0) <BR># <BR>${SETSERIAL} /dev/cua8 ${AUTO_IRQ} autoconfig <BR>${SETSERIAL} /dev/cua9 ${AUTO_IRQ} autoconfig <BR>${SETSERIAL} /dev/cua10 ${AUTO_IRQ} autoconfig <BR>${SETSERIAL} /dev/cua11 ${AUTO_IRQ} autoconfig <BR> <BR> <BR>## 从这里以下 , 我省略了一大段 , 因为这一大段都是支援特殊的卡 <BR> <BR># These are the 3rd and 4th ports on the Accent Async board. <BR># <BR>#${SETSERIAL} /dev/cua12 ${AUTO_IRQ} autoconfig <BR>#${SETSERIAL} /dev/cua13 ${AUTO_IRQ} autoconfig <BR># <BR> <BR> <BR> . <BR> . <BR> . <BR> . <BR> . <BR> . <BR> . <BR> <BR> <BR>## 好了 , 我们跳掉了一大段 , 直到这里 . 各位看到下面的注解了 . <BR>## 假如你想用手动的方法指定 IRQ , I/O port , 及指定 chip 的型别 <BR>## 那你可以拿掉下面对应那行前面的 '#' 并作适当的修改 , 比如说 <BR>## 你用的是比较新的 16550 或 16550A , 而不是 16450 , 那你就可以 <BR>## 在下面用手动的方法指定 . 实际上 , 用 autoconfig 及 autoirq <BR>## 的选项就可以了 , 没有必要用手动的方式 . 除非侦测不到 . <BR> <BR>############################################################### <BR># <BR># MANUAL CONFIGURATION <BR># <BR># If you want to do manual configuration of one or more of your <BR># serial ports, uncomment and modify the relevant lines. <BR># <BR>############################################################### <BR> <BR># These are the standard COM1 through COM4 devices <BR># <BR>#${SETSERIAL} /dev/cua0 uart 16450 port 0x3F8 irq 4 <BR>#${SETSERIAL} /dev/cua1 uart 16450 port 0x2F8 irq 3 <BR>#${SETSERIAL} /dev/cua2 uart 16450 port 0x3E8 irq 4 <BR>#${SETSERIAL} /dev/cua3 uart 16450 port 0x2E8 irq 3 <BR> <BR> . <BR> . <BR> . <BR> . <BR> . <BR> . <BR> . <BR> . <BR> <BR>## Ok , 到此 , rc.S 及 rc.serial 已经结束 , 因为截稿时间的关系 , rc.M <BR>## rc.inet1 , rc.inet2 , rc.font , rc.local 将在以後为各位介绍 . <BR> <BR>echo "done." <BR>${SETSERIAL} -bg ${PORTS} <BR> <BR>echo ' ====================== rc.serial is complete !!! ===================' <BR> <BR> <BR> <BR> * 关於 Shell Programming 的书单 : <BR> <BR> Title: The Unix C Shell Field Guide <BR> Authors: Gail Anderson and Paul Anderson <BR> Publisher: Prentice Hall <BR> Edition: 1986 <BR> ISBN: 0-13-937468-X <BR> <BR> 这本是 C-Shell 的 Bible , 想学 C-Shell 的人 , 可以去看这本书 . <BR> <BR> <BR> Title: Unix Shell Programming <BR> Authors: Stephen Kochan and Patrick Wood <BR> Publisher: Hayden <BR> Edition: 1990 <BR> ISBN: 0-672-48448-X <BR> <BR> 喔 ! 这本书以 Bourne Shell 为主 , 内容深入浅出 , 读者很容易就可以了解 <BR> 这本书的内容 , 进而掌握 Bourne Shell 的精髓 . 此外 , 这本书也有提到 <BR> Korn Shell , 大体上来说 , 是一本值得看的好书 . <BR> <BR> <BR> *如何连络作者 : <BR> <BR> E-Mail Address : <A HREF="mailto:jhhsu@csie.nctu.edu.tw">jhhsu@csie.nctu.edu.tw</A> <BR> <A HREF="mailto:u8217017@cc.nctu.edu.tw">u8217017@cc.nctu.edu.tw</A> <BR> <BR> Dormitory : 交通大学十舍 317R <BR> <BR>.. <BR> <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -