NetBSD是不是对RTL8139支持不好?
发表于 : 2010-09-01 12:09
由 woodelf
好久没用NetBSD,一直在FreeBSD下面混,之前配置过一次的NetBSD都快要忘记怎么配置了。当时我重新编译了内核,明明把RTL8139的驱动给编译进去了,但是ifconfig里面根本没有rtk0这个interface,非常郁闷。RTL8139应该算是最最普通的网卡了,不会连这个都支持不了吧?
发表于 : 2010-09-01 14:42
由 woodelf
真奇怪,当时看别人也没有问题的,我就不行,换了4.x版本也还是识别不出来,无奈之下只好暂时放弃NB的。
发表于 : 2010-09-01 17:08
由 woodelf
看过的,没有rtk0这个interface,ifconfig up也提示出错。
发表于 : 2010-09-01 20:16
由 whoami
有的卡号称是使用的8139芯片, 实际上并非如此。例如
这里。
发表于 : 2010-09-02 1:33
由 woodelf
我是笔记本,所以不会存在这种情况。刚刚试了下,运行ifconfig rtk0 up,提示ifconfig: exec_matches: device not configured。ifconfig -a依然没有rtk0这个interface,只有一个lo0和wpi0。
发表于 : 2010-09-02 2:14
由 whoami
笔记本里面有几块卡?
把ifconfig -a的内容贴出来看看。
发表于 : 2010-09-02 9:52
由 woodelf
笔记本两块网卡,有线网卡是RTL8139,无线的是3945ABG,无线的倒是驱动没问题,怎么这么普通的有线网卡却驱动不起来了呢?ifconfig -a的信息我晚上贴出来。
发表于 : 2010-09-02 9:57
由 John.Fu
搞不好是网卡坏了。8139网卡坏的机率相对来说比较高。
发表于 : 2010-09-02 10:04
由 whoami
wpi0是你的无线接口吗?lo0是环回接口——有人也叫本地虚拟接口,这个虚拟接口每台计算机都有。如果只有wpi0和lo0这两个接口的话,说明可能系统就没有检测出另一块以太网卡(也就是你说的8139)——你说的"8139"网卡在NetBSD下指示灯亮不?——晕了笔记本可能没有吧
除了ifconfig -a , 最好再贴一份dmesg,要是使用的是标准内核最好.......
发表于 : 2010-09-23 17:31
由 woodelf
好久没上网了,我来把信息发一下,先是dmesg的。
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 5.0.2 (BSD) #2: Wed Sep 22 12:28:25 CST 2010
root@NetBSD:/usr/src/sys/arch/i386/compile/BSD
total memory = 3070 MB
avail memory = 3010 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
Lenovo TIANYI F40A (00000000000000000000000000000000)
mainbus0 (root)
cpu0 at mainbus0: Intel 686-class, 1662MHz, id 0x6f6
cpu0: Enhanced SpeedStep (1004 mV) 1000 MHz
cpu0: Enhanced SpeedStep frequencies available (MHz): 1667 1500 1333 1167 1000
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x27a0 (rev. 0x03)
agp0 at pchb0: can't find internal VGA device config space
ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x27a1 (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
vga1 at pci1 dev 0 function 0: vendor 0x10de product 0x01d7 (rev. 0xa1)
vga1: WARNING: ignoring 64-bit BAR @ 0x14
vga1: WARNING: ignoring 64-bit BAR @ 0x1c
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
drm at vga1 not configured
azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Controller
azalia0: interrupting at irq 11
azalia0: host: 0x8086/0x27d8 (rev. 2), HDA rev. 1.0
ppb1 at pci0 dev 28 function 0: vendor 0x8086 product 0x27d0 (rev. 0x02)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci0 dev 28 function 1: vendor 0x8086 product 0x27d2 (rev. 0x02)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
wpi0 at pci3 dev 0 function 0: vendor 0x8086 product 0x4222 (rev. 0x02)
wpi0: interrupting at irq 10
wpi0: RoW, address 00:19:d2:67:3a:dd
wpi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ppb3 at pci0 dev 28 function 2: vendor 0x8086 product 0x27d4 (rev. 0x02)
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
uhci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x27c8 (rev. 0x02)
uhci0: interrupting at irq 5
usb0 at uhci0: USB revision 1.0
uhci1 at pci0 dev 29 function 1: vendor 0x8086 product 0x27c9 (rev. 0x02)
uhci1: interrupting at irq 10
usb1 at uhci1: USB revision 1.0
uhci2 at pci0 dev 29 function 2: vendor 0x8086 product 0x27ca (rev. 0x02)
uhci2: interrupting at irq 11
usb2 at uhci2: USB revision 1.0
uhci3 at pci0 dev 29 function 3: vendor 0x8086 product 0x27cb (rev. 0x02)
uhci3: interrupting at irq 10
usb3 at uhci3: USB revision 1.0
ehci0 at pci0 dev 29 function 7: vendor 0x8086 product 0x27cc (rev. 0x02)
ehci0: interrupting at irq 5
ehci0: BIOS refuses to give up ownership, using force
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
ppb4 at pci0 dev 30 function 0: vendor 0x8086 product 0x2448 (rev. 0xe2)
pci5 at ppb4 bus 5
pci5: no spaces enabled!
ichlpcib0 at pci0 dev 31 function 0
ichlpcib0: vendor 0x8086 product 0x27b9 (rev. 0x02)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
ichlpcib0: TCO (watchdog) timer configured.
piixide0 at pci0 dev 31 function 2
piixide0: Intel 82801GBM/GHM Serial ATA Controller (ICH7) (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at irq 15
atabus1 at piixide0 channel 1
ichsmb0 at pci0 dev 31 function 3: vendor 0x8086 product 0x27da (rev. 0x02)
ichsmb0: interrupting at irq 10
iic0 at ichsmb0: I2C bus
isa0 at ichlpcib0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
attimer0 at isa0 port 0x40-0x43: AT Timer
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff
npx0: reported by CPUID; using exception 16
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xdffff irq
pcic0: controller 0 (Intel 82365SL-DF) has socket A only
pcmcia0 at pcic0 controller 0 socket 0
attimer0: attached to pcppi0
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "TSC" frequency 1662603200 Hz quality 3000
azalia0: codec[0]: Realtek ALC861-VD-GR (rev. 0.1), HDA rev. 1.0
azalia0: codec[1]: 0x11c1/0x1040 (rev. 2.0), HDA rev. 1.0
azalia0: codec[1]: No support for modem function groups
azalia0: codec[1] has no audio function groups
audio0 at azalia0: full duplex, independent
pcic0: controller 0 detecting irqs with mask 0xdeb8:..3..4..7..9
pcic0: using irq 3 for socket events
pcic0: WARNING: powerhook_establish is deprecated
uhub0 at usb0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhub2 at usb2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhub3 at usb3: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
uhub4 at usb4: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
uhidev0 at uhub1 port 1 configuration 1 interface 0
uhidev0: Logitech USB Receiver, rev 2.00/16.00, addr 2, iclass 3/1
ums0 at uhidev0: 16 buttons and Z dir.
wsmouse0 at ums0 mux 0
uhidev1 at uhub1 port 1 configuration 1 interface 1
uhidev1: Logitech USB Receiver, rev 2.00/16.00, addr 2, iclass 3/0
uhidev1: 17 report ids
uhid0 at uhidev1 reportid 3: input=4, output=0, feature=0
uhid1 at uhidev1 reportid 16: input=6, output=6, feature=0
uhid2 at uhidev1 reportid 17: input=19, output=19, feature=0
wd0 at atabus0 drive 0: <Hitachi HTS543232L9A300>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 298 GB, 620181 cyl, 16 head, 63 sec, 512 bytes/sect x 625142448 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd1 at atabus1 drive 0: <ST9160821AS>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
pcic_wait_ready: ready never happened, status=0c
pcmcia0: card appears to have bogus CIS
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex
boot device: wd1
root on wd1h dumps on wd1b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
set{u,g}id pid 567 (gnome-pty-helper) was invoked by uid 0 ppid 530 (gnome-terminal) with fd 2 closed
发表于 : 2010-09-23 17:33
由 woodelf
再来是ifconfig -a的结果。
wpi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ssid ADSL
powersave off
bssid 00:23
43:27:50 chan 13
address: 00:19:d2:67:3a:dd
media: IEEE802.11 autoselect (OFDM54 mode 11g)
status: active
inet 192.168.1.100 netmask 0xffffff00 broadcast 255.255.255.255
inet6 fe80::219:d2ff:fe67:3add%wpi0 prefixlen 64 scopeid 0x1
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
发表于 : 2010-09-23 17:37
由 woodelf
估计会有人怀疑我是不是只有wpi0一块网卡……其实不是的,我确实还有一块RTL8139的有线网卡,只是没办法识别并且驱动,不管是通用内核还是我自己编译的内核都是如此。另外,自定义内核以后,居然连SMP都不支持了……搞不懂NetBSD啊。
发表于 : 2010-09-23 21:14
由 leo
呵呵,不是怀疑你有没有这块RTL8139网卡,而是觉得你这块网卡的芯片可能不是NetBSD所能“识别”的8139芯片。—— 先升级到当前版试试吧,我在另一个帖子里已经回复了。
发表于 : 2010-09-23 21:42
由 lionux
笔记本用无线多方便啊,我的本正相反无线没驱动。
内核没识别出,关了无线试试。
发表于 : 2010-09-23 21:45
由 leo
lionux 写了:笔记本用无线多方便啊,我的本正相反无线没驱动。
内核没识别出,关了无线试试。
我的无线网卡在OpenBSD下对应的是BWI驱动,但是在NetBSD还我还不会配置呢,系统也不识别——晕
此外有线也很重要,毕竟无线的网速差一大截,有时候传递文件还需要依赖以太网卡的速度优势。