niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » NetBSD
VIA VT6105 on NetBSD 2.0.2
Post new topic   Reply to topic Page 1 of 2 [25 Posts] View previous topic :: View next topic
Goto page:  1, 2 Next
Author Message
Joel Reicher
*nix forums beginner


Joined: 15 Nov 2005
Posts: 29

PostPosted: Mon Dec 26, 2005 12:30 pm    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with quote

"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

PostPosted: Mon Dec 26, 2005 2:22 pm    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with quote

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

PostPosted: Tue Dec 27, 2005 1:17 am    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with quote

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

PostPosted: Tue Dec 27, 2005 12:19 pm    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with quote

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

PostPosted: Tue Dec 27, 2005 2:46 pm    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with quote

Wow! My first own-compiled NetBSD kernel works! At least, it boots! Very Happy
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

PostPosted: Tue Dec 27, 2005 11:02 pm    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with quote

"Alberto" <santini.alberto@gmail.com> writes:

Quote:
Wow! My first own-compiled NetBSD kernel works! At least, it boots! Very Happy
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

PostPosted: Wed Dec 28, 2005 12:15 am    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with quote

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?

Quote:

Cheers,

- Joel

bye and thanks!
Back to top
Alberto
*nix forums beginner


Joined: 10 Mar 2005
Posts: 45

PostPosted: Wed Dec 28, 2005 1:01 pm    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with 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?

bye!
Back to top
Joel Reicher
*nix forums beginner


Joined: 15 Nov 2005
Posts: 29

PostPosted: Fri Dec 30, 2005 1:11 am    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with quote

"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

PostPosted: Fri Dec 30, 2005 8:20 pm    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with 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?

bye!
Back to top
Joel Reicher
*nix forums beginner


Joined: 15 Nov 2005
Posts: 29

PostPosted: Fri Dec 30, 2005 11:58 pm    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with quote

"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. Sad 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

PostPosted: Sat Dec 31, 2005 8:23 am    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with 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.

Bye!
Back to top
Joel Reicher
*nix forums beginner


Joined: 15 Nov 2005
Posts: 29

PostPosted: Sun Jan 01, 2006 1:08 am    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with quote

"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

PostPosted: Mon Jan 02, 2006 11:35 am    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with quote

thanks joel.. i'll try asap Smile
Back to top
Alberto
*nix forums beginner


Joined: 10 Mar 2005
Posts: 45

PostPosted: Mon Jan 02, 2006 8:51 pm    Post subject: Re: VIA VT6105 on NetBSD 2.0.2 Reply with quote

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 Very Happy
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 2 [25 Posts] Goto page:  1, 2 Next
View previous topic :: View next topic
The time now is Tue Jan 06, 2009 3:43 pm | All times are GMT
navigation Forum index » *nix » BSD » NetBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Disk Controller Problem of SiS 5571 chipset in NetBSD ??? Susan NetBSD 0 Wed Jul 12, 2006 4:17 pm
No new posts Which NetBSD version for SiS5571 chipset(Ultra DMA mo... Susan NetBSD 0 Wed Jul 12, 2006 2:15 pm
No new posts PATCH: Re: Postfix -2.3-20060604 on NetBSD 3.0 Leandro Santi Postfix 0 Wed Jun 14, 2006 2:28 pm
No new posts Postfix -2.3-20060604 on NetBSD 3.0 Larry Vaden Postfix 2 Wed Jun 14, 2006 1:45 pm
No new posts 5.8.8 lib/warnings hangs on NetBSD 3.1-stable? Ancient_Hacker Perl 0 Tue Jun 13, 2006 4:32 pm

Debt Consolidation | Myspace Proxy | Auto Loan | Remortgages | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3503s ][ Queries: 16 (0.2340s) ][ GZIP on - Debug on ]