"couldn't map interrupt"

deleeuw

Member
Hallo alle!
Wenn ich FreeBSD 5 heraufladen, siehe ich "couldn't map interrupt" mit der Netzwerkkarte. Ich habe die entsprechenden Datei für den NIC von dem Motherboard CD.

Danke


NS Was ist "Motherboard" auf Deutsch?
 
Try turning "PNP OS installed" off in your BIOS. This usually helps.

It's very uncommon to translate words like "motherboard" into German.
 
I checked my BIOS, but there is no selection fro PnP OS. The motherboard btw is a VIA ad77 (amd)
 
It would be very helpful to know which network card you are trying to use. The command pciconf -lv should show us detailed information about.
deleeuw schrieb:
Ich habe die entsprechenden Datei für den NIC von dem Motherboard CD.
I cannot really believe that there was a FreeBSD driver on the CD shipped from the vendor. Or are you trying to use the ndis framework?
deleeuw schrieb:
I checked my BIOS, but there is no selection fro PnP OS.
Another possible solution is ACPI. Try with ACPI enabled and with ACPI disabled, both in the BIOS and the FreeBSD boot-menu.

If nothing works, please boot with boot -v and send us the dmesg output.
 
the pciconf:
agp0@pci0:0:0: class=0x060000 card=0x31891106 chip=0x31891106 rev=0x00 hdr=0x00
vendor = 'VIA Technologies Inc'
device = 'VT8377 Apollo KT400 CPU to PCI Bridge'
class = bridge
subclass = HOST-PCI
pcib1@pci0:1:0: class=0x060400 card=0x00000080 chip=0xb1681106 rev=0x00 hdr=0x01
vendor = 'VIA Technologies Inc'
device = 'ProSavageDDR P4X333 CPU to AGP 2.0/3.0 Bridge'
class = bridge
subclass = PCI-PCI
sio4@pci0:9:0: class=0x070002 card=0x00aa12b9 chip=0x100812b9 rev=0x01 hdr=0x00
vendor = '3COM Corp, Modem Division (Formerly US Robotics)'
device = '3cp803598 USR 56k Internal Modem'
class = simple comms
subclass = UART
none0@pci0:14:0: class=0x010400 card=0x00011103 chip=0x00071103 rev=0x01 hdr=0x00
vendor = 'HighPoint Technologies Inc.'
device = 'HPT371 UDMA/ATA133 EIDE Controller'
class = mass storage
subclass = RAID
none1@pci0:15:0: class=0x0c0010 card=0x30441106 chip=0x30441106 rev=0x46 hdr=0x00
vendor = 'VIA Technologies Inc'
device = 'VT6306 VIA Fire II IEEE-1394 OHCI Link Layer Controller'
class = serial bus
subclass = FireWire
none2@pci0:16:0: class=0x0c0300 card=0x30381106 chip=0x30381106 rev=0x80 hdr=0x00
vendor = 'VIA Technologies Inc'
device = 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)'
class = serial bus
subclass = USB
uhci0@pci0:16:1: class=0x0c0300 card=0x30381106 chip=0x30381106 rev=0x80 hdr=0x00
vendor = 'VIA Technologies Inc'
device = 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)'
class = serial bus
subclass = USB
uhci1@pci0:16:2: class=0x0c0300 card=0x30381106 chip=0x30381106 rev=0x80 hdr=0x00
vendor = 'VIA Technologies Inc'
device = 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)'
class = serial bus
subclass = USB
none3@pci0:16:3: class=0x0c0320 card=0x31041106 chip=0x31041106 rev=0x82 hdr=0x00
vendor = 'VIA Technologies Inc'
device = 'VT6202 USB 2.0 Enhanced Host Controller'
class = serial bus
subclass = USB
isab0@pci0:17:0: class=0x060100 card=0x31771106 chip=0x31771106 rev=0x00 hdr=0x00
vendor = 'VIA Technologies Inc'
device = 'VT8235 PCI to ISA Bridge'
class = bridge
subclass = PCI-ISA
atapci0@pci0:17:1: class=0x01018a card=0x05711106 chip=0x05711106 rev=0x06 hdr=0x00
vendor = 'VIA Technologies Inc'
device = 'VT82xxxx EIDE Controller (All VIA Chipsets)'
class = mass storage
subclass = ATA
none4@pci0:18:0: class=0x020000 card=0x06016511 chip=0x30651106 rev=0x74 hdr=0x00
vendor = 'VIA Technologies Inc'
device = 'VT6102 Rhine II PCI Fast Ethernet Controller'
class = network
subclass = ethernet
pcm0@pci0:20:0: class=0x040100 card=0x80011274 chip=0x58801274 rev=0x04 hdr=0x00
vendor = 'Creative (Was: Ensoniq)'
device = '5880 AudioPCI'
class = multimedia
subclass = audio
none5@pci1:0:0: class=0x030000 card=0x7106174b chip=0x54461002 rev=0x00 hdr=0x00
vendor = 'ATI Technologies'
device = 'Rage 128 Pro AGP 4x'
class = display
subclass = VGA


the dmesg:

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.0-RELEASE #2: Fri May 13 18:39:24 MST 2005
root@deleeuw.amradel:/usr/obj/usr/src/sys/ROBERT
Preloaded elf kernel "/boot/kernel/kernel" at 0xc06e2000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06e20a8.
Timecounter "i8254" frequency 1193182 Hz
Timecounter "TSC" frequency 1462510088 Hz
CPU: AMD Athlon(tm) XP 1700+ (1462.51-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x681 Stepping = 1
Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
AMD Features=0xffffffffc0400000<AMIE,DSP,3DNow!>
real memory = 268369920 (255 MB)
avail memory = 253317120 (241 MB)
pnpbios: Bad PnP BIOS data checksum
Initializing GEOMetry subsystem
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <KT400 AWRDACPI> on motherboard
ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15
Using $PIR table, 11 entries at 0xc00fdea0
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-fast" frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <thermal zone> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA Generic host to PCI bridge> mem 0xd0000000-0xd7ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
sio0: <3COM PCI FaxModem> port 0xb000-0xb007 irq 11 at device 9.0 on pci0
sio0: moving to sio4
sio4: type 16550A
pci0: <mass storage, RAID> at device 14.0 (no driver attached)
pci0: <serial bus, FireWire> at device 15.0 (no driver attached)
uhci0: <VIA 83C572 USB controller> port 0xcc00-0xcc1f irq 11 at device 16.0 on pci0
uhci0: Could not allocate irq
device_probe_and_attach: uhci0 attach returned 6
uhci0: <VIA 83C572 USB controller> port 0xd000-0xd01f irq 10 at device 16.1 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 9 at device 16.2 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pci0: <serial bus, USB> at device 16.3 (no driver attached)
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8235 ATA133 controller> port 0xd800-0xd80f at device 17.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
fet0: <VIA Rhine II Fast Ethernet Adapter > port 0xe000-0xe0ff mem 0xdf002000-0xdf0020ff irq 11 at device 18.0 on pci0
fet0: couldn't map interrupt
device_probe_and_attach: fet0 attach returned 6
pcm0: <Creative CT5880-E> port 0xe400-0xe43f irq 5 at device 20.0 on pci0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model MouseMan+, device ID 0
orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
acpi_cpu: CPU throttling enabled, 2 steps from 100% to 50.0%
ad0: 38166MB <WDC WD400BB-00DEA0> [77545/16/63] at ata0-master UDMA100
ad1: 29311MB <Maxtor 5T030H3> [59554/16/63] at ata0-slave UDMA100
ad3: 26059MB <Maxtor 92732U8> [52946/16/63] at ata1-slave UDMA66
acd0: CD-RW <LITE-ON CD-RW SOHR-5238S> at ata1-master PIO4

The CD from the motherboard had files/instructions for FreeBSD 4.x. I went to their website and got the latest files for FreeBSD 5.x:

**
**
** VIA Rhine Family Fast Ethernet Adapter
**
** FreeBSD driver
**
** v3.21 Sep. 2004
**
**

Introduction:
=============

The Fast Ethernet 10/100M FreeBSD driver is enclosed. This document shows you how to
setup the driver.

Contents of the Subdirectory:
=============================

freebsd.txt This file.
freebsd.tar Tar file include the following file list
if_fet.c The FreeBSD driver source code
if_fet.h The FreeBSD driver header file


Installation:
=============

1) Put the driver disc in Drive A. Under the prompt, type:
"mount_msdos /dev/fd0 /mnt" => (3.x/4.x) or
"mount_msdosfs /dev/fd0 /mnt" => (5.x)

Then, type "cp /mnt/freebsd.tar /usr/src/sys/pci".

2) Type the following commands:
(a) "cd /usr/src/sys/pci"
(b) "tar xvf freebsd.tar"
(c) "cd /usr/src/sys/conf"
(d) "ee files"

3) Under editing file 'files'
(a) In FREEBSD 3.x , please add one line as below:
"pci/if_fet.c optional fet device-driver"
and mark this line as below:
"#pci/if_vr.c optional vr device-driver"
(b) In FREEBSD 4.x/5.x , please add one line as below:
"pci/if_fet.c optional fet"
and mark this line as below:
"#pci/if_vr.c optional vr"
Then, save the file. It's important to mark if_vr.c, or you will use the
old driver.

4) Type the following commands:
(a) "cd /usr/src/sys/i386/conf" => (i386) or
"cd /usr/src/sys/amd64/conf" => (amd64)
(b) "cp GENERIC SERVER"
(c) "ee SERVER"

5) Under editing file 'SERVER', finding the division of NIC setting, and insert one line
as below:
(a) In FREEBSD 3.x:
"device fet0"
and ,mark this line as below:
"#device vr0"
(b) In FREEBSD 4.x/5.x:
"device fet"
and ,mark this line as below:
"#device vr"
Then, save the file. It's important to mark device vr0/vr, or you will use the
old driver.

6) Now, it's ready to recompile kernel; type the following commands:
(a) "cd /usr/src/sys/i386/conf" => (i386) or
"cd /usr/src/sys/amd64/conf" => (amd64)
(b) "config SERVER"
(c) "cd /usr/src/sys/compile/SERVER" => (3.x/4.x) or
"cd /usr/src/sys/i386/compile/SERVER" => (5.x i386) or
"cd /usr/src/sys/amd64/compile/SERVER" => (5.x amd64)
(d) "make depend all install"

7) Before rebooting, make sure the network-related files under /etc are well-configured.
The files are listed below:
(a) /etc/hosts
(b) /etc/resolv.conf
(c) /etc/host.conf
(d) /etc/rc.conf

8) Now, get ready to reboot, type "sync;sync;sync", and "shutdown -r now".

9) Under the newly compiled kernel, type "ifconfig -a", and you can see a new device fet0 (not vr0).


Speed and duplex mode Setting:
==============================
You can use ifconfig command to force speed and duplex mode of NIC,
where # below is network interface number. We only support this function in
FreeBSD 4.x/5.x now.
(eg: Use "ifconfig fet0 media 100baseTX" command to force NIC to 100Mbps half-duplex mode)

1) Auto Mode (Autonegotiation)
ifconfig fet# media auto

2) 100Mbps full-duplex mode
ifconfig fet# media 100baseTX mediaopt full-duplex

3) 100Mbps half-duplex mode
ifconfig fet# media 100baseTX

4) 10Mbps full-duplex mode
ifconfig fet# media 10baseT/UTP mediaopt full-duplex

5) 10Mbps half-duplex mode
ifconfig fet# media 10baseT/UTP


Driver tunable parameters (Experts only)
========================================

You can tune up the performance of driver by modified the pre-define
constants in header file if_fet.h.

QPACKET_DEF:
QPACKET_DEF is used for controlling the enable/disable the transmit
status write back queue.
0: Disable
1: Enable (Default)

VAL_PKT_LEN:
VAL_PKT_LEN is used to drop 802.3 frame with invalid length.
0: Disable (Default)
1: Enable


As for enabling/disabling ACPI in the BIOS, there is no difference.
 
deleeuw schrieb:
device = 'VT6102 Rhine II PCI Fast Ethernet Controller'
Ok, this is the decisive part. This network card is fully supported by FreeBSD's own vr(4) driver. The manpage stats:
Code:
vr -- VIA Technologies Rhine I/II/III Ethernet device driver
A friend of mine also has a mainboard with a Rhine II and it perfectly works with FreeBSD's vr(4) driver.

I'm very suprised that your vendor has developed its own FreeBSD driver and stands on using it. But obviously it doesn't work as it should.

So I really recommend that you use FreeBSD's vr(4) driver. It's even easier to use than your vendor's driver. Just boot the GENERIC kernel, it already has support for vr(4) compiled in, and set your IP adress with:
Code:
ifconfig_vr0="inet $Your_IP_adress"
in the /etc/rc.conf file. That's it.

If you would like to compile your own kernel, don't forget to undo all changes your vendor requested - these changes prevent FreeBSD from using the vr(4) driver!
 
OK, really dumb question:
in the rc.conf do I actually put in "$Your_IP_address"? Or do I put in an real IP address? If so, is it the standard 127.0.0.1?

ifconfig_vr0="inet $Your_IP_adress"

Thankx
 
Of course you have to put in your real IP adress that matches to your local network ;)

But do not take 127.0.0.1, that is the loopback device, it is used by the loopback interface to connect to the localhost.
 
It depends whether your provider allocates you a static or a dynamic IP adress. If it's static, you have to put in exactly that IP adress into your /etc/rc.conf.

If you get a dynamic IP adress, your dial-up software (usually ppp) will manage everything for you - you must not write an IP adress into your /etc/rc.conf! You only have to put in the right network card (in your case: vr0) into /etc/ppp/ppp.conf.

Please see also Chapter 21.5 of the FreeBSD Handbook for configuration details.
 
Zurück
Oben