📄 00000003.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人: mephisto (鬼呀!), 信区: Linux <BR>标 题: 如何玩声卡和网卡。 <BR>发信站: BBS 水木清华站 (Mon Dec 7 01:36:33 1998) <BR>很对不起, 我的中文敲得太慢。后面全用英文了。 <BR>我看了一下本版大多数文提都是网卡声卡地问题。我总结一下三板斧吧。 <BR>1。确定芯片类型.找出对应地module. grep the source tree if needed. <BR>e.g.: I can read ESS-1688 on the chip of that card. So <BR>cd /usr/src/linux/driver/sound <BR>grep ESS *.c <BR>grep 1688 *.c <BR>you will locate the sb.c, so sb.o will respone for it. <BR> <BR>2. Try to get the io address and irq for your card. <BR>Some pci card will have some problem if the BIOS pic setion did not set <BR>correctly. Watch clearly when it boot, most Pentium board will report <BR>which irq the card was using. <BR>The io address is more important than the irq. Most card can auto detect <BR>the irq if you set the base io addess correctly. You can copy the io from <BR>windows setting if the card was not a pnp one. Pnp one will have some extra <BR>work to do with it. There are some pnp package to set the io and irq. <BR>In TurboLinux it was "turbopnpcfg". <BR> <BR>3. Try to install it. <BR>You did not need to recompile the kernel all the time. By default, Redhat <BR>and TurboLinux have already set all the thing in module correctly. Just <BR>go to /lib/modules/2.0.X/... to find your module. If you do all the things <BR>right and you can't install the module. Recompile the kernel will not help <BR>you, just make it worse. <BR>Some useful files and command: <BR>lsmod // to watch which modules have been installed. <BR>ksyms // to watch which symbles have been exported in module or kernel <BR>rmmod // to remove the module. This will fail if you are using this mod <BR>insmod // This one will try to install the module <BR>modprobe // Also try to install the module <BR>// The modprobe do more works than insmod. modprobe will try to probe some <BR>// io address by default. But insmod just works on the io address you give <BR>// it. And modprobe will try to install other module which was needed by the <BR>// one you are installing. <BR>// e.g. : <BR>"modprobe ne" will auto load "8295.o" ( I am not sure about the name) <BR>but "insmod ne" will report : (if did not install 8295.o before) <BR>xxxx symble not found. <BR>XXXX symble not found. <BR> <BR>You will like to use modeprobe than insmod. Sometime modprobe will do <BR>something overhead and make something wrong, but it seldom happen. <BR> <BR>4. How to know you have installed your module correctly. <BR>Try to cat those files: <BR>/proc/io* // If you can find your card list in the file, <BR>/proc/int* // your card is very possbile working now. <BR>for the sound card (ISA): <BR>/dev/sndstat // will report the sound device state <BR> // did not work for PCI cards. <BR> <BR>5. PCI device <BR>Most pci device donot need to give the io address and irq. The module <BR>can read this infomation in the PCI configure space. But you can cat <BR>/proc/pci <BR>to find your card. It might give some hits which module should you use. <BR>The pci file know about your card did not mean the kernel can support it. <BR> <BR>-- <BR>约塞连怀疑地摇了摇头,拒绝接受丹比的劝告."当我抬起来时,我看到人们全在设法赚钱.我 <BR>看不见天堂,看不见圣人,也看不见天使.我只看见人们利用每一次正当的冲动和每一场人类 <BR>的悲剧大把大把地捞钱." <BR> <BR>※ 修改:·mephisto 於 Dec 7 01:39:33 修改本文·[FROM: ab1-84.bjnet.ed] <BR>※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: ab1-84.bjnet.ed] <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -