| Author |
Message |
Joel Reicher *nix forums beginner
Joined: 15 Nov 2005
Posts: 29
|
Posted: Mon Dec 26, 2005 12:30 pm Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
"Alberto" <santini.alberto@gmail.com> writes:
| Quote: | From this page (http://www.netbsd.org/Hardware/pci.html) i can read
that only Rhine (VT3043), Rhine-II (VT86C100A) and VT612{0,1,2} are
supported through vr(4) and vge(4). Nothing is said about VIA VT6105
(Rhine-III) 10/100 Ethernet card. Is there any way to make it working?
dmesg says:
vr0 at pci0 dev 11 function 0: VIA VT6105 (Rhine-III) 10/100 Ethernet
: unable to map device registers
NetBSD kernel is:
NetBSD 2.0.2 GENERIC
|
The card is supported, but I'm guessing you have a conflict somewhere
with your BIOS, kernel, or perhaps even NIC settings.
I can't guess what things are configurable on your BIOS or card, so
the only thing I can suggest is compiling a custom kernel commenting
out the drivers for hardware you don't have.
Cheers,
- Joel |
|
| Back to top |
|
 |
Alberto *nix forums beginner
Joined: 10 Mar 2005
Posts: 45
|
Posted: Mon Dec 26, 2005 2:22 pm Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
Joel Reicher wrote:
| Quote: | The card is supported, but I'm guessing you have a conflict somewhere
with your BIOS, kernel, or perhaps even NIC settings.
I can't guess what things are configurable on your BIOS or card, so
the only thing I can suggest is compiling a custom kernel commenting
out the drivers for hardware you don't have.
Cheers,
- Joel
|
ok, the bios doesn't have (or doesn't seem to have) any option
regarding directly the ethernet card.. just played around with some
option, but nothing changed. I also upgraded to the latest release
(3.0) and even in this case nothing happened.. now i'm going to read
some guide about how to recompile my NetBSD kernel (i'm very
bsd-newbie, although i'm quite experienced with aix and linux)
let's try! :D
bye and thanks! |
|
| Back to top |
|
 |
Julio Uehara *nix forums beginner
Joined: 03 Apr 2005
Posts: 21
|
Posted: Tue Dec 27, 2005 1:17 am Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
Joel Reicher <joel@panacea.null.org> wrote:
| Quote: | "Alberto" <santini.alberto@gmail.com> writes:
From this page (http://www.netbsd.org/Hardware/pci.html) i can read
that only Rhine (VT3043), Rhine-II (VT86C100A) and VT612{0,1,2} are
supported through vr(4) and vge(4). Nothing is said about VIA VT6105
(Rhine-III) 10/100 Ethernet card. Is there any way to make it working?
dmesg says:
vr0 at pci0 dev 11 function 0: VIA VT6105 (Rhine-III) 10/100 Ethernet
: unable to map device registers
NetBSD kernel is:
NetBSD 2.0.2 GENERIC
The card is supported, but I'm guessing you have a conflict somewhere
with your BIOS, kernel, or perhaps even NIC settings.
I can't guess what things are configurable on your BIOS or card, so
the only thing I can suggest is compiling a custom kernel commenting
out the drivers for hardware you don't have.
Cheers,
- Joel
|
Have Rhine-II and Rhine-III working on a NetBSD-2.1 box. Going to 2.1 or
3.0 might be another solution.
-- Julio |
|
| Back to top |
|
 |
Alberto *nix forums beginner
Joined: 10 Mar 2005
Posts: 45
|
Posted: Tue Dec 27, 2005 12:19 pm Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
| Quote: | Have Rhine-II and Rhine-III working on a NetBSD-2.1 box. Going to 2.1 or
3.0 might be another solution.
|
i upgraded yesterday to 3.0 but still didn't worked...
now... this is what i've done tonight:
1) downloaded latest stable kernel sources
2) configured my own kernel (helped by dmesg)
3) compiled it
4) put it in /netbsd
5) rebooted
what happen is that my pc reboots just after the "sum"
(XXXXXX+YYYYYYY+ZZZZZZ=WWWWWW) that you can see on your display after
pressing "enter" at the boot prompt ... yeah.. there must be something
wrong with my new kernel... i read the config file again but wasn't
able to find out anything... any idea?
thanks! |
|
| Back to top |
|
 |
Alberto *nix forums beginner
Joined: 10 Mar 2005
Posts: 45
|
Posted: Tue Dec 27, 2005 2:46 pm Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
Wow! My first own-compiled NetBSD kernel works! At least, it boots!
Ok, regarding to vr0, the ethernet device, the error changes from
: unable to map device registers (GENERIC kernel's error)
to
vr0: couldn't map interrupt (MY kernel's error)
any suggestion? |
|
| Back to top |
|
 |
Joel Reicher *nix forums beginner
Joined: 15 Nov 2005
Posts: 29
|
Posted: Tue Dec 27, 2005 11:02 pm Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
"Alberto" <santini.alberto@gmail.com> writes:
| Quote: | Wow! My first own-compiled NetBSD kernel works! At least, it boots!
Ok, regarding to vr0, the ethernet device, the error changes from
: unable to map device registers (GENERIC kernel's error)
to
vr0: couldn't map interrupt (MY kernel's error)
any suggestion?
|
I'm guessing what you did was replaced the question marks with actual
numbers for the device registers in the kernel config, right? That's
good because it'll make this easier to diagnose and fix.
Look through the output of dmesg and see if any other device is
already using the interrupt you configured vr0 to use in your kernel.
Cheers,
- Joel |
|
| Back to top |
|
 |
Alberto *nix forums beginner
Joined: 10 Mar 2005
Posts: 45
|
Posted: Wed Dec 28, 2005 12:15 am Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
| Quote: | I'm guessing what you did was replaced the question marks with actual
numbers for the device registers in the kernel config, right? That's
good because it'll make this easier to diagnose and fix.
|
yes, that's right ;)
| Quote: | Look through the output of dmesg and see if any other device is
already using the interrupt you configured vr0 to use in your kernel.
|
i guess you mean another one using "pci0 dev 11" in my case.. ok, i'll
do it asap and post again... do you think that phisically changing
ethernet card's pci slot could help?
bye and thanks! |
|
| Back to top |
|
 |
Alberto *nix forums beginner
Joined: 10 Mar 2005
Posts: 45
|
Posted: Wed Dec 28, 2005 1:01 pm Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
Here is anything attached to pci0:
pchb0 at pci0 dev 0 function 0
ppb0 at pci0 dev 1 function 0
pcib0 at pci0 dev 4 function 0
viaide0 at pci0 dev 4 function 1
uhci0 at pci0 dev 4 function 2
hhci1 at pci0 dev 4 function 3
pchb1 at pci0 dev 4 function 4
eap0 at pci0 dev 9 function 0
ohci0 at pci0 dev 10 function 0
ohci1 at pci0 dev 10 function 1
ohci2 at pci0 dev 10 function 2
ehci0 at pci0 dev 10 function 3
vr0 at pci0 dev 11 function 0
anything that can be conflicting, in your opinion?
bye! |
|
| Back to top |
|
 |
Joel Reicher *nix forums beginner
Joined: 15 Nov 2005
Posts: 29
|
Posted: Fri Dec 30, 2005 1:11 am Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
"Alberto" <santini.alberto@gmail.com> writes:
| Quote: | Here is anything attached to pci0:
pchb0 at pci0 dev 0 function 0
ppb0 at pci0 dev 1 function 0
pcib0 at pci0 dev 4 function 0
viaide0 at pci0 dev 4 function 1
uhci0 at pci0 dev 4 function 2
hhci1 at pci0 dev 4 function 3
pchb1 at pci0 dev 4 function 4
eap0 at pci0 dev 9 function 0
ohci0 at pci0 dev 10 function 0
ohci1 at pci0 dev 10 function 1
ohci2 at pci0 dev 10 function 2
ehci0 at pci0 dev 10 function 3
vr0 at pci0 dev 11 function 0
anything that can be conflicting, in your opinion?
|
You said before that the failure was on trying to map the
interrupt. This extract of the dmesg output doesn't show the interrupt
allocations. You're looking for things that say irq something.
Cheers,
- Joel |
|
| Back to top |
|
 |
Alberto *nix forums beginner
Joined: 10 Mar 2005
Posts: 45
|
Posted: Fri Dec 30, 2005 8:20 pm Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
thanks for interesting Joel.. here is the output of "dmesg | grep -i
irq":
viaide0: primary channel interrupting at irq 14
viaide0: secondary channel interrupting at irq 15
uhci0: interrupting at irq 5
uhci1: interrupting at irq 5
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0: using irq 1 for kbd slot
pckbc0: using irq 12 for aux slot
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
anything useful?
bye! |
|
| Back to top |
|
 |
Joel Reicher *nix forums beginner
Joined: 15 Nov 2005
Posts: 29
|
Posted: Fri Dec 30, 2005 11:58 pm Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
"Alberto" <santini.alberto@gmail.com> writes:
| Quote: | thanks for interesting Joel.. here is the output of "dmesg | grep -i
irq":
viaide0: primary channel interrupting at irq 14
viaide0: secondary channel interrupting at irq 15
uhci0: interrupting at irq 5
uhci1: interrupting at irq 5
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0: using irq 1 for kbd slot
pckbc0: using irq 12 for aux slot
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
anything useful?
|
Unfortunately not. That all looks quite normal. What does your
kernel config say for vr, by the way? Did you hardcode an irq?
Cheers,
- Joel |
|
| Back to top |
|
 |
Alberto *nix forums beginner
Joined: 10 Mar 2005
Posts: 45
|
Posted: Sat Dec 31, 2005 8:23 am Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
My kernel config says:
mainbus0 at root
pci0 at mainbus0 bus 0
vr0 at pci0 dev 11 function 0
no reference about IRQs.
I have this machine quite far from here... but if you think it would
help i'll change netcard's pci slot and see what dmesg will say,
booting with GENERIC.
Bye! |
|
| Back to top |
|
 |
Joel Reicher *nix forums beginner
Joined: 15 Nov 2005
Posts: 29
|
Posted: Sun Jan 01, 2006 1:08 am Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
"Alberto" <santini.alberto@gmail.com> writes:
| Quote: | My kernel config says:
mainbus0 at root
pci0 at mainbus0 bus 0
vr0 at pci0 dev 11 function 0
no reference about IRQs.
I have this machine quite far from here... but if you think it would
help i'll change netcard's pci slot and see what dmesg will say,
booting with GENERIC.
|
My only other suggestion is to check in the BIOS setup that the IRQ
allocations for the PCI slots are OK, but that requires going to the
computer as well.
Good luck!
Cheers,
- Joel |
|
| Back to top |
|
 |
Alberto *nix forums beginner
Joined: 10 Mar 2005
Posts: 45
|
Posted: Mon Jan 02, 2006 11:35 am Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
thanks joel.. i'll try asap  |
|
| Back to top |
|
 |
Alberto *nix forums beginner
Joined: 10 Mar 2005
Posts: 45
|
Posted: Mon Jan 02, 2006 8:51 pm Post subject:
Re: VIA VT6105 on NetBSD 2.0.2
|
|
|
ok, prepare yourself... this is what i did after trying for hours
without any result:
1) cd /usr/src/sys/dev/pci
2) study something about pci
3) vi if_vr.c
4) change it:
/*
** Alberto is bypassing this... what will happen??
**
** if (pci_intr_map(pa, &intrhandle)) {
** printf("%s: couldn't map interrupt\n",
** sc->vr_dev.dv_xname);
** return;
** }
*/
/*
** Now, to complete the trick...
*/
intrhandle = pa->pa_intrline;
5) recompile
6) reboot
7) ifconfig vr0 192.168.0.2 ; ifconfig -a
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:40:f4:8e:06:8c
media: Ethernet none (none)
inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33192
inet 127.0.0.1 netmask 0xff000000
8) route add default 192.168.0.1 ; route show
Routing tables
Internet:
Destination Gateway Flags
0.0.0.0/8 link#1 U
default 192.168.0.1 UG
loopback 127.0.0.1 UGR
localhost 127.0.0.1 UH
9) ping 192.168.0.1
It says... "No route to host"
I say... "Argh!"
ok, now there is only this *little* issue to solve! Any suggestion?
p.s. Happy new year!
p.p.s. Brute force sometimes wins  |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|