From owner-freebsd-questions Tue Jan 2 23:53:23 2001 From owner-freebsd-questions@FreeBSD.ORG Tue Jan 2 23:53:20 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mjollnir.rocklines.oyeindia.com (unknown [202.169.133.50]) by hub.freebsd.org (Postfix) with ESMTP id 3496437B400 for ; Tue, 2 Jan 2001 23:53:14 -0800 (PST) Received: (from suresh@localhost) by mjollnir.rocklines.oyeindia.com (8.11.2/8.11.2/mjollnir-1.0) id f037mES14808 for freebsd-questions@freebsd.org; Wed, 3 Jan 2001 13:18:14 +0530 Date: Wed, 3 Jan 2001 13:18:14 +0530 From: Suresh Ramasubramanian To: FreeBSD Questions Subject: HELP: Via-Rhine card - vr0 attach returned 6 Message-ID: <20010103131814.A14763@oyeindia.com> Mail-Followup-To: FreeBSD Questions Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: Hopelessly Disorganized X-Operating-System: Linux mjollnir.rocklines.oyeindia.com 2.2.18 i686 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi folks This is a standard freebsd 4.1 box ... and am not able to config my network card. The card is a Dlink 530TX card (basically RTL8139). FreeBSD 4.1 detects it as a via-rhine though - and gives me vr0: at device 13.0 on pci1 vr0: couldn't map ports/memory device_probe_and_attach: vr0 attach returned 6 I searched deja - got 6 hits, 4 of which were the same question, two others totally unrelated For what its worth, I (twice) recompiled the kernel with device vr0 (it had device vr) and device miibus (which was already there) as I saw on the freebsd hardware help page. No use :( Here's some info ... jotunheim# kldload /modules/if_rl.ko Jan 3 13:07:42 jotunheim /kernel: linker_file_sysinit "if_rl.ko" failed to register! 17 Jan 3 13:07:42 jotunheim /kernel: linker_file_sysinit "if_rl.ko" failed to register! 17 Jan 3 13:07:42 jotunheim /kernel: module_register: module rl/miibus already exists! Jan 3 13:07:42 jotunheim /kernel: module_register: module rl/miibus already exists! Jan 3 13:07:42 jotunheim /kernel: linker_file_sysinit "if_rl.ko" failed to register! 17 Jan 3 13:07:42 jotunheim /kernel: linker_file_sysinit "if_rl.ko" failed to register! 17 Jan 3 13:07:42 jotunheim /kernel: vr0: irq 5 at device 15.0 on pci0 Jan 3 13:07:42 jotunheim /kernel: vr0: irq 5 at device 15.0 on pci0 Jan 3 13:07:42 jotunheim /kernel: vr0: couldn't map ports/memory Jan 3 13:07:42 jotunheim /kernel: vr0: couldn't map ports/memory Jan 3 13:07:42 jotunheim /kernel: device_probe_and_attach: vr0 attach returned 6 However, the module _does_ get loaded ... jotunheim# kldstat Id Refs Address Size Name 1 4 0xc0100000 2801e4 kernel 2 1 0xc093d000 10000 linux.ko 8 1 0xc099a000 5000 if_rl.ko 9 1 0xc09a2000 9000 miibus.ko Here's part of my kernel config file - I recompiled it twice as per the freebsd hardware howto :( # PCI Ethernet NICs that use the common MII bus controller code. device miibus # MII bus support # this line was already there [one of the solutions to this in the # list archives was "add 'device miibus' to your kernel config file # and recompile] device rl # RealTek 8129/8139 # again, this line was already in the config file device vr0 # VIA Rhine, Rhine II # changed from the original 'device vr' and recompiled - per # http://people.freebsd.org/~wpaul/VIA/ The version ids of these drivers (standard ones from 4.1-RELEASE) are $FreeBSD: src/sys/pci/if_vr.c,v 1.26.2.3 2000/07/17 21:24:39 archie Exp$ $FreeBSD: src/sys/pci/if_rl.c,v 1.38.2.4 2000/07/17 21:24:39 archie Exp$ tia --suresh -- Suresh Ramasubramanian <--> mallet efn org EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message