From owner-freebsd-hardware@FreeBSD.ORG Mon Aug 14 09:22:44 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A88F16A4DE for ; Mon, 14 Aug 2006 09:22:44 +0000 (UTC) (envelope-from dinesh@alphaque.com) Received: from ns2.alphaque.com (ns2.alphaque.com [202.75.47.153]) by mx1.FreeBSD.org (Postfix) with SMTP id 7F97C43D46 for ; Mon, 14 Aug 2006 09:22:41 +0000 (GMT) (envelope-from dinesh@alphaque.com) Received: (qmail 71035 invoked by uid 0); 14 Aug 2006 09:22:39 -0000 Received: from lucifer.net-gw.com (HELO prophet.alphaque.com) (202.75.47.153) by lucifer.net-gw.com with SMTP; 14 Aug 2006 09:22:39 -0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by prophet.alphaque.com (8.13.6/8.13.4) with ESMTP id k7E9MNv8032973; Mon, 14 Aug 2006 17:22:23 +0800 (MYT) (envelope-from dinesh@alphaque.com) Message-ID: <44E040CF.9080205@alphaque.com> Date: Mon, 14 Aug 2006 17:22:23 +0800 From: Dinesh Nair User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8b) Gecko/20060213 MIME-Version: 1.0 To: freebsd-hardware@freebsd.org, freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Unable to get RealTek 8139C+ to work with re(4) under FreeBSD 6.1 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 09:22:44 -0000 i've got a single board computer with VIA C3 Samuel 2, 256MB RAM and 4 onboard Realtek 8139C+ NICs. I'm attempting to get FreeBSD 6.1-STABLE working on them, but the realtek NICs just don't seem to want to work. booting up led to a kernel trap with the following, rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto re0: Ethernet address: 00:60:e0:e1:21:d7 re0: diagnostic failed, failed to receive packet in loopback mode re0: attach aborted due to hardware diag failure kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode fault virtual address = 0x74 fault code = supervisor read, page not present instruction pointer = 0x20:0xc0625d45 stack pointer = 0x28:0xc2420a50 frame pointer = 0x28:0xc2420a54 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 0 (swapper) trap number = 12 panic: page fault Uptime: 1s looking through /usr/src/sys/dev/re/if_re.c, and reading this thread, http://lists.freebsd.org/pipermail/freebsd-current/2004-June/029373.html, i've patched if_re.c to skip the re_diag() routine if the NIC is not a Realtek 8169. the patch follows, ----- CUT HERE ----- --- if_re.c.orig Mon Aug 14 14:43:05 2006 +++ if_re.c Mon Aug 14 14:42:16 2006 @@ -1235,12 +1235,14 @@ ether_ifattach(ifp, eaddr); /* Perform hardware diagnostic. */ - error = re_diag(sc); + if (sc->rl_type == RL_8169) { + error = re_diag(sc); - if (error) { - device_printf(dev, "attach aborted due to hardware diag failure\n"); - ether_ifdetach(ifp); - goto fail; + if (error) { + device_printf(dev, "attach aborted due to hardware diag failure\n"); + ether_ifdetach(ifp); + goto fail; + } } /* Hook interrupt last to avoid having to lock softc */ ----- CUT HERE ----- with the patch applied, the kernel trap goes away and the box boots up. however, though the link light comes on, the device is effectively unuseable for ethernet traffic. nothing seems to go in or out of the device with ping and other tcp/udp traffic failing. note the media state and the missing status line from the ifconfig output. any clue as to what's happenning here or to pointers/patches to fix this would be much appreciated. i've got the box sitting beside me, so testing patches et al would be highly possible. dmesg, ifconfig and pciconf outputs are as follows: re0: port 0xe300-0xe3ff mem 0xed800000-0xed8000ff irq 5 at device 16.0 on pci0 miibus0: on re0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto re0: Ethernet address: 00:60:e0:e1:21:d7 re1: port 0xe400-0xe4ff mem 0xed801000-0xed8010ff irq 12 at device 17.0 on pci0 miibus1: on re1 rlphy1: on miibus1 rlphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto re1: Ethernet address: 00:60:e0:e1:21:d6 re2: port 0xe500-0xe5ff mem 0xed802000-0xed8020ff irq 10 at device 18.0 on pci0 miibus2: on re2 rlphy2: on miibus2 rlphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto re2: Ethernet address: 00:60:e0:e1:21:d5 re3: port 0xe600-0xe6ff mem 0xed803000-0xed8030ff irq 11 at device 19.0 on pci0 miibus3: on re3 rlphy3: on miibus3 rlphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto re3: Ethernet address: 00:60:e0:e1:21:d4 # ifconfig -a re0: flags=8843 mtu 1500 options=18 inet 192.168.1.141 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:60:e0:e1:21:d7 media: Ethernet autoselect (none) re1: flags=8843 mtu 1500 options=18 inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 ether 00:60:e0:e1:21:d6 media: Ethernet autoselect (none) re2: flags=8802 mtu 1500 options=18 ether 00:60:e0:e1:21:d5 media: Ethernet autoselect (none) re3: flags=8802 mtu 1500 options=18 ether 00:60:e0:e1:21:d4 media: Ethernet autoselect (none) # pciconf -l -v re0@pci0:16:0: class=0x020000 card=0x813910ec chip=0x813910ec rev=0x20 hdr=0x00 class = network subclass = ethernet re1@pci0:17:0: class=0x020000 card=0x813910ec chip=0x813910ec rev=0x20 hdr=0x00 class = network subclass = ethernet re2@pci0:18:0: class=0x020000 card=0x813910ec chip=0x813910ec rev=0x20 hdr=0x00 class = network subclass = ethernet re3@pci0:19:0: class=0x020000 card=0x813910ec chip=0x813910ec rev=0x20 hdr=0x00 class = network subclass = ethernet -- Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.openmalaysiablog.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+ From owner-freebsd-hardware@FreeBSD.ORG Mon Aug 14 10:38:23 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 142E016A4DD for ; Mon, 14 Aug 2006 10:38:23 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37D4243D5D for ; Mon, 14 Aug 2006 10:38:19 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by nz-out-0102.google.com with SMTP id 13so331701nzn for ; Mon, 14 Aug 2006 03:38:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=VnwN8kTWpzeJbnnj/cZ70W4TIXjJJaW7jilkkHM/lTii0g7d/CFWpZAKuNXEvIn36l3iAQgNCpH2YdO8/Oe0x05haVTUstrRETVprHUF84k1mcohnGIu6Cw6oPBbMCyYLzdbTcvbVRPUU0gaFh549SAp3pCpRXzq/mm2uAVbso4= Received: by 10.64.204.3 with SMTP id b3mr6621135qbg; Mon, 14 Aug 2006 03:38:18 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.gmail.com with ESMTP id 34sm111867nza.2006.08.14.03.38.16; Mon, 14 Aug 2006 03:38:18 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id k7EAdmcV038520 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Aug 2006 19:39:48 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id k7EAdkGZ038519; Mon, 14 Aug 2006 19:39:46 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 14 Aug 2006 19:39:46 +0900 From: Pyun YongHyeon To: Dinesh Nair Message-ID: <20060814103946.GC36904@cdnetworks.co.kr> References: <44E040CF.9080205@alphaque.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44E040CF.9080205@alphaque.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Unable to get RealTek 8139C+ to work with re(4) under FreeBSD 6.1 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 10:38:23 -0000 On Mon, Aug 14, 2006 at 05:22:23PM +0800, Dinesh Nair wrote: > > i've got a single board computer with VIA C3 Samuel 2, 256MB RAM and 4 > onboard Realtek 8139C+ NICs. I'm attempting to get FreeBSD 6.1-STABLE > working on them, but the realtek NICs just don't seem to want to work. > booting up led to a kernel trap with the following, > > rlphy0: on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > re0: Ethernet address: 00:60:e0:e1:21:d7 > re0: diagnostic failed, failed to receive packet in loopback mode > re0: attach aborted due to hardware diag failure > kernel trap 12 with interrupts disabled > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x74 > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc0625d45 > stack pointer = 0x28:0xc2420a50 > frame pointer = 0x28:0xc2420a54 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = resume, IOPL = 0 > current process = 0 (swapper) > trap number = 12 > panic: page fault > Uptime: 1s > > looking through /usr/src/sys/dev/re/if_re.c, and reading this thread, > http://lists.freebsd.org/pipermail/freebsd-current/2004-June/029373.html, > i've patched if_re.c to skip the re_diag() routine if the NIC is not a > Realtek 8169. the patch follows, > > ----- CUT HERE ----- > --- if_re.c.orig Mon Aug 14 14:43:05 2006 > +++ if_re.c Mon Aug 14 14:42:16 2006 > @@ -1235,12 +1235,14 @@ > ether_ifattach(ifp, eaddr); > > /* Perform hardware diagnostic. */ > - error = re_diag(sc); > + if (sc->rl_type == RL_8169) { > + error = re_diag(sc); > > - if (error) { > - device_printf(dev, "attach aborted due to hardware diag > failure\n"); > - ether_ifdetach(ifp); > - goto fail; > + if (error) { > + device_printf(dev, "attach aborted due to hardware > diag failure\n"); > + ether_ifdetach(ifp); > + goto fail; > + } > } > > /* Hook interrupt last to avoid having to lock softc */ > ----- CUT HERE ----- > > with the patch applied, the kernel trap goes away and the box boots up. > however, though the link light comes on, the device is effectively > unuseable for ethernet traffic. nothing seems to go in or out of the device > with ping and other tcp/udp traffic failing. note the media state and the > missing status line from the ifconfig output. > > any clue as to what's happenning here or to pointers/patches to fix this > would be much appreciated. i've got the box sitting beside me, so testing > patches et al would be highly possible. > Recent changes from wpaul disabled re_diag() routine by default so it wouldn't trigger the panic you've seen anymore. However I've seen one user reported re(4) breakage on stable. http://lists.freebsd.org/pipermail/freebsd-stable/2006-August/027356.html Please try latest stable and show your results. If it still does not work please let us know. I don't have 8139C+ based NICs so it would be difficult for me to fix the issue. :-( -- Regards, Pyun YongHyeon From owner-freebsd-hardware@FreeBSD.ORG Mon Aug 14 10:56:18 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5942916A4DE for ; Mon, 14 Aug 2006 10:56:18 +0000 (UTC) (envelope-from dinesh@alphaque.com) Received: from ns2.alphaque.com (ns2.alphaque.com [202.75.47.153]) by mx1.FreeBSD.org (Postfix) with SMTP id 092FD43D58 for ; Mon, 14 Aug 2006 10:56:16 +0000 (GMT) (envelope-from dinesh@alphaque.com) Received: (qmail 72865 invoked by uid 0); 14 Aug 2006 10:56:15 -0000 Received: from lucifer.net-gw.com (HELO prophet.alphaque.com) (202.75.47.153) by lucifer.net-gw.com with SMTP; 14 Aug 2006 10:56:15 -0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by prophet.alphaque.com (8.13.6/8.13.4) with ESMTP id k7EAp5Fr054646; Mon, 14 Aug 2006 18:51:05 +0800 (MYT) (envelope-from dinesh@alphaque.com) Message-ID: <44E05598.20004@alphaque.com> Date: Mon, 14 Aug 2006 18:51:04 +0800 From: Dinesh Nair User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8b) Gecko/20060213 MIME-Version: 1.0 To: freebsd-hardware@freebsd.org References: <44E040CF.9080205@alphaque.com> In-Reply-To: <44E040CF.9080205@alphaque.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Unable to get RealTek 8139C+ to work with re(4) under FreeBSD 6.1 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 10:56:18 -0000 On 08/14/06 17:22 Dinesh Nair said the following: > > i've got a single board computer with VIA C3 Samuel 2, 256MB RAM and 4 > onboard Realtek 8139C+ NICs. I'm attempting to get FreeBSD 6.1-STABLE > working on them, but the realtek NICs just don't seem to want to work. > booting up led to a kernel trap with the following, based on a pointer from luigi rizzo, i disabled the check for the 8139C+ in /usr/src/sys/pci/if_rl.c to force the rl driver to bind to the card, and that seemed to do the trick in getting it to work. ifconfig still shows that the media is set to 'none' and a missing status line, but the box is pingable at the least. -- Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.openmalaysiablog.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+ From owner-freebsd-hardware@FreeBSD.ORG Mon Aug 14 10:56:20 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E781216A50C for ; Mon, 14 Aug 2006 10:56:20 +0000 (UTC) (envelope-from dinesh@alphaque.com) Received: from ns2.alphaque.com (ns2.alphaque.com [202.75.47.153]) by mx1.FreeBSD.org (Postfix) with SMTP id 26D4A43D49 for ; Mon, 14 Aug 2006 10:56:18 +0000 (GMT) (envelope-from dinesh@alphaque.com) Received: (qmail 72874 invoked by uid 0); 14 Aug 2006 10:56:17 -0000 Received: from lucifer.net-gw.com (HELO prophet.alphaque.com) (202.75.47.153) by lucifer.net-gw.com with SMTP; 14 Aug 2006 10:56:17 -0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by prophet.alphaque.com (8.13.6/8.13.4) with ESMTP id k7EAtwSW055867; Mon, 14 Aug 2006 18:55:59 +0800 (MYT) (envelope-from dinesh@alphaque.com) Message-ID: <44E056BE.4080104@alphaque.com> Date: Mon, 14 Aug 2006 18:55:58 +0800 From: Dinesh Nair User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8b) Gecko/20060213 MIME-Version: 1.0 To: pyunyh@gmail.com References: <44E040CF.9080205@alphaque.com> <20060814103946.GC36904@cdnetworks.co.kr> In-Reply-To: <20060814103946.GC36904@cdnetworks.co.kr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Unable to get RealTek 8139C+ to work with re(4) under FreeBSD 6.1 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 10:56:21 -0000 On 08/14/06 18:39 Pyun YongHyeon said the following: > Recent changes from wpaul disabled re_diag() routine by default so it i disabled re_diag() in /usr/src/sys/dev/if_re.c, and that caused the kernel trap to go away, as per my original email. also, see my followup email (to myself) in which i disabled the check for the 8139C+, forcing it to be recognized by the rl driver and this seems to make it work. > However I've seen one user reported re(4) breakage on stable. > http://lists.freebsd.org/pipermail/freebsd-stable/2006-August/027356.html that seems to be exactly the problem i initially observed as well. > Please try latest stable and show your results. If it still does not > work please let us know. I don't have 8139C+ based NICs so it would be i am on a recent stable, circa two weeks ago as well. have there been significant changes to the re driver since ? -- Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.openmalaysiablog.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+ From owner-freebsd-hardware@FreeBSD.ORG Mon Aug 14 11:08:41 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06CDA16A4E6 for ; Mon, 14 Aug 2006 11:08:41 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91E8543D76 for ; Mon, 14 Aug 2006 11:08:30 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by py-out-1112.google.com with SMTP id c59so1196013pyc for ; Mon, 14 Aug 2006 04:08:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=fT2roDkjDiJSnK3jGNsvtmEYKJtXh6LIDHjkIsqW4jmOMWjiCK+BFb59lX/i9WCufRg2R4wAjOSHWIQt+j0oBgXUIqIdghpQFt9HgUORQV4FdrFNe2t9UL5O4pHtCosEtuMm1garjh9dpryJFNE2JpQsWwTAR9AK3MkCpXTOiRs= Received: by 10.35.108.12 with SMTP id k12mr13049650pym; Mon, 14 Aug 2006 04:08:29 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.gmail.com with ESMTP id 38sm848227nza.2006.08.14.04.08.27; Mon, 14 Aug 2006 04:08:29 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id k7EB9xLL038688 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Aug 2006 20:09:59 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id k7EB9x0c038687; Mon, 14 Aug 2006 20:09:59 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 14 Aug 2006 20:09:59 +0900 From: Pyun YongHyeon To: Dinesh Nair Message-ID: <20060814110959.GD36904@cdnetworks.co.kr> References: <44E040CF.9080205@alphaque.com> <20060814103946.GC36904@cdnetworks.co.kr> <44E056BE.4080104@alphaque.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44E056BE.4080104@alphaque.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Unable to get RealTek 8139C+ to work with re(4) under FreeBSD 6.1 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 11:08:41 -0000 On Mon, Aug 14, 2006 at 06:55:58PM +0800, Dinesh Nair wrote: > > On 08/14/06 18:39 Pyun YongHyeon said the following: > >Recent changes from wpaul disabled re_diag() routine by default so it > > i disabled re_diag() in /usr/src/sys/dev/if_re.c, and that caused the > kernel trap to go away, as per my original email. also, see my followup > email (to myself) in which i disabled the check for the 8139C+, forcing it > to be recognized by the rl driver and this seems to make it work. > AFAIK 8139C+ provides 8139 compatible mode which doesn't use descriptor based transfer mechanism. As you know this mode really sucks and need much more CPU power to saturate the link. So I don't think it's good idea to make rl(4) serve 8139C+. > >However I've seen one user reported re(4) breakage on stable. > >http://lists.freebsd.org/pipermail/freebsd-stable/2006-August/027356.html > > that seems to be exactly the problem i initially observed as well. > > >Please try latest stable and show your results. If it still does not > >work please let us know. I don't have 8139C+ based NICs so it would be > > i am on a recent stable, circa two weeks ago as well. have there been > significant changes to the re driver since ? > Yes. What `ident /boot/kernel/if_re.ko` shows? -- Regards, Pyun YongHyeon From owner-freebsd-hardware@FreeBSD.ORG Mon Aug 14 12:06:23 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8F2416A4E1 for ; Mon, 14 Aug 2006 12:06:23 +0000 (UTC) (envelope-from dinesh@alphaque.com) Received: from ns2.alphaque.com (ns2.alphaque.com [202.75.47.153]) by mx1.FreeBSD.org (Postfix) with SMTP id 99BCF43D6A for ; Mon, 14 Aug 2006 12:06:18 +0000 (GMT) (envelope-from dinesh@alphaque.com) Received: (qmail 74391 invoked by uid 0); 14 Aug 2006 12:06:17 -0000 Received: from lucifer.net-gw.com (HELO prophet.alphaque.com) (202.75.47.153) by lucifer.net-gw.com with SMTP; 14 Aug 2006 12:06:17 -0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by prophet.alphaque.com (8.13.6/8.13.4) with ESMTP id k7EC3aS7072508; Mon, 14 Aug 2006 20:03:36 +0800 (MYT) (envelope-from dinesh@alphaque.com) Message-ID: <44E06697.4090507@alphaque.com> Date: Mon, 14 Aug 2006 20:03:35 +0800 From: Dinesh Nair User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8b) Gecko/20060213 MIME-Version: 1.0 To: pyunyh@gmail.com References: <44E040CF.9080205@alphaque.com> <20060814103946.GC36904@cdnetworks.co.kr> <44E056BE.4080104@alphaque.com> <20060814110959.GD36904@cdnetworks.co.kr> In-Reply-To: <20060814110959.GD36904@cdnetworks.co.kr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Unable to get RealTek 8139C+ to work with re(4) under FreeBSD 6.1 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 12:06:23 -0000 On 08/14/06 19:09 Pyun YongHyeon said the following: > really sucks and need much more CPU power to saturate the link. > So I don't think it's good idea to make rl(4) serve 8139C+. perhaps, but re(4) doesn't work at the moment on this chipset, and i'd rather have something which works, albeit a little poorly, than something which doesn't. > Yes. What `ident /boot/kernel/if_re.ko` shows? $FreeBSD: src/sys/dev/re/if_re.c,v 1.46.2.19 2006/08/07 02:38:07 yongari Exp $ and the latest if_rlreg.c which i pulled down shows, $FreeBSD: src/sys/pci/if_rlreg.h,v 1.51.2.7 2006/08/01 17:36:50 wpaul Exp $ i'm not using the loadable modules though, and am building the re(4) device into the kernel directly. the symptoms remain the same, i.e. IP traffic doesn't flow at all, though 'arp -an' does show the ethernet address of the other box attempting to ping this. the OP at http://lists.freebsd.org/pipermail/freebsd-stable/2006-August/027356.html mentioned that it was working fine before breakage was introduced relatively recently (~ 2 weeks ago), and thus something's changed in the interim which is causing this to happen. -- Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.openmalaysiablog.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+ From owner-freebsd-hardware@FreeBSD.ORG Mon Aug 14 12:34:57 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70D3516A4DE; Mon, 14 Aug 2006 12:34:57 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA17B43D45; Mon, 14 Aug 2006 12:34:56 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id CAF492085; Mon, 14 Aug 2006 14:34:52 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on tim.des.no Received: from xps.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id B8CC42084; Mon, 14 Aug 2006 14:34:52 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id 9BF7533C24; Mon, 14 Aug 2006 14:34:52 +0200 (CEST) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Dinesh Nair References: <44E040CF.9080205@alphaque.com> <20060814103946.GC36904@cdnetworks.co.kr> <44E056BE.4080104@alphaque.com> <20060814110959.GD36904@cdnetworks.co.kr> <44E06697.4090507@alphaque.com> Date: Mon, 14 Aug 2006 14:34:52 +0200 In-Reply-To: <44E06697.4090507@alphaque.com> (Dinesh Nair's message of "Mon, 14 Aug 2006 20:03:35 +0800") Message-ID: <86fyfzv6kz.fsf@xps.des.no> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: pyunyh@gmail.com, freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Unable to get RealTek 8139C+ to work with re(4) under FreeBSD 6.1 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 12:34:57 -0000 Dinesh Nair writes: > the symptoms remain the same, i.e. IP traffic doesn't flow at all, > though 'arp -an' does show the ethernet address of the other box > attempting to ping this. 'tcpdump -n -e -i re0' shows nothing? have you tried disabling rx / tx checksum offloading? ('ifconfig re0 -rxcsum -txcsum') DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hardware@FreeBSD.ORG Mon Aug 14 12:41:32 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E905D16A4E0 for ; Mon, 14 Aug 2006 12:41:32 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1A1143D8F for ; Mon, 14 Aug 2006 12:41:02 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by nz-out-0102.google.com with SMTP id 13so350834nzn for ; Mon, 14 Aug 2006 05:41:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=DZi7dh/YfcV5IfcVAygtOQchUw411AhzyIra3X4OF7AMKCLa51eHuGlkaaWBbBHqFoZmvepD4TtjUsRYy8mV3pdb4PcraVHChwzTc7rS7jR4zGhVZ/kTNU4KoM1wMv08wjPAXYeEMXIiV9ytmGDeNqLFxNXsQPv/vGGpXfVf3w8= Received: by 10.65.240.17 with SMTP id s17mr6854832qbr; Mon, 14 Aug 2006 05:41:01 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.gmail.com with ESMTP id 20sm2071523nzp.2006.08.14.05.40.59; Mon, 14 Aug 2006 05:41:01 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id k7ECgXvm038978 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Aug 2006 21:42:33 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id k7ECgWba038977; Mon, 14 Aug 2006 21:42:32 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 14 Aug 2006 21:42:32 +0900 From: Pyun YongHyeon To: Dinesh Nair Message-ID: <20060814124232.GF36904@cdnetworks.co.kr> References: <44E040CF.9080205@alphaque.com> <20060814103946.GC36904@cdnetworks.co.kr> <44E056BE.4080104@alphaque.com> <20060814110959.GD36904@cdnetworks.co.kr> <44E06697.4090507@alphaque.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44E06697.4090507@alphaque.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Unable to get RealTek 8139C+ to work with re(4) under FreeBSD 6.1 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 12:41:33 -0000 On Mon, Aug 14, 2006 at 08:03:35PM +0800, Dinesh Nair wrote: > > > On 08/14/06 19:09 Pyun YongHyeon said the following: > >really sucks and need much more CPU power to saturate the link. > >So I don't think it's good idea to make rl(4) serve 8139C+. > > perhaps, but re(4) doesn't work at the moment on this chipset, and i'd > rather have something which works, albeit a little poorly, than something > which doesn't. > Ok. > >Yes. What `ident /boot/kernel/if_re.ko` shows? > > $FreeBSD: src/sys/dev/re/if_re.c,v 1.46.2.19 2006/08/07 02:38:07 yongari > Exp $ > > and the latest if_rlreg.c which i pulled down shows, > > $FreeBSD: src/sys/pci/if_rlreg.h,v 1.51.2.7 2006/08/01 17:36:50 wpaul Exp $ > > i'm not using the loadable modules though, and am building the re(4) device > into the kernel directly. > > the symptoms remain the same, i.e. IP traffic doesn't flow at all, though > 'arp -an' does show the ethernet address of the other box attempting to > ping this. > Ok, this is important thing. It means Rx part works as expected. Can you see tcpdump output on Tx side while ping command is in progress? > the OP at > http://lists.freebsd.org/pipermail/freebsd-stable/2006-August/027356.html > mentioned that it was working fine before breakage was introduced > relatively recently (~ 2 weeks ago), and thus something's changed in the > interim which is causing this to happen. > -- Regards, Pyun YongHyeon From owner-freebsd-hardware@FreeBSD.ORG Tue Aug 15 00:58:12 2006 Return-Path: X-Original-To: freebsd-hardware@FreeBSD.ORG Delivered-To: freebsd-hardware@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50D4816A4DD for ; Tue, 15 Aug 2006 00:58:12 +0000 (UTC) (envelope-from lists@hausro.de) Received: from mail3.netbeat.de (mail3.netbeat.de [83.243.58.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8639743D49 for ; Tue, 15 Aug 2006 00:58:11 +0000 (GMT) (envelope-from lists@hausro.de) Received: (qmail 16666 invoked from network); 15 Aug 2006 00:58:11 -0000 Received: from unknown (HELO Rage) (86.104.204.91) by mail3.netbeat.de with SMTP; 15 Aug 2006 00:58:11 -0000 Message-ID: <049d01c6c005$dfee6570$857ba8c0@Rage> From: "ANdrei" To: References: <200607201318.k6KDIOKH092991@lurza.secnetix.de> Date: Tue, 15 Aug 2006 03:57:17 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Cc: Subject: building an old-hardware server X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 00:58:12 -0000 been searching the archives and reading articles the whole day, but still want to get some opinions (sorry for the long post, I want to detail everything in one mail, hope someone fins the patience to read through it quickly and give some advice): am building a webserver, which will also do some basic file serving in the LAN and have a MySQL database running... nothing too fancy, but the budget is 0$, so only recycled HW can be used... of course I want it to run as fast as possible, but more important: reliable. Will put 6.1-Release on it. here is what I got: ASUS P2B-DS Dual Processor Slot1 motherboard with Adaptec SCSI (FAST, WIDE and Ultra) onboard 384MB PC-100 SDRAM 2xIntel PII 350MHz CPU (100MHz FSB) Teac 32x SCSI CDROM Panasonic 8x IDE CDROM Inno3D S3 Savage4 extreme 32MB AGP graphic card 3Com 3C905B-TX Fast Ethernet XL 10/100 NIC I cannot decide on the HDD: the board supports UDMA33 for IDE and Fast/Wide/Ultra for SCSI (but I have only fast/SCSI-2 HDD anyway). My options are: -one 15GB Maxtor IDE (or some 20GB Fujitsu IDE, but I had some of them fail, so I'd avoid them) with UDMA if I can get it for free (not 100%) -one or two 4.3GB Fujitsu IDE with UDMA -alot of small (around 1GB) IDE hard drives -a few identical SCSI-2 (10Mbps) 5400rpm hard drives, each 2GB -2 non-identical SCSI-2 7200rpm hard drives (1GB and 2GB) I think 4-6 disks fit in my case. As my processors are not so fast, I'd like to have fastest disk access with minimum CPU load (ideal case, right? :). What would get me best results: SCSI or IDE (will the IDE be faster than my 7200rpm or 5400rpm SCSI?). Should I consider doing software RAID, will I see any speed improvement? I expect around 10-20 users doing random things on this server, not too heavy though, no GUI for them. I was thinking about the 7200rpm SCSI drives for the system and root, a RAID for the home/database (minimum 2GB should be enough for this, SCSI or IDE?) and 4GB (or more) IDE for space/builds/ports/logs etc... Any suggestions are welcome, I have never tried to build such a "recycled" system from so many smaller harddrives, so this is my main dilemma. About the hardware I already have: would one 600MHz PIII be faster, on this board or another (choices are Gigabyte GA-BX2000 with Intel 440BX chipset, supports PC-133 RAM - or Fujitsu-Siemens D1107 - Intel 443BX 100Mhz bus)? I considered the 2x350MHz to be faster in SMP for the variety of tasks this system will do, and I can upgrade at some moment... And I also have SCSI support on this board. Is the RAM too much on the minimum side? Have little experience with SMP systems, but more SDRAMs are hard to find... Any issues with the S3 Savage4 AGP cards? They tend to be slow, but I think for this system this won't be the bottleneck, as the Mobo supports AGP2x and the card is 4x already... I have considered the NIC to be important here. I've read through hundreds of articles, and the 3C905B seems to be quite fast and low on CPU load. Other alternatives were Kingston KNE110TX (seems to have some bugs according to the dc man page), D-Link DFE-530TX (rhine based, also buggy according to man page AND D-Link="let it be" according to users), some Davicom DM9102AF based cards (seem ok, but more on the low quality end) and the "loved" RTL8139C/D ones (buggy, right?). I don't expect sustained heavy traffic, but peaks... Any feedback is welcome, on the list or on my email, as I am in a hurry with putting the machine to work and cannot take my time and test all possible configurations... ANdrei http://students.oamk.fi/~t6ruan00/ ------ Never argue with an idiot. They drag you down to their level then beat you with experience... From owner-freebsd-hardware@FreeBSD.ORG Tue Aug 15 02:17:45 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C3EA16A4EE for ; Tue, 15 Aug 2006 02:17:45 +0000 (UTC) (envelope-from ogautherot@vtr.net) Received: from vtr.cl (mail-a-out.cgp.vtr.net [200.83.2.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id B50E743D49 for ; Tue, 15 Aug 2006 02:17:44 +0000 (GMT) (envelope-from ogautherot@vtr.net) Received: from [192.168.5.4] (HELO av3.vtr.cl) by fe4.vtr.cl (CommuniGate Pro SMTP 5.0.9) with ESMTP id 15661089 for freebsd-hardware@freebsd.org; Mon, 14 Aug 2006 22:17:33 -0400 X-ASG-Debug-ID: 1155608252-336500380000-e7p9Ku X-Barracuda-URL: http://192.168.5.4:8000/cgi-bin/mark.cgi X-Barracuda-Connect: mxfe3.cgp.vtr.net[192.168.6.4] X-Barracuda-Start-Time: 1155608252 Received: from vtr.cl (mxfe3.cgp.vtr.net [192.168.6.4]) by av3.vtr.cl (Spam Firewall) with SMTP id CA9CB1A1C29 for ; Mon, 14 Aug 2006 22:17:32 -0400 (CLT) Received: from [200.83.72.29] (account ogautherot@vtr.net HELO olivier-bb) by fe3.vtr.cl (CommuniGate Pro SMTP 5.0.9) with ESMTPA id 23427706 for freebsd-hardware@freebsd.org; Mon, 14 Aug 2006 22:17:32 -0400 From: Olivier Gautherot To: freebsd-hardware@freebsd.org X-ASG-Orig-Subj: Re: building an old-hardware server Date: Mon, 14 Aug 2006 22:17:15 -0400 User-Agent: KMail/1.9.1 References: <200607201318.k6KDIOKH092991@lurza.secnetix.de> <049d01c6c005$dfee6570$857ba8c0@Rage> In-Reply-To: <049d01c6c005$dfee6570$857ba8c0@Rage> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608142217.16569.ogautherot@vtr.net> X-Barracuda-Bayes: INNOCENT GLOBAL 0.5000 1.0000 0.0000 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at vtr.cl X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests= X-Barracuda-Spam-Report: Code version 3.02, rules version 3.0.19056 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Subject: Re: building an old-hardware server X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: olivier@gautherot.net List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 02:17:45 -0000 Hi Andrei, > am building a webserver, which will also do some basic file serving in the > LAN and have a MySQL database running... nothing too fancy, but the budget > is 0$, so only recycled HW can be used... of course I want it to run as > fast as possible, but more important: reliable. Will put 6.1-Release on it. In general, old hardware can be used without too many problems, except for the hard drives: if you still want to do it, select items with little mileage. > [...] > I cannot decide on the HDD: the board supports UDMA33 for IDE and > Fast/Wide/Ultra for SCSI (but I have only fast/SCSI-2 HDD anyway). > My options are: > -one 15GB Maxtor IDE (or some 20GB Fujitsu IDE, but I had some of them > fail, so I'd avoid them) with UDMA if I can get it for free (not 100%) > -one or two 4.3GB Fujitsu IDE with UDMA > -alot of small (around 1GB) IDE hard drives > -a few identical SCSI-2 (10Mbps) 5400rpm hard drives, each 2GB > -2 non-identical SCSI-2 7200rpm hard drives (1GB and 2GB) In general, SCSI is faster so it should be a better option (although I have no first hand experience) but for a small server, IDE should still be sufficient. The size of the disk may be your criterion at the end of the day. > I think 4-6 disks fit in my case. 4 to 6 disks means space, power consumption and possibly heat. Make sure you don't get to a situation where you need extra ventilation just for the disks - I suppose the chassis too will be second hand... You might have a higher failure rate just because of this. > As my processors are not so fast, I'd > like to have fastest disk access with minimum CPU load (ideal case, right? > :). What would get me best results: SCSI or IDE (will the IDE be faster > than my 7200rpm or 5400rpm SCSI?). Should I consider doing software RAID, > will I see any speed improvement? I expect around 10-20 users doing random > things on this server, not too heavy though, no GUI for them. For 10 to 20 users, I don't know if RAID will make a significant difference (I would not think so). If you still want to go this way, RAID1 would be an easy route and ensure a simple backup mechanism in case of failure. > I was thinking about the 7200rpm SCSI drives for the system and root, a > RAID for the home/database (minimum 2GB should be enough for this, SCSI or > IDE?) and 4GB (or more) IDE for space/builds/ports/logs etc... > Any suggestions are welcome, I have never tried to build such a "recycled" > system from so many smaller harddrives, so this is my main dilemma. > > > About the hardware I already have: would one 600MHz PIII be faster, on this > board or another (choices are Gigabyte GA-BX2000 with Intel 440BX chipset, > supports PC-133 RAM - or Fujitsu-Siemens D1107 - Intel 443BX 100Mhz bus)? > I considered the 2x350MHz to be faster in SMP for the variety of tasks this > system will do, and I can upgrade at some moment... And I also have SCSI > support on this board. One 600MHz processor may be faster, depending on the CPU load balance - multiple processors means some overhead in management and does not ensure full balance. Also, if you upgrade, you will have to replace 2 processors instead of one, what might not be an economical advantage - procurement may also be complex for such old parts. > Is the RAM too much on the minimum side? Have little experience with SMP > systems, but more SDRAMs are hard to find... If you plan on using a database in SMP, you may reach your limit quickly. I would recommend a dry run on another machine with the same services and measure the RAM usage. Note that FreeBSD does a good job at caching disk accesses - what requires free RAM. > Any issues with the S3 Savage4 AGP cards? They tend to be slow, but I think > for this system this won't be the bottleneck, as the Mobo supports AGP2x > and the card is 4x already... Will you be playing flight simulators while your colleagues access the database? :-) If you use it as server only, it should not impact your system. > I have considered the NIC to be important here. I've read through hundreds > of articles, and the 3C905B seems to be quite fast and low on CPU load. > Other alternatives were Kingston KNE110TX (seems to have some bugs > according to the dc man page), D-Link DFE-530TX (rhine based, also buggy > according to man page AND D-Link="let it be" according to users), some > Davicom DM9102AF based cards (seem ok, but more on the low quality end) and > the "loved" RTL8139C/D ones (buggy, right?). I don't expect sustained heavy > traffic, but peaks... I've been using the RTL8139B, Rhine-II and Rhine-III (on a C3-based Epia board) without any problem for quite some time now. I can recommend them. The fact that the drivers are buggy does not necessarily mean that you will face big issues: in most cases, the bugs just apply to some particular features. > Any feedback is welcome, on the list or on my email, as I am in a hurry > with putting the machine to work and cannot take my time and test all > possible configurations... Hope it helps Olivier > > ANdrei > http://students.oamk.fi/~t6ruan00/ > ------ > Never argue with an idiot. They drag you down > to their level then beat you with experience... > > _______________________________________________ > freebsd-hardware@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hardware > To unsubscribe, send any mail to "freebsd-hardware-unsubscribe@freebsd.org" -- Olivier Gautherot Email: olivier@gautherot.net LinkedIn: http://www.linkedin.com/in/ogautherot MSN: ogautherot@hotmail.com From owner-freebsd-hardware@FreeBSD.ORG Tue Aug 15 04:47:47 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B29F16A4E0 for ; Tue, 15 Aug 2006 04:47:47 +0000 (UTC) (envelope-from dean@bong.com.au) Received: from aramaki.bong.com.au (aramaki.bong.com.au [203.91.232.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4606343D4C for ; Tue, 15 Aug 2006 04:47:45 +0000 (GMT) (envelope-from dean@bong.com.au) Received: from localhost ([::1] helo=mail.bong.com.au) by aramaki.bong.com.au with esmtp (Exim 4.61 (FreeBSD)) (envelope-from ) id 1GCqqB-000912-CI; Tue, 15 Aug 2006 14:47:47 +1000 Received: from 137.154.16.31 (proxying for 137.154.149.126, 137.154.148.13, unknown) (SquirrelMail authenticated user djzort@bong.com.au) by webmail.bong.com.au with HTTP; Tue, 15 Aug 2006 14:47:47 +1000 (EST) Message-ID: <16653.137.154.16.31.1155617267.squirrel@webmail.bong.com.au> In-Reply-To: <200608142217.16569.ogautherot@vtr.net> References: <200607201318.k6KDIOKH092991@lurza.secnetix.de> <049d01c6c005$dfee6570$857ba8c0@Rage> <200608142217.16569.ogautherot@vtr.net> Date: Tue, 15 Aug 2006 14:47:47 +1000 (EST) From: "Dean Hamstead" To: olivier@gautherot.net User-Agent: SquirrelMail/1.4.6-rc1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-hardware@freebsd.org Subject: Re: building an old-hardware server X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 04:47:47 -0000 >> I have considered the NIC to be important here. I've read through >> hundreds >> of articles, and the 3C905B seems to be quite fast and low on CPU load. >> Other alternatives were Kingston KNE110TX (seems to have some bugs >> according to the dc man page), D-Link DFE-530TX (rhine based, also buggy >> according to man page AND D-Link="let it be" according to users), some >> Davicom DM9102AF based cards (seem ok, but more on the low quality end) >> and >> the "loved" RTL8139C/D ones (buggy, right?). I don't expect sustained >> heavy >> traffic, but peaks... realteks nics are horrible, if you have a 3c905b floating around *use it* you should be able to pick them up for about $2 if someone rips you off, also intel etherexpress 100/B's are good as well, they will also be in a local pile of old parts for $2. > I've been using the RTL8139B, Rhine-II and Rhine-III (on a C3-based Epia > board) without any problem for quite some time now. I can recommend them. > The > fact that the drivers are buggy does not necessarily mean that you will > face > big issues: in most cases, the bugs just apply to some particular > features. Any network card drive that comes compiled with a release kernel can safely be considered very usable. also, dont be worried if a network card chip has bugs, they often do, and to confuse things, chips with lots of clones tend to have different bugs depending on who made the chip (the digital 'tulip' ones, KNE110TX previously mentioned is one, had many manufacturers and varried bugs and quirks) >> Any feedback is welcome, on the list or on my email, as I am in a hurry >> with putting the machine to work and cannot take my time and test all >> possible configurations... 1 gig hard disks are a waste of time, space and money. Dean From owner-freebsd-hardware@FreeBSD.ORG Tue Aug 15 10:06:05 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B030B16A4DA for ; Tue, 15 Aug 2006 10:06:05 +0000 (UTC) (envelope-from lists@hausro.de) Received: from mail3.netbeat.de (mail3.netbeat.de [83.243.58.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C86543D4C for ; Tue, 15 Aug 2006 10:06:04 +0000 (GMT) (envelope-from lists@hausro.de) Received: (qmail 8296 invoked from network); 15 Aug 2006 10:06:05 -0000 Received: from unknown (HELO Rage) (86.104.204.91) by mail3.netbeat.de with SMTP; 15 Aug 2006 10:06:05 -0000 Message-ID: <04fb01c6c052$6ad7d9e0$857ba8c0@Rage> From: "ANdrei" To: References: <200607201318.k6KDIOKH092991@lurza.secnetix.de><049d01c6c005$dfee6570$857ba8c0@Rage><200608142217.16569.ogautherot@vtr.net> <16653.137.154.16.31.1155617267.squirrel@webmail.bong.com.au> Date: Tue, 15 Aug 2006 13:03:15 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Subject: Re: building an old-hardware server X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 10:06:05 -0000 hi Dean > realteks nics are horrible, if you have a 3c905b floating around *use it* > you should be able to pick them up for about $2 if someone rips you off, > also intel etherexpress 100/B's are good as well, they will also be > in a local pile of old parts for $2. yeah, I was thinking the same. > Any network card drive that comes compiled with a release kernel can > safely be considered very usable. also, dont be worried if a network card > chip > has bugs, they often do, and to confuse things, chips with lots of > clones tend to have different bugs depending on who made the chip > (the digital 'tulip' ones, KNE110TX previously mentioned is one, had > many manufacturers and varried bugs and quirks) I have to build another old-hardware server in some weeks, so I will then use the KNE11TX maybe... Also have a SMC around, seems to be bug-free driver... Usually when I have an alternative, I use the best one, so I might go for SMC ;) > 1 gig hard disks are a waste of time, space and money. How about 2gig ones? ;) I actually don't pay anything for these, but would have to pay for other ones... only have those and two 4GB IDEs, but I thought SCSI to be faster and less CPU killing... We have enough space here, just no money for this server :) thanks for your reply! ANdrei From owner-freebsd-hardware@FreeBSD.ORG Tue Aug 15 10:06:05 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC05316A4DE for ; Tue, 15 Aug 2006 10:06:05 +0000 (UTC) (envelope-from lists@hausro.de) Received: from mail3.netbeat.de (mail3.netbeat.de [83.243.58.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD35543D53 for ; Tue, 15 Aug 2006 10:06:04 +0000 (GMT) (envelope-from lists@hausro.de) Received: (qmail 8261 invoked from network); 15 Aug 2006 10:06:05 -0000 Received: from unknown (HELO Rage) (86.104.204.91) by mail3.netbeat.de with SMTP; 15 Aug 2006 10:06:05 -0000 Message-ID: <04fa01c6c052$6a9f3db0$857ba8c0@Rage> From: "ANdrei" To: References: <200607201318.k6KDIOKH092991@lurza.secnetix.de><049d01c6c005$dfee6570$857ba8c0@Rage> <200608142217.16569.ogautherot@vtr.net> Date: Tue, 15 Aug 2006 12:57:11 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Subject: Re: building an old-hardware server X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 10:06:05 -0000 hi Olivier, and thanks for the reply, > In general, old hardware can be used without too many problems, except for > the > hard drives: if you still want to do it, select items with little mileage. some 2.1GB IBM's are still new, but I don't expect problems for the other SCSI drives either, have been using parts from the same stock pile for years and everything went ok, so this will not be an issue I guess. > In general, SCSI is faster so it should be a better option (although I > have no > first hand experience) but for a small server, IDE should still be > sufficient. The size of the disk may be your criterion at the end of the > day. > 4 to 6 disks means space, power consumption and possibly heat. Make sure > you > don't get to a situation where you need extra ventilation just for the > disks > - I suppose the chassis too will be second hand... You might have a higher > failure rate just because of this. yeah, you are right. I'd still like to use a few separate disks, as individual disks mean higher speed usually, especially when compiling on such slow processors. Ventilation will not be a problem, the chassis is second hand but almost new, and is big and has great ventilation. Is a 10MB/s SCSI-2 usually really faster than an UDMA33 IDE? Seems like it, when looking at seek times, etc... I might go for the SCSI solution, all disks are just lying around here... I think 2x2GB SCSI to be a better solution than 1x4GB IDE, as when I mount different parts of the FS on different drives I will getter better access times. As I mentioned: space will not be such a big problem, rather disk speed and processor usage... > For 10 to 20 users, I don't know if RAID will make a significant > difference > (I would not think so). If you still want to go this way, RAID1 would be > an > easy route and ensure a simple backup mechanism in case of failure. I was thinking about that also, or striping+mirroring... But would software RAID not be slower than non-RAID and kill my slow processors? Can anyone recommend any software RAID solution for this, that I can use from the beginning of the install of 6.1? > One 600MHz processor may be faster, depending on the CPU load balance - > multiple processors means some overhead in management and does not ensure > full balance. Also, if you upgrade, you will have to replace 2 processors > instead of one, what might not be an economical advantage - procurement > may > also be complex for such old parts. Actually when I will upgrade I can go up to 1GHz with one or two processors (have a termination adapter at hand already, in case I use only one), but now there is no money for this... All I have around here is one 600MHz PIII, one 450MHz PIII and two 350MHz PII processors... I will try to give it a run with both the 2x350's and the 600MHz CPU when everything is installed and done... I will have to have 2 different kernels already compiled for this, right? > If you plan on using a database in SMP, you may reach your limit quickly. > I > would recommend a dry run on another machine with the same services and > measure the RAM usage. Note that FreeBSD does a good job at caching disk > accesses - what requires free RAM. OK, will try to put some more in :) Of course, as always, more RAM is better and never enough :) > I've been using the RTL8139B, Rhine-II and Rhine-III (on a C3-based Epia > board) without any problem for quite some time now. I can recommend them. > The > fact that the drivers are buggy does not necessarily mean that you will > face > big issues: in most cases, the bugs just apply to some particular > features. RTL8139 worked fine for me usually, too, but sometimes it got very slow... No experience with Rhine on FreeBSD though, but I read that some buffer/registry access tweaks that had to be done impact CPU usage quite alot sometimes... As I have the 3Com anyway around, I decided to go for it... ANdrei From owner-freebsd-hardware@FreeBSD.ORG Tue Aug 15 10:13:07 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F4E216A4DA for ; Tue, 15 Aug 2006 10:13:07 +0000 (UTC) (envelope-from dean@bong.com.au) Received: from aramaki.bong.com.au (aramaki.bong.com.au [203.91.232.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 149F543D6A for ; Tue, 15 Aug 2006 10:12:58 +0000 (GMT) (envelope-from dean@bong.com.au) Received: from localhost ([::1] helo=mail.bong.com.au) by aramaki.bong.com.au with esmtp (Exim 4.61 (FreeBSD)) (envelope-from ) id 1GCvuw-0009Tp-Nd; Tue, 15 Aug 2006 20:13:02 +1000 Received: from 220.253.76.40 (SquirrelMail authenticated user djzort@bong.com.au) by webmail.bong.com.au with HTTP; Tue, 15 Aug 2006 20:13:02 +1000 (EST) Message-ID: <40631.220.253.76.40.1155636782.squirrel@webmail.bong.com.au> In-Reply-To: <04fa01c6c052$6a9f3db0$857ba8c0@Rage> References: <200607201318.k6KDIOKH092991@lurza.secnetix.de><049d01c6c005$dfee6570$857ba8c0@Rage> <200608142217.16569.ogautherot@vtr.net> <04fa01c6c052$6a9f3db0$857ba8c0@Rage> Date: Tue, 15 Aug 2006 20:13:02 +1000 (EST) From: "Dean Hamstead" To: "ANdrei" User-Agent: SquirrelMail/1.4.6-rc1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-hardware@freebsd.org Subject: Re: building an old-hardware server X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 10:13:07 -0000 > RTL8139 worked fine for me usually, too, but sometimes it got very slow... > No experience with Rhine on FreeBSD though, but I read that some > buffer/registry access tweaks that had to be done impact CPU usage quite > alot sometimes... As I have the 3Com anyway around, I decided to go for > it... i have used the rhine based cards with no hassles, i used rhine2 in the early days and the drivers were shocking - 7 years later im sure they are fine. go 3com Dean From owner-freebsd-hardware@FreeBSD.ORG Tue Aug 15 15:47:17 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0361116A4DA for ; Tue, 15 Aug 2006 15:47:17 +0000 (UTC) (envelope-from bret@immense.net) Received: from kahuna.immense.net (kahuna.immense.net [68.224.223.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7361B43D53 for ; Tue, 15 Aug 2006 15:47:10 +0000 (GMT) (envelope-from bret@immense.net) Received: from bretlaptop (rain.net-shapers.com [216.83.242.211]) by kahuna.immense.net (Postfix) with ESMTP id 5F8D62280C for ; Tue, 15 Aug 2006 10:43:53 -0500 (CDT) From: "Bret Esquivel" To: Date: Tue, 15 Aug 2006 10:47:09 -0500 Message-ID: <004701c6c082$1189e8d0$7100a8c0@bretlaptop> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcbAghDR+ZPbHoM6QN6kwn5m5scuyg== Subject: SiI 3132 SATA X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 15:47:17 -0000 Hi guys, I've been checking the archives and I can't find any information on the Silicon Image 3132 SATA chipset with Port Multiplier. The Addonics ADSA3GPX1-E (eSATA II PCI-Express Controller Card) in particular. none3@pci5:0:0: class=0x018000 card=0x31321095 chip=0x31321095 rev=0x01 hdr=0x00 vendor = 'Silicon Image Inc (Was: CMD Technology Inc)' class = mass storage Has anyone had any luck on this yet? I really need to use the port multiplier feature to interface an eSATA disk array. Thanks! ------------------------------------------ Bret J. Esquivel bret@immense.net Immense Networks LLC http://www.immense.net Ofc: (225) 754-9005 Cell: (504) 301-7413 From owner-freebsd-hardware@FreeBSD.ORG Tue Aug 15 18:51:25 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4509816A4E1 for ; Tue, 15 Aug 2006 18:51:25 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (megan.kiwi-computer.com [63.224.10.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 2B71F43D95 for ; Tue, 15 Aug 2006 18:51:16 +0000 (GMT) (envelope-from rick@kiwi-computer.com) Received: (qmail 27761 invoked by uid 2001); 15 Aug 2006 18:51:14 -0000 Date: Tue, 15 Aug 2006 13:51:14 -0500 From: "Rick C. Petty" To: ANdrei Message-ID: <20060815185114.GA27691@megan.kiwi-computer.com> References: <16653.137.154.16.31.1155617267.squirrel@webmail.bong.com.au> <04fb01c6c052$6ad7d9e0$857ba8c0@Rage> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <04fb01c6c052$6ad7d9e0$857ba8c0@Rage> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hardware@freebsd.org Subject: Re: building an old-hardware server X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 18:51:25 -0000 On Tue, Aug 15, 2006 at 01:03:15PM +0300, ANdrei wrote: > > >1 gig hard disks are a waste of time, space and money. > > How about 2gig ones? ;) > I actually don't pay anything for these, but would have to pay for other > ones... only have those and two 4GB IDEs, but I thought SCSI to be faster > and less CPU killing... We have enough space here, just no money for this > server :) I assumed by money he meant the cost of electricity (and your time to replace them when they go bad), since it's difficult to buy that size nowadays. The cost of two drives is about twice the cost of one drive, no matter the logical size. To me, anything under 160g is a "waste", so I guess it's subjective! =) -- Rick C. Petty From owner-freebsd-hardware@FreeBSD.ORG Wed Aug 16 07:47:19 2006 Return-Path: X-Original-To: hardware@freebsd.org Delivered-To: freebsd-hardware@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DE8916A4DA for ; Wed, 16 Aug 2006 07:47:19 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from gidgate.gid.co.uk (gid.co.uk [194.32.164.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1D2C43D49 for ; Wed, 16 Aug 2006 07:47:16 +0000 (GMT) (envelope-from rb@gid.co.uk) Received: (from rb@localhost) by gidgate.gid.co.uk (8.11.7/8.11.6) id k7G7lEf98486; Wed, 16 Aug 2006 08:47:14 +0100 (BST) (envelope-from rb) Message-Id: <7.0.1.0.2.20060816084606.07a93b18@gid.co.uk> Message-Id: <7.0.1.0.2.20060814204530.07989a10@gid.co.uk> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Wed, 16 Aug 2006 08:47:05 +0100 To: hardware@freebsd.org From: Bob Bishop Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Intel S5000PAL server board X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2006 07:47:19 -0000 Hi, Is anyone here running 6.1 on Intel S5000PAL with dual-core Xeons? [Already asked -hackers and got no reply] -- Bob Bishop +44 (0)118 940 1243 rb@gid.co.uk fax +44 (0)118 940 1295 From owner-freebsd-hardware@FreeBSD.ORG Wed Aug 16 12:39:01 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89E5016A51E for ; Wed, 16 Aug 2006 12:39:01 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 140B543E1F for ; Wed, 16 Aug 2006 12:35:38 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by py-out-1112.google.com with SMTP id c59so278596pyc for ; Wed, 16 Aug 2006 05:35:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=V6TfLfUvIBc7FIioje3/KfoVBXGg8iMlup4g+pE2davbY0Pi4ahNUYTNt/M2yJFd9U4L2VkgbDeVjXxcTCxyfjVnIIJx8NMBdxQxyOKtQDCR1FGCzoz/HV/K+x93j9KOsQaK2wUpVHfPoq452M9NkvLT7qLQZyKX/7b2OnpS82I= Received: by 10.35.41.14 with SMTP id t14mr1309431pyj; Wed, 16 Aug 2006 05:35:35 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.gmail.com with ESMTP id 12sm1738985nzn.2006.08.16.05.35.33; Wed, 16 Aug 2006 05:35:35 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id k7GCbW91047922 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Aug 2006 21:37:32 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id k7GCbVBG047921; Wed, 16 Aug 2006 21:37:31 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Wed, 16 Aug 2006 21:37:31 +0900 From: Pyun YongHyeon To: Dinesh Nair Message-ID: <20060816123731.GE45370@cdnetworks.co.kr> References: <44E040CF.9080205@alphaque.com> <44E05598.20004@alphaque.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44E05598.20004@alphaque.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Unable to get RealTek 8139C+ to work with re(4) under FreeBSD 6.1 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2006 12:39:01 -0000 On Mon, Aug 14, 2006 at 06:51:04PM +0800, Dinesh Nair wrote: > > > On 08/14/06 17:22 Dinesh Nair said the following: > > > >i've got a single board computer with VIA C3 Samuel 2, 256MB RAM and 4 > >onboard Realtek 8139C+ NICs. I'm attempting to get FreeBSD 6.1-STABLE > >working on them, but the realtek NICs just don't seem to want to work. > >booting up led to a kernel trap with the following, > > based on a pointer from luigi rizzo, i disabled the check for the 8139C+ in > /usr/src/sys/pci/if_rl.c to force the rl driver to bind to the card, and > that seemed to do the trick in getting it to work. ifconfig still shows > that the media is set to 'none' and a missing status line, but the box is > pingable at the least. > If the media is set to 'none' you couldn't send anything from re(4) as recent changes checks whether the link is present(Receiver should work). Does old(working) version also show 'none' for media? Do you use manual media configuration instead of 'auto'? -- Regards, Pyun YongHyeon From owner-freebsd-hardware@FreeBSD.ORG Thu Aug 17 02:26:24 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6E9A16A4E5 for ; Thu, 17 Aug 2006 02:26:24 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BD1543D55 for ; Thu, 17 Aug 2006 02:26:23 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by py-out-1112.google.com with SMTP id c59so565192pyc for ; Wed, 16 Aug 2006 19:26:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=KViYQAkddzWhPYgE9wP0i0UdGfk8Ew06LvLUoXOaiQeOPsEOYoOifkOpf76y9EbEHUcOziLRvmn3ciXYz/y3eQhway0DT+mqwc1OvIwjLtwJMff7ofVp3Ow7zccz18R0AZlXvsZtkVRG/lUY1X6nUQD3OYpWNH9W9uhOn/UOmAc= Received: by 10.35.91.10 with SMTP id t10mr2593240pyl; Wed, 16 Aug 2006 19:26:22 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.gmail.com with ESMTP id 15sm3656185nzp.2006.08.16.19.26.20; Wed, 16 Aug 2006 19:26:22 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id k7H2SGS3051253 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Aug 2006 11:28:16 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id k7H2SFNj051252; Thu, 17 Aug 2006 11:28:15 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Thu, 17 Aug 2006 11:28:15 +0900 From: Pyun YongHyeon To: Dinesh Nair Message-ID: <20060817022815.GD49739@cdnetworks.co.kr> References: <44E040CF.9080205@alphaque.com> <20060814103946.GC36904@cdnetworks.co.kr> <44E056BE.4080104@alphaque.com> <20060814110959.GD36904@cdnetworks.co.kr> <44E06697.4090507@alphaque.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="9Ek0hoCL9XbhcSqy" Content-Disposition: inline In-Reply-To: <44E06697.4090507@alphaque.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Unable to get RealTek 8139C+ to work with re(4) under FreeBSD 6.1 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2006 02:26:25 -0000 --9Ek0hoCL9XbhcSqy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Aug 14, 2006 at 08:03:35PM +0800, Dinesh Nair wrote: > > > On 08/14/06 19:09 Pyun YongHyeon said the following: > >really sucks and need much more CPU power to saturate the link. > >So I don't think it's good idea to make rl(4) serve 8139C+. > > perhaps, but re(4) doesn't work at the moment on this chipset, and i'd > rather have something which works, albeit a little poorly, than something > which doesn't. > > >Yes. What `ident /boot/kernel/if_re.ko` shows? > > $FreeBSD: src/sys/dev/re/if_re.c,v 1.46.2.19 2006/08/07 02:38:07 yongari > Exp $ > > and the latest if_rlreg.c which i pulled down shows, > > $FreeBSD: src/sys/pci/if_rlreg.h,v 1.51.2.7 2006/08/01 17:36:50 wpaul Exp $ > > i'm not using the loadable modules though, and am building the re(4) device > into the kernel directly. > > the symptoms remain the same, i.e. IP traffic doesn't flow at all, though > 'arp -an' does show the ethernet address of the other box attempting to > ping this. > > the OP at > http://lists.freebsd.org/pipermail/freebsd-stable/2006-August/027356.html > mentioned that it was working fine before breakage was introduced > relatively recently (~ 2 weeks ago), and thus something's changed in the > interim which is causing this to happen. > Here is guess work(I don't have 8139C+ based NICs). Would you give it a try? -- Regards, Pyun YongHyeon --9Ek0hoCL9XbhcSqy Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="re.patch" --- if_re.c.orig Thu Aug 3 09:15:19 2006 +++ if_re.c Thu Aug 17 11:25:31 2006 @@ -541,6 +541,10 @@ return (0); } rval = CSR_READ_2(sc, re8139_reg); + if (sc->rl_type == RL_8139CPLUS && re8139_reg == RL_BMCR) { + /* 8139C+ uses different bit layout */ + rval &= ~(BMCR_LOOP | BMCR_ISO); + } return (rval); } @@ -567,6 +571,10 @@ switch (reg) { case MII_BMCR: re8139_reg = RL_BMCR; + if (sc->rl_type == RL_8139CPLUS) { + /* 8139C+ uses different bit layout */ + data &= ~(BMCR_LOOP | BMCR_ISO); + } break; case MII_BMSR: re8139_reg = RL_BMSR; --9Ek0hoCL9XbhcSqy-- From owner-freebsd-hardware@FreeBSD.ORG Thu Aug 17 06:06:29 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEDBE16A4DE for ; Thu, 17 Aug 2006 06:06:29 +0000 (UTC) (envelope-from dinesh@alphaque.com) Received: from ns2.alphaque.com (ns2.alphaque.com [202.75.47.153]) by mx1.FreeBSD.org (Postfix) with SMTP id 7D26243D46 for ; Thu, 17 Aug 2006 06:06:26 +0000 (GMT) (envelope-from dinesh@alphaque.com) Received: (qmail 48145 invoked by uid 0); 17 Aug 2006 06:06:16 -0000 Received: from lucifer.net-gw.com (HELO prophet.alphaque.com) (202.75.47.153) by lucifer.net-gw.com with SMTP; 17 Aug 2006 06:06:16 -0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by prophet.alphaque.com (8.13.6/8.13.4) with ESMTP id k7H65nMx015640; Thu, 17 Aug 2006 14:05:49 +0800 (MYT) (envelope-from dinesh@alphaque.com) Message-ID: <44E4073C.9010008@alphaque.com> Date: Thu, 17 Aug 2006 14:05:48 +0800 From: Dinesh Nair User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8b) Gecko/20060213 MIME-Version: 1.0 To: pyunyh@gmail.com References: <44E040CF.9080205@alphaque.com> <44E05598.20004@alphaque.com> <20060816123731.GE45370@cdnetworks.co.kr> In-Reply-To: <20060816123731.GE45370@cdnetworks.co.kr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Unable to get RealTek 8139C+ to work with re(4) under FreeBSD 6.1 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2006 06:06:30 -0000 On 08/16/06 20:37 Pyun YongHyeon said the following: > If the media is set to 'none' you couldn't send anything from re(4) as > recent changes checks whether the link is present(Receiver should work). ifconfig re0 media 10baset or 100baset always returns error, so there doesn't seem to be anyway of forcing the media type. > Does old(working) version also show 'none' for media? > Do you use manual media configuration instead of 'auto'? i never got re(4) working, and the patch i'm currently using forces the use of rl(4) instead of using re(4). using rl(4) still shows media as none, but it works the way it should with packets going in and out. i've yet to try dag-erling's suggestion of disabling rx and tx checksums. i'll also try with the patch you sent it to see if that works. -- Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.openmalaysiablog.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+ From owner-freebsd-hardware@FreeBSD.ORG Thu Aug 17 06:46:00 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 162D516A4DF for ; Thu, 17 Aug 2006 06:46:00 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEFD243D46 for ; Thu, 17 Aug 2006 06:45:58 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by py-out-1112.google.com with SMTP id c59so665686pyc for ; Wed, 16 Aug 2006 23:45:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=nyiAYe9p0L6LNU+8ybQoa+bCxk65vH1StmQEaWGM6WVRvU0M1NhW2UiBWEqdV6fFxpIfY+9aSM0YMmapfisJJ8RSnznF6f8swzvAa3OH06azFbnn+IMLJTNoHyTPzYV9L88gD4hRzFFI2n5XTIo5HFQylbeVI3Ew5UWSMhnb+Wo= Received: by 10.35.121.2 with SMTP id y2mr3049134pym; Wed, 16 Aug 2006 23:45:58 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.gmail.com with ESMTP id 38sm362076nza.2006.08.16.23.45.56; Wed, 16 Aug 2006 23:45:57 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id k7H6m3UL052173 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Aug 2006 15:48:03 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id k7H6m3a7052172; Thu, 17 Aug 2006 15:48:03 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Thu, 17 Aug 2006 15:48:03 +0900 From: Pyun YongHyeon To: Dinesh Nair Message-ID: <20060817064803.GH49739@cdnetworks.co.kr> References: <44E040CF.9080205@alphaque.com> <44E05598.20004@alphaque.com> <20060816123731.GE45370@cdnetworks.co.kr> <44E4073C.9010008@alphaque.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44E4073C.9010008@alphaque.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Unable to get RealTek 8139C+ to work with re(4) under FreeBSD 6.1 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2006 06:46:00 -0000 On Thu, Aug 17, 2006 at 02:05:48PM +0800, Dinesh Nair wrote: > > > On 08/16/06 20:37 Pyun YongHyeon said the following: > >If the media is set to 'none' you couldn't send anything from re(4) as > >recent changes checks whether the link is present(Receiver should work). > > ifconfig re0 media 10baset or 100baset always returns error, so there > doesn't seem to be anyway of forcing the media type. > > >Does old(working) version also show 'none' for media? > >Do you use manual media configuration instead of 'auto'? > > i never got re(4) working, and the patch i'm currently using forces the use > of rl(4) instead of using re(4). using rl(4) still shows media as none, but > it works the way it should with packets going in and out. i've yet to try > dag-erling's suggestion of disabling rx and tx checksums. i'll also try I think disabling checksum offload wouldn't help either. re(4)/rlphy(4) should be taught to detect link status. > with the patch you sent it to see if that works. > -- Regards, Pyun YongHyeon From owner-freebsd-hardware@FreeBSD.ORG Thu Aug 17 09:21:19 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A86616A4DF for ; Thu, 17 Aug 2006 09:21:19 +0000 (UTC) (envelope-from andi.trinculescu@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id C122243D45 for ; Thu, 17 Aug 2006 09:21:18 +0000 (GMT) (envelope-from andi.trinculescu@gmail.com) Received: by nf-out-0910.google.com with SMTP id n29so1038322nfc for ; Thu, 17 Aug 2006 02:21:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=fsM7F8eO5JoMKX6F9lOhv5wk9zdtY7coRrqK4jWhgOYGC3ZDRrDuYLC3rjaRyL8Yo0Who2//ZBgszFbmXDur6Ctwpl3pCt5LhvIT/StydUOaSHrYN75Xsj/4mY97c1nZMbR7Ky8Fj75WCjyqfclFwrTevEGUypLq+b40Kj+/P1U= Received: by 10.49.8.1 with SMTP id l1mr1956455nfi; Thu, 17 Aug 2006 02:21:17 -0700 (PDT) Received: by 10.49.17.16 with HTTP; Thu, 17 Aug 2006 02:21:17 -0700 (PDT) Message-ID: <6abe9f0c0608170221y66c526d0m2c421ebacf309ef8@mail.gmail.com> Date: Thu, 17 Aug 2006 11:21:17 +0200 From: "=?ISO-8859-1?Q?Andi_Tr=EEnculescu?=" To: freebsd-hardware@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: default sound card X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2006 09:21:19 -0000 Hello I have 2 soundcards on my system, one is on-board and the other is on usb. The system recognise both of them but it uses by default the on-board card. I would like to route the sound to the usb card by default. Any hint appreciated. Thanks. -- Andi Trinculescu +40 722 239747 From owner-freebsd-hardware@FreeBSD.ORG Thu Aug 17 11:24:39 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B4A116A4DA for ; Thu, 17 Aug 2006 11:24:39 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8049D43D45 for ; Thu, 17 Aug 2006 11:24:37 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Thu, 17 Aug 2006 19:24:35 +0800 id 00102C05.44E451F3.00015E05 References: <6abe9f0c0608170221y66c526d0m2c421ebacf309ef8@mail.gmail.com> In-Reply-To: <6abe9f0c0608170221y66c526d0m2c421ebacf309ef8@mail.gmail.com> From: "Intron is my alias on the Internet" To: andi.trinculescu@gmail.com Date: Thu, 17 Aug 2006 19:24:35 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: freebsd-hardware@freebsd.org Subject: Re: default sound card X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2006 11:24:39 -0000 [ISO-8859-1] Andi Tri^nculescu wrote: > Hello > > I have 2 soundcards on my system, one is on-board and the other is on usb. > The system recognise both of them but it uses by default the on-board > card. > I would like to route the sound to the usb card by default. > Any hint appreciated. Thanks. > > -- > Andi Trinculescu > +40 722 239747 > _______________________________________________ > freebsd-hardware@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hardware > To unsubscribe, send any mail to > "freebsd-hardware-unsubscribe@freebsd.org" The device node /dev/dsp is an intelligent link to a current idle device node "/dev/dspX.Y". You may have a try that load sound device driver modules in /etc/rc.local so that you can control the order a sound device uses /dev/dspX.Y. ------------------------------------------------------------------------ From Beijing, China From owner-freebsd-hardware@FreeBSD.ORG Thu Aug 17 11:27:14 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44AEC16A4DD; Thu, 17 Aug 2006 11:27:14 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id C39CE43D46; Thu, 17 Aug 2006 11:27:13 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 56F5120A5; Thu, 17 Aug 2006 13:27:06 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on tim.des.no Received: from xps.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id 443A32084; Thu, 17 Aug 2006 13:27:06 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id 1C5E433C24; Thu, 17 Aug 2006 13:27:06 +0200 (CEST) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Dinesh Nair References: <44E040CF.9080205@alphaque.com> <44E05598.20004@alphaque.com> <20060816123731.GE45370@cdnetworks.co.kr> <44E4073C.9010008@alphaque.com> Date: Thu, 17 Aug 2006 13:27:05 +0200 In-Reply-To: <44E4073C.9010008@alphaque.com> (Dinesh Nair's message of "Thu, 17 Aug 2006 14:05:48 +0800") Message-ID: <86sljvli0m.fsf@xps.des.no> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: pyunyh@gmail.com, freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Unable to get RealTek 8139C+ to work with re(4) under FreeBSD 6.1 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2006 11:27:14 -0000 Dinesh Nair writes: > i never got re(4) working, and the patch i'm currently using forces > the use of rl(4) instead of using re(4). using rl(4) still shows > media as none, but it works the way it should with packets going in > and out. i've yet to try dag-erling's suggestion of disabling rx and > tx checksums. i'll also try with the patch you sent it to see if > that works. If you can receive but not transmit (as I understood from other posts in the thread, though you never answered my question about tcpdump), disabling tx checksum offloading should be the *first* thing to try, especially as there is a known bug in some RealTek chipsets which will cause tx checksums to be computed incorrectly for short packets (such as ICMP echo replies, or TCP handshake frames). DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hardware@FreeBSD.ORG Thu Aug 17 12:19:27 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A42D16A4DD for ; Thu, 17 Aug 2006 12:19:27 +0000 (UTC) (envelope-from ben@dcrdata.com) Received: from rodney.cnchost.com (rodney.concentric.net [207.155.252.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26B6E43D6D for ; Thu, 17 Aug 2006 12:19:25 +0000 (GMT) (envelope-from ben@dcrdata.com) Received: from [192.168.1.100] (gb.ja.238.204.revip.asianet.co.th [61.90.238.204]) by rodney.cnchost.com (ConcentricHost(2.54) Relay) with ESMTP id BC8FCE62E for ; Thu, 17 Aug 2006 08:19:21 -0400 (EDT) User-Agent: Microsoft-Entourage/11.2.3.060209 Date: Thu, 17 Aug 2006 19:11:24 -0700 From: ben youngblood To: Message-ID: Thread-Topic: For Sale: Lucent/Ascend BSTDX 8000/9000 Thread-Index: AcbCa5q82XlLhS5eEduDpQAUURZ9nA== Mime-version: 1.0 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Subject: For Sale: Lucent/Ascend BSTDX 8000/9000 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2006 12:19:27 -0000 59009A=A0 BSTDX 9000 chassis=A0=A0 Qty 2 =A0 59035=A0=A0 110V AC Power Supply=A0=A0 Qty 8 =A0 59033E=A0 Control Processor=A0=A0=A0 Qty 5 =A0 59050E=A0 Control Processor=A0=A0=A0 Qty 1 =A0 59021D=A0 Channelized T1 IOP=A0=A0 Qty 7 =A0 59011=A0=A0=A0 Universal IOP=A0=A0=A0 Qty 6 =A0 59021-16=A0 Channelized T1 IOP=A0=A0 Qty 3 =A0 59107=A0=A0 Control Processor Adpt Module=A0 Qty 6 =A0 59022D=A0 T1 Adpt Module Ext Clock=A0=A0 Qty 10 =A0 59071A=A0 BSTDX 8000 Chassis=A0=A0=A0 Qty 2 =A0 59022D=A0 T1 Adpt Module Ext Clock (NEW)=A0=A0 Qty 6 =A0 59033D=A0 Control Processor=A0 Qty 3 =A0 59027-16=A0 DSX-1 IOP=A0 Qty 3 =A0 59028D=A0 DSX-1 Adpt. =A0 59094B-16=A0 ATM UNI DS3 IOP=A0 Qty 2 =A0 59095=A0 ATM UNI DS3 Adpt.=A0 Qty 2 =A0 59018-16=A0 HSSI IOP=A0 Qty 2 =A0 59018=A0 HSSI IOP=A0 Qty 6 =A0 59019=A0 HSSI Adpt.=A0 Qty 3 =A0 59034=A0 Control processor adpt.=A0 Qty 1 =A0 59072-64=A0 1 Port Channelized DS3 Processor Qty 1 =A0 59122-64=A0=A0 12 Port E1 ATM I/O Processor=A0 Qty 1 Regards, Ben Youngblood DCR http://www.networkinghardware.net Tel 310 306 9950 Fax 310 306 5877 ben@1com.com DCR is your one stop solution for Datacom and Networking hardware, new and used at 60% to 90% off list. We buy and sell 3com, ADC/Kentrox, Adtran, Ascend/Lucent, Avaya, Bay Networks, Cabletron, Cisco, Digital Link, Extreme, Juniper, Larscom, Lucent PSAX, Motorola/UDS, N.E.T. Promina And IDNX, Nortel, Racal, Stratacom, Verilink, and more... Over 5,000 items in stock.=A0=A0Please visit out our website @=A0 http://www.networkinghardware.net SOME=A0INVENTORY ON-LINE. PLEASE CALL OR REPLY FOR UPDATED OR INCOMING INVENTORY REMOVAL INSTRUCTIONS: If you have received this message in error or if you would like to be=A0removed from our broadcast for any reason, reply to this email with=A0REMOVE as subject followed by the email address you wish to remove. =20 From owner-freebsd-hardware@FreeBSD.ORG Thu Aug 17 12:21:25 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8328016A4E1 for ; Thu, 17 Aug 2006 12:21:25 +0000 (UTC) (envelope-from ben@dcrdata.com) Received: from rodney.cnchost.com (rodney.concentric.net [207.155.252.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 733C543D66 for ; Thu, 17 Aug 2006 12:21:21 +0000 (GMT) (envelope-from ben@dcrdata.com) Received: from [192.168.1.100] (gb.ja.238.204.revip.asianet.co.th [61.90.238.204]) by rodney.cnchost.com (ConcentricHost(2.54) Relay) with ESMTP id 786A8E678 for ; Thu, 17 Aug 2006 08:21:20 -0400 (EDT) User-Agent: Microsoft-Entourage/11.2.3.060209 Date: Thu, 17 Aug 2006 19:13:18 -0700 From: ben youngblood To: Message-ID: Thread-Topic: Want to Buy / RFQ : Juniper Networks M7i new or used Thread-Index: AcbCa96vHXjdXi5fEduDpQAUURZ9nA== Mime-version: 1.0 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Subject: Want to Buy / RFQ : Juniper Networks M7i new or used X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2006 12:21:25 -0000 Unit 1 Juniper M7iBASE-AC-2FETX (2FE ports; AC power) MEM-FEB-256-S (256M memory) PE-1GE-SFP - 2 units SFP-1GE-SX - 2 units =A0 Unit 2 Juniper M7iBASE-AC-1GE (1GE port with SX SFP; AC power) MEM-FEB-256-S (256M memory) PE-1GE-SFP - 1 units SFP-1GE-SX - 1 units Please quote best price, warranty and condition. Thank you. Regards, Ben Youngblood DCR http://www.networkinghardware.net Tel 310 306 9950 Fax 310 306 5877 ben@1com.com DCR is your one stop solution for Datacom and Networking hardware, new and used at 60% to 90% off list. We buy and sell 3com, ADC/Kentrox, Adtran, Ascend/Lucent, Avaya, Bay Networks, Cabletron, Cisco, Digital Link, Extreme, Juniper, Larscom, Lucent PSAX, Motorola/UDS, N.E.T. Promina And IDNX, Nortel, Racal, Stratacom, Verilink, and more... Over 5,000 items in stock.=A0=A0Please visit out our website @=A0 http://www.networkinghardware.net SOME=A0INVENTORY ON-LINE. PLEASE CALL OR REPLY FOR UPDATED OR INCOMING INVENTORY REMOVAL INSTRUCTIONS: If you have received this message in error or if you would like to be=A0removed from our broadcast for any reason, reply to this email with=A0REMOVE as subject followed by the email address you wish to remove. =20 From owner-freebsd-hardware@FreeBSD.ORG Thu Aug 17 17:01:23 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1136C16A4E2; Thu, 17 Aug 2006 17:01:23 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F5DA43D49; Thu, 17 Aug 2006 17:01:22 +0000 (GMT) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost2.sentex.ca (8.13.6/8.13.4) with ESMTP id k7HH1LSP038585; Thu, 17 Aug 2006 13:01:21 -0400 (EDT) (envelope-from mike@sentex.net) Received: from simian.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.6/8.13.3) with ESMTP id k7HH1KsZ080741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Aug 2006 13:01:20 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <6.2.3.4.0.20060817124419.1399e970@64.7.153.2> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Thu, 17 Aug 2006 13:01:10 -0400 To: freebsd-hardware@freebsd.org From: Mike Tancsa Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: nVidia MCP51 NIC X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2006 17:01:23 -0000 FYI, I was able to get the onboard NIC on a ECS C51GM-M mATX AM2 GF6100 working with the following patches am2# diff -u if_nve.c new/if_nve.c --- if_nve.c Sat Jun 17 12:46:04 2006 +++ new/if_nve.c Thu Aug 17 12:46:46 2006 @@ -235,6 +235,8 @@ "NVIDIA nForce MCP10 Networking Adapter"}, {NVIDIA_VENDORID, NFORCE_MCPNET11_DEVICEID, "NVIDIA nForce MCP11 Networking Adapter"}, + {NVIDIA_VENDORID, NFORCE_MCPNET51_DEVICEID, + "NVIDIA nForce MCP51 Networking Adapter"}, {0, 0, NULL} }; am2# diff -u if_nvereg.h new/if_nvereg.h --- if_nvereg.h Mon Dec 12 14:40:04 2005 +++ new/if_nvereg.h Thu Aug 17 12:46:46 2006 @@ -40,6 +40,7 @@ #define NFORCE_MCPNET3_DEVICEID 0x00D6 #define NFORCE_MCPNET4_DEVICEID 0x0086 #define NFORCE_MCPNET5_DEVICEID 0x008C +#define NFORCE_MCPNET51_DEVICEID 0x0269 #define NFORCE_MCPNET6_DEVICEID 0x00E6 #define NFORCE_MCPNET7_DEVICEID 0x00DF #define NFORCE_MCPNET8_DEVICEID 0x0056 am2# Looking through the LINUX version of the driver (forcedeth), they dont seem to do anything special with this version of the NIC pciconf shows nve0@pci0:20:0: class=0x068000 card=0x1b571019 chip=0x026910de rev=0xa3 hdr=0x00 vendor = 'NVIDIA Corporation' class = bridge am2# ifconfig nve0 nve0: flags=8843 mtu 1500 inet 192.168.43.185 netmask 0xffffff00 broadcast 192.168.43.255 inet6 fe80::216:ecff:fe9b:c397%nve0 prefixlen 64 scopeid 0x3 ether 00:16:ec:9b:c3:97 media: Ethernet autoselect (100baseTX ) status: active am2# Here is a dmesg of the working board Copyright (c) 1992-2006 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 6.1-STABLE #3: Thu Aug 17 12:53:21 EDT 2006 mdtancsa@am2.sentex.ca:/usr/obj/usr/src/sys/am2 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ (2210.20-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x40fb2 Stepping = 2 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x1f,,CR8> Cores per package: 2 real memory = 2113863680 (2015 MB) avail memory = 2063388672 (1967 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi0: Power Button (fixed) acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: on acpi0 cpu1: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.0 (no driver attached) pci0: at device 0.1 (no driver attached) pci0: at device 0.2 (no driver attached) pci0: at device 0.3 (no driver attached) pci0: at device 0.4 (no driver attached) pci0: at device 0.5 (no driver attached) pci0: at device 0.6 (no driver attached) pci0: at device 0.7 (no driver attached) pcib1: at device 3.0 on pci0 pci1: on pcib1 pcib2: at device 4.0 on pci0 pci2: on pcib2 pci0: at device 5.0 (no driver attached) pci0: at device 9.0 (no driver attached) isab0: at device 10.0 on pci0 isa0: on isab0 pci0: at device 10.1 (no driver attached) pci0: at device 10.2 (no driver attached) ohci0: mem 0xfe02f000-0xfe02ffff irq 21 at device 11.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 8 ports with 8 removable, self powered ehci0: mem 0xfe02e000-0xfe02e0ff irq 22 at device 11.1 on pci0 ehci0: [GIANT-LOCKED] usb1: EHCI version 1.0 usb1: companion controller, 8 ports each: usb0 usb1: on ehci0 usb1: USB revision 2.0 uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub1: 8 ports with 8 removable, self powered atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf400-0xf40f at device 13.0 on pci0 ata0: on atapci0 ata1: on atapci0 atapci1: port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xe000-0xe00f mem 0xfe02d000-0xfe02dfff irq 23 at device 14.0 on pci0 ata2: on atapci1 ata3: on atapci1 pcib3: at device 16.0 on pci0 pci3: on pcib3 rl0: port 0xac00-0xacff mem 0xfddff000-0xfddff0ff irq 17 at device 7.0 on pci3 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:50:fc:32:52:a4 pci0: at device 16.3 (no driver attached) nve0: port 0xd400-0xd407 mem 0xfe02b000-0xfe02bfff irq 21 at device 20.0 on pci0 nve0: Ethernet address 00:16:ec:9b:c3:97 miibus1: on nve0 ukphy0: on miibus1 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto nve0: Ethernet address: 00:16:ec:9b:c3:97 acpi_tz0: on acpi0 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] pmtimer0 on isa0 orm0: at iomem 0xd0000-0xd3fff,0xd4000-0xd57ff on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec ad0: 76319MB at ata0-master UDMA100 SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad0s1a -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike From owner-freebsd-hardware@FreeBSD.ORG Fri Aug 18 00:47:00 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FBFC16A4DA; Fri, 18 Aug 2006 00:47:00 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2DF243D49; Fri, 18 Aug 2006 00:46:58 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Fri, 18 Aug 2006 08:46:57 +0800 id 00102DF1.44E50E01.0001841C References: <6a56d69c0608162129h9e3e085i4ad1f4034833724f@mail.gmail.com> <6a56d69c0608171030o4c37ec37k54de2b99b5071c72@mail.gmail.com> In-Reply-To: <6a56d69c0608171030o4c37ec37k54de2b99b5071c72@mail.gmail.com> From: "Intron is my alias on the Internet" To: "Jonathan Herriott" Date: Fri, 18 Aug 2006 08:46:57 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: freebsd-drivers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Newbie Question to Device driver writing X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2006 00:47:00 -0000 Jonathan Herriott wrote: > Intron- > > Unfortunately, I have nothing specific in mind as all my hardware > works on FreeBSD. I've almost come to the point where I'm going to go > to Fry's and buy a bunch of stuff and make a simple USB device which > may turn on or off a light (actually hook it up to a light in my home) > just to get some experience with writing drivers. > > Overall, I'd really love to do an opengl driver for a graphics card, > but I figured before I get into something that complex, I might try > something simpler. Any suggestion would be great. > > I'll look into -hackers@ as I would really like to learn the actual > internals of FreeBSD. > > Jon > If you want to know how to write a simple USB driver, you may have a look at /usr/src/sys/dev/usb/uscanner.c and /usr/src/sys/dev/usb/ulpt.c. They are both almost as simple as transfering data between hardware device and userland application. To write a graphics card driver that well supports OpenGL is difficult: 1. Current GPUs produced by NVIDIA or ATI (AMD) are complicated. 2. Some vendors wouldn't publicize programming data sheets of GPUs. You may have a look at http://dri.freedesktop.org/. Some days ago, I would create a C++ driver fundamental structure for FreeBSD, but discussants on -hackers@ threw doubts upon me. These days, I think, if FreeBSD can make use of drivers for Microsoft Windows, FreeBSD will become more powerful. Now FreeBSD and Linux both can use network card driver for Windows, with ndis(4) for FreeBSD and NDISWrapper for Linux (http://ndiswrapper.sf.net). But NDIS driver is one of the simplest drivers in WDM. The idea of WDM (Windows Device Model) simulator is quite challenging. But once WDMulator is realized, it will help FreeBSD deeply. ------------------------------------------------------------------------ From Beijing, China From owner-freebsd-hardware@FreeBSD.ORG Fri Aug 18 15:22:00 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C01F416A4DA for ; Fri, 18 Aug 2006 15:22:00 +0000 (UTC) (envelope-from david.kingsley@enc.edu) Received: from smtp.enc.edu (smtp.enc.edu [64.195.243.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C9E943D45 for ; Fri, 18 Aug 2006 15:22:00 +0000 (GMT) (envelope-from david.kingsley@enc.edu) Received: from localhost (new-av.r.its.enc.edu [10.100.0.201]) by smtp.enc.edu (Postfix) with ESMTP id 10BB42E558 for ; Fri, 18 Aug 2006 11:45:43 -0400 (EDT) Received: from smtp.enc.edu ([10.100.0.201]) by localhost (smtp.enc.edu [10.100.0.201]) (amavisd-new, port 10024) with ESMTP id 09777-10 for ; Fri, 18 Aug 2006 11:45:42 -0400 (EDT) Received: from [10.1.10.46] (jezebel.its.enc.edu [10.1.10.46]) by smtp.enc.edu (Postfix) with ESMTP id BFB682DF33 for ; Fri, 18 Aug 2006 11:45:42 -0400 (EDT) Message-ID: <44E5A2C1.4050802@enc.edu> Date: Fri, 18 Aug 2006 11:21:37 +0000 From: Dave Kingsley User-Agent: Mozilla Thunderbird 1.0.6 (X11/20051215) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hardware@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at enc.edu Subject: RocketRAID 2224 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2006 15:22:00 -0000 I am attemping to use a RocketRAID 2224 8 channel card to set up a storage server. The server board is an Intel SE7230NH1-E with a P4-D 2.8GHz, 2GB RAM. FreeBSD doesn't see it at all. I've noticed that the kernel config has options built in for the RocketRAID 182x. Are there options I can add for the newer card? If so, will they work with FreeBSD 6.1 so that I can reconfigure for it rather than 6.0 that's running now? Basically we're trying to set up backups to disk with a RAID of about 4.5TB. Thanks for any help. -- Dave ******************************************************************************* There are 10 types of people. Those who understand binrary ... ...and those who don't ############################################################################### David Kingsley, Systems Administrator Eastern Nazarene College 23 East Elm Avenue Quincy, MA 02170 david.kingsley@enc.edu 617-745-3806 From owner-freebsd-hardware@FreeBSD.ORG Fri Aug 18 17:39:51 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB3CB16A4DF for ; Fri, 18 Aug 2006 17:39:51 +0000 (UTC) (envelope-from mitchell@cloudynwuk.force9.co.uk) Received: from pih-relay05.plus.net (pih-relay05.plus.net [212.159.14.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5976043D66 for ; Fri, 18 Aug 2006 17:39:50 +0000 (GMT) (envelope-from mitchell@cloudynwuk.force9.co.uk) Received: from [81.174.214.211] (helo=hal) by pih-relay05.plus.net with esmtp (Exim) id 1GE8Jw-000791-J0; Fri, 18 Aug 2006 18:39:49 +0100 Received: from 127.0.0.1 (AVG SMTP 7.1.405 [268.11.3/423]); Fri, 18 Aug 2006 18:39:46 +0100 Message-ID: <000101c6c2ed$4c2700a0$d3d6ae51@hal> From: "Frank Mitchell" To: Date: Fri, 18 Aug 2006 17:56:49 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=iso-8859-1 Cc: man-lug@lists.man.ac.uk, sc@mailman.lug.org.uk, freebsd-hardware@freebsd.org Subject: Exploding CDs X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2006 17:39:51 -0000 A recent BBC2 programme: "Mythbusters" explored the rumour that some CD-ROM Drives go so fast they make CDs fly apart. Two Stunt Engineers organised an experiment and showed this actually happens with some brands of CD. Just before disintegrating, these disks assumed a sort of corrugated appearance, which suggests the problem is caused by Resonant Frequency (as with the Tacoma Narrows bridge) rather than "Centrifugal Force". The CD vibrates with alternate sectors oscillating in opposite directions. When the speed of the drive matches the Natural Frequency of the CD, the amplitude of the vibration gets large enough to crack the disk, which then falls to pieces. Does anybody have more information about this? Faictz Ce Que Vouldras: Frank Mitchell -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.3/423 - Release Date: 18/08/2006 From owner-freebsd-hardware@FreeBSD.ORG Fri Aug 18 17:46:42 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC67016A4DA for ; Fri, 18 Aug 2006 17:46:42 +0000 (UTC) (envelope-from vizion@vizion.occoxmail.com) Received: from dukecmmtao03.coxmail.com (dukecmmtao03.coxmail.com [68.99.120.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A88E43D58 for ; Fri, 18 Aug 2006 17:46:39 +0000 (GMT) (envelope-from vizion@vizion.occoxmail.com) Received: from dukecmmtao03 ([172.18.22.59]) by dukecmmtao03.coxmail.com (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with SMTP id <20060818174639.ZWVF21564.dukecmmtao03.coxmail.com@dukecmmtao03> for ; Fri, 18 Aug 2006 13:46:39 -0400 X-Mailer: Openwave WebEngine, version 2.8.16 (webedge20-101-1106-20040809) From: Vizion Organization: vizion Communications To: Date: Fri, 18 Aug 2006 10:46:39 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20060818174639.ZWVF21564.dukecmmtao03.coxmail.com@dukecmmtao03> Subject: Sata/IDE drive recognition problem X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2006 17:46:42 -0000 I originally posted to freebsd-questions but, judging by the lack of replies I think I made the mistake of posting to the wrong list - on reflection this seems to be more a question for hardware. Thanks in advance for any guidance. > > While preparing to move a system from i386 to amd > architecture The existing system is dual booting i386 for 5.4 > stable and 6.0. My plan is to remove both systems, preserve > my data and reinstall 6.1 amd from cd. > > The motherboard is a FA-K8N51GMF-9 with 3 hard drives > installed. 2xSata and 1xIDE. > > Freebsd 5.4 > #df sees > /dev/ad4s1a > devfs, > /dev/ad4s1e > /dev/ad4s1f > /dev/ad6s1d > /dev/ad6s1e > linprocfs > > Freebsd 6.0 > #df sees > /dev/ad0s1a > devfs > /dev/ad0s1e > /dev/ad01f > /dev/ad0s1d > /dev/ad4s1a > /dev/ad4s1f > /dev/ad6s1d > devfs > > The CD installer select drives interface for 6.1 RELEASE > amd64 recognizes > ad0 and > ad4 > but not ad6. > > For installing 6.1 amd I will need the installer to see all > physical devices and existing partitions. > > The Bios CMOS features show > IDE Channel 0 Master WDC WD2000JB > IDE Channel 0 Slave Lite-on CD-RW > IDE Channel 2 Master ST3160827AS > IDE Channel 3 Master WDC WD2000JD > The Advanced Bios features show > First boot device CDROM > Second Boot Device Hard Disk > Third boot Device Hard Disk > > The Hard disk boot priority sequence options show: > Ch0 > Ch2 > Ch3 > root > shutdown -r > > /var/log/messages shows > ad0 WDC WD2000JB at ata0-master UDMA33 > acd0 Lite-on at ata0-slave USMA33 > ad4 ST3160827AS at ata2-master UDMA33 > ad6 WDC WD2000JD at ata3-master UDMA33 > > How do I get the installer select drives interface to recognize ad6? > > Thanks in advance > > david > PS I have now successfully built amd64 on /dev/ad0 but not yet mounted ad4 or ad6. While ad4 is "seen" according to /var/log/messages the new build does not "see" ad6 .. does anyone have any ideas how to fix this? Thanks David From owner-freebsd-hardware@FreeBSD.ORG Fri Aug 18 17:57:55 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A6B216A4DA for ; Fri, 18 Aug 2006 17:57:55 +0000 (UTC) (envelope-from vizion@vizion.occoxmail.com) Received: from dukecmmtao03.coxmail.com (dukecmmtao03.coxmail.com [68.99.120.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1166B43D5D for ; Fri, 18 Aug 2006 17:57:53 +0000 (GMT) (envelope-from vizion@vizion.occoxmail.com) Received: from dukecmmtao03 ([172.18.22.59]) by dukecmmtao03.coxmail.com (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with SMTP id <20060818175753.GQA21564.dukecmmtao03.coxmail.com@dukecmmtao03> for ; Fri, 18 Aug 2006 13:57:53 -0400 X-Mailer: Openwave WebEngine, version 2.8.16 (webedge20-101-1106-20040809) From: Vizion Organization: vizion Communications To: Date: Fri, 18 Aug 2006 10:57:53 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20060818175753.GQA21564.dukecmmtao03.coxmail.com@dukecmmtao03> Subject: Re: Sata/IDE drive recognition problem X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2006 17:57:55 -0000 I originally posted to freebsd-questions but, judging by the lack of replies I think I made the mistake of posting to the wrong list - on reflection this seems to be more a question for hardware. Thanks in advance for any guidance. > > While preparing to move a system from i386 to amd > architecture The existing system is dual booting i386 for 5.4 > stable and 6.0. My plan is to remove both systems, preserve > my data and reinstall 6.1 amd from cd. > > The motherboard is a FA-K8N51GMF-9 with 3 hard drives > installed. 2xSata and 1xIDE. > > Freebsd 5.4 > #df sees > /dev/ad4s1a > devfs, > /dev/ad4s1e > /dev/ad4s1f > /dev/ad6s1d > /dev/ad6s1e > linprocfs > > Freebsd 6.0 > #df sees > /dev/ad0s1a > devfs > /dev/ad0s1e > /dev/ad01f > /dev/ad0s1d > /dev/ad4s1a > /dev/ad4s1f > /dev/ad6s1d > devfs > > The CD installer select drives interface for 6.1 RELEASE > amd64 recognizes > ad0 and > ad4 > but not ad6. > > For installing 6.1 amd I will need the installer to see all > physical devices and existing partitions. > > The Bios CMOS features show > IDE Channel 0 Master WDC WD2000JB > IDE Channel 0 Slave Lite-on CD-RW > IDE Channel 2 Master ST3160827AS > IDE Channel 3 Master WDC WD2000JD > The Advanced Bios features show > First boot device CDROM > Second Boot Device Hard Disk > Third boot Device Hard Disk > > The Hard disk boot priority sequence options show: > Ch0 > Ch2 > Ch3 > root > shutdown -r > > /var/log/messages shows (but ad6 is not shown on the amd64 messages!!) > ad0 WDC WD2000JB at ata0-master UDMA33 > acd0 Lite-on at ata0-slave USMA33 > ad4 ST3160827AS at ata2-master UDMA33 > ad6 WDC WD2000JD at ata3-master UDMA33 > > How do I get the installer select drives interface to recognize ad6? > > Thanks in advance > > david > PS I have now successfully built amd64 on /dev/ad0 but not yet mounted ad4 or ad6. While ad4 is "seen" according to /var/log/messages the new build does not "see" ad6 .. does anyone have any ideas how to fix this? Thanks David