|
|
平台: Thinkpad 600E/ PII 366, 224M, 20G. 网卡为当年买机器时候赠品的IBM EtherJet 100PCMCIA网卡。
故障,最初用etch的current的gtk-miniiso/ 安装,结果无法识别出网卡,遂退一步,使用sarge的3.1r4发行光盘安装基本系统,之后升级。
3.1r4安装一切正常,使用光盘自带的2.6.8-2-386内核,此时网卡被正确识别,module加载的xircom_cb,网卡应该是属于xircom代工的<windows下自动识别为 IBM EhterJet 10/100M>,顺利升级到sid ,安装配置好了一切环境,重起....sid下内核为2.6.18-3-686 ,使用udev, discover1 。
开机,未能识别网卡,lsmod没有xircom相关模块,也没有网络相关模块,ifup eth0显示- eth0: ERROR while getting interface flag : No Such Device
复制代码 由于不能上网,临时无法导出 dmseg和lsmod的消息。
幸好在重起之前安装了linux-source 和kernel-package ....
正在编译内核中,参数做了如下细调- 相关的内核配置参数:
- Bus Options (PCI, PCMCIA, EISA, MCA, ISA) --->
- PCCARD (PCMCIA/CardBus) support --->
- <M> PCCard (PCMCIA/CardBus) support
- [*] 32-bit CardBus support
- <M> CardBus yenta-compatible bridge support
- Device Drivers --->
- Networking support --->
- Ethernet (10 or 1000Mbit) --->
- Tulip family network device support --->
- <M> Xircom CardBus support (new driver)
- PCMCIA network device support --->
- [*] PCMCIA network device support
复制代码 PII的估计得几个小时跑,跑完了再上来报告下......还有问题我就没什么办法了
-------------------------------------separate-------------------------------------
已经解决,不是模块问题也不是别的问题,2.6.1x内核对于CardBus的支持有点小bug. apic管理下无法给桥接过去的的PCMCIA设备分配正常的IRQ,详细如下There was also another problem with my bult-in LAN which was was working properly when I was transfering small ammounts of data, but when it worked on full speed it gave me unpredictable connection loss and reboot was the only way to get the network working again. I think that there were some problems with interrupts and I tried to find some solution. I tried many kernel configuration combinations and then also DSDT table patching but nothing worked. Finally I tried different kernel boot options and then I figured out that one combination gives me everything working properly. First I had to turn off the APIC support with noapic option. If you don't have IO-APIC option compiled into the kernel, you don't need this option. The second option which I've tried, was irqpoll which gave me PCMCIA slot support that I had not without IO-APIC, because Yenta driver didn't get an interrupt on startup. With these options everything was working pretty good and without crashes. Unfortunetly /proc/interrupts don't seem to look fine:
[lukasz@laptop ~]$ cat /proc/interrupts
CPU0
0: 9272968 XT-PIC timer
1: 13411 XT-PIC i8042
2: 0 XT-PIC cascade
9: 9971 XT-PIC acpi
10: 0 XT-PIC eth0
11: 1068817 XT-PIC yenta, ehci_hcd:usb1, ohci_hcd:usb2, ohci_hcd:usb3, ATI IXP, fglrx
12: 97 XT-PIC i8042
14: 25314 XT-PIC ide0
15: 5800 XT-PIC ide1
NMI: 0
ERR: 0
How to use it
I described major problems that I had with my machine, so now I can write how to use all of it's components on Linux. Remember, that everything described as working in this part, works fine and stable sometimes only with kernel boot options:
noapic irqpoll 引用中的高人出问题的是块无线网卡,和有线的问题一样。
最终在启动参数中添加noapic和irqpoll 解决一切问题...... |
|