From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 29 06:22:56 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F55816A4CE for ; Sun, 29 Aug 2004 06:22:56 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id C305D43D3F for ; Sun, 29 Aug 2004 06:22:55 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i7T6L5go034352; Sun, 29 Aug 2004 00:21:05 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 29 Aug 2004 00:21:09 -0600 (MDT) Message-Id: <20040829.002109.94555174.imp@bsdimp.com> To: flag@oltrelinux.com From: "M. Warner Losh" In-Reply-To: <20040827182358.GA2114@tin.it> References: <20040827182358.GA2114@tin.it> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Library (ab)use in kernel land X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2004 06:22:56 -0000 In message: <20040827182358.GA2114@tin.it> Paolo Pisati writes: : As a general rule of thumb, : which are the safe libraries we can link against : while developing a kernel module? None. : I mean, can i use libc functions? All of them? No. You can't. : And what about the other libraries in the base system? None. You can use some functions traditionally in libc that are in the kernel in libkern only. Warner From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 29 22:13:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF92B16A4CE for ; Sun, 29 Aug 2004 22:13:35 +0000 (GMT) Received: from newmail.slackdot.org (mail2.slackdot.org [66.92.146.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E21843D1F for ; Sun, 29 Aug 2004 22:13:35 +0000 (GMT) (envelope-from deker@slackdot.org) Received: from localhost (localhost [127.0.0.1]) by newmail.slackdot.org (Postfix) with ESMTP id 276E418032 for ; Sun, 29 Aug 2004 18:13:02 -0400 (EDT) Received: from newmail.slackdot.org ([127.0.0.1]) by localhost (newmail.slackdot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19890-06 for ; Sun, 29 Aug 2004 18:12:59 -0400 (EDT) Received: from [192.168.0.2] (unknown [192.168.0.2]) by newmail.slackdot.org (Postfix) with ESMTP id 476731801D for ; Sun, 29 Aug 2004 18:12:59 -0400 (EDT) From: Rob Deker To: freebsd-hackers@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Dt76DS0nVsjP63p3lXhX" Message-Id: <1093817592.8552.90.camel@nyx.slackdot.org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 29 Aug 2004 18:13:12 -0400 X-Virus-Scanned: by amavisd-new at slackdot.org Subject: Serial consoles and remote GDB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2004 22:13:35 -0000 --=-Dt76DS0nVsjP63p3lXhX Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi folks, New to the list, so please bear with me if this is a question that's been answered someplace before. I've been searching and can't seem to find an answer. I'm doing some driver hacking w/ FreeBSD 5.2.1 and I've hit a spot where my life would be much easier if I had remote GDB for kernel debugging. I am however using a serial console on this box, and can't seem to get things working so that I have console access to the box on one serial port and remote gdb running on the other one. Is this possible? I've tried various combinations of port flags for sio[01] in the device.hints file, but I'm not having much luck. I've tried toe following combinations (with the following results): - hint.sio.0.flags=3D"0x10" hint.sio.1.flags=3D"0x80" =20 This yeilded a console initially at boot, but one I told the loader to go ahead and boot the kernel, all I got for output were repeated 0x8e chars (looks like an accented capital 'A'). so, i figured that it might possibly be that the lowest numbered port should be the one with 0x80 set in flags, so I tried: - hint.sio.0.flags=3D"0x80" hint.sio.1.flags=3D"0x10" This got me (again) a console up until kernel load, but after that I had NO output at all. I'm open to any suggestions. My problem is that the machines that are the debug target and debug host are in my basement headless while my office is upstairs and I really would like to avoid running up and down stairs every time I need to switch in and out of gdb mode in ddb (no matter how much I might need the exercise ;) Thanks, -d --=-Dt76DS0nVsjP63p3lXhX Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBBMlT4iIu2X5vnl3ERAomZAKCafh6gFTqa2yzMhp+yaTTIvioUEgCeMjuU cArpqeXprN+qN8juaV7seFQ= =m64J -----END PGP SIGNATURE----- --=-Dt76DS0nVsjP63p3lXhX-- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 29 22:20:26 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A997116A4CF for ; Sun, 29 Aug 2004 22:20:26 +0000 (GMT) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 811B843D54 for ; Sun, 29 Aug 2004 22:20:26 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from dhcp53.pn.xcllnt.net (dhcp53.pn.xcllnt.net [192.168.4.253]) by ns1.xcllnt.net (8.13.1/8.13.1) with ESMTP id i7TMKPo8048103; Sun, 29 Aug 2004 15:20:26 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp53.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp53.pn.xcllnt.net (8.13.1/8.13.1) with ESMTP id i7TMKQWW023467; Sun, 29 Aug 2004 15:20:26 -0700 (PDT) (envelope-from marcel@dhcp53.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp53.pn.xcllnt.net (8.13.1/8.13.1/Submit) id i7TMKQ9O023466; Sun, 29 Aug 2004 15:20:26 -0700 (PDT) (envelope-from marcel) Date: Sun, 29 Aug 2004 15:20:25 -0700 From: Marcel Moolenaar To: Rob Deker Message-ID: <20040829222025.GA23449@dhcp53.pn.xcllnt.net> References: <1093817592.8552.90.camel@nyx.slackdot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1093817592.8552.90.camel@nyx.slackdot.org> User-Agent: Mutt/1.4.2.1i cc: freebsd-hackers@freebsd.org Subject: Re: Serial consoles and remote GDB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2004 22:20:26 -0000 On Sun, Aug 29, 2004 at 06:13:12PM -0400, Rob Deker wrote: > > I'm doing some driver hacking w/ FreeBSD 5.2.1 and I've hit a spot where > my life would be much easier if I had remote GDB for kernel debugging. I > am however using a serial console on this box, and can't seem to get > things working so that I have console access to the box on one serial > port and remote gdb running on the other one. Is this possible? Yes. Your hints are not the problem. You need to tell the kernel that you want to use remote GDB. Boot with -g or set boot_gdb=YES in /boot/loader.conf -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 29 22:56:02 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76D3E16A537 for ; Sun, 29 Aug 2004 22:56:02 +0000 (GMT) Received: from duchess.speedfactory.net (duchess.speedfactory.net [66.23.201.84]) by mx1.FreeBSD.org (Postfix) with SMTP id E93F343D2D for ; Sun, 29 Aug 2004 22:56:01 +0000 (GMT) (envelope-from ups@tree.com) Received: (qmail 8390 invoked by uid 89); 29 Aug 2004 22:56:01 -0000 Received: from duchess.speedfactory.net (66.23.201.84) by duchess.speedfactory.net with SMTP; 29 Aug 2004 22:56:01 -0000 Received: (qmail 8376 invoked by uid 89); 29 Aug 2004 22:56:01 -0000 Received: from unknown (HELO palm.tree.com) (66.23.216.49) by duchess.speedfactory.net with SMTP; 29 Aug 2004 22:56:01 -0000 Received: from [127.0.0.1] (localhost.tree.com [127.0.0.1]) by palm.tree.com (8.12.10/8.12.10) with ESMTP id i7TMtxfY062063; Sun, 29 Aug 2004 18:56:00 -0400 (EDT) (envelope-from ups@tree.com) From: Stephan Uphoff To: Rob Deker In-Reply-To: <1093817592.8552.90.camel@nyx.slackdot.org> References: <1093817592.8552.90.camel@nyx.slackdot.org> Content-Type: text/plain Message-Id: <1093820159.61235.81.camel@palm.tree.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 29 Aug 2004 18:55:59 -0400 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Serial consoles and remote GDB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2004 22:56:02 -0000 Hi, Try the patch from kern/65278 http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/65278 Stephan On Sun, 2004-08-29 at 18:13, Rob Deker wrote: > Hi folks, > > New to the list, so please bear with me if this is a question that's > been answered someplace before. I've been searching and can't seem to > find an answer. > > I'm doing some driver hacking w/ FreeBSD 5.2.1 and I've hit a spot where > my life would be much easier if I had remote GDB for kernel debugging. I > am however using a serial console on this box, and can't seem to get > things working so that I have console access to the box on one serial > port and remote gdb running on the other one. Is this possible? I've > tried various combinations of port flags for sio[01] in the device.hints > file, but I'm not having much luck. I've tried toe following > combinations (with the following results): > > - hint.sio.0.flags="0x10" > hint.sio.1.flags="0x80" > > This yeilded a console initially at boot, but one I told the loader > to go ahead and boot the kernel, all I got for output were repeated 0x8e > chars (looks like an accented capital 'A'). > > so, i figured that it might possibly be that the lowest numbered port > should be the one with 0x80 set in flags, so I tried: > > - hint.sio.0.flags="0x80" > hint.sio.1.flags="0x10" > > This got me (again) a console up until kernel load, but after that I > had NO output at all. > > I'm open to any suggestions. My problem is that the machines that are > the debug target and debug host are in my basement headless while my > office is upstairs and I really would like to avoid running up and down > stairs every time I need to switch in and out of gdb mode in ddb (no > matter how much I might need the exercise ;) > > Thanks, > > -d > From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 01:47:15 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3B8216A4CE for ; Mon, 30 Aug 2004 01:47:14 +0000 (GMT) Received: from web53310.mail.yahoo.com (web53310.mail.yahoo.com [206.190.39.239]) by mx1.FreeBSD.org (Postfix) with SMTP id 793A843D53 for ; Mon, 30 Aug 2004 01:47:14 +0000 (GMT) (envelope-from jiafu_he@yahoo.com) Message-ID: <20040830014713.39877.qmail@web53310.mail.yahoo.com> Received: from [151.196.46.2] by web53310.mail.yahoo.com via HTTP; Sun, 29 Aug 2004 18:47:13 PDT Date: Sun, 29 Aug 2004 18:47:13 -0700 (PDT) From: Jiafu He To: Rob Deker , freebsd-hackers@freebsd.org In-Reply-To: <1093817592.8552.90.camel@nyx.slackdot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Serial consoles and remote GDB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 01:47:15 -0000 --- Rob Deker wrote: > Hi folks, > > New to the list, so please bear with me if this is a question that's > been answered someplace before. I've been searching and can't seem to > find an answer. > > I'm doing some driver hacking w/ FreeBSD 5.2.1 and I've hit a spot > where > my life would be much easier if I had remote GDB for kernel > debugging. I > am however using a serial console on this box, and can't seem to get > things working so that I have console access to the box on one serial > port and remote gdb running on the other one. Is this possible? I've > tried various combinations of port flags for sio[01] in the > device.hints > file, but I'm not having much luck. I've tried toe following > combinations (with the following results): > > - hint.sio.0.flags="0x10" > hint.sio.1.flags="0x80" > > This yeilded a console initially at boot, but one I told the > loader > to go ahead and boot the kernel, all I got for output were repeated > 0x8e > chars (looks like an accented capital 'A'). > > so, i figured that it might possibly be that the lowest numbered port > should be the one with 0x80 set in flags, so I tried: > > - hint.sio.0.flags="0x80" > hint.sio.1.flags="0x10" > > This got me (again) a console up until kernel load, but after that > I > had NO output at all. > > I'm open to any suggestions. My problem is that the machines that are > the debug target and debug host are in my basement headless while my > office is upstairs and I really would like to avoid running up and > down > stairs every time I need to switch in and out of gdb mode in ddb (no > matter how much I might need the exercise ;) > Well. Would you try add one line "set console=comconsole" at the very beginning of /boot/loader.rc? JF __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 02:55:29 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 052E616A4CE for ; Mon, 30 Aug 2004 02:55:29 +0000 (GMT) Received: from web53908.mail.yahoo.com (web53908.mail.yahoo.com [206.190.36.218]) by mx1.FreeBSD.org (Postfix) with SMTP id 81CE143D54 for ; Mon, 30 Aug 2004 02:55:28 +0000 (GMT) (envelope-from easyeinfo@yahoo.com) Message-ID: <20040830025527.88596.qmail@web53908.mail.yahoo.com> Received: from [202.168.70.130] by web53908.mail.yahoo.com via HTTP; Sun, 29 Aug 2004 19:55:27 PDT Date: Sun, 29 Aug 2004 19:55:27 -0700 (PDT) From: Dennis George To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Finding MTU X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 02:55:29 -0000 Hi all, Can anybody tell me how to find the MTU (Maximum Transmitting Unit) in freeBSD programatically... Thanks in advance Dennis --------------------------------- Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 03:19:42 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBB9316A4CF for ; Mon, 30 Aug 2004 03:19:42 +0000 (GMT) Received: from newmail.slackdot.org (mail2.slackdot.org [66.92.146.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 795C343D46 for ; Mon, 30 Aug 2004 03:19:42 +0000 (GMT) (envelope-from deker@slackdot.org) Received: from localhost (localhost [127.0.0.1]) by newmail.slackdot.org (Postfix) with ESMTP id 97E5218034; Sun, 29 Aug 2004 23:19:08 -0400 (EDT) Received: from newmail.slackdot.org ([127.0.0.1]) by localhost (newmail.slackdot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21291-10; Sun, 29 Aug 2004 23:19:05 -0400 (EDT) Received: from [192.168.0.157] (unknown [192.168.0.157]) by newmail.slackdot.org (Postfix) with ESMTP id 1B13A18009; Sun, 29 Aug 2004 23:19:05 -0400 (EDT) From: Rob Deker To: Stephan Uphoff In-Reply-To: <1093820159.61235.81.camel@palm.tree.com> References: <1093817592.8552.90.camel@nyx.slackdot.org> <1093820159.61235.81.camel@palm.tree.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-JHEvNqxl3cRNuzHUSPDJ" Message-Id: <1093835972.6769.55.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 29 Aug 2004 23:19:32 -0400 X-Virus-Scanned: by amavisd-new at slackdot.org cc: freebsd-hackers@freebsd.org Subject: Re: Serial consoles and remote GDB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 03:19:43 -0000 --=-JHEvNqxl3cRNuzHUSPDJ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2004-08-29 at 18:55, Stephan Uphoff wrote: > Hi, >=20 > Try the patch from kern/65278 >=20 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/65278 >=20 Thanks, Looks like that did some good (I have my console back now), but when i either "boot -g" or break into ddb and give it a "gdb" command, then try and connect gdb to it on the other serial port, gdb seems to not be able to connect to it (and I consequently have to power cycle the machine to un-hang it). What I get from gdb is the following: bash-2.05b$ sudo gdb -k kernel.debug GNU gdb 5.2.1 (FreeBSD) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"... (kgdb) target remote /dev/cuaa4 Remote debugging using /dev/cuaa4 Ignoring packet error, continuing... Ignoring packet error, continuing... Ignoring packet error, continuing... Couldn't establish connection to remote target Malformed response to offset query, timeout thanks for the help, -d --=-JHEvNqxl3cRNuzHUSPDJ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBMpzEiIu2X5vnl3ERAlBlAJ49mHS8VgjywTALPcSUy5/LQqEOpACgqihD r3VPoqq+/eYjaDUFFas+7C8= =pAUD -----END PGP SIGNATURE----- --=-JHEvNqxl3cRNuzHUSPDJ-- From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 03:43:45 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 414EE16A4CE for ; Mon, 30 Aug 2004 03:43:45 +0000 (GMT) Received: from keylime.silverwraith.com (keylime.silverwraith.com [69.55.228.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B03643D1D for ; Mon, 30 Aug 2004 03:43:45 +0000 (GMT) (envelope-from lists-freebsd@silverwraith.com) Received: from keylime.silverwraith.com ([69.55.228.10]) by keylime.silverwraith.com with esmtp (Exim 4.41 (FreeBSD)) id 1C1d56-000JAc-FY; Sun, 29 Aug 2004 20:43:44 -0700 Received: (from avleen@localhost)i7U3hiRl073693; Sun, 29 Aug 2004 20:43:44 -0700 (PDT) (envelope-from lists-freebsd@silverwraith.com) X-Authentication-Warning: keylime.silverwraith.com: avleen set sender to lists-freebsd@silverwraith.com using -f Date: Sun, 29 Aug 2004 20:43:44 -0700 From: Avleen Vig To: Dennis George Message-ID: <20040830034344.GG54961@silverwraith.com> References: <20040830025527.88596.qmail@web53908.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040830025527.88596.qmail@web53908.mail.yahoo.com> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: Finding MTU X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 03:43:45 -0000 On Sun, Aug 29, 2004 at 07:55:27PM -0700, Dennis George wrote: > Hi all, > > Can anybody tell me how to find the MTU (Maximum Transmitting Unit) in > freeBSD programatically... Define programatically? With syscalls, or in a way that is easily repeatable? If you just mean the latter, this will do it: ifconfig -a | awk '/mtu/ { print $1, $NF }' Otherwise, try man networking and look for the word 'mtu', that might be a good start. From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 04:52:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B244716A4CE for ; Mon, 30 Aug 2004 04:52:37 +0000 (GMT) Received: from out004.verizon.net (out004pub.verizon.net [206.46.170.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 371D343D41 for ; Mon, 30 Aug 2004 04:52:37 +0000 (GMT) (envelope-from skip.ford@verizon.net) Received: from pool-70-17-33-17.pskn.east.verizon.net ([70.17.33.17]) by out004.verizon.netESMTP <20040830045236.SMBY28868.out004.verizon.net@pool-70-17-33-17.pskn.east.verizon.net>; Sun, 29 Aug 2004 23:52:36 -0500 Date: Mon, 30 Aug 2004 00:52:35 -0400 From: Skip Ford To: Dennis George Message-ID: <20040830045235.GA587@lucy.pool-70-17-33-17.pskn.east.verizon.net> Mail-Followup-To: Dennis George , freebsd-hackers@freebsd.org References: <20040830025527.88596.qmail@web53908.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040830025527.88596.qmail@web53908.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i X-Authentication-Info: Submitted using SMTP AUTH at out004.verizon.net from [70.17.33.17] at Sun, 29 Aug 2004 23:52:36 -0500 cc: freebsd-hackers@freebsd.org Subject: Re: Finding MTU X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 04:52:37 -0000 Dennis George wrote: > Can anybody tell me how to find the MTU (Maximum Transmitting > Unit) in freeBSD programatically... The full source for ifconfig(8) is available. No need to ask anyone... http://www.freebsd.org/cgi/cvsweb.cgi/src/sbin/ifconfig/ifconfig.c?rev=1.106&content-type=text/x-cvsweb-markup However, here's a small program, probably taken from the sources above at some point, that prints the MTU for ed0. #include #include #include #include #include #include #include #include int main(void) { int s, af = AF_INET; char *name = "ed0"; struct ifreq ifr; if ((s = socket(af, SOCK_DGRAM, 0)) < 0) err(1, "socket"); ifr.ifr_addr.sa_family = AF_INET; strcpy(ifr.ifr_name, name); if (ioctl(s, SIOCGIFMTU, (caddr_t)&ifr) < 0) warn("ioctl (get mtu)"); fprintf(stdout, "MTU of %s is %d.\n", name, ifr.ifr_mtu); close(s); return(0); } -- Skip From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 05:11:06 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D40216A4CE for ; Mon, 30 Aug 2004 05:11:06 +0000 (GMT) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3E8443D48 for ; Mon, 30 Aug 2004 05:11:05 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 9934 invoked from network); 30 Aug 2004 05:11:05 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 30 Aug 2004 05:11:05 -0000 Received: from hydrogen.funkthat.com (nwluzy@localhost.funkthat.com [127.0.0.1])i7U5B5uU027926; Sun, 29 Aug 2004 22:11:05 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i7U5B4Wj027925; Sun, 29 Aug 2004 22:11:04 -0700 (PDT) Date: Sun, 29 Aug 2004 22:11:04 -0700 From: John-Mark Gurney To: Dennis George Message-ID: <20040830051103.GX29902@funkthat.com> Mail-Followup-To: Dennis George , freebsd-hackers@freebsd.org References: <20040830025527.88596.qmail@web53908.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040830025527.88596.qmail@web53908.mail.yahoo.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-hackers@freebsd.org Subject: Re: Finding MTU X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 05:11:06 -0000 Dennis George wrote this message on Sun, Aug 29, 2004 at 19:55 -0700: > Can anybody tell me how to find the MTU (Maximum Transmitting Unit) in freeBSD programatically... Well, as someone pointed out, you can find it in ifconfig.. but if you want to know the mtu to a specific system, try: netstat -rWnfinet (or f) Enjoy. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 06:37:03 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E0E116A4CE for ; Mon, 30 Aug 2004 06:37:03 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44AD643D39 for ; Mon, 30 Aug 2004 06:37:03 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id i7U6daWu030453; Sun, 29 Aug 2004 23:39:37 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id i7U6daiv030452; Sun, 29 Aug 2004 23:39:36 -0700 Date: Sun, 29 Aug 2004 23:39:36 -0700 From: Brooks Davis To: Sam Paior Message-ID: <20040830063936.GA28061@odin.ac.hmc.edu> References: <20040828102229.43947.qmail@web50301.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw" Content-Disposition: inline In-Reply-To: <20040828102229.43947.qmail@web50301.mail.yahoo.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: freebsd-hackers@freebsd.org Subject: Re: sysctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 06:37:03 -0000 --wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 28, 2004 at 03:22:29AM -0700, Sam Paior wrote: > Dear Friends, >=20 > I'm using the FreeBsd5.2.1 > How do I do to activate the OID? > It shows the message: =20 > root# sysctl security.jail.allow_raw_sockets > sysctl: unknown oid 'security.jail.allow_raw_sockets' Upgrade to RELENG_5. This OID was added 5 months after 5.2.1 was released. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --wac7ysb48OaltWcw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBMsuoXY6L6fI4GtQRAtmhAKC9wFPegaZ/AxOK6LA9BuYQqVIa5gCfbDbf o7yGBAxO3mV5qIwRfm57Ua8= =33F9 -----END PGP SIGNATURE----- --wac7ysb48OaltWcw-- From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 09:20:10 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0ACD16A4CE; Mon, 30 Aug 2004 09:20:10 +0000 (GMT) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EC0F43D69; Mon, 30 Aug 2004 09:20:08 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.12.9p2/8.12.9) with ESMTP id i7U9K56E025368; Mon, 30 Aug 2004 13:20:05 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.12.9p2/8.12.9/Submit) id i7U9K5JJ025363; Mon, 30 Aug 2004 13:20:05 +0400 (MSD) (envelope-from yar) Date: Mon, 30 Aug 2004 13:20:04 +0400 From: Yar Tikhiy To: fs@freebsd.org, hackers@freebsd.org Message-ID: <20040830092004.GC22366@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: A typical bug around VOP_GETPAGES? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 09:20:10 -0000 Hi folks, Users' complaints about HFS for FreeBSD not compiling again encouraged me to hack up a yet another patchlevel allowing for recent changes in our beloved OS :-) This time fsx started to fail upon a mmapped access near the end of an HFS file with diagnostics that non-zero data were found beyond EOF (which is against POSIX.) I'm confused by this. HFS relies on the default VOP_GETPAGES handler and hence I used to believe that the kernel should just bread() the last block of the file, copy the appropriate part of it to the process' page, and zero out the rest of the page. Fsx found no other problems in a reasonable time, which meant plain vanilla reading from (and writing to) the FS worked OK. Perhaps anyone has a quick idea where to look for problematic code? -- Yar From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 29 14:09:05 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68F2D16A4CE for ; Sun, 29 Aug 2004 14:09:05 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (80-219-172-255.dclient.hispeed.ch [80.219.172.255]) by mx1.FreeBSD.org (Postfix) with ESMTP id A506743D49 for ; Sun, 29 Aug 2004 14:09:03 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:50db:acff:0:220:afff:fed4:dbcb]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id i7TE8vL02336 verified NO) for ; Sun, 29 Aug 2004 16:09:01 +0200 (CEST) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id i7TE8uG02335; Sun, 29 Aug 2004 16:08:57 +0200 (CEST) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Sun, 29 Aug 2004 16:08:57 +0200 (CEST) Message-Id: <200408291408.i7TE8uG02335@Mail.NOSPAM.DynDNS.dK> X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: beer set sender to bounce@NOSPAM.dyndns.dk using -f X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed from queue /tmp X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed by beer with -C /etc/mail/sendmail.cf-LOCAL From: Barry Bouwsma To: freebsd-hackers@freebsd.org X-Mailman-Approved-At: Mon, 30 Aug 2004 11:43:47 +0000 Subject: probe ordering of interfaces X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2004 14:09:05 -0000 [please drop me from replies and keep it on the list] A stupid question, which probably has been covered in the archives somewhere where I'm not looking. What determines the probe/attach ordering during boot? Specifically, I want to swap attach order of two devices that end up as umass, and wiring the device will not give the desired result. More specifically, I want to have firewire (sbp) devices hung onto da* first, and then USB umass devices. Even more specifically, I have a drive that I either attach via firewire on one machine, or via USB on a different box. I wish this drive to always be da0. I can connect it to a suitably ordered uhub slot in order to guarantee all other USB devices get da1-whatever. However, it seems that umass devices get attached to da* before firewire. As a result, when this drive is attached via firewire to a machine that has cardreaders and whatnot attached via USB, some other device shows as da0. If I were to wire sbp0 to be da0 on that machine, then if I were to attach it there via USB1/2, it would never be da0 and my fstab would not match. Therefore, the solution seems to be to give firewire first dibs at da*, where nowadays umass gets first pick. thanks for the enlightenment barry bouwsma From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 06:10:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EADF16A4CE for ; Mon, 30 Aug 2004 06:10:44 +0000 (GMT) Received: from smtp802.mail.sc5.yahoo.com (smtp802.mail.sc5.yahoo.com [66.163.168.181]) by mx1.FreeBSD.org (Postfix) with SMTP id 282B743D41 for ; Mon, 30 Aug 2004 06:10:44 +0000 (GMT) (envelope-from caleb_gibbs@sbcglobal.net) Received: from unknown (HELO orbitals) (caleb?gibbs@sbcglobal.net@69.105.90.201 with login) by smtp802.mail.sc5.yahoo.com with SMTP; 30 Aug 2004 06:10:43 -0000 From: "calebsbc" To: Date: Sun, 29 Aug 2004 23:10:39 -0500 Message-ID: <00b101c48e47$4fa74140$0200a8c0@orbitals> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal X-Mailman-Approved-At: Mon, 30 Aug 2004 11:43:47 +0000 Subject: Install problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: caleb_gibbs@sbcglobal.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 06:10:44 -0000 Hi I have a Toshiba Dynabook PIII 240mb ram and 4ogb hdd with other tid bits. When I boot the laptop in FreeBSD to install (floppy for cd) it goes past the first screen that does the count down and then boot the os but when it gets to the usb0: loader it freezes. Is this a common problem and is there a way around this. I tired to disable the USB module but to no avail. Any help on this matter would be great. Thanks Caleb From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 17:00:36 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 619F616A4CE for ; Mon, 30 Aug 2004 17:00:36 +0000 (GMT) Received: from duchess.speedfactory.net (duchess.speedfactory.net [66.23.201.84]) by mx1.FreeBSD.org (Postfix) with SMTP id 51DCF43D48 for ; Mon, 30 Aug 2004 17:00:35 +0000 (GMT) (envelope-from ups@tree.com) Received: (qmail 11036 invoked by uid 89); 30 Aug 2004 17:00:14 -0000 Received: from duchess.speedfactory.net (66.23.201.84) by duchess.speedfactory.net with SMTP; 30 Aug 2004 17:00:14 -0000 Received: (qmail 10984 invoked by uid 89); 30 Aug 2004 17:00:14 -0000 Received: from unknown (HELO palm.tree.com) (66.23.216.49) by duchess.speedfactory.net with SMTP; 30 Aug 2004 17:00:14 -0000 Received: from [127.0.0.1] (localhost.tree.com [127.0.0.1]) by palm.tree.com (8.12.10/8.12.10) with ESMTP id i7UH0CfY066652; Mon, 30 Aug 2004 13:00:12 -0400 (EDT) (envelope-from ups@tree.com) From: Stephan Uphoff To: Rob Deker In-Reply-To: <1093835972.6769.55.camel@localhost> References: <1093817592.8552.90.camel@nyx.slackdot.org> <1093820159.61235.81.camel@palm.tree.com> <1093835972.6769.55.camel@localhost> Content-Type: text/plain Message-Id: <1093885212.61235.102.camel@palm.tree.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 30 Aug 2004 13:00:12 -0400 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Serial consoles and remote GDB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 17:00:36 -0000 Are you sure that your serial line is configured with the right baud rate? I also encountered something like this when additional programs were reading form the serial line and stole characters from gdb. ( terminal emulators for testing, getty? ...) Your /boot/loader.conf should look somewhat like: console=comconsole hint.sio.1.flags=0x80 boot_ddb=1 boot_gdb=1 boot_verbose=1 Good luck Stephan On Sun, 2004-08-29 at 23:19, Rob Deker wrote: > On Sun, 2004-08-29 at 18:55, Stephan Uphoff wrote: > > Hi, > > > > Try the patch from kern/65278 > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/65278 > > > Thanks, > > Looks like that did some good (I have my console back now), but when i > either "boot -g" or break into ddb and give it a "gdb" command, then try > and connect gdb to it on the other serial port, gdb seems to not be able > to connect to it (and I consequently have to power cycle the machine to > un-hang it). What I get from gdb is the following: > > bash-2.05b$ sudo gdb -k kernel.debug > GNU gdb 5.2.1 (FreeBSD) > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "i386-unknown-freebsd"... > (kgdb) target remote /dev/cuaa4 > Remote debugging using /dev/cuaa4 > Ignoring packet error, continuing... > Ignoring packet error, continuing... > Ignoring packet error, continuing... > Couldn't establish connection to remote target > Malformed response to offset query, timeout > > thanks for the help, > > -d From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 18:11:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5509F16A4CE for ; Mon, 30 Aug 2004 18:11:54 +0000 (GMT) Received: from M4.sparta.com (M4.sparta.com [157.185.61.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBF8343D46 for ; Mon, 30 Aug 2004 18:11:53 +0000 (GMT) (envelope-from deker@slackdot.org) Received: from Beta5.sparta.com (beta5.sparta.com [157.185.63.21]) by M4.sparta.com (8.12.8/8.12.8) with ESMTP id i7UIBqZ5023402; Mon, 30 Aug 2004 13:11:52 -0500 Received: from columbia.sparta.com (lilo.columbia.SPARTA.COM [157.185.80.32]) by Beta5.sparta.com (8.12.11/8.12.11) with ESMTP id i7UIBqjZ028764; Mon, 30 Aug 2004 13:11:52 -0500 Received: from [157.185.80.108] (7lyxg41.columbia.sparta.com [157.185.80.108]) i7UIBnfq029883; Mon, 30 Aug 2004 14:11:49 -0400 (EDT) Message-ID: <41336DE5.4000000@slackdot.org> Date: Mon, 30 Aug 2004 14:11:49 -0400 From: Rob Deker User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Stephan Uphoff References: <1093817592.8552.90.camel@nyx.slackdot.org> <1093820159.61235.81.camel@palm.tree.com> <1093835972.6769.55.camel@localhost> <1093885212.61235.102.camel@palm.tree.com> In-Reply-To: <1093885212.61235.102.camel@palm.tree.com> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Serial consoles and remote GDB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 18:11:54 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stephan Uphoff wrote: | Are you sure that your serial line is configured with the right | baud rate? | This may seem a stupid question, but how do I set the baudrate on the port and in gdb? | I also encountered something like this when additional programs | were reading form the serial line and stole characters from gdb. ( | terminal emulators for testing, getty? ...) | I had this thought and checked. No getty's running on that port and no other term emulators running. | Your /boot/loader.conf should look somewhat like: | | console=comconsole | | hint.sio.1.flags=0x80 | | boot_ddb=1 boot_gdb=1 boot_verbose=1 | That's about right (though my device hints are in device.hints, and I should add the boot_verbose) Thanks again, - -d -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBM23liaU9aKbHcJcRAvkMAJ4i03NJaovfucQPAjz8DvHrbLArBACfQES1 oia1G/ks5OpDL2eAVm/naug= =FpM5 -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 19:16:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2027B16A4CE for ; Mon, 30 Aug 2004 19:16:48 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01BA843D48 for ; Mon, 30 Aug 2004 19:16:48 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id D80367A3D2; Mon, 30 Aug 2004 12:16:47 -0700 (PDT) Message-ID: <41337D1F.8030805@elischer.org> Date: Mon, 30 Aug 2004 12:16:47 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Stephan Uphoff References: <1093817592.8552.90.camel@nyx.slackdot.org> <1093820159.61235.81.camel@palm.tree.com> <1093835972.6769.55.camel@localhost> <1093885212.61235.102.camel@palm.tree.com> In-Reply-To: <1093885212.61235.102.camel@palm.tree.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: Rob Deker Subject: Re: Serial consoles and remote GDB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 19:16:48 -0000 Stephan Uphoff wrote: >Are you sure that your serial line is configured with the >right baud rate? > >I also encountered something like this when additional programs >were reading form the serial line and stole characters from gdb. >( terminal emulators for testing, getty? ...) > >Your /boot/loader.conf should look somewhat like: > >console=comconsole > >hint.sio.1.flags=0x80 > try 0xC0 > >boot_ddb=1 >boot_gdb=1 >boot_verbose=1 > >Good luck > Stephan > > >On Sun, 2004-08-29 at 23:19, Rob Deker wrote: > > >>On Sun, 2004-08-29 at 18:55, Stephan Uphoff wrote: >> >> >>>Hi, >>> >>>Try the patch from kern/65278 >>> >>>http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/65278 >>> >>> >>> >>Thanks, >> >> Looks like that did some good (I have my console back now), but when i >>either "boot -g" or break into ddb and give it a "gdb" command, then try >>and connect gdb to it on the other serial port, gdb seems to not be able >>to connect to it (and I consequently have to power cycle the machine to >>un-hang it). What I get from gdb is the following: >> >>bash-2.05b$ sudo gdb -k kernel.debug >>GNU gdb 5.2.1 (FreeBSD) >>Copyright 2002 Free Software Foundation, Inc. >>GDB is free software, covered by the GNU General Public License, and you >>are >>welcome to change it and/or distribute copies of it under certain >>conditions. >>Type "show copying" to see the conditions. >>There is absolutely no warranty for GDB. Type "show warranty" for >>details. >>This GDB was configured as "i386-unknown-freebsd"... >>(kgdb) target remote /dev/cuaa4 >>Remote debugging using /dev/cuaa4 >>Ignoring packet error, continuing... >>Ignoring packet error, continuing... >>Ignoring packet error, continuing... >>Couldn't establish connection to remote target >>Malformed response to offset query, timeout >> >>thanks for the help, >> >>-d >> >> > >_______________________________________________ >freebsd-hackers@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 19:27:31 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEA8F16A4CE; Mon, 30 Aug 2004 19:27:31 +0000 (GMT) Received: from dexter.zoopee.org (zoopee.org [192.117.108.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C62643D55; Mon, 30 Aug 2004 19:27:31 +0000 (GMT) (envelope-from alsbergt@zoopee.org) Received: from alsbergt by dexter.zoopee.org with local (Exim 4.30) id 1C1roI-0007bs-S8; Mon, 30 Aug 2004 22:27:22 +0300 Date: Mon, 30 Aug 2004 22:27:22 +0300 From: Tom Alsberg To: Brooks Davis Message-ID: <20040830192722.GA29212@zoopee.org> Mail-Followup-To: Tom Alsberg , Brooks Davis , Geert Hendrickx , simon@freebsd.org, FreeBSD Hackers List References: <20040810223606.GA75648@lori.mine.nu> <20040811124714.GA51160@eddie.nitro.dk> <20040814080337.GA17811@lori.mine.nu> <20040815165330.GA4726@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040815165330.GA4726@odin.ac.hmc.edu> X-Face: "5"j@Y1Peoz1; ftTv>\|['ox-csmV+:_RDNdi/2lSe2x?0:HVAeVW~ajwQ7RfDlcb^18eJ; t,O,s5-aNdU/DJ2E8h1s,..4}N9$27u`pWmH|; s!zlqqVwr9R^_ji=1\3}Z6gQBYyQ]{gd5-V8s^fYf{$V2*_&S>eA|SH@Y\hOVUjd[5eah{EO@gCr.ydSpJHJIU[QsH~bC?$C@O:SzF=CaUxp80-iknM(]q(W cc: FreeBSD Hackers List cc: simon@freebsd.org Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Tom Alsberg List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 19:27:32 -0000 On Sun, Aug 15, 2004 at 09:53:30AM -0700, Brooks Davis wrote: > On Sat, Aug 14, 2004 at 10:03:37AM +0200, Geert Hendrickx wrote: > > Does adding "NOCLEAN=true" to /etc/make.conf have the same effect? Just my two cents: > Yes, but it's likely to attract flames because NOCLEAN does fail. If > you forget it's in your make.conf there's a good chance you could report > a bug that isn't a bug a waste a bunch of developer time. In that case, there is a bug though - namely, a bug in the Makefile. Although this has happened to me in the past, it shouldn't happen in normal circumstances. The idea of Makefiles, when writing them correctly, is that only what's affected by a change -- but everything affected by it -- will be rebuilt in case of a change. So there's no good reason for a make to fail unless something very odd happened (with the timestamps, etc.) or something like this happens, it means some dependency is missing, or some script external to the Makefile did something wrong. > -- Brooks Cheers, -- Tom -- Tom Alsberg - certified insane, complete illiterate. Homepage: http://www.cs.huji.ac.il/~alsbergt/ * An idea is not responsible for the people who believe in it. From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 20:58:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52B6516A656 for ; Mon, 30 Aug 2004 20:58:25 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21DDD43D49 for ; Mon, 30 Aug 2004 20:58:23 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 20584 invoked from network); 30 Aug 2004 20:58:23 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 30 Aug 2004 20:58:22 -0000 Received: from [10.50.41.228] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i7UKvvMo045297; Mon, 30 Aug 2004 16:58:13 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Mon, 30 Aug 2004 15:04:28 -0400 User-Agent: KMail/1.6.2 References: <000c01c48ae4$c1867e90$0b00000a@trinita> In-Reply-To: <000c01c48ae4$c1867e90$0b00000a@trinita> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408301504.28017.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: hackers@FreeBSD.org Subject: Re: New computer X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 20:58:27 -0000 On Wednesday 25 August 2004 04:47 pm, db wrote: > Hi all > > I'm gonna buy a new computer with an Intel 915g, will freebsd be able to > support this? Maybe. :) Depends on if the PCI Express devices show up as PCI devices for FreeBSD since FreeBSD does not have PCI Express support yet. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 20:58:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F0A416A51E for ; Mon, 30 Aug 2004 20:58:26 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 225EF43D4C for ; Mon, 30 Aug 2004 20:58:23 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 20584 invoked from network); 30 Aug 2004 20:58:23 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 30 Aug 2004 20:58:22 -0000 Received: from [10.50.41.228] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i7UKvvMo045297; Mon, 30 Aug 2004 16:58:13 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Mon, 30 Aug 2004 15:04:28 -0400 User-Agent: KMail/1.6.2 References: <000c01c48ae4$c1867e90$0b00000a@trinita> In-Reply-To: <000c01c48ae4$c1867e90$0b00000a@trinita> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408301504.28017.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: hackers@FreeBSD.org Subject: Re: New computer X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 20:58:27 -0000 On Wednesday 25 August 2004 04:47 pm, db wrote: > Hi all > > I'm gonna buy a new computer with an Intel 915g, will freebsd be able to > support this? Maybe. :) Depends on if the PCI Express devices show up as PCI devices for FreeBSD since FreeBSD does not have PCI Express support yet. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 20:58:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C94B616A691 for ; Mon, 30 Aug 2004 20:58:26 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DEC343D69 for ; Mon, 30 Aug 2004 20:58:25 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 20682 invoked from network); 30 Aug 2004 20:58:25 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 30 Aug 2004 20:58:24 -0000 Received: from [10.50.41.228] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i7UKvvMp045297; Mon, 30 Aug 2004 16:58:21 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Mon, 30 Aug 2004 15:06:08 -0400 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit Message-Id: <200408301506.08829.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: yangshazhou@hotmail.com Subject: Re: yield() in kernel CAN'T yield control for MOD_LOAD thread X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 20:58:27 -0000 On Thursday 26 August 2004 02:36 am, yangshazhou@hotmail.com wrote: > Now "tsleep(&ident,PRIBIO,NULL,1)" solved the problem. Maybe yield() can't > do the job in kernel. And mi_switch() is not enough to.Thank you.On yield() can just switch back to you immediately since you (the current thread) are still runnable. Use a sleep, either via sleep/wakeup, or doing a tsleep with a timeout forces the current thread to not be runnable for a while giving the other thread time to run. Note that your tsleep(..., 1) is still racey, you really need to use sleep/wakeup to truly close the race. > Wednesday 25 August 2004 03:06 am, yangshazhou at hotmail.com wrote: > > Hi all, > > This problem delay me for quite a long time. > > I've built two klds, I'd like to see the result one's running to the > > other's. In one kld's MOD_LOAD subroutine, I make a long 'for' loop, in > > which it DELAY(1000) and then call yield(curthread,NULL). When the module > > was loaded by kldload, the system failed to response until the loop quit. > > The loop seems like that: > > for(i=0;i<8000;i++){ > > ...... > > DELAY(1000); > > yield(curthread,NULL); > > } > > > > My system is 5.2.1-release. Thanks. > > You could try having the first one wait on a condition variable that the > second module's MOD_LOAD does a wakeup on. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 20:58:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8A3016A4E0 for ; Mon, 30 Aug 2004 20:58:35 +0000 (GMT) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D9E943D5F for ; Mon, 30 Aug 2004 20:58:35 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 18372 invoked from network); 30 Aug 2004 20:58:35 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 30 Aug 2004 20:58:34 -0000 Received: from [10.50.41.228] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i7UKvvMt045297; Mon, 30 Aug 2004 16:58:31 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org, Tom Alsberg Date: Mon, 30 Aug 2004 16:56:19 -0400 User-Agent: KMail/1.6.2 References: <20040810223606.GA75648@lori.mine.nu> <20040815165330.GA4726@odin.ac.hmc.edu> <20040830192722.GA29212@zoopee.org> In-Reply-To: <20040830192722.GA29212@zoopee.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408301656.19394.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Geert Hendrickx cc: simon@FreeBSD.org Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 20:58:35 -0000 On Monday 30 August 2004 03:27 pm, Tom Alsberg wrote: > On Sun, Aug 15, 2004 at 09:53:30AM -0700, Brooks Davis wrote: > > On Sat, Aug 14, 2004 at 10:03:37AM +0200, Geert Hendrickx wrote: > > > Does adding "NOCLEAN=true" to /etc/make.conf have the same effect? > > Just my two cents: > > Yes, but it's likely to attract flames because NOCLEAN does fail. If > > you forget it's in your make.conf there's a good chance you could report > > a bug that isn't a bug a waste a bunch of developer time. > > In that case, there is a bug though - namely, a bug in the Makefile. > Although this has happened to me in the past, it shouldn't happen in > normal circumstances. The idea of Makefiles, when writing them > correctly, is that only what's affected by a change -- but everything > affected by it -- will be rebuilt in case of a change. > > So there's no good reason for a make to fail unless something very odd > happened (with the timestamps, etc.) or something like this happens, > it means some dependency is missing, or some script external to the > Makefile did something wrong. That may be true for simple projects but this isn't a simple project. For example, when gcc was recently upgraded it changed the ABI for C++. Imagine if one had mismatched .o files for libstdc++ if some of the source files didn't change. That kind of dependency (on a compiler ABI) is not easily expressed in Makefilesm, and certainly not cleanly. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 21:01:24 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0EB716A4CE for ; Mon, 30 Aug 2004 21:01:24 +0000 (GMT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC91D43D46 for ; Mon, 30 Aug 2004 21:01:24 +0000 (GMT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id BFF7A5C8E9; Mon, 30 Aug 2004 14:01:24 -0700 (PDT) Date: Mon, 30 Aug 2004 14:01:24 -0700 From: Alfred Perlstein To: hackers@freebsd.org Message-ID: <20040830210124.GP31434@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: (forw) Chuck Yerkes passed away. [SFBG] Fw: [ST] memorial (fwd) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 21:01:25 -0000 Chuck Yerkes passed away last week. ----- Forwarded message from David Thiel ----- From: David Thiel Reply-To: SFGoth Motorcycle Club To: bikergoths-l@sfgoth.com Subject: [SFBG] Fw: [ST] memorial (fwd) Date: Mon, 30 Aug 2004 12:31:44 -0700 Message-ID: <20040830193143.GA787@redundancy.redundancy.org> Mail-Followup-To: bikergoths-l@sfgoth.com User-Agent: Mutt/1.5.6i Sender: bikergoths-l-bounces@sfgoth.com I just realized that this is the person more commonly known as Chuck Yerkes. Free software or BSD people may recognize the name, he did a lot in those areas. > this was forwarded to me. > > do be careful. i think i've lost track of NorCal motorcycle deaths > this year. > > -----Original Message----- From: sprintst at valerieacton.com To: > ST at triumphnet.com Subject: [ST] memorial Date: Sat, 28 Aug 2004 > 14:15:18 -0400 > > On Thursday evening my partner was in a motorcycle accident and > passed away. > > http://www.sfgate.com/cgi-bin/article.cgi?file=/chronicle/archive/2004/08/28/BAG028FPR91.DTL > > This will not stop me from riding but I want you all to Please be > careful out there. > > Valerie > 2003 Triumph Sprint ST _______________________________________________ Bikergoths-l mailing list Bikergoths-l@sfgoth.com http://lists.sfgoth.com/mailman/listinfo/bikergoths-l ----- End forwarded message ----- -- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684 From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 31 06:37:23 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BBBF16A4CE; Tue, 31 Aug 2004 06:37:23 +0000 (GMT) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CC3F43D5C; Tue, 31 Aug 2004 06:37:23 +0000 (GMT) (envelope-from alsbergt@cs.huji.ac.il) Received: from ludo.cs.huji.ac.il ([132.65.80.122]) by cs1.cs.huji.ac.il with esmtp id 1C22Gf-000K9M-9c; Tue, 31 Aug 2004 09:37:21 +0300 Received: from alsbergt by ludo.cs.huji.ac.il with local (Exim 4.34 (FreeBSD)) id 1C22Ge-000Kiq-Vk; Tue, 31 Aug 2004 09:37:20 +0300 Date: Tue, 31 Aug 2004 09:37:20 +0300 From: Tom Alsberg To: John Baldwin Message-ID: <20040831063720.GA79612@cs.huji.ac.il> Mail-Followup-To: Tom Alsberg , John Baldwin , FreeBSD Hackers List , Brooks Davis , Geert Hendrickx , simon@FreeBSD.org References: <20040810223606.GA75648@lori.mine.nu> <20040815165330.GA4726@odin.ac.hmc.edu> <20040830192722.GA29212@zoopee.org> <200408301656.19394.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200408301656.19394.jhb@FreeBSD.org> X-Face: "5"j@Y1Peoz1; ftTv>\|['ox-csmV+:_RDNdi/2lSe2x?0:HVAeVW~ajwQ7RfDlcb^18eJ; t,O,s5-aNdU/DJ2E8h1s,..4}N9$27u`pWmH|; s!zlqqVwr9R^_ji=1\3}Z6gQBYyQ]{gd5-V8s^fYf{$V2*_&S>eA|SH@Y\hOVUjd[5eah{EO@gCr.ydSpJHJIU[QsH~bC?$C@O:SzF=CaUxp80-iknM(]q(W cc: simon@FreeBSD.org cc: Geert Hendrickx Subject: Re: make "quickworld"? (like in DragonFly) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2004 06:37:23 -0000 On Mon, Aug 30, 2004 at 04:56:19PM -0400, John Baldwin wrote: > > > So there's no good reason for a make to fail unless something very odd > > happened (with the timestamps, etc.) or something like this happens, > > it means some dependency is missing, or some script external to the > > Makefile did something wrong. > > That may be true for simple projects but this isn't a simple project. For > example, when gcc was recently upgraded it changed the ABI for C++. Imagine > if one had mismatched .o files for libstdc++ if some of the source files > didn't change. That kind of dependency (on a compiler ABI) is not easily > expressed in Makefilesm, and certainly not cleanly. True... As I said, there may be some exceptions, like midway compiler changes (in case of ABI incompatibility - although I wonder, why is it shared objects are compatible and plain ones aren't?), timestamp wrecks, or massive header file changes, etc. However, normally, I can't see such things happening, so I suppose that just continuing a make should work then. Nothing really serious, I just thought I had to comment about it after having dealt with many annoying broken Makefiles of some projects (which break on every update, or try to compile stuff during 'make install', or recompile almost everything on every minor typo fix...) - take the state of Mozilla and Samba two years ago for example. -- Tom -- Tom Alsberg - hacker (being the best description fitting this space) Web page: http://www.cs.huji.ac.il/~alsbergt/ DISCLAIMER: The above message does not even necessarily represent what my fingers have typed on the keyboard, save anything further. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 31 11:35:56 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D738F16A4CE for ; Tue, 31 Aug 2004 11:35:56 +0000 (GMT) Received: from cicero0.cybercity.dk (cicero0.cybercity.dk [212.242.40.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AEBC43D39 for ; Tue, 31 Aug 2004 11:35:56 +0000 (GMT) (envelope-from db@traceroute.dk) Received: from user3.cybercity.dk (user3.cybercity.dk [212.242.41.36]) by cicero0.cybercity.dk (Postfix) with ESMTP id 257DB29FC7 for ; Tue, 31 Aug 2004 13:35:54 +0200 (CEST) Received: from trinita (port132.ds1-arsy.adsl.cybercity.dk [212.242.239.73]) by user3.cybercity.dk (Postfix) with SMTP id 50F6293C27 for ; Tue, 31 Aug 2004 13:35:49 +0200 (CEST) Message-ID: <003901c48f4e$d5808fd0$0b00000a@trinita> From: "db" To: Date: Tue, 31 Aug 2004 13:36:54 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: New computer....help wanted :-S X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2004 11:35:57 -0000 Hi Got my new computer with an Intel 915g MB and an Intel 3.0GHZ CPU. = FreeBSD can't find the onboard NIC, but nevermind I got a Rubytech = gigabit NIC. Sadly though, it can't find that either, so I tried my old = 10/100 realtek card, but it can't use it. So I have 3 NIC's in the = computer, but 0 working.=20 When I in BIOS set the OS PnP to yes, I get: pcib5 at device 30.0 on pci0 pcib5 device re0 requested unsupported I/O range 0x0-0x0 (decoding = 0x9000-0xafff) re0: couldn't map ports/memory This is my gigabit card and it says the same about my rl0 (realtek). When I set OS PnP to no, I get: rl0: port 0xa400-0xa4ff mem = 0xcffff800-0xffff8ff irq 22 at device 10.0 on pci1 rl0: reset never completed! rl0: Ethernet address ff:ff:ff:ff:ff:ff rl0: unknown device ID: ffff device_probe_and_attach: rl0 attach returned 6 It doesn't say anything about re0. So what is up with this? I know FreeBSD doesn't support pci express, but = I haven't got any cards in any of the 2 pci express slots, so why all = these problems? I haven't tried to find my onboard soundcard or graphics = card, but I'm guessing it wouldn't be pretty :-( Btw I'm running 5.2.1 (4.10 couldn't find the gigabit card) and I'm = downloading 5.3-BETA2 (hoping this will solve the problem). br db From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 20:02:12 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CF8F16A4CE for ; Mon, 30 Aug 2004 20:02:12 +0000 (GMT) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76C6D43D2D for ; Mon, 30 Aug 2004 20:02:10 +0000 (GMT) (envelope-from mwm-dated-1094759368.6c42c0@mired.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id 88266F479C for ; Mon, 30 Aug 2004 13:02:09 -0700 (PDT) Received: from mired.org (mwm@idiom [216.240.32.1]) by idiom.com (8.12.11/8.12.11) with SMTP id i7UJnSde098195 for ; Mon, 30 Aug 2004 12:49:29 -0700 (PDT) (envelope-from mwm-dated-1094759368.6c42c0@mired.org) Received: (qmail 63678 invoked by uid 100); 30 Aug 2004 19:49:28 -0000 Received: by guru.mired.org (tmda-sendmail, from uid 100); Mon, 30 Aug 2004 14:49:28 -0500 (CDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16691.33991.798380.110797@guru.mired.org> Date: Mon, 30 Aug 2004 14:49:27 -0500 To: freebsd-hackers@freebsd.org In-Reply-To: <200408291408.i7TE8uG02335@Mail.NOSPAM.DynDNS.dK> References: <200408291408.i7TE8uG02335@Mail.NOSPAM.DynDNS.dK> X-Mailer: VM 7.17 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) X-Mailman-Approved-At: Tue, 31 Aug 2004 12:16:26 +0000 Subject: Re: probe ordering of interfaces X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 20:02:12 -0000 In <200408291408.i7TE8uG02335@Mail.NOSPAM.DynDNS.dK>, Barry Bouwsma typed: > [please drop me from replies and keep it on the list] > Even more specifically, I have a drive that I either attach > via firewire on one machine, or via USB on a different box. > I wish this drive to always be da0. I can connect it to a > suitably ordered uhub slot in order to guarantee all other > USB devices get da1-whatever. However, it seems that umass > devices get attached to da* before firewire. You can do this in the config file. My 5.x box is down now, so I'll quote from my 4.9 box with the same problem - a USB card reader that turns up as da0 in the default scanning order. Here's the extract from the config file that solves the problem: # SCSI Controllers device ahc0 # AHA2940 and onboard AIC7xxx devices device ahc # AHA2940 and onboard AIC7xxx devices # SCSI peripherals device scbus0 at ahc0 # SCSI bus (required) device scbus # SCSI bus (required) device da # Direct Access (disks) scbus0 is scanned first. I wired it down to ahc0. The occurence of ahc following ahc0 is because I have two ahc's in the box. The scbus following scbus0 will cause the second ahc and the usb scbus's to be found and scanned. Camcontrol devlist looks like this: at scbus0 target 0 lun 0 (pass0,da0) at scbus0 target 1 lun 0 (pass1,da1) at scbus0 target 3 lun 0 (pass2,da2) at scbus0 target 4 lun 0 (pass3,cd0) at scbus1 target 0 lun 0 (pass4,da3) at scbus2 target 5 lun 0 (pass5,cd1) As you can see, scsbus0 is the first ahc, scbus1 is the card reader, and scbus2 is the second ahc. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 31 13:44:57 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77B1716A4CE for ; Tue, 31 Aug 2004 13:44:57 +0000 (GMT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id E93CD43D1D for ; Tue, 31 Aug 2004 13:44:56 +0000 (GMT) (envelope-from mike@urgle.com) Received: from guylian.urgle.com ([80.177.40.54]) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 1C28wR-0007Ur-0Y; Tue, 31 Aug 2004 13:44:55 +0000 Received: from mike by guylian.urgle.com with local (Exim 4.32; FreeBSD) id 1C28wQ-000KHf-V9; Tue, 31 Aug 2004 13:44:55 +0000 Date: Tue, 31 Aug 2004 14:44:54 +0100 From: Mike Bristow To: Brian O'Shea Message-ID: <20040831134454.GA77426@urgle.com> References: <20040827182358.GA2114@tin.it> <20040828204050.77238.qmail@web50903.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040828204050.77238.qmail@web50903.mail.yahoo.com> User-Agent: Mutt/1.5.6i cc: FreeBSD_Hackers Subject: Re: Library (ab)use in kernel land X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2004 13:44:57 -0000 On Sat, Aug 28, 2004 at 01:40:50PM -0700, Brian O'Shea wrote: > That being said, there are a few analogs of the standard C > library functions in the kernel, such as printf, strcpy, bcmp, > qsort, etc. You can find sources for them in src/sys/libkern/ > with prototypes in the src/sys/sys/libkern.h and src/sys/sys/systm.h > header files. And manual pages in section 9 of the manual, eg: $ man 9 printf will give you the docs for the printf that you can call in kernelspace. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 31 14:14:14 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCD9A16A4CE for ; Tue, 31 Aug 2004 14:14:14 +0000 (GMT) Received: from files.jawa.at (jawa.at [213.229.17.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 544C943D53 for ; Tue, 31 Aug 2004 14:14:13 +0000 (GMT) (envelope-from michael.hollmann@jawa.at) Received: from localhost (localhost [127.0.0.1]) by files.jawa.at (Postfix) with ESMTP id 33DE0FDF4; Tue, 31 Aug 2004 16:14:09 +0200 (CEST) Received: from files.jawa.at ([127.0.0.1]) by localhost (files.jawa.at [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 42197-08; Tue, 31 Aug 2004 16:14:07 +0200 (CEST) Received: by files.jawa.at (Postfix, from userid 60) id 58F09FDF2; Tue, 31 Aug 2004 16:14:07 +0200 (CEST) Received: from jawa.at (holly.jawa.at [192.168.200.62]) by files.jawa.at (Postfix) with ESMTP id A3D3FFDAC; Tue, 31 Aug 2004 16:13:54 +0200 (CEST) Message-ID: <413487B4.3070601@jawa.at> Date: Tue, 31 Aug 2004 16:14:12 +0200 From: Michael Hollmann Organization: JAWA Management Software GmbH User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-CA; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-ca, en MIME-Version: 1.0 To: caleb_gibbs@sbcglobal.net References: <00b101c48e47$4fa74140$0200a8c0@orbitals> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on files.jawa.at X-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,RATWR10_MESSID autolearn=no version=2.64 X-Spam-Level: X-Virus-Scanned: by amavisd-new at jawa.at cc: freebsd-hackers@freebsd.org Subject: Re: Install problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2004 14:14:14 -0000 hi what kind of FreeBSD version did you use? i have a toshiba notebook to, satellite 1100-z20. i could run the setup at freebsd 5.0 or greater regards, michael calebsbc wrote: > Hi I have a Toshiba Dynabook PIII 240mb ram and 4ogb hdd with other tid > bits. > When I boot the laptop in FreeBSD to install (floppy for cd) it goes > past the first screen that does the count down and then boot the os but > when it gets to the usb0: loader it freezes. Is this a common problem > and is there a way around this. > I tired to disable the USB module but to no avail. > > Any help on this matter would be great. > Thanks > Caleb > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > -- Mit freundlichen Grüßen Michael Hollmann JAWA Management Software GmbH A-8041 Graz, Liebenauer Hauptstraße 200 Tel: ++43 (0)316 403274-13 Fax: ++43 (0)316 403274-10 GSM: ++43 (0)676 4101431 E-Mail: michael.hollmann@jawa.at Web: http://www.jawa.at/ From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 31 19:36:24 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C92416A4CE for ; Tue, 31 Aug 2004 19:36:24 +0000 (GMT) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC50843D31 for ; Tue, 31 Aug 2004 19:36:23 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 907 invoked from network); 31 Aug 2004 19:36:23 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 31 Aug 2004 19:36:23 -0000 Received: from [10.50.41.228] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i7VJaGUT052999; Tue, 31 Aug 2004 15:36:19 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Tue, 31 Aug 2004 13:27:33 -0400 User-Agent: KMail/1.6.2 References: <003901c48f4e$d5808fd0$0b00000a@trinita> In-Reply-To: <003901c48f4e$d5808fd0$0b00000a@trinita> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408311327.33588.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: hackers@FreeBSD.org Subject: Re: New computer....help wanted :-S X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2004 19:36:24 -0000 On Tuesday 31 August 2004 07:36 am, db wrote: > Hi > > Got my new computer with an Intel 915g MB and an Intel 3.0GHZ CPU. FreeBSD > can't find the onboard NIC, but nevermind I got a Rubytech gigabit NIC. > Sadly though, it can't find that either, so I tried my old 10/100 realtek > card, but it can't use it. So I have 3 NIC's in the computer, but 0 > working. When I in BIOS set the OS PnP to yes, I get: Set it to no. FreeBSD 5 only sort of works with it set to yes. > pcib5 at device 30.0 on pci0 > pcib5 device re0 requested unsupported I/O range 0x0-0x0 (decoding > 0x9000-0xafff) re0: couldn't map ports/memory > This is my gigabit card and it says the same about my rl0 (realtek). > > When I set OS PnP to no, I get: > rl0: port 0xa400-0xa4ff mem > 0xcffff800-0xffff8ff irq 22 at device 10.0 on pci1 rl0: reset never > completed! > rl0: Ethernet address ff:ff:ff:ff:ff:ff > rl0: unknown device ID: ffff > device_probe_and_attach: rl0 attach returned 6 > It doesn't say anything about re0. Well, FreeBSD is still not able to talk to the card ok. Not sure why, but PCI express changes several things including how one talks to PCI cards, so the fact that it is a PCI express chipset may break things enough for it not to work right now. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 31 19:36:24 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4005716A4CE for ; Tue, 31 Aug 2004 19:36:24 +0000 (GMT) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C03D43D2F for ; Tue, 31 Aug 2004 19:36:24 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 907 invoked from network); 31 Aug 2004 19:36:23 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 31 Aug 2004 19:36:23 -0000 Received: from [10.50.41.228] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i7VJaGUT052999; Tue, 31 Aug 2004 15:36:19 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Tue, 31 Aug 2004 13:27:33 -0400 User-Agent: KMail/1.6.2 References: <003901c48f4e$d5808fd0$0b00000a@trinita> In-Reply-To: <003901c48f4e$d5808fd0$0b00000a@trinita> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408311327.33588.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: hackers@FreeBSD.org Subject: Re: New computer....help wanted :-S X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2004 19:36:25 -0000 On Tuesday 31 August 2004 07:36 am, db wrote: > Hi > > Got my new computer with an Intel 915g MB and an Intel 3.0GHZ CPU. FreeBSD > can't find the onboard NIC, but nevermind I got a Rubytech gigabit NIC. > Sadly though, it can't find that either, so I tried my old 10/100 realtek > card, but it can't use it. So I have 3 NIC's in the computer, but 0 > working. When I in BIOS set the OS PnP to yes, I get: Set it to no. FreeBSD 5 only sort of works with it set to yes. > pcib5 at device 30.0 on pci0 > pcib5 device re0 requested unsupported I/O range 0x0-0x0 (decoding > 0x9000-0xafff) re0: couldn't map ports/memory > This is my gigabit card and it says the same about my rl0 (realtek). > > When I set OS PnP to no, I get: > rl0: port 0xa400-0xa4ff mem > 0xcffff800-0xffff8ff irq 22 at device 10.0 on pci1 rl0: reset never > completed! > rl0: Ethernet address ff:ff:ff:ff:ff:ff > rl0: unknown device ID: ffff > device_probe_and_attach: rl0 attach returned 6 > It doesn't say anything about re0. Well, FreeBSD is still not able to talk to the card ok. Not sure why, but PCI express changes several things including how one talks to PCI cards, so the fact that it is a PCI express chipset may break things enough for it not to work right now. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 02:38:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 262EB16A4CE; Wed, 1 Sep 2004 02:38:55 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C84243D58; Wed, 1 Sep 2004 02:38:54 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i812aHQJ074329; Tue, 31 Aug 2004 20:36:17 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 31 Aug 2004 20:36:27 -0600 (MDT) Message-Id: <20040831.203627.59830125.imp@bsdimp.com> To: jhb@freebsd.org, hackers@freebsd.org From: "M. Warner Losh" In-Reply-To: <200408311327.33588.jhb@FreeBSD.org> References: <003901c48f4e$d5808fd0$0b00000a@trinita> <200408311327.33588.jhb@FreeBSD.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: New computer....help wanted :-S X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 02:38:55 -0000 In message: <200408311327.33588.jhb@FreeBSD.org> John Baldwin writes: : On Tuesday 31 August 2004 07:36 am, db wrote: : > Hi : > : > Got my new computer with an Intel 915g MB and an Intel 3.0GHZ CPU. FreeBSD : > can't find the onboard NIC, but nevermind I got a Rubytech gigabit NIC. : > Sadly though, it can't find that either, so I tried my old 10/100 realtek : > card, but it can't use it. So I have 3 NIC's in the computer, but 0 : > working. When I in BIOS set the OS PnP to yes, I get: : : Set it to no. FreeBSD 5 only sort of works with it set to yes. What's the breakage? : > pcib5 at device 30.0 on pci0 : > pcib5 device re0 requested unsupported I/O range 0x0-0x0 (decoding : > 0x9000-0xafff) re0: couldn't map ports/memory : > This is my gigabit card and it says the same about my rl0 (realtek). : > : > When I set OS PnP to no, I get: : > rl0: port 0xa400-0xa4ff mem : > 0xcffff800-0xffff8ff irq 22 at device 10.0 on pci1 rl0: reset never : > completed! : > rl0: Ethernet address ff:ff:ff:ff:ff:ff : > rl0: unknown device ID: ffff : > device_probe_and_attach: rl0 attach returned 6 : > It doesn't say anything about re0. : : Well, FreeBSD is still not able to talk to the card ok. Not sure why, but PCI : express changes several things including how one talks to PCI cards, so the : fact that it is a PCI express chipset may break things enough for it not to : work right now. This looks like some kind of resource problem: : > 0xcffff800-0xffff8ff irq 22 at device 10.0 on pci1 rl0: reset never ^^^^^^^^^^^^^^^^^^^^^^^^ that's crazy man. Is that really what it prints, or the the 'c' missing and it actually allocates: 0xcffff800-0xcffff8ff irq 22 at device 10.0 on pci1 which would make more sense. Since it is behind a bridge, that might also have some impact on as well. That's what the pcib5 thing is saying, I think. Warner From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 05:55:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF36816A4CE for ; Wed, 1 Sep 2004 05:55:22 +0000 (GMT) Received: from cicero0.cybercity.dk (cicero0.cybercity.dk [212.242.40.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AEBC43D5A for ; Wed, 1 Sep 2004 05:55:22 +0000 (GMT) (envelope-from db@traceroute.dk) Received: from user1.cybercity.dk (user1.cybercity.dk [212.242.41.34]) by cicero0.cybercity.dk (Postfix) with ESMTP id 2371D2AC82; Wed, 1 Sep 2004 07:55:20 +0200 (CEST) Received: from trinita (port132.ds1-arsy.adsl.cybercity.dk [212.242.239.73]) by user1.cybercity.dk (Postfix) with SMTP id 4AF5374FB4B; Wed, 1 Sep 2004 07:55:19 +0200 (CEST) Message-ID: <004801c48fe8$6cf00370$0200000a@trinita> From: "db" To: "M. Warner Losh" References: <003901c48f4e$d5808fd0$0b00000a@trinita><200408311327.33588.jhb@FreeBSD.org> <20040831.203627.59830125.imp@bsdimp.com> Date: Wed, 1 Sep 2004 07:56:28 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 cc: hackers@freebsd.org Subject: Re: New computer....help wanted :-S X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 05:55:22 -0000 ----- Original Message ----- From: "M. Warner Losh" To: ; Sent: Wednesday, September 01, 2004 4:36 AM Subject: Re: New computer....help wanted :-S > This looks like some kind of resource problem: > > : > 0xcffff800-0xffff8ff irq 22 at device 10.0 on pci1 rl0: reset never > ^^^^^^^^^^^^^^^^^^^^^^^^ > > that's crazy man. Is that really what it prints, or the the 'c' > missing and it actually allocates: > > 0xcffff800-0xcffff8ff irq 22 at device 10.0 on pci1 Ah sorry, yes the 'c' was missing, so 0xcffff800-0xcffff8ff is correct. br db From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 07:02:00 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF93B16A4CF for ; Wed, 1 Sep 2004 07:02:00 +0000 (GMT) Received: from web50907.mail.yahoo.com (web50907.mail.yahoo.com [206.190.38.127]) by mx1.FreeBSD.org (Postfix) with SMTP id 4444443D53 for ; Wed, 1 Sep 2004 07:02:00 +0000 (GMT) (envelope-from b_oshea@yahoo.com) Message-ID: <20040901070159.42129.qmail@web50907.mail.yahoo.com> Received: from [24.6.211.166] by web50907.mail.yahoo.com via HTTP; Wed, 01 Sep 2004 00:01:59 PDT Date: Wed, 1 Sep 2004 00:01:59 -0700 (PDT) From: Brian O'Shea To: Mike Bristow In-Reply-To: <20040831134454.GA77426@urgle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: FreeBSD_Hackers Subject: Re: Library (ab)use in kernel land X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 07:02:00 -0000 --- Mike Bristow wrote: > > And manual pages in section 9 of the manual, eg: > > $ man 9 printf > > will give you the docs for the printf that you can call in kernelspace. Yes, however I can't find a man page that nicely outlines all of the kernel libc-like functions available (something like stdio(3) but for section 9). I think the original poster was looking for something like that. -brian _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 07:56:16 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90D3716A4CE for ; Wed, 1 Sep 2004 07:56:16 +0000 (GMT) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2E3943D1F for ; Wed, 1 Sep 2004 07:56:15 +0000 (GMT) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (orb_rules@localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.11/8.12.11) with ESMTP id i817uEUt083180 for ; Wed, 1 Sep 2004 09:56:14 +0200 (CEST) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.11/8.12.11/Submit) id i817uEtv083179 for freebsd-hackers@freebsd.org; Wed, 1 Sep 2004 09:56:14 +0200 (CEST) (envelope-from stijn) Date: Wed, 1 Sep 2004 09:56:14 +0200 From: Stijn Hoop To: freebsd-hackers@freebsd.org Message-ID: <20040901075614.GI65336@pcwin002.win.tue.nl> Mail-Followup-To: Stijn Hoop , freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rCb8EA+9TsBVtA92" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Bright-Idea: Let's abolish HTML mail! Subject: ndis/if_ndis kernel configuration patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 07:56:16 -0000 --rCb8EA+9TsBVtA92 Content-Type: multipart/mixed; boundary="AqCDj3hiknadvR6t" Content-Disposition: inline --AqCDj3hiknadvR6t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, after I got frustrated by forgetting to manually make the if_ndis module af= ter an upgrade to -CURRENT, and subsequently having to fix /boot/loader.conf again, I was motivated enough to try and think of a way to integrate ndis/if_ndis into the build system. Attached is my first try at this. Since most of the stuff has been copy & pasted there's bound to be something wrong here, but I have verified that having NDIS_INF=3D/path/to/ndis.inf NDIS_SYS=3D/path/to/ndis.sys in /etc/make.conf makes the if_ndis module build, and I also compiled a static kernel with device ndisapi device ndis options NDIS_INF makeoptions NDIS_INF=3D/path/to/ndis.inf options NDIS_SYS makeoptions NDIS_SYS=3D/path/to/ndis.sys which booted & detected my Dell Truemobile 1300 card fine. I did ran into 2 build errors when statically compiling ndisapi/ndis -- may= be the kernel build has stricter CFLAGS? Also attached is a patch to fix those warnings. Any comments most welcome. --Stijn --=20 I have great faith in fools -- self confidence my friends call it. -- Edgar Allan Poe --AqCDj3hiknadvR6t Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="if_ndis.patch" Content-Transfer-Encoding: quoted-printable Index: conf/files.i386 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /freebsd/cvsroot/src/sys/conf/files.i386,v retrieving revision 1.504 diff -u -u -r1.504 files.i386 --- conf/files.i386 16 Aug 2004 12:25:47 -0000 1.504 +++ conf/files.i386 1 Sep 2004 07:42:35 -0000 @@ -56,6 +56,11 @@ compile-with "uudecode < $S/contrib/dev/ath/freebsd/i386-elf.hal.o.uu" \ no-implicit-rule # +ndis_driver_data.h optional ndis ndis_inf ndis_sys \ + compile-with "ndiscvt -i ${NDIS_INF} -s ${NDIS_SYS} > ${.TARGET}" \ + no-obj no-implicit-rule before-depend \ + clean "ndis_driver_data.h" +# # compat/linux/linux_file.c optional compat_linux compat/linux/linux_getcwd.c optional compat_linux Index: conf/options.i386 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /freebsd/cvsroot/src/sys/conf/options.i386,v retrieving revision 1.215 diff -u -u -r1.215 options.i386 --- conf/options.i386 19 Aug 2004 20:58:23 -0000 1.215 +++ conf/options.i386 1 Sep 2004 07:49:30 -0000 @@ -162,3 +162,6 @@ # Device options DEV_APIC opt_apic.h DEV_NPX opt_npx.h + +NDIS_INF opt_dontuse.h +NDIS_SYS opt_dontuse.h Index: i386/conf/NOTES =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /freebsd/cvsroot/src/sys/i386/conf/NOTES,v retrieving revision 1.1172 diff -u -u -r1.1172 NOTES --- i386/conf/NOTES 30 Aug 2004 23:03:57 -0000 1.1172 +++ i386/conf/NOTES 1 Sep 2004 07:47:24 -0000 @@ -511,6 +511,7 @@ # Intel EtherExpress # lnc: Lance/PCnet cards (Isolan, Novell NE2100, NE32-VL, AMD Am7990 and # Am79C960) +# ndis: NDISulator, support for using Windows(R) drivers using a wrapper # oltr: Olicom ISA token-ring adapters OC-3115, OC-3117, OC-3118 and OC-31= 33. # Olicom PCI token-ring adapters OC-3136, OC-3137, OC-3139, OC-3140, # OC-3141, OC-3540 and OC-3250. @@ -583,6 +584,13 @@ device ath_hal # Atheros HAL (includes binary component) #device wlan # 802.11 layer =20 +device ndisapi # NDISulator API wrapper +#device ndis # NDIS driver wrapper interface +#options NDIS_INF +#makeoptions NDIS_INF=3Dbcmwl5.inf +#options NDIS_SYS +#makeoptions NDIS_SYS=3Dbcmwl5.sys + # # ATA raid adapters # Index: modules/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /freebsd/cvsroot/src/sys/modules/Makefile,v retrieving revision 1.397 diff -u -u -r1.397 Makefile --- modules/Makefile 30 Aug 2004 03:37:36 -0000 1.397 +++ modules/Makefile 1 Sep 2004 06:14:16 -0000 @@ -94,6 +94,7 @@ if_faith \ if_gif \ if_gre \ + ${_if_ndis} \ if_ppp \ if_sl \ if_stf \ @@ -301,6 +302,9 @@ _i2c=3D i2c _ibcs2=3D ibcs2 _ie=3D ie +.if defined(NDIS_INF) && defined(NDIS_SYS) +_if_ndis=3D if_ndis +.endif _io=3D io _linprocfs=3D linprocfs _linux=3D linux Index: modules/if_ndis/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /freebsd/cvsroot/src/sys/modules/if_ndis/Makefile,v retrieving revision 1.4 diff -u -u -r1.4 Makefile --- modules/if_ndis/Makefile 26 May 2004 00:53:04 -0000 1.4 +++ modules/if_ndis/Makefile 1 Sep 2004 06:13:34 -0000 @@ -6,4 +6,11 @@ SRCS=3D if_ndis.c if_ndis_pci.c if_ndis_pccard.c SRCS+=3D opt_bdg.h device_if.h bus_if.h pci_if.h card_if.h pccarddevs.h =20 +.if defined(NDIS_INF) && defined(NDIS_SYS) +SRCS+=3D ndis_driver_data.h + +ndis_driver_data.h: ${NDIS_INF} ${NDIS_SYS} + ndiscvt -i ${NDIS_INF} -s ${NDIS_SYS} -o ${.OBJDIR}/ndis_driver_data.h +.endif + .include --AqCDj3hiknadvR6t Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ndis-casts.patch" Content-Transfer-Encoding: quoted-printable Index: compat/ndis/subr_ndis.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /freebsd/cvsroot/src/sys/compat/ndis/subr_ndis.c,v retrieving revision 1.67 diff -u -u -r1.67 subr_ndis.c --- compat/ndis/subr_ndis.c 16 Aug 2004 19:25:27 -0000 1.67 +++ compat/ndis/subr_ndis.c 1 Sep 2004 08:18:22 -0000 @@ -2875,7 +2875,7 @@ __stdcall ndis_proc workfunc; =20 work =3D ctx; - workfunc =3D work->nwi_func; + workfunc =3D (__stdcall ndis_proc)work->nwi_func; workfunc(work, work->nwi_ctx); return; } Index: compat/ndis/subr_ntoskrnl.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /freebsd/cvsroot/src/sys/compat/ndis/subr_ntoskrnl.c,v retrieving revision 1.43 diff -u -u -r1.43 subr_ntoskrnl.c --- compat/ndis/subr_ntoskrnl.c 16 Aug 2004 18:52:37 -0000 1.43 +++ compat/ndis/subr_ntoskrnl.c 1 Sep 2004 08:18:41 -0000 @@ -1694,7 +1694,7 @@ uint8_t irql; =20 dpc =3D arg; - dpcfunc =3D (kdpc_func)dpc->k_deferedfunc; + dpcfunc =3D (__stdcall kdpc_func)dpc->k_deferedfunc; irql =3D ntoskrnl_raise_irql(DISPATCH_LEVEL); dpcfunc(dpc, dpc->k_deferredctx, dpc->k_sysarg1, dpc->k_sysarg2); ntoskrnl_lower_irql(irql); --AqCDj3hiknadvR6t-- --rCb8EA+9TsBVtA92 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBNYCdY3r/tLQmfWcRAqewAJ9ewqnJ4zoy3vYvOc2d6LiKzNqv/gCeOa41 Jf7B4J6r92BgBIUKCPpnCTc= =huDO -----END PGP SIGNATURE----- --rCb8EA+9TsBVtA92-- From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 12:00:32 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C29A16A4D1 for ; Wed, 1 Sep 2004 12:00:32 +0000 (GMT) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D30043D54 for ; Wed, 1 Sep 2004 12:00:31 +0000 (GMT) (envelope-from glebius@freebsd.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.11/8.12.8) with ESMTP id i81C0SJe049859 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 1 Sep 2004 16:00:29 +0400 (MSD) (envelope-from glebius@freebsd.org) Received: (from glebius@localhost) by cell.sick.ru (8.12.11/8.12.11/Submit) id i81C0S5n049858 for hackers@freebsd.org; Wed, 1 Sep 2004 16:00:28 +0400 (MSD) (envelope-from glebius@freebsd.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@freebsd.org using -f Date: Wed, 1 Sep 2004 16:00:27 +0400 From: Gleb Smirnoff To: hackers@freebsd.org Message-ID: <20040901120027.GA49655@cell.sick.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: copyin() instead of sooptcopyin()? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 12:00:32 -0000 Dear hackers, I have a case, when I need to pass a small argument to kernel, and receive large reply using getsockopt(). First I get the argument: char var[MAX]; ... if ((error = sooptcopyin(sopt, var, MAX, 2)) ... Then I push reply to it using sooptcopyout(). But userland receives it truncated to MAX. The problem lives in sooptcopyin() implementation, which changes sopt->sopt_valsize. Now, in my patch I solve this using bare copyin(). Another approach may be saving sopt->sopt_valsize before call to sooptcopyin(), and then restoring it. Not a nice solution however... The questions are: 1) Is it OK to use bare copyin()? Which hidden problems can arise? 2) Is that correct that soopcopy[in|out]() changes sopt's fields? -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 02:38:38 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43BFD16A4CE for ; Wed, 1 Sep 2004 02:38:38 +0000 (GMT) Received: from hotmail.com (bay17-dav7.bay17.hotmail.com [64.4.43.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B42E43D49 for ; Wed, 1 Sep 2004 02:38:38 +0000 (GMT) (envelope-from yangshazhou@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 31 Aug 2004 19:34:45 -0700 Received: from 61.187.16.2 by bay17-dav7.bay17.hotmail.com with DAV; Wed, 01 Sep 2004 02:34:45 +0000 X-Originating-IP: [61.187.16.2] X-Originating-Email: [yangshazhou@hotmail.com] X-Sender: yangshazhou@hotmail.com From: To: Date: Wed, 1 Sep 2004 10:31:57 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: X-OriginalArrivalTime: 01 Sep 2004 02:34:45.0462 (UTC) FILETIME=[3E4E0F60:01C48FCC] X-Mailman-Approved-At: Wed, 01 Sep 2004 12:32:54 +0000 Subject: What's what on the scheduler in FreeBSD 5.x X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 02:38:38 -0000 Hi all, I've very interested in scheduler implementation. I got some opinions on FreeBSD5's scheduler from source codes and articles. And I presented here, waiting for critism, for I'm new to FreeBSD. KSE 1.an implementation of SA (Scheduler activation), two-level co-operating scheduling of kernel and userland. 2.One process can own multiple KSEG, each with different schedule policy and diffferent priority. 3.KSE load kernel thread and userland thread to run, as a virtual CPU. Scheduler's choosing policy is based on the KSE-loaded thread's priority, the highest gets running and the KSEs with the same priority get round-robin. 4.The userland scheduler can implement more reasonable, more complex policy. But now, it's quite simple. Time Slice 1.Actually No time-slice. It's some periodic functions to make threads be preemptied. 2.roundrobin() works every 100ms. Other periodic functions sleep longer till run, eg, 1s for schedcpu(). Then we can conclude roundrobin() can invoke a schedule action every 100ms, re-selecting better KSEs to run. That's the same effect as constant 100ms time slice. 3.100ms is a reasonable value, maybe coming from experience. sysctl can change it as wish. Priority 1.The principle is lower response time as well as higher through-put. 2.The behaviour of kg_estcpu is the key: threads long-running will be punished, ready threads long-waiting will get promotion, and the long-sleeping threads get promotion when awaken too. 3.Priorities are stored in KSEGs, and will be updated to threads momently. At the same time, the system update (according to kg_estcpu and other factors) the priorities of all of the threads every 1 second. Threads will be re-sort in run queue then. Interactive process 1.The characters for interactive processes: sleep more and longer. 2.CPU-intensive processes run longer, be punished; The promotion will be enlarged when sleep time extends some certain value. 3.No influence from sleep times till now. Real-time 1.No realtime support basically. Realtime processes have higher priority, and that's all. The same implemention in scheduling algorithm. 2.No kernel pre-emptive support. Multi-processor 1.4BSD scheduler, the default: Giant lock, no CPU-affinity, no SMT/NUMA support/optimizing. 2.ULE scheduler, the one especially for SMP: multi-runqueue, supporting CPU-affinity and thread transfer according to load. Strangely, no load-balance as 'pull' told in ULE's document, no kseq-group (multi logic CPUs mapped to the same kseq), and then actually no SMT/NUMA support too, which are all promised in the document. From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 13:20:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE65116A4CE for ; Wed, 1 Sep 2004 13:20:37 +0000 (GMT) Received: from lakermmtao10.cox.net (lakermmtao10.cox.net [68.230.240.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 388E743D31 for ; Wed, 1 Sep 2004 13:20:37 +0000 (GMT) (envelope-from bagus@cox.net) Received: from bagus ([68.11.49.116]) by lakermmtao10.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with SMTP id <20040901132034.KULB16005.lakermmtao10.cox.net@bagus> for ; Wed, 1 Sep 2004 09:20:34 -0400 From: "Bagus" To: Date: Wed, 1 Sep 2004 08:25:20 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Subject: slow login, app launching, etc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 13:20:37 -0000 Hi, is anyone able to help me problem solve on this? Is this the right forum for this kind of question? If not, could someone please send me a pointer to an organization that might be able to help. I have a small budget to get this fixed if anyone wants it. I'm running FreeBSD 2.2CAM-19980716-SNAP on bagus.org. I've been running it for a few years. Recently, after normal performance, I've been experiencing extremely slow login prompt appearance, extremely slow application launching and what bugs me the most is the extremely slow response time of my java-web server. OTher functionality is ok. It serves html files just fine and also basic command line response is fine. Anyone out there have any clues as to what it could be? I'm kind of guessing it has something to do with some name resolution somewhere, but I'm not sure. Any help would be greatly appreciated. Thanks, Bagus From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 15:39:01 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4C1D16A4CE for ; Wed, 1 Sep 2004 15:39:01 +0000 (GMT) Received: from M4.sparta.com (M4.sparta.com [157.185.61.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2FE643D5F for ; Wed, 1 Sep 2004 15:39:00 +0000 (GMT) (envelope-from deker@slackdot.org) Received: from Beta5.sparta.com (beta5.sparta.com [157.185.63.21]) by M4.sparta.com (8.12.8/8.12.8) with ESMTP id i81FcxZ5025816 for ; Wed, 1 Sep 2004 10:39:00 -0500 Received: from columbia.sparta.com (lilo.columbia.SPARTA.COM [157.185.80.32]) by Beta5.sparta.com (8.12.11/8.12.11) with ESMTP id i81FcxDO030077 for ; Wed, 1 Sep 2004 10:38:59 -0500 Received: from [157.185.80.108] (7lyxg41.columbia.sparta.com [157.185.80.108]) i81Fcwfq023101 for ; Wed, 1 Sep 2004 11:38:58 -0400 (EDT) Message-ID: <4135ED10.3020505@slackdot.org> Date: Wed, 01 Sep 2004 11:38:56 -0400 From: Rob Deker User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: The continued remote debugging saga... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 15:39:02 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 So, after a lot of work and help from folks here, I've gotten remote gdb functioning (thanks again to those who helped. In the end there was a bad cable in the mix that was the final screw-up). Now I have one other question/problem. I've got cuaa0 on the target machine as the console, and cuaa1 as the gdb port. In the docs it says that to switch to gdb mode I enter 'gdb' at the ddb prompt. No problem. It also says that typing 'gdb' again will take me back to ddb. What it doesn't say is where to enter it. I've tried in gdb (no success) and on the console (also no success). What am I missing on how to switch back to ddb mode? Alternately, if I can just cause the machine to reset from gdb, that would work. I've tried the following from gdb: ~ > set $eax=0 ~ > jump boot This works SOMETIMES, but for example, the machine is at home and wedged now mid-shutdown (seems I may have screwed up an mbuf pointer and bufdaemon is upset about it). Any suggestions are welcome :) Thanks again, - -d -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBNe0QiaU9aKbHcJcRAn8FAKCUzHq9uLhqtuT48aLCjFq5kXA4UACghqbx GN9A5RK7Ktd9NsFGT5C7t2Q= =ulk7 -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 17:15:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6B0316A4CE for ; Wed, 1 Sep 2004 17:15:54 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DABA43D1F for ; Wed, 1 Sep 2004 17:15:54 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 19934 invoked from network); 1 Sep 2004 17:15:54 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 1 Sep 2004 17:15:54 -0000 Received: from hydrogen.funkthat.com (jqdovs@localhost.funkthat.com [127.0.0.1])i81HFruU081381; Wed, 1 Sep 2004 10:15:53 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i81HFqvG081380; Wed, 1 Sep 2004 10:15:52 -0700 (PDT) Date: Wed, 1 Sep 2004 10:15:52 -0700 From: John-Mark Gurney To: Rob Deker Message-ID: <20040901171552.GE29902@funkthat.com> Mail-Followup-To: Rob Deker , freebsd-hackers@freebsd.org References: <4135ED10.3020505@slackdot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4135ED10.3020505@slackdot.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-hackers@freebsd.org Subject: Re: The continued remote debugging saga... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 17:15:54 -0000 Rob Deker wrote this message on Wed, Sep 01, 2004 at 11:38 -0400: > So, after a lot of work and help from folks here, I've gotten remote > gdb functioning (thanks again to those who helped. In the end there > was a bad cable in the mix that was the final screw-up). Now I have > one other question/problem. I've got cuaa0 on the target machine as > the console, and cuaa1 as the gdb port. In the docs it says that to > switch to gdb mode I enter 'gdb' at the ddb prompt. No problem. It > also says that typing 'gdb' again will take me back to ddb. What it > doesn't say is where to enter it. I've tried in gdb (no success) and > on the console (also no success). What am I missing on how to switch > back to ddb mode? Alternately, if I can just cause the machine to > reset from gdb, that would work. I've tried the following from gdb: If you are able to be at a command line, you could try: sysctl debug.kdb.current=ddb > This works SOMETIMES, but for example, the machine is at home and > wedged now mid-shutdown (seems I may have screwed up an mbuf pointer > and bufdaemon is upset about it). Any suggestions are welcome :) you could also try: call reset or: print reset() -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 17:35:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30ED516A4CE for ; Wed, 1 Sep 2004 17:35:44 +0000 (GMT) Received: from M4.sparta.com (M4.sparta.com [157.185.61.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04AA243D53 for ; Wed, 1 Sep 2004 17:35:43 +0000 (GMT) (envelope-from deker@slackdot.org) Received: from Beta5.sparta.com (beta5.sparta.com [157.185.63.21]) by M4.sparta.com (8.12.8/8.12.8) with ESMTP id i81HZfUt029046; Wed, 1 Sep 2004 12:35:42 -0500 Received: from columbia.sparta.com (lilo.columbia.SPARTA.COM [157.185.80.32]) by Beta5.sparta.com (8.12.11/8.12.11) with ESMTP id i81HZflC003458; Wed, 1 Sep 2004 12:35:42 -0500 Received: from [157.185.80.108] (7lyxg41.columbia.sparta.com [157.185.80.108]) i81HZefq027186; Wed, 1 Sep 2004 13:35:40 -0400 (EDT) Message-ID: <41360867.9070807@slackdot.org> Date: Wed, 01 Sep 2004 13:35:35 -0400 From: Rob Deker User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John-Mark Gurney References: <4135ED10.3020505@slackdot.org> <20040901171552.GE29902@funkthat.com> In-Reply-To: <20040901171552.GE29902@funkthat.com> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: The continued remote debugging saga... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 17:35:44 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John-Mark Gurney wrote: | If you are able to be at a command line, you could try: sysctl | debug.kdb.current=ddb | If I was able to get to a command line, I'd just use shutdown :) Could I build up the appropriate struct in gdb and use the sysctl() system call though? |> This works SOMETIMES, but for example, the machine is at home and |> wedged now mid-shutdown (seems I may have screwed up an mbuf |> pointer and bufdaemon is upset about it). Any suggestions are |> welcome :) | | | you could also try: call reset or: print reset() | I think I looked for this and gdb didn't know of a 'reset' symbol. I found reboot() which takes a uthreads pointer and an args pointer, and boot() which just takes an int of boot flags (which was the 0 that I shoved into eax for RB_AUTBOOT). Thanks, - -d -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBNghniaU9aKbHcJcRAqOjAJwNLcHOss8EiJkHP/+oapLXTnDoXgCfbBdU bEL1QrbSeojs448fuHPjG0Q= =wg2s -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 19:05:29 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D2A216A4CE for ; Wed, 1 Sep 2004 19:05:29 +0000 (GMT) Received: from itchy.rabson.org (mailgate.nlsystems.com [80.177.232.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 250D643D31 for ; Wed, 1 Sep 2004 19:05:28 +0000 (GMT) (envelope-from dfr@nlsystems.com) Received: from ns0.nlsystems.com (ns0.nlsystems.com [80.177.232.243]) by itchy.rabson.org (8.12.11/8.12.11) with ESMTP id i81J5IF5020203; Wed, 1 Sep 2004 20:05:18 +0100 (BST) (envelope-from dfr@nlsystems.com) From: Doug Rabson To: freebsd-hackers@freebsd.org, John-Mark Gurney Date: Wed, 1 Sep 2004 20:05:58 +0100 User-Agent: KMail/1.6.2 References: <4135ED10.3020505@slackdot.org> <20040901171552.GE29902@funkthat.com> In-Reply-To: <20040901171552.GE29902@funkthat.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200409012005.58592.dfr@nlsystems.com> X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on itchy.rabson.org X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on itchy.rabson.org X-Virus-Status: Clean cc: Rob Deker Subject: Re: The continued remote debugging saga... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 19:05:29 -0000 On Wednesday 01 September 2004 18:15, John-Mark Gurney wrote: > Rob Deker wrote this message on Wed, Sep 01, 2004 at 11:38 -0400: > > So, after a lot of work and help from folks here, I've gotten > > remote gdb functioning (thanks again to those who helped. In the > > end there was a bad cable in the mix that was the final screw-up). > > Now I have one other question/problem. I've got cuaa0 on the target > > machine as the console, and cuaa1 as the gdb port. In the docs it > > says that to switch to gdb mode I enter 'gdb' at the ddb prompt. > > No problem. It also says that typing 'gdb' again will take me back > > to ddb. What it doesn't say is where to enter it. I've tried in gdb > > (no success) and on the console (also no success). What am I > > missing on how to switch back to ddb mode? Alternately, if I can > > just cause the machine to reset from gdb, that would work. I've > > tried the following from gdb: > > If you are able to be at a command line, you could try: > sysctl debug.kdb.current=ddb You used to be able to use GDB's detach command to switch back. From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 22:11:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6CA416A4CE for ; Wed, 1 Sep 2004 22:11:54 +0000 (GMT) Received: from athena.softcardsystems.com (mail.softcardsystems.com [12.34.136.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA6BA43D2D for ; Wed, 1 Sep 2004 22:11:54 +0000 (GMT) (envelope-from sah@softcardsystems.com) Received: from athena (athena [12.34.136.114])i81NBm6M003460 for ; Wed, 1 Sep 2004 18:11:48 -0500 Date: Wed, 1 Sep 2004 18:11:48 -0500 (EST) From: Sam X-X-Sender: sah@athena To: freebsd-hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: kernel panic, unknown / reserved trap X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 22:11:55 -0000 Hello, I'm working on a driver for AoE (ATA over Ethernet) for the 4.x kernel (check recent freebsd-arch postings for info). I have modified a few files in order to support catching ethernet frames of type 0x88a2. The make kernel completes successfully, but on boot the kernel panics with an unknown/reserved trap failure. I've modified the following: freebsd% for i in `find . -type f | tr \\\n ' '`; do > echo $i; diff $i ../sysorig/$i; done ./net/ethernet.h 310d309 < #define ETHERTYPE_AOE 0x88A2 /* ATA over Ethernet */ ./net/if_ethersubr.c 43d42 < #include "opt_aoe.h" 103,106d101 < #ifdef AOE < struct ifqueue *aoeintrq; < #endif /* AOE */ < 751,761d745 < #ifdef AOE < case ETHERTYPE_AOE: < if(aoeintrq) { < schednetisr(NETISR_AOE); < inq = aoeintrq; < break; < } < m_freem(m); < return; < #endif /* AOE */ < ./net/netisr.h 59d58 < #define NETISR_AOE 17 /* ATA over Ethernet */ ./conf/options 256,258d255 < # AoE network option < AOE opt_aoe.h < ./conf/files 288,293d287 < dev/aoe/aoe.c optional aoe < dev/aoe/aoedev.c optional aoe < dev/aoe/aoecmd.c optional aoe < dev/aoe/aoenet.c optional aoe < dev/aoe/aoeblk.c optional aoe < dev/aoe/utils.c optional aoe I've also added dev/aoe/ with the files listed above and modules/aoe/ with a makefile similar to modules/md/Makefile. I don't really see how what I did is causing the kernel to panic so early ... is anything obvious? Cheers, Sam From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 1 22:19:04 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 097CE16A4CE for ; Wed, 1 Sep 2004 22:19:04 +0000 (GMT) Received: from athena.softcardsystems.com (mail.softcardsystems.com [12.34.136.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFC0443D41 for ; Wed, 1 Sep 2004 22:19:03 +0000 (GMT) (envelope-from sah@softcardsystems.com) Received: from athena (athena [12.34.136.114])i81NIvcr003498 for ; Wed, 1 Sep 2004 18:18:57 -0500 Date: Wed, 1 Sep 2004 18:18:57 -0500 (EST) From: Sam X-X-Sender: sah@athena To: freebsd-hackers@freebsd.org In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: kernel panic, unknown / reserved trap X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 22:19:04 -0000 Heh, i just discovered dmesg saved the panic. Alright! Here's what happens: FreeBSD 4.10-RELEASE-p2 #4: Wed Sep 1 17:20:37 EDT 2004 root@freebsd.borf.com:/usr/obj/usr/src/sys/SAH Timecounter "i8254" frequency 1193182 Hz CPU: Intel Pentium III (797.42-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Features=0x383f9ff real memory = 535560192 (523008K bytes) config> en ata0 config> po ata0 0x1f0 config> ir ata0 14 config> f ata0 0 config> q avail memory = 517210112 (505088K bytes) pnpbios: Bad PnP BIOS data checksum Preloaded elf kernel "kernel" at 0xc03d2000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc03d209c. instruction pointer = 0x8:0xc03f4fdb stack pointer = 0x10:0xc03f4fa0 frame pointer = 0x10:0xc03f4fbc code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, IOPL = 0 current process = 0 (swapper) interrupt mask = net tty bio cam trap number = 30 panic: unknown/reserved trap Cheers, Sam From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 00:20:26 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5D4C16A4CE for ; Thu, 2 Sep 2004 00:20:26 +0000 (GMT) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A95543D39 for ; Thu, 2 Sep 2004 00:20:26 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 99196 invoked from network); 2 Sep 2004 00:18:06 -0000 Received: from dotat.atdotat.at (HELO [62.48.0.47]) ([62.48.0.47]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 2 Sep 2004 00:18:06 -0000 Message-ID: <41366746.1080404@freebsd.org> Date: Thu, 02 Sep 2004 02:20:22 +0200 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a1) Gecko/20040520 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sam References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: kernel panic, unknown / reserved trap X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 00:20:26 -0000 Sam wrote: > Hello, > > I'm working on a driver for AoE (ATA over Ethernet) > for the 4.x kernel (check recent freebsd-arch > postings for info). I have modified a few files in order to support > catching ethernet frames of type > 0x88a2. The make kernel completes successfully, > but on boot the kernel panics with an unknown/reserved > trap failure. I've modified the following: > > freebsd% for i in `find . -type f | tr \\\n ' '`; do > >> echo $i; diff $i ../sysorig/$i; done Please provice unified diffs. That makes them a lot easier to read. > ./net/ethernet.h > 310d309 > < #define ETHERTYPE_AOE 0x88A2 /* ATA over Ethernet */ > ./net/if_ethersubr.c > 43d42 > < #include "opt_aoe.h" > 103,106d101 > < #ifdef AOE > < struct ifqueue *aoeintrq; > < #endif /* AOE */ > < > 751,761d745 > < #ifdef AOE > < case ETHERTYPE_AOE: > < if(aoeintrq) { > < schednetisr(NETISR_AOE); > < inq = aoeintrq; > < break; > < } > < m_freem(m); ^^^^^^^^^^ This looks wrong. If you free the packet here you get a stale pointer in the netisr queue leading to interesting panics. ;-) If there is no aoeintrq then it will free'd at the end of the switch statement. > < return; > < #endif /* AOE */ > < > ./net/netisr.h > 59d58 > < #define NETISR_AOE 17 /* ATA over Ethernet */ > ./conf/options > 256,258d255 > < # AoE network option > < AOE opt_aoe.h > < > ./conf/files > 288,293d287 > < dev/aoe/aoe.c optional aoe > < dev/aoe/aoedev.c optional aoe > < dev/aoe/aoecmd.c optional aoe > < dev/aoe/aoenet.c optional aoe > < dev/aoe/aoeblk.c optional aoe > < dev/aoe/utils.c optional aoe > > I've also added dev/aoe/ with the files listed > above and modules/aoe/ with a makefile similar > to modules/md/Makefile. > > I don't really see how what I did is causing > the kernel to panic so early ... is anything > obvious? -- Andre From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 01:53:59 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9842616A4CE for ; Thu, 2 Sep 2004 01:53:59 +0000 (GMT) Received: from cydem.org (S0106000103ce4c9c.ed.shawcable.net [68.149.254.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D00843D54 for ; Thu, 2 Sep 2004 01:53:59 +0000 (GMT) (envelope-from soralx@cydem.org) Received: from S01060020ed3972ba.ed.shawcable.net (S01060020ed3972ba.ed.shawcable.net [68.149.254.42]) by cydem.org (Postfix/FreeBSD) with ESMTP id 5880538A6A for ; Wed, 1 Sep 2004 19:53:58 -0600 (MDT) From: To: freebsd-hackers@freebsd.org Date: Wed, 1 Sep 2004 19:54:24 -0600 User-Agent: KMail/1.5.4 References: <4135ED10.3020505@slackdot.org> <20040901171552.GE29902@funkthat.com> <41360867.9070807@slackdot.org> In-Reply-To: <41360867.9070807@slackdot.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409011954.24211.soralx@cydem.org> Subject: Re: The continued remote debugging saga... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 01:53:59 -0000 > |> This works SOMETIMES > boot() which just takes an int of boot flags (which was the 0 that I > shoved into eax for RB_AUTBOOT). are you shure that you don't need to push the 0x0 into stack (`MOV ESP,0x0`)? Timestamp: 0x41367B68 [SorAlx] http://cydem.org.ua/ ridin' VN1500-B2 From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 10:25:13 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 335BD16A4CE for ; Thu, 2 Sep 2004 10:25:13 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5ECAD43D1D for ; Thu, 2 Sep 2004 10:25:12 +0000 (GMT) (envelope-from geniusfreak@gmail.com) Received: by mproxy.gmail.com with SMTP id 77so7871rnl for ; Thu, 02 Sep 2004 03:25:08 -0700 (PDT) Received: by 10.38.83.80 with SMTP id g80mr2066652rnb; Thu, 02 Sep 2004 03:25:08 -0700 (PDT) Received: by 10.38.82.75 with HTTP; Thu, 2 Sep 2004 03:25:07 -0700 (PDT) Message-ID: <97f8dd04090203253d07e8ff@mail.gmail.com> Date: Thu, 2 Sep 2004 03:25:07 -0700 From: Genius Freak To: Daniel O'Connor In-Reply-To: <200408281104.58018.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <97f8dd040826235372388dea@mail.gmail.com> <200408280027.14207.doconnor@gsoft.com.au> <97f8dd0408271456a8cb2e7@mail.gmail.com> <200408281104.58018.doconnor@gsoft.com.au> cc: freebsd-hackers@freebsd.org Subject: Re: System freeze when useing bfe (Broadcom BCM440x) driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Genius Freak List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 10:25:13 -0000 Hello again, Well on the up side i'm sending this from my inspiron 1100. It only took me how long? I ended up useing 5.3BETA2 since that came out in the middle of my hacking attempts on this system. Thanks for your advice. Oh and btw the freezes during sysinstall were while configuring the X.org server( i have now learned to do this post install) and those bug's are allready known so i didn't bother reporting them. Thanks again. On Sat, 28 Aug 2004 11:04:57 +0930, Daniel O'Connor wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sat, 28 Aug 2004 07:26, Genius Freak wrote: > > The kernel is rebuilding now :) > > I was so desperate I even tried the 5.3 beta1 to see if that would > > work and it did but it was too much of a beta for me to use, it > > crashed in sysinstall twice. > > Personally I'd trust 5.3-BETA over 5.2.1... > > If it crashes in sysinstall you should report it (eg the panic message) so > it's less of a beta when it's released :) > > - -- > Daniel O'Connor software and network engineer > for Genesis Software - http://www.gsoft.com.au > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum > GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (FreeBSD) > > iD8DBQFBL+FB5ZPcIHs/zowRAglPAKCH0Ch2W3h4/rYvMIJVnFLffwmZVgCfX5dF > jX8bNG5v5NWXfBoWnPskkw8= > =2gbX > -----END PGP SIGNATURE----- > From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 09:37:57 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FC2716A4CE for ; Thu, 2 Sep 2004 09:37:57 +0000 (GMT) Received: from tower.berklix.org (bsd.bsn.com [194.221.32.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9337943D1D for ; Thu, 2 Sep 2004 09:37:56 +0000 (GMT) (envelope-from jhs@flat.berklix.net) Received: from js.berklix.net (pD9EB7B28.dip.t-dialin.net [217.235.123.40]) (authenticated bits=0) by tower.berklix.org (8.12.9p2/8.12.9) with ESMTP id i829behB087363; Thu, 2 Sep 2004 11:37:41 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from lapd.jhs.private (lapd.jhs.private [192.168.91.35]) by js.berklix.net (8.12.11/8.12.11) with ESMTP id i829bWcu001631; Thu, 2 Sep 2004 11:37:35 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from lapd.jhs.private (localhost [127.0.0.1]) by lapd.jhs.private (8.12.9/8.12.9) with ESMTP id i829bV4x001730; Thu, 2 Sep 2004 11:37:31 +0200 (CEST) (envelope-from jhs@lapd.jhs.private) Message-Id: <200409020937.i829bV4x001730@lapd.jhs.private> To: "Bagus" In-Reply-To: Message from "Bagus" Date: Thu, 02 Sep 2004 11:37:31 +0200 From: "Julian H. Stacey" X-Mailman-Approved-At: Thu, 02 Sep 2004 12:03:22 +0000 cc: freebsd-hackers@freebsd.org Subject: Re: slow login, app launching, etc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 09:37:57 -0000 "Bagus" wrote: > > Hi, is anyone able to help me problem solve on this? Is this the right > forum for this kind of question? If not, could someone please send me a > pointer to an organization that might be able to help. I have a small budget > to get this fixed if anyone wants it. > > I'm running FreeBSD 2.2CAM-19980716-SNAP on bagus.org. > > I've been running it for a few years. Recently, after normal performance, > I've been experiencing extremely slow login prompt appearance, extremely > slow application launching and what bugs me the most is the extremely slow > response time of my java-web server. OTher functionality is ok. It serves > html files just fine and also basic command line response is fine. > > Anyone out there have any clues as to what it could be? I'm kind > of guessing it has something to do with some name resolution somewhere, > but I'm not sure. Any help would be greatly appreciated. Consider upgrading to 4.10-RELEASE, while you'r doing that, you may resolve some old issues (caution, we abandoned a few thing between 2 & 4, such as one old scsi controller I used to have, Future domain something 85 as I recall). I sympathise with "never touch a running system" but 2.2 is Seriously ancient ! -SNAP was for testing, not for production. Use releases for long term bases if you want to install freeze & forget. Could be no one else even runs your ancient particular version :-) If you'r running such seriously ancient software, maybe you'r also running ancient hardware ? eg I have a loose co-axial 10M ethernet connection somewhere, periodically makes my internal net go `sticky' (Well yes, Ive got a 100 Switch, but it's got a loud fan :-) There's tools in /usr/ports/sysutils/ for net performance & packet sniffing etc. Also in 4.9-RELEASE & 5.2-RELEASE there's man netstat The netstat command symbolically displays the contents of various net- work-related data structures. man sysstat .... - Julian Stacey. Unix,C,Net & Sys. Eng. Consultant, Munich. http://berklix.com Mail in Ascii, Html dumped as Spam. Ihr Rauch = mein allergischer Kopfschmerz. From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 16:02:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7637016A4CE for ; Thu, 2 Sep 2004 16:02:44 +0000 (GMT) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 6B6A643D55 for ; Thu, 2 Sep 2004 16:02:43 +0000 (GMT) (envelope-from roam@ringlet.net) Received: (qmail 21000 invoked from network); 2 Sep 2004 16:01:12 -0000 Received: from unknown (HELO straylight.m.ringlet.net) (217.75.134.254) by gandalf.online.bg with SMTP; 2 Sep 2004 16:01:12 -0000 Received: (qmail 23197 invoked by uid 1000); 2 Sep 2004 16:03:00 -0000 Date: Thu, 2 Sep 2004 19:03:00 +0300 From: Peter Pentchev To: freebsd-hackers@FreeBSD.org Message-ID: <20040902160300.GH1469@straylight.m.ringlet.net> Mail-Followup-To: freebsd-hackers@FreeBSD.org, Dag-Erling Smorgrav , "Jacques A. Vidrine" , Mark Murray Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Rn7IEEq3VEzCw+ji" Content-Disposition: inline User-Agent: Mutt/1.5.6i cc: "Jacques A. Vidrine" cc: Mark Murray cc: Dag-Erling Smorgrav Subject: [CFR] OpenSSL ENGINE fix X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 16:02:44 -0000 --Rn7IEEq3VEzCw+ji Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, The stunnel port had been badly broken on -CURRENT for some time, and today I seem to have tracked it down. There is a problem in OpenSSL's ENGINE code, which seems to depend on realloc()'s initializing unused memory with zeroes. Since this is certainly not true with malloc's 'J' option, the ENGINE code never actually runs out of RAND routines to look for, and dumps core on attempting to dereference a structure at 0xd0d0d0d0. The following simple patch seems to fix this particular problem, but I think there are others lurking close beneath the surface. When I built stunnel with this patch, it did not immediately segfault on initialization, but it did later, when it attempted to get a couple of random bytes in order to actually establish an SSL connection. A quick examination shows that the ENGINE code had "successfully" loaded and initialized all built-in engines and then tried to use the last one loaded - in this case, the 4758cca one - which promptly invoked a function pointed to by the static randomNumberGenerate variable, which, as you may have guessed by this point, held a NULL value. Apparently, something else is rotten in ENGINE initialization land, and (at least) the 4758cca driver cannot properly detect that it has not properly detected its hardware :( Still, I think the attached patch should be committed and MT5'd before 5.3-RELEASE, to fix at least one of the flaws. Also here is a simple C program that illustrates the problem - just compile it and run it on a stock 5.x or 6.x system, and I'd be, well, somewhat surprised if it gets to the printf's at all. So.. the patch itself: Index: src/crypto/openssl/crypto/engine/eng_table.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/crypto/openssl/crypto/engine/eng_table.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 eng_table.c --- src/crypto/openssl/crypto/engine/eng_table.c 28 Jan 2003 21:22:30 -0000= 1.1.1.1 +++ src/crypto/openssl/crypto/engine/eng_table.c 2 Sep 2004 14:40:52 -0000 @@ -287,7 +287,7 @@ } trynext: ret =3D sk_ENGINE_value(fnd->sk, loop++); - if(!ret) + if(!ret || loop =3D=3D sk_ENGINE_num(fnd->sk)) { #ifdef ENGINE_TABLE_DEBUG fprintf(stderr, "engine_table_dbg: %s:%d, nid=3D%d, no " And the test program: #include #include #include #include /* for CRYPTO_* and SSLeay_version */ #include #if SSLEAY_VERSION_NUMBER >=3D 0x00907000L #include #else #error weird openssl version #endif int main(void) { ENGINE_load_builtin_engines(); ENGINE_register_all_complete(); if (RAND_status()) { printf("RAND_status said ok\n"); } else { printf("RAND_status kinda sorta failed\n"); } return (0); } G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 If there were no counterfactuals, this sentence would not have been paradox= ical. --Rn7IEEq3VEzCw+ji Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBN0Q07Ri2jRYZRVMRAsufAKCDKktEjCsF2vmYji4gp/7zJ33MgwCfW1No ddXzfnipqHtMNNFhiEKw02k= =a6im -----END PGP SIGNATURE----- --Rn7IEEq3VEzCw+ji-- From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 16:20:01 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 980C516A4CF for ; Thu, 2 Sep 2004 16:20:01 +0000 (GMT) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 523D143D5A for ; Thu, 2 Sep 2004 16:20:00 +0000 (GMT) (envelope-from roam@ringlet.net) Received: (qmail 27312 invoked from network); 2 Sep 2004 16:18:28 -0000 Received: from unknown (HELO straylight.m.ringlet.net) (217.75.134.254) by gandalf.online.bg with SMTP; 2 Sep 2004 16:18:28 -0000 Received: (qmail 24549 invoked by uid 1000); 2 Sep 2004 16:20:17 -0000 Date: Thu, 2 Sep 2004 19:20:17 +0300 From: Peter Pentchev To: freebsd-hackers@FreeBSD.org Message-ID: <20040902162017.GI1469@straylight.m.ringlet.net> Mail-Followup-To: freebsd-hackers@FreeBSD.org, Dag-Erling Smorgrav , "Jacques A. Vidrine" , Mark Murray References: <20040902160300.GH1469@straylight.m.ringlet.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8/UBlNHSEJa6utmr" Content-Disposition: inline In-Reply-To: <20040902160300.GH1469@straylight.m.ringlet.net> User-Agent: Mutt/1.5.6i cc: "Jacques A. Vidrine" cc: Mark Murray cc: Dag-Erling Smorgrav Subject: Re: [CFR] OpenSSL ENGINE fix X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 16:20:01 -0000 --8/UBlNHSEJa6utmr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 02, 2004 at 07:03:00PM +0300, Peter Pentchev wrote: > Hi, >=20 > The stunnel port had been badly broken on -CURRENT for some time, and > today I seem to have tracked it down. There is a problem in > OpenSSL's ENGINE code, which seems to depend on realloc()'s initializing > unused memory with zeroes. Since this is certainly not true with > malloc's 'J' option, the ENGINE code never actually runs out of RAND > routines to look for, and dumps core on attempting to dereference a > structure at 0xd0d0d0d0. >=20 > The following simple patch seems to fix this particular problem, but I > think there are others lurking close beneath the surface. When I built > stunnel with this patch, it did not immediately segfault on > initialization, but it did later, when it attempted to get a couple of > random bytes in order to actually establish an SSL connection. A quick > examination shows that the ENGINE code had "successfully" loaded and > initialized all built-in engines and then tried to use the last one > loaded - in this case, the 4758cca one - which promptly invoked a > function pointed to by the static randomNumberGenerate variable, which, > as you may have guessed by this point, held a NULL value. Apparently, > something else is rotten in ENGINE initialization land, and (at least) > the 4758cca driver cannot properly detect that it has not properly > detected its hardware :( Oh, and of course, here's a program that demonstrates the null pointer problem after the eng_table.c patch is applied: #include #include #include #include /* for CRYPTO_* and SSLeay_version */ #include #if SSLEAY_VERSION_NUMBER >=3D 0x00907000L #include #else #error weird openssl version #endif int main(void) { unsigned char buf[256]; int ret; =09 ENGINE_load_builtin_engines(); ENGINE_register_all_complete(); if (RAND_status()) { printf("RAND_status said ok\n"); } else { printf("RAND_status kinda sorta failed\n"); } ret =3D RAND_pseudo_bytes(buf, sizeof(buf) / 2); printf("RAND_pseudo_bytes() returned %d\n", ret); return (0); } G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 If I had finished this sentence, --8/UBlNHSEJa6utmr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBN0hB7Ri2jRYZRVMRAgkyAJ95nBS6F1XOyk4GiH/uS1Y9qjXIvgCfR2QI WItMs8RoSratewuphmcnhbw= =Eggr -----END PGP SIGNATURE----- --8/UBlNHSEJa6utmr-- From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 16:54:26 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF2E916A4CE for ; Thu, 2 Sep 2004 16:54:26 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20B6A43D1D for ; Thu, 2 Sep 2004 16:54:26 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v7.1.2.R) with ESMTP id md50000520708.msg for ; Thu, 02 Sep 2004 17:11:23 +0100 Message-ID: <01d401c49108$388b84d0$b4db87d4@multiplay.co.uk> From: "Steven Hartland" To: Date: Thu, 2 Sep 2004 17:16:34 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Spam-Processed: multiplay.co.uk, Thu, 02 Sep 2004 17:11:23 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Thu, 02 Sep 2004 17:11:25 +0100 Subject: 5.2.1 netcard performance em slow vs fxp X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 16:54:27 -0000 Just been testing a em ( gE ) netcard vs a old fxp in the same machine ( Dual PIII 800 ) and the em can't even match the fxp for throughput. Looking at sysstat the interrupt rate on em is virtually double that of the fxp 11K vs 5k. When testing with straight ftp from a 2.5Ghz P4 windows client using an em connected with a crossover cable I get: em = 8->9MB/s fxp = 10->11MB/s Tweaking the em to use jumbo packets I can push that to 14MB/s before the cpu on the P3 saturates. This is mainly interrupt and system time not user ( proftpd ) time. Unfortunately this doesn't really help because I'm after increased through put to multiple 100Mb clients not to one gE client hence jumbo frames is not an option. Is their anyway to tweak the em driver to give better performance. I would at least expect as good as the fxp if not substantially better. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 19:08:43 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6469B16A4CE for ; Thu, 2 Sep 2004 19:08:43 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id D437743D46 for ; Thu, 2 Sep 2004 19:08:42 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.180]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v7.1.2.R) with ESMTP id md50000520383.msg for ; Thu, 02 Sep 2004 14:48:06 +0100 Message-ID: <015e01c490f4$3529ac40$b4db87d4@multiplay.co.uk> From: "Steven Hartland" To: Date: Thu, 2 Sep 2004 14:53:19 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Spam-Processed: multiplay.co.uk, Thu, 02 Sep 2004 14:48:06 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.180 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Thu, 02 Sep 2004 14:48:07 +0100 Subject: Re: 5.2.1 netcard performance em slow vs fxp X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 19:08:43 -0000 Just been testing a em ( gE ) netcard vs a old fxp in the same machine ( Dual PIII 800 ) and the em can't even match the fxp for throughput. Looking at sysstat the interrupt rate on em is virtually double that of the fxp 11K vs 5k. When testing with straight ftp from a 2.5Ghz P4 windows client using an em connected with a crossover cable I get: em = 8->9MB/s fxp = 10->11MB/s Tweaking the em to use jumbo packets I can push that to 14MB/s before the cpu on the P3 saturates. This is mainly interrupt and system time not user ( proftpd ) time. Unfortunately this doesn't really help because I'm after increased through put to multiple 100Mb clients not to one gE client hence jumbo frames is not an option. Is their anyway to tweak the em driver to give better performance. I would at least expect as good as the fxp if not substantially better. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 19:15:50 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C16D216A4CE for ; Thu, 2 Sep 2004 19:15:50 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D3A043D54 for ; Thu, 2 Sep 2004 19:15:50 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v7.1.2.R) with ESMTP id md50000521264.msg for ; Thu, 02 Sep 2004 20:10:29 +0100 Message-ID: <002f01c49121$3d283510$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: References: <015e01c490f4$3529ac40$b4db87d4@multiplay.co.uk> Date: Thu, 2 Sep 2004 20:15:40 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Spam-Processed: multiplay.co.uk, Thu, 02 Sep 2004 20:10:29 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Thu, 02 Sep 2004 20:10:31 +0100 Subject: Re: 5.2.1 netcard performance em slow vs fxp X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 19:15:50 -0000 Grr sorry for the double post mail server issues ----- Original Message ----- From: "Steven Hartland" > Just been testing a em ( gE ) netcard vs a old fxp in the same > machine ( Dual PIII 800 ) and the em can't even match the > fxp for throughput. ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 19:35:28 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5C8116A4CE for ; Thu, 2 Sep 2004 19:35:28 +0000 (GMT) Received: from ds.netgate.net (ds.netgate.net [205.214.170.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 924CB43D5E for ; Thu, 2 Sep 2004 19:35:28 +0000 (GMT) (envelope-from ibrew@chrismiller.com) Received: (qmail 16600 invoked from network); 2 Sep 2004 19:35:28 -0000 Received: from vp4.netgate.net (ibrew@205.214.170.248) by ds.netgate.net with SMTP; 2 Sep 2004 19:35:28 -0000 Date: Thu, 2 Sep 2004 12:21:14 -0700 (PDT) From: ctodd@chrismiller.com X-X-Sender: ibrew@vp4.netgate.net To: freebsd-hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII ReSent-Date: Thu, 2 Sep 2004 12:35:25 -0700 (PDT) Resent-From: Chris Miller Resent-To: freebsd-hackers@freebsd.org ReSent-Subject: How to customize a release? ReSent-Message-ID: Subject: How to customize a release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 19:35:28 -0000 I'm looking for information on how to properly customize a FreeBSD distribution when using the "make release" framework. Specifically I need to modify some config files to default to serial console and fast baud rate, and use a custom kernel configuration (not just hack the GENERIC conf file). The documentation on the FreeBSD site covers how to build a release, but other than a few hints I'm not finding and references on the correct way to _customize_ the release. I did find a site that discusses building a release, mirroring the usr/src tree from that release directory, modifying the source, then creating a diff patch that's used on a subsequent "make release". If it works as advertised, this is somewhat helpful other than waiting an entire day for multiple release builds to finish. Is there a way to populate the build area with the source, then apply my own patches prior to running a full "make release"? I tried "make release.1" but this totally ignored my CHROOTDIR and tried to create "/R" in my root partition :-(. Also I noted that "make rerelease" updates the source from CVS which is undesirable in my case since I already have fresh source that was used to create patches, and if any of those original files changed my patches could fail. Can CVS updates be turned off for subsequent builds? Lastly, KERNCONF seems to have no relevance in "make release". How can I force a non generic kernel to be used when building the release? Chris From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 19:44:34 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BC8A16A50A for ; Thu, 2 Sep 2004 19:44:34 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 726AE43D45 for ; Thu, 2 Sep 2004 19:44:34 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 16564 invoked from network); 2 Sep 2004 19:44:34 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 2 Sep 2004 19:44:32 -0000 Received: from [10.50.41.228] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i82JiGS8069754; Thu, 2 Sep 2004 15:44:29 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Thu, 2 Sep 2004 15:38:26 -0400 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200409021538.26944.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: ctodd@chrismiller.com Subject: Re: How to customize a release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 19:44:34 -0000 On Thursday 02 September 2004 03:21 pm, ctodd@chrismiller.com wrote: > I'm looking for information on how to properly customize a FreeBSD > distribution when using the "make release" framework. Specifically I need > to modify some config files to default to serial console and fast baud > rate, and use a custom kernel configuration (not just hack the GENERIC > conf file). > > The documentation on the FreeBSD site covers how to build a release, but > other than a few hints I'm not finding and references on the correct way > to _customize_ the release. I did find a site that discusses building a > release, mirroring the usr/src tree from that release directory, modifying > the source, then creating a diff patch that's used on a subsequent "make > release". If it works as advertised, this is somewhat helpful other than > waiting an entire day for multiple release builds to finish. > > Is there a way to populate the build area with the source, then apply my > own patches prior to running a full "make release"? I tried "make > release.1" but this totally ignored my CHROOTDIR and tried to create "/R" > in my root partition :-(. > > Also I noted that "make rerelease" updates the source from CVS which is > undesirable in my case since I already have fresh source that was used > to create patches, and if any of those original files changed my patches > could fail. Can CVS updates be turned off for subsequent builds? > > Lastly, KERNCONF seems to have no relevance in "make release". How can I > force a non generic kernel to be used when building the release? There is a 'KERNELS' variable that is helpful. Also, look at LOCAL_PATCHES and LOCAL_SCRIPTS as far as how to patch a release build. Note that you can include patches to src/release/Makefile in LOCAL_PATCHES if need be. :) -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 20:01:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20D3416A4CE; Thu, 2 Sep 2004 20:01:44 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4181443D54; Thu, 2 Sep 2004 20:01:43 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i82K1VGx070810 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 2 Sep 2004 23:01:32 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i82K1VXs002919; Thu, 2 Sep 2004 23:01:31 +0300 (EEST) (envelope-from ru) Date: Thu, 2 Sep 2004 23:01:31 +0300 From: Ruslan Ermilov To: John Baldwin Message-ID: <20040902200131.GC2671@ip.net.ua> References: <200409021538.26944.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="adJ1OR3c6QgCpb/j" Content-Disposition: inline In-Reply-To: <200409021538.26944.jhb@FreeBSD.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new cc: freebsd-hackers@freebsd.org cc: ctodd@chrismiller.com Subject: Re: How to customize a release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 20:01:44 -0000 --adJ1OR3c6QgCpb/j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 02, 2004 at 03:38:26PM -0400, John Baldwin wrote: > On Thursday 02 September 2004 03:21 pm, ctodd@chrismiller.com wrote: > > I'm looking for information on how to properly customize a FreeBSD > > distribution when using the "make release" framework. Specifically I ne= ed > > to modify some config files to default to serial console and fast baud > > rate, and use a custom kernel configuration (not just hack the GENERIC > > conf file). > > > > The documentation on the FreeBSD site covers how to build a release, but > > other than a few hints I'm not finding and references on the correct way > > to _customize_ the release. I did find a site that discusses building a > > release, mirroring the usr/src tree from that release directory, modify= ing > > the source, then creating a diff patch that's used on a subsequent "make > > release". If it works as advertised, this is somewhat helpful other than > > waiting an entire day for multiple release builds to finish. > > > > Is there a way to populate the build area with the source, then apply my > > own patches prior to running a full "make release"? I tried "make > > release.1" but this totally ignored my CHROOTDIR and tried to create "/= R" > > in my root partition :-(. > > > > Also I noted that "make rerelease" updates the source from CVS which is > > undesirable in my case since I already have fresh source that was used > > to create patches, and if any of those original files changed my patches > > could fail. Can CVS updates be turned off for subsequent builds? > > > > Lastly, KERNCONF seems to have no relevance in "make release". How can I > > force a non generic kernel to be used when building the release? >=20 > There is a 'KERNELS' variable that is helpful. Also, look at LOCAL_PATCH= ES=20 > and LOCAL_SCRIPTS as far as how to patch a release build. Note that you = can=20 > include patches to src/release/Makefile in LOCAL_PATCHES if need be. :) >=20 I'd say, please read the release(7) manpage. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --adJ1OR3c6QgCpb/j Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBN3waqRfpzJluFF4RAvHSAJ4xuaDzCTkwz2YEq/TSLeqDOWP6GQCcC5Ed HUWxLN7wMsPYgtQC5W9ps6g= =AlOC -----END PGP SIGNATURE----- --adJ1OR3c6QgCpb/j-- From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 20:07:09 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6350916A4CF for ; Thu, 2 Sep 2004 20:07:09 +0000 (GMT) Received: from ds.netgate.net (ds.netgate.net [205.214.170.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2290443D49 for ; Thu, 2 Sep 2004 20:07:09 +0000 (GMT) (envelope-from ctodd@chrismiller.com) Received: (qmail 23554 invoked from network); 2 Sep 2004 20:07:08 -0000 Received: from vp4.netgate.net (ibrew@205.214.170.248) by ds.netgate.net with SMTP; 2 Sep 2004 20:07:08 -0000 Date: Thu, 2 Sep 2004 13:07:08 -0700 (PDT) From: ctodd@chrismiller.com X-X-Sender: ibrew@vp4.netgate.net To: John Baldwin In-Reply-To: <200409021538.26944.jhb@FreeBSD.org> Message-ID: References: <200409021538.26944.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@FreeBSD.org Subject: Re: How to customize a release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 20:07:09 -0000 John, Thanks for the quick reply. > There is a 'KERNELS' variable that is helpful. I see this in the Makefile, but if I were to use KERNELS=MYKERNEL will that prevent the other standard kernels from being built? > Also, look at LOCAL_PATCHES and LOCAL_SCRIPTS as far as how to patch a > release build. Note that you can include patches to > src/release/Makefile in LOCAL_PATCHES if need be. :) LOCAL_PATCHES is what I'm using now (waiting for build to finish to see how it worked). I was hoping for a way to populate the src tree without doing a full release so I could create the patches, then run make release only once (it took 5 hours on my devel system last time). At this point I've already done that, but for the next time I'd like to work more efficiently. BTW, I see I overlooked the RELEASENOUPDATE variable in the man page, so that answers my question about preventing CVS updates on "make rerelease". Unfortunately make rerelease didn't rebuild anything in /R/stage (I got "ftp.1 is up to date"). Am I supposed to delete the stage directories to force a rebuild, or do I need to do a full release to incorporate any minor changes? Chris From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 20:13:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1A6D16A4CE for ; Thu, 2 Sep 2004 20:13:27 +0000 (GMT) Received: from ms-dienst.rz.rwth-aachen.de (ms-2.rz.RWTH-Aachen.DE [134.130.3.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5352B43D31 for ; Thu, 2 Sep 2004 20:13:27 +0000 (GMT) (envelope-from chris@unixpages.org) Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0I3F00LIEK6DJ5@ms-dienst.rz.rwth-aachen.de> for freebsd-hackers@freebsd.org; Thu, 02 Sep 2004 22:13:26 +0200 (MEST) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Thu, 02 Sep 2004 22:13:25 +0200 (MEST) Received: from haakonia.hitnet.rwth-aachen.de (haakonia.hitnet.RWTH-Aachen.DE [137.226.181.92])i82KDLRA014068; Thu, 02 Sep 2004 22:13:21 +0200 (MEST) Received: from gondor.middleearth (gondor.middleearth [192.168.1.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))(Postfix) with ESMTP id 9081128442; Thu, 02 Sep 2004 22:13:16 +0200 (CEST) Received: by gondor.middleearth (Postfix, from userid 1001) id 367D9613A; Thu, 02 Sep 2004 22:13:16 +0200 (CEST) Date: Thu, 02 Sep 2004 22:13:16 +0200 From: Christian Brueffer In-reply-to: <97f8dd04090203253d07e8ff@mail.gmail.com> To: Genius Freak Message-id: <20040902201315.GB59319@unixpages.org> MIME-version: 1.0 Content-type: multipart/signed; boundary=+g7M9IMkV8truYOl; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-disposition: inline User-Agent: Mutt/1.5.5.1i X-Operating-System: FreeBSD 5.2-CURRENT X-PGP-Key: http://people.freebsd.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <97f8dd040826235372388dea@mail.gmail.com> <200408280027.14207.doconnor@gsoft.com.au> <97f8dd0408271456a8cb2e7@mail.gmail.com> <200408281104.58018.doconnor@gsoft.com.au> <97f8dd04090203253d07e8ff@mail.gmail.com> cc: freebsd-hackers@freebsd.org Subject: Re: System freeze when useing bfe (Broadcom BCM440x) driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 20:13:27 -0000 --+g7M9IMkV8truYOl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 02, 2004 at 03:25:07AM -0700, Genius Freak wrote: > Hello again, >=20 > Well on the up side i'm sending this from my inspiron 1100. > It only took me how long?=20 > I ended up useing 5.3BETA2 since that came out in the middle of my > hacking attempts on this system. >=20 > Thanks for your advice. >=20 > Oh and btw the freezes during sysinstall were while configuring the > X.org server( i have now learned to do this post install) and those > bug's are allready known so i didn't bother reporting them. >=20 The X config stuff was thrown out of CURRENT and RELENG_5 during the last days, so this won't be a problem anymore... ;-) - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --+g7M9IMkV8truYOl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBN37bbHYXjKDtmC0RAgaZAJ40nXCNAAlP+uaQ+T7dLl0QxYLSGwCg/BPW T/Y5ML/mXGdraTu2jKiMYAo= =LgZi -----END PGP SIGNATURE----- --+g7M9IMkV8truYOl-- From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 20:23:50 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 884C516A4CE for ; Thu, 2 Sep 2004 20:23:50 +0000 (GMT) Received: from ds.netgate.net (ds.netgate.net [205.214.170.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4724443D46 for ; Thu, 2 Sep 2004 20:23:50 +0000 (GMT) (envelope-from ctodd@chrismiller.com) Received: (qmail 27232 invoked from network); 2 Sep 2004 20:23:49 -0000 Received: from vp4.netgate.net (ibrew@205.214.170.248) by ds.netgate.net with SMTP; 2 Sep 2004 20:23:49 -0000 Date: Thu, 2 Sep 2004 13:23:49 -0700 (PDT) From: ctodd@chrismiller.com X-X-Sender: ibrew@vp4.netgate.net To: Ruslan Ermilov In-Reply-To: <20040902200131.GC2671@ip.net.ua> Message-ID: References: <200409021538.26944.jhb@FreeBSD.org> <20040902200131.GC2671@ip.net.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: How to customize a release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 20:23:50 -0000 > I'd say, please read the release(7) manpage. Ruslan, I appreciate the tip, but I've read all available information I could find including the man pages. The underlying problem here is there is a lack of information on the inner workings of the release framework. The subject matter is "here's how we make a release for FreeBSD", but there's no "how-to" incorporate your own src changes and "roll your own". I was 14 pages into google.com/bsd before I found this : http://alumni.cse.ucsc.edu/~brucem/fbsd_sysgen.htm#make_dist see "How do I add custom modifications to the release I build?" While it sounds like it should work, I question whether this is the most efficient way to accomplish this, and that is why I've turned to the freebsd-hackers list. Using the above I have to run "make release" twice (at 5 hours each currently) to accomplish my changes when it seems reasonable that I should be able to : CVS the source Apply Patches make release make rerelease appears as if it should be able to suck in minor changes, but I've not had such luck so far. I understand that these lists get a lot of newbie questions, but I've spent many hours using all resources that were available (Handbook, RTFM, list archives, Google, Usenet) before posting my questions. I'm just hoping to get some further clarity from those that have already been through this. Thanks again. Chris From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 21:21:29 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DA1D16A4CE for ; Thu, 2 Sep 2004 21:21:29 +0000 (GMT) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD87143D48 for ; Thu, 2 Sep 2004 21:21:28 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 15534 invoked from network); 2 Sep 2004 21:21:28 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 2 Sep 2004 21:21:28 -0000 Received: from [10.50.41.228] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i82LLOmX070450; Thu, 2 Sep 2004 17:21:24 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Thu, 2 Sep 2004 16:19:18 -0400 User-Agent: KMail/1.6.2 References: <200409021538.26944.jhb@FreeBSD.org> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200409021619.18602.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: ctodd@chrismiller.com Subject: Re: How to customize a release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 21:21:29 -0000 On Thursday 02 September 2004 04:07 pm, ctodd@chrismiller.com wrote: > John, > Thanks for the quick reply. > > > There is a 'KERNELS' variable that is helpful. > > I see this in the Makefile, but if I were to use KERNELS=MYKERNEL will > that prevent the other standard kernels from being built? > > > Also, look at LOCAL_PATCHES and LOCAL_SCRIPTS as far as how to patch a > > release build. Note that you can include patches to > > src/release/Makefile in LOCAL_PATCHES if need be. :) > > LOCAL_PATCHES is what I'm using now (waiting for build to finish to see > how it worked). I was hoping for a way to populate the src tree without > doing a full release so I could create the patches, then run make release > only once (it took 5 hours on my devel system last time). At this point > I've already done that, but for the next time I'd like to work more > efficiently. > > BTW, I see I overlooked the RELEASENOUPDATE variable in the man page, so > that answers my question about preventing CVS updates on "make rerelease". > Unfortunately make rerelease didn't rebuild anything in /R/stage (I got > "ftp.1 is up to date"). Am I supposed to delete the stage directories to > force a rebuild, or do I need to do a full release to incorporate any > minor changes? I just delete the files in ${CHROOTDIR}/usr/obj/usr/src/release to get it to rebuild the targets I want. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 2 21:44:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BA2516A4CF for ; Thu, 2 Sep 2004 21:44:44 +0000 (GMT) Received: from fed1rmmtao10.cox.net (fed1rmmtao10.cox.net [68.230.241.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E62443D55 for ; Thu, 2 Sep 2004 21:44:44 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by fed1rmmtao10.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040902214437.EFWV21895.fed1rmmtao10.cox.net@mezz.mezzweb.com> for ; Thu, 2 Sep 2004 17:44:37 -0400 Date: Thu, 02 Sep 2004 16:44:35 -0500 To: freebsd-hackers@freebsd.org From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/7.54 (Linux, build 751) Subject: Right way to test SMBus? Trying to add nForce2... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 21:44:44 -0000 Hello, I got a new motherboard; it is MSI K7N2 Delta2 Platinum (MS-6570E-010). http://www.msicomputer.com/product/p_spec.asp?model=K7N2_Delta2_Platinum&class=mb Right now, I am playing with the sys/pci/amdpm.c by add IDs. It's my first time to poke in the drivers code with no C knowledge, so please try to speak in English. :-) Before pciconf: ===================================== none5@pci0:1:1: class=0x0c0500 card=0x57001462 chip=0x008410de rev=0xa1 hdr=0x00 vendor = 'NVIDIA Corporation' device = 'nForce PCI System Management' class = serial bus subclass = SMBus ===================================== After pciconf: ===================================== amdpm0@pci0:1:1: class=0x0c0500 card=0x57001462 chip=0x008410de rev=0xa1 hdr=0x00 vendor = 'NVIDIA Corporation' device = 'nForce PCI System Management' class = serial bus subclass = SMBus ===================================== But in dmesg shows: ===================================== amdpm0: port 0-0x1f,0xec00-0xec1f irq 23 at device 1.1 on pci0 amdpm0: could not map i/o space device_attach: amdpm0 attach returned 6 ===================================== I think, I might have to change the PCI registers from 0x14 to 0x50 and/or (not sure) 0x54, which I haven't done on this part yet. I hope, I have the right PCI registers number (found in google). I am going to try add two PCI registers (not sure how to do it yet) and I want to know how should I test with SMBus to make sure it works? Thanks! So far the patch looks like this: ===================================== --- sys/pci/amdpm.c.orig Thu Sep 2 11:24:09 2004 +++ sys/pci/amdpm.c Thu Sep 2 12:20:01 2004 @@ -73,6 +73,7 @@ /* nVidia nForce chipset */ #define AMDPM_VENDORID_NVIDIA 0x10de #define AMDPM_DEVICEID_NF_SMB 0x01b4 +#define AMDPM_DEVICEID_NF2_SMB 0x0084 /* PCI Configuration space registers */ #define AMDPCI_PMBASE 0x58 @@ -167,7 +168,8 @@ } if ((vid == AMDPM_VENDORID_NVIDIA) && - (did == AMDPM_DEVICEID_NF_SMB)) { + ((did == AMDPM_DEVICEID_NF_SMB) || + (did == AMDPM_DEVICEID_NF2_SMB))) { device_set_desc(dev, "nForce SMBus Controller"); /* ===================================== Cheers, Mezz -- mezz7 at cox.net - mezz at FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome at FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 3 06:49:03 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBDDC16A4CE; Fri, 3 Sep 2004 06:49:03 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC13F43D1F; Fri, 3 Sep 2004 06:49:02 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i836mt6Y081880 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Sep 2004 09:48:55 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i836mtho004748; Fri, 3 Sep 2004 09:48:55 +0300 (EEST) (envelope-from ru) Date: Fri, 3 Sep 2004 09:48:55 +0300 From: Ruslan Ermilov To: ctodd@chrismiller.com Message-ID: <20040903064854.GE32264@ip.net.ua> References: <200409021538.26944.jhb@FreeBSD.org> <200409021619.18602.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3XA6nns4nE4KvaS/" Content-Disposition: inline In-Reply-To: <200409021619.18602.jhb@FreeBSD.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new cc: freebsd-hackers@freebsd.org Subject: Re: How to customize a release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 06:49:04 -0000 --3XA6nns4nE4KvaS/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Chris, On Thu, Sep 02, 2004 at 04:19:18PM -0400, John Baldwin wrote: > On Thursday 02 September 2004 04:07 pm, ctodd@chrismiller.com wrote: > > John, > > Thanks for the quick reply. > > > > > There is a 'KERNELS' variable that is helpful. > > > > I see this in the Makefile, but if I were to use KERNELS=3DMYKERNEL will > > that prevent the other standard kernels from being built? > > Let me know if you believe this is unclear and should be improved (from the release(7) manpage): : release.3 Makes and installs the GENERIC kernel as well as any ^^^^^^^ ^^^^^^^^^^^^^^ : other kernels listed in KERNELS. ^^^^^^^^^^^^^ ^^^^^^^^^^ :=20 : KERNELS Specifies a list of additional kernel configura- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : tions to compile and install into the ``base'' dis- : tribution. Each kernel is installed into : /boot/ so that it can be booted from the : loader via ``boot ''. > > > Also, look at LOCAL_PATCHES and LOCAL_SCRIPTS as far as how to patch a > > > release build. Note that you can include patches to > > > src/release/Makefile in LOCAL_PATCHES if need be. :) > > > > LOCAL_PATCHES is what I'm using now (waiting for build to finish to see > > how it worked). I was hoping for a way to populate the src tree without > > doing a full release so I could create the patches, then run make relea= se > > only once (it took 5 hours on my devel system last time). At this point > > I've already done that, but for the next time I'd like to work more > > efficiently. > > What do you mean, I don't get it? > > BTW, I see I overlooked the RELEASENOUPDATE variable in the man page, so > > that answers my question about preventing CVS updates on "make rereleas= e". > > Unfortunately make rerelease didn't rebuild anything in /R/stage (I got > > "ftp.1 is up to date"). Am I supposed to delete the stage directories to > > force a rebuild, or do I need to do a full release to incorporate any > > minor changes? >=20 > I just delete the files in ${CHROOTDIR}/usr/obj/usr/src/release to get it= to=20 > rebuild the targets I want. >=20 So do I. One more hint: suppose you want to rebuild world inside the chroot. Then you have two options with "make rerelease": one is to *not* use RELEASENOUP= DATE -- it will then use CVS to update your source tree (beware this doesn't work if you ran "make release" with EXTSRCDIR). Another is to run "make rerelea= se" with RELEASENOUPDATE and remove ${CHROOTDIR}/tmp/.world_done before doing i= t. In any case, buildworld will be rebuilt with -DNOCLEAN, which should be fas= t. To force rebuild of other stages, you need to remove particular files under ${CHROOTDIR}/usr/obj/usr/src/release/ (as has been already mentioned). Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --3XA6nns4nE4KvaS/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBOBPWqRfpzJluFF4RAlP+AJ9DDKJ/R2w53dutphNa5qsKv2hD/ACdHKfQ VetB+gqx9bsw6A0Q/QEI1Wc= =j+tU -----END PGP SIGNATURE----- --3XA6nns4nE4KvaS/-- From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 3 08:04:20 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0295916A4D1 for ; Fri, 3 Sep 2004 08:04:20 +0000 (GMT) Received: from ds.netgate.net (ds.netgate.net [205.214.170.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD78D43D46 for ; Fri, 3 Sep 2004 08:04:19 +0000 (GMT) (envelope-from ctodd@chrismiller.com) Received: (qmail 27403 invoked from network); 3 Sep 2004 08:04:19 -0000 Received: from vp4.netgate.net (ibrew@205.214.170.248) by ds.netgate.net with SMTP; 3 Sep 2004 08:04:19 -0000 Date: Fri, 3 Sep 2004 01:04:19 -0700 (PDT) From: ctodd@chrismiller.com X-X-Sender: ibrew@vp4.netgate.net To: Ruslan Ermilov In-Reply-To: <20040903064854.GE32264@ip.net.ua> Message-ID: References: <20040903064854.GE32264@ip.net.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: How to customize a release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 08:04:20 -0000 > Let me know if you believe this is unclear and should be improved (from the > release(7) manpage): > > : release.3 Makes and installs the GENERIC kernel as well as any > ^^^^^^^ ^^^^^^^^^^^^^^ > : other kernels listed in KERNELS. > ^^^^^^^^^^^^^ ^^^^^^^^^^ > : > : KERNELS Specifies a list of additional kernel configura- > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > : tions to compile and install into the ``base'' dis- > : tribution. Each kernel is installed into > : /boot/ so that it can be booted from the > : loader via ``boot ''. This must exist in the 5.x man pages, I'm working with 4.x systems : release.3 Builds and installs ``crypto'', ``krb4'' and ``krb5'' distri-butions. release.4 Makes and installs the GENERIC kernel. There is no reference to the KERNELS variable in the 4.x version of the man page although it does exist in the Makefile. So this explains why you think I hadn't RTFM ;-) Thanks for your help, between you and John I think I've got this mostly figured out. Regards, Chris From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 3 09:38:34 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 123D416A4CE; Fri, 3 Sep 2004 09:38:34 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A01643D58; Fri, 3 Sep 2004 09:38:33 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i839cPRN085698 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Sep 2004 12:38:26 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i839cPNh006675; Fri, 3 Sep 2004 12:38:25 +0300 (EEST) (envelope-from ru) Date: Fri, 3 Sep 2004 12:38:25 +0300 From: Ruslan Ermilov To: ctodd@chrismiller.com Message-ID: <20040903093825.GA6650@ip.net.ua> References: <200409021538.26944.jhb@FreeBSD.org> <200409021619.18602.jhb@FreeBSD.org> <20040903064854.GE32264@ip.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new cc: freebsd-hackers@FreeBSD.org cc: John Baldwin Subject: Re: How to customize a release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 09:38:34 -0000 --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 03, 2004 at 01:04:19AM -0700, ctodd@chrismiller.com wrote: >=20 > > Let me know if you believe this is unclear and should be improved (from= the > > release(7) manpage): > > > > : release.3 Makes and installs the GENERIC kernel as well a= s any > > ^^^^^^^ ^^^^^^^^^= ^^^^^ > > : other kernels listed in KERNELS. > > ^^^^^^^^^^^^^ ^^^^^^^^^^ > > : > > : KERNELS Specifies a list of additional kernel configura- > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > : tions to compile and install into the ``base'' = dis- > > : tribution. Each kernel is installed into > > : /boot/ so that it can be booted from the > > : loader via ``boot ''. >=20 > This must exist in the 5.x man pages, I'm working with 4.x systems : >=20 > release.3 Builds and installs ``crypto'', ``krb4'' and ``krb5'' > distri-butions. > release.4 Makes and installs the GENERIC kernel. >=20 > There is no reference to the KERNELS variable in the 4.x version of the > man page although it does exist in the Makefile. So this explains why you > think I hadn't RTFM ;-) >=20 > Thanks for your help, between you and John I think I've got this mostly > figured out. >=20 I've just updated the release(7) manapge in RELENG_4, merging all documentation changes from HEAD that were relevant. You might want to update and re-read it. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --T4sUOijqQbZv57TR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBODuRqRfpzJluFF4RAtavAJ9gjAlCV2qMwv1Ma0g3Tgt6LQ5UeACeNc/G ZkhkhJ8foSqK/ICdx7HZw2o= =dmz1 -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR-- From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 3 09:47:49 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C916616A4CE; Fri, 3 Sep 2004 09:47:49 +0000 (GMT) Received: from ms-dienst.rz.rwth-aachen.de (ms-2.rz.RWTH-Aachen.DE [134.130.3.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BF4F43D55; Fri, 3 Sep 2004 09:47:49 +0000 (GMT) (envelope-from chris@unixpages.org) Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0I3G00ALYLVOGK@ms-dienst.rz.rwth-aachen.de>; Fri, 03 Sep 2004 11:47:48 +0200 (MEST) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Fri, 03 Sep 2004 11:47:47 +0200 (MEST) Received: from haakonia.hitnet.rwth-aachen.de (haakonia.hitnet.RWTH-Aachen.DE [137.226.181.92])i839llRA018896; Fri, 03 Sep 2004 11:47:47 +0200 (MEST) Received: from gondor.middleearth (gondor.middleearth [192.168.1.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))(Postfix) with ESMTP id E323628442; Fri, 03 Sep 2004 11:47:41 +0200 (CEST) Received: by gondor.middleearth (Postfix, from userid 1001) id 7CC0C613A; Fri, 03 Sep 2004 11:47:41 +0200 (CEST) Date: Fri, 03 Sep 2004 11:47:41 +0200 From: Christian Brueffer In-reply-to: <20040902200131.GC2671@ip.net.ua> To: Ruslan Ermilov Message-id: <20040903094741.GE59319@unixpages.org> MIME-version: 1.0 Content-type: multipart/signed; boundary=FN+gV9K+162wdwwF; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-disposition: inline User-Agent: Mutt/1.5.5.1i X-Operating-System: FreeBSD 5.2-CURRENT X-PGP-Key: http://people.freebsd.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <200409021538.26944.jhb@FreeBSD.org> <20040902200131.GC2671@ip.net.ua> cc: freebsd-hackers@freebsd.org cc: ctodd@chrismiller.com Subject: Re: How to customize a release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 09:47:50 -0000 --FN+gV9K+162wdwwF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 02, 2004 at 11:01:31PM +0300, Ruslan Ermilov wrote: > On Thu, Sep 02, 2004 at 03:38:26PM -0400, John Baldwin wrote: > > On Thursday 02 September 2004 03:21 pm, ctodd@chrismiller.com wrote: > > > I'm looking for information on how to properly customize a FreeBSD > > > distribution when using the "make release" framework. Specifically I = need > > > to modify some config files to default to serial console and fast baud > > > rate, and use a custom kernel configuration (not just hack the GENERIC > > > conf file). > > > > > > The documentation on the FreeBSD site covers how to build a release, = but > > > other than a few hints I'm not finding and references on the correct = way > > > to _customize_ the release. I did find a site that discusses building= a > > > release, mirroring the usr/src tree from that release directory, modi= fying > > > the source, then creating a diff patch that's used on a subsequent "m= ake > > > release". If it works as advertised, this is somewhat helpful other t= han > > > waiting an entire day for multiple release builds to finish. > > > > > > Is there a way to populate the build area with the source, then apply= my > > > own patches prior to running a full "make release"? I tried "make > > > release.1" but this totally ignored my CHROOTDIR and tried to create = "/R" > > > in my root partition :-(. > > > > > > Also I noted that "make rerelease" updates the source from CVS which = is > > > undesirable in my case since I already have fresh source that was used > > > to create patches, and if any of those original files changed my patc= hes > > > could fail. Can CVS updates be turned off for subsequent builds? > > > > > > Lastly, KERNCONF seems to have no relevance in "make release". How ca= n I > > > force a non generic kernel to be used when building the release? > >=20 > > There is a 'KERNELS' variable that is helpful. Also, look at LOCAL_PAT= CHES=20 > > and LOCAL_SCRIPTS as far as how to patch a release build. Note that yo= u can=20 > > include patches to src/release/Makefile in LOCAL_PATCHES if need be. :) > >=20 > I'd say, please read the release(7) manpage. >=20 The FreeBSD from Scratch article might also be useful for you: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/fbsd-from-scratch/ - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --FN+gV9K+162wdwwF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBOD29bHYXjKDtmC0RAmQ+AJ98CcHhWMAu9N7IS4Hi8SYTlX5DFgCeNWBB 5ZFRZe9V8R3HFIewtv2UkuU= =0oAq -----END PGP SIGNATURE----- --FN+gV9K+162wdwwF-- From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 3 15:19:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FFC216A4CE for ; Fri, 3 Sep 2004 15:19:54 +0000 (GMT) Received: from visp.engelschall.com (visp.engelschall.com [195.27.176.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45A9343D41 for ; Fri, 3 Sep 2004 15:19:53 +0000 (GMT) (envelope-from rse@engelschall.com) Received: by visp.engelschall.com (Postfix, from userid 1005) id 2E8414CE5F8; Fri, 3 Sep 2004 17:19:52 +0200 (CEST) Received: by en1.engelschall.com (Postfix, from userid 10000) id 61F6128635; Fri, 3 Sep 2004 17:18:31 +0200 (CEST) Date: Fri, 3 Sep 2004 17:18:31 +0200 From: "Ralf S. Engelschall" To: freebsd-hackers@freebsd.org Message-ID: <20040903151831.GA84131@engelschall.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Request for Review: UFS2 Snapshot Management Environment X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: rse@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 15:19:54 -0000 Recently I was a little bit bored that ONTAP WAFL's .snapshot feature is such easy to use since years while on my FreeBSD 5 boxes the unprivileged users were not able to as easily use snapshots for retrieving old stages of their files. Hence I implemented a little snapshot management environment for FreeBSD around mount(8), mdconfig(8), amd(8) and cron(8) which lets me provide a similar environment than what people are used to from WAFL. To illustate the solution, let's give an example: On ONTAP WAFL filesystems users already can do: | $ cd /home/rse | $ echo "before" >foo.txt; sleep 3601 | $ echo "middle" >foo.txt; sleep 3601 | $ echo "after" >foo.txt | $ ls -la | fgrep .snapshot | $ cat .snapshot/hourly.1/foo.txt .snapshot/hourly.0/foo.txt foo.txt | before | middle | after On FreeBSD UFS2 filesystems users now also can do: | $ cd /home/rse | $ echo "before" >foo.txt; sleep 3601 | $ echo "middle" >foo.txt; sleep 3601 | $ echo "after" >foo.txt | $ ls -la /snap | grep hourly | $ cat /snap/home:hourly.1/rse/foo.txt /snap/home:hourly.0/rse/foo.txt foo.txt | before | middle | after Because it certainly is useful also for others, I've now packed the stuff together, added a little Makefile for ad-hoc "make install" and "make uninstall" and wrote both manual pages for the implemented commands plus a little summary and background article under http://people.freebsd.org/~rse/snapshot/ Now, enjoy happy snapshooting! And feel free to give me feedback, please... ;-) Yours, Ralf S. Engelschall rse@engelschall.com rse@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 3 15:42:02 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7D6616A4CE; Fri, 3 Sep 2004 15:42:02 +0000 (GMT) Received: from sasami.jurai.net (sasami.jurai.net [69.17.104.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 428B243D39; Fri, 3 Sep 2004 15:42:02 +0000 (GMT) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (winter@sasami.jurai.net [69.17.104.113]) by sasami.jurai.net (8.13.1/8.13.1) with ESMTP id i83FfxGW078345; Fri, 3 Sep 2004 11:42:01 -0400 (EDT) (envelope-from mdodd@FreeBSD.ORG) Date: Fri, 3 Sep 2004 11:41:59 -0400 (EDT) From: "Matthew N. Dodd" X-X-Sender: winter@sasami.jurai.net To: "Ralf S. Engelschall" In-Reply-To: <20040903151831.GA84131@engelschall.com> Message-ID: <20040903113657.I4214@sasami.jurai.net> References: <20040903151831.GA84131@engelschall.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (sasami.jurai.net [69.17.104.113]); Fri, 03 Sep 2004 11:42:01 -0400 (EDT) cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Request for Review: UFS2 Snapshot Management Environment X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 15:42:02 -0000 On Fri, 3 Sep 2004, Ralf S. Engelschall wrote: ... > | $ cat /snap/home:hourly.1/rse/foo.txt /snap/home:hourly.0/rse/foo.txt foo.txt Now you just need to hack sys/kern/vfs_lookup.c to do the right thing when you ask for /path/.snapshot. -- 10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00 From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 3 17:35:51 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14E5716A4CE for ; Fri, 3 Sep 2004 17:35:51 +0000 (GMT) Received: from ds.netgate.net (ds.netgate.net [205.214.170.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA09B43D46 for ; Fri, 3 Sep 2004 17:35:50 +0000 (GMT) (envelope-from ctodd@chrismiller.com) Received: (qmail 13572 invoked from network); 3 Sep 2004 17:35:50 -0000 Received: from vp4.netgate.net (ibrew@205.214.170.248) by ds.netgate.net with SMTP; 3 Sep 2004 17:35:50 -0000 Date: Fri, 3 Sep 2004 10:35:50 -0700 (PDT) From: ctodd@chrismiller.com X-X-Sender: ibrew@vp4.netgate.net To: Ruslan Ermilov In-Reply-To: <20040903093825.GA6650@ip.net.ua> Message-ID: References: <20040903064854.GE32264@ip.net.ua><20040903093825.GA6650@ip.net.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@FreeBSD.org cc: John Baldwin Subject: Re: How to customize a release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 17:35:51 -0000 > I've just updated the release(7) manapge in RELENG_4, merging all > documentation changes from HEAD that were relevant. You might > want to update and re-read it. Cool, thanks! Chris From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 3 19:24:23 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32F7716A4CE for ; Fri, 3 Sep 2004 19:24:23 +0000 (GMT) Received: from fed1rmmtao10.cox.net (fed1rmmtao10.cox.net [68.230.241.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id F00C343D2D for ; Fri, 3 Sep 2004 19:24:22 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by fed1rmmtao10.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040903192416.QWLN21895.fed1rmmtao10.cox.net@mezz.mezzweb.com> for ; Fri, 3 Sep 2004 15:24:16 -0400 Date: Fri, 03 Sep 2004 14:24:07 -0500 To: freebsd-hackers@freebsd.org References: From: "Jeremy Messenger" Content-Type: multipart/mixed; boundary=----------991Vyh2o6KZS979jmDboDe MIME-Version: 1.0 Message-ID: In-Reply-To: User-Agent: Opera M2/7.54 (Linux, build 751) Subject: Re: Right way to test SMBus? Trying to add nForce2... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 19:24:23 -0000 ------------991Vyh2o6KZS979jmDboDe Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii Content-Transfer-Encoding: 8bit On Thu, 02 Sep 2004 16:44:35 -0500, Jeremy Messenger wrote: > Hello, > But in dmesg shows: > ===================================== > amdpm0: port 0-0x1f,0xec00-0xec1f irq 23 at > device 1.1 on pci0 > amdpm0: could not map i/o space > device_attach: amdpm0 attach returned 6 > ===================================== > > I think, I might have to change the PCI registers from 0x14 to 0x50 > and/or (not sure) 0x54, which I haven't done on this part yet. I hope, I > have the right PCI registers number (found in google). I am going to try > add two PCI registers (not sure how to do it yet) and I want to know how > should I test with SMBus to make sure it works? Thanks! Changed from 0x14 to 0x50 looks like it works without throw any error. Update dmesg shows: ===================================== amdpm0: port 0x5000-0x501f,0xec00-0xec1f irq 23 at device 1.1 on pci0 smbus0: on amdpm0 ===================================== I found a source for nForce2 SMBus[1] and it said that it has two SMBus interfaces (0x50 and 0x54) in a nForce2. So.. I think, I will not hack it more (due to lack of C knowledge) and keep patch (attaching) it by myself for personal. To have one 0x50 seems work for me. BTW: I am willing to test patch(es) if there has any. [1] http://www2.lm-sensors.nu/~lm78/cvs/browse.cgi/lm_sensors2/kernel/busses/i2c-nforce2.c Cheers, Mezz > Cheers, > Mezz -- mezz7 at cox.net - mezz at FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome at FreeBSD.org ------------991Vyh2o6KZS979jmDboDe Content-Disposition: attachment; filename=nforce2-smbus.diff Content-Type: text/plain; name=nforce2-smbus.diff Content-Transfer-Encoding: 8bit --- sys/pci/amdpm.c.orig Thu Sep 2 11:24:09 2004 +++ sys/pci/amdpm.c Fri Sep 3 01:11:02 2004 @@ -73,10 +73,11 @@ /* nVidia nForce chipset */ #define AMDPM_VENDORID_NVIDIA 0x10de #define AMDPM_DEVICEID_NF_SMB 0x01b4 +#define AMDPM_DEVICEID_NF2_SMB 0x0084 /* PCI Configuration space registers */ #define AMDPCI_PMBASE 0x58 -#define NFPCI_PMBASE 0x14 +#define NFPCI_PMBASE 0x50 #define AMDPCI_GEN_CONFIG_PM 0x41 #define AMDPCI_PMIOEN (1<<7) @@ -167,7 +168,8 @@ } if ((vid == AMDPM_VENDORID_NVIDIA) && - (did == AMDPM_DEVICEID_NF_SMB)) { + ((did == AMDPM_DEVICEID_NF_SMB) || + (did == AMDPM_DEVICEID_NF2_SMB))) { device_set_desc(dev, "nForce SMBus Controller"); /* ------------991Vyh2o6KZS979jmDboDe-- From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 4 00:40:41 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C37E516A4CE for ; Sat, 4 Sep 2004 00:40:41 +0000 (GMT) Received: from mail07.syd.optusnet.com.au (mail07.syd.optusnet.com.au [211.29.132.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 396CA43D41 for ; Sat, 4 Sep 2004 00:40:41 +0000 (GMT) (envelope-from tfrank@optushome.com.au) Received: from marvin.home.local (c211-28-252-96.eburwd5.vic.optusnet.com.au [211.28.252.96])i840ebCC017726; Sat, 4 Sep 2004 10:40:37 +1000 Received: by marvin.home.local (Postfix, from userid 1001) id 0EC241FBC5; Sat, 4 Sep 2004 10:40:37 +1000 (EST) Date: Sat, 4 Sep 2004 10:40:37 +1000 From: Tony Frank To: Bagus Message-ID: <20040904004037.GA42666@marvin.home.local> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-hackers@freebsd.org Subject: Re: slow login, app launching, etc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2004 00:40:41 -0000 Hi there, On Wed, Sep 01, 2004 at 08:25:20AM -0500, Bagus wrote: > > Hi, is anyone able to help me problem solve on this? Is this the right > forum for this kind of question? If not, could someone please send me a > pointer to an organization that might be able to help. I have a small budget > to get this fixed if anyone wants it. > > I'm running FreeBSD 2.2CAM-19980716-SNAP on bagus.org. > > I've been running it for a few years. Recently, after normal performance, > I've been experiencing extremely slow login prompt appearance, extremely > slow application launching and what bugs me the most is the extremely slow > response time of my java-web server. OTher functionality is ok. It serves > html files just fine and also basic command line response is fine. > > Anyone out there have any clues as to what it could be? I'm kind > of guessing it has something to do with some name resolution somewhere, > but I'm not sure. Any help would be greatly appreciated. Try checking your DNS setup; it may have changed? I often see this kind of behaviour when the host tries to perform reverse lookup on IP addresses. If DNS is configured incorrectly (eg non existant DNS server) the query times out (takes maybe 75s for default bind resolver) instead of returning an error or whatever. /etc/resolv.conf and /etc/hosts are good places to start. Regards, Tony From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 4 06:20:56 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55FE616A4CE for ; Sat, 4 Sep 2004 06:20:56 +0000 (GMT) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2B1643D45 for ; Sat, 4 Sep 2004 06:20:55 +0000 (GMT) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.9/8.12.8) with ESMTP id i846S81M020569 for ; Sat, 4 Sep 2004 02:28:08 -0400 (EDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.9/8.12.8/Submit) id i846S8Ci020568 for freebsd-hackers@freebsd.org; Sat, 4 Sep 2004 02:28:08 -0400 (EDT) Date: Sat, 4 Sep 2004 02:28:08 -0400 From: Mathew Kanner To: freebsd-hackers@freebsd.org Message-ID: <20040904062808.GA19729@cnd.mcgill.ca> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline User-Agent: Mutt/1.4.1i Organization: I speak for myself, operating in Montreal, CANADA X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.62 X-Spam-Checker-Version: SpamAssassin 2.62 (2004-01-11) on hak.cnd.mcgill.ca Subject: ugen.c hack for iso writes X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2004 06:20:56 -0000 --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, The attached patch allows me to roughly play sound on my Sound Blaster SB0270. I can't get uaudio to work with it but at least I can play something now using ugen. The patch changes the probing routine to be more forgiving about failure when looking for endpoints and makes it also consider alternative interfaces. It also add ISO writes to some degree. I get the occasional panic with it so beware, I'm posting here so it doesn't get lost. --Mat ps. CC me, I'm not subscribed -- I have found that humans often use Smalltalk during awkward moments. ("Data") --opJtzjQTFsWo+cga Content-Type: application/octet-stream Content-Disposition: attachment; filename="ugen.c-iso-writes.diff.bz2" Content-Transfer-Encoding: base64 QlpoOTFBWSZTWVqrmc4ACZpfgHgwe//////v//6/////YBAe8AD50lT1tveb3jCvduNa9vT0 0Oujl0uzVaXXcFRChXoyPSwkkamiCeVPU2ymmiZplH6k000yNAYgAaAGgybUANTCGkymCJ6p 6anqeo9Q0NBo0NBpkHqGEAAAAcDRoxBo0yYQYgMRiaNGjQBppoAAAAk0olMEamRHoym0IaA0 yAAAAGgAADQIlFNNRPapmIyjZQaaaNBoaAAyAAAAAAJEhMggBNMQmBSfohPKaehMmEaeo9QN Bmk0PSaGQsS0iMhIyKpCKyISCIJqJjiQWTFslYUsoRRQUrULFZKigChVKWltailS2qKytYqp UBRTBWPaC4I4tlRrSLljihRKuLBpUbgcJHAjIKyxRottKMjSiwNLZ2PE6H/OXTr6vV9Hzu7x vsfMrNkJr+iWHIYtZBRSjOnaQwjjGMFWlFoNkrJBYpbWitsjaKssUgpapZCxvUO6+C8mvPIe NTRmnm3ZnGc60q6rFK6k00KbXUF25zMs1Vz5BlV6zDgFOVzgqI6uDOJV+nPC5Nrt1UMIYTDJ VHRKwWTXvxgmVRt8Fm8P2Z4qHlfpt1g6mUdmC4G7sGEmoyURDCLNHHTzjRCvEOnHnUZ1pMNG FzFJomuolLVWM2AQ752nNZ4LO55NVGkSMixvJzne1KjOFdPwaPbZB3oATEFeDbY33Sjg6tOE /NwGOciSxEWi/NySslq92ckmisk/lG0s08ioLwYo+xQARmANR8hgXBJqBimNHZKB656CYFzP tZDvZnUBz36zYqB/v7cvis55vepnllldzwoL/QCVRsG7wsvBl4Nx+Hfm0Gn3ULPf05tzWyCM i26ogsefM+/aeHl5rVr9bKGv/HTbEihqJg1KE2Kcyjrlc0YuTkjOO1M1En4EEgdXEQKCG/ck ukusXWpbR/babNr7fJitzSfps725Mmbt7kSAyIdPtMREysgSGPAnKKu0icuKDILyLgkR6oPh +jNOdWO4LDJIfRxmvOx9V35K9Xg7y+UF+ilrsKO63gMMNzMNxZHemQXhGcwgUOqgSh7lvUW2 4SPt3WqLLWrBpY4ic+4hVSTnuGxuCqRWI1Y5MNbxqHy5658FaWBXBRD5iHiKKRYJEsQ3arDC bRhKZ7hTPEqYwzycyYEVMaWuTAcTa2tIk5i+2mnEKOLDzHJTvcNMx2P084rdo6FIgDPVkyJJ 4cQyTXBqTUOAvjbuDXPk9luaXAsLLkLr1ykIUf198uMbNsvmFznJhP4eHdwYwugl0R0oG5er Xm6jJC4WcMnY7Ild5SdI5yy8BaDERGHiMRIgkOFJM7ihh5oOoiSoqw+E9LT+88hIII8W5wl/ gZ7AGBNpN7SkiW/sIRJnadO0kOMjbGsaIyv3TRietmaN3v2Pq3AqLXIj7L5Tg5NmV5pLHh57 McQ/d3+6WYBeSGB8vPmFFMpizR16L9ljJQVtUuOUIvG7Zj+RbGjbMwTikZQRCIFpQy1i4kMa Ql+2XjM0J0i0KLSaoioY14isgPqXDBdRqpiuVr445hKYrAwjRe5puwehxfdrd8s+F1dDrQnm qz48F/FHIGA2hiAyZ8YkJDXGA9EC0ZPB0rP9FhSaCqoMaoeFPV3RamrHfJyhwa7633+Ps3ab HI6T0HV84xjE1nzHN0GzLZl0zNhoJu/jiSG4HE2buuDoReVlR3MhvHKgQRdhpZoASF+Nw48O BPCZG8+Do6opBkg0GUoRmKDPP2CEd3zwN93jM6PRCFdU2DqsBIbSGkwWRGgFGgHDatCpZfM2 ziwvI1ki8RA9L1o3GTMlDBdfapaNXDmpVNB4u5BBxstTVlrvQOxYUD8U/xIuJQyaxaBhtC3X SOoS7su2lb+/Hvn58X9Otzygoj69Wy81hfensTWuzxvBCRwSkDZHcoB4kLVfczV4rHIiayVz uxHIwSa88c5wPBTWT/XlADZnTvZZs+xwtSjWV1PEROFasIVSxiQhEyJFmU4NCx14Wi4olLFI lFcdnuGwaWJNbM0Whah4MLpPrRbbDo4NPQ70q97fN69jguix+wTnPeyKY2ZdnaE9qT4pIMQ9 KwQB5QMx4CdEgK8vfOS+Z6GS9HKWT188dc4LPNzQgz0hnZG+ILmT1/RJaNkOfvm0VyReWXLy IRg4WkDJics67FCFgWBYYG4Ih0YcvHr96m8TifFJvzYehJ3UsIh30hWJ30LEhg2C9TBHrVQw NDCuDiZyqJL9PzXFrQt/Krlw0ya4CttXU1TJWnsEaI6SPFT9h5jwD50+V5D9XOH14UNSXj7C RIfl06vMpozX+zUwzsLY2ZYUj1HzpMY2DTzhQMvawzvOjL6QWi2zMTX3ggnSunL8EOkUBKbn SXsDPSJGFFP+0EECdJBSBo52TCR80I7LywkcUjIZTSKxwQi4XEyPJgsz3gUGwZjohpETDhMs hki8qhoMxyh/X9LnFIN/DcREmgaJVsAaGghQbBQpCTZiY6YR0F9t5ILBqRcAVPs7YLYHPCPx ms1ET+znOokQJGtQfsWxKxQYzcjjuhjsAbRI0igkggsbjWRTAy/HtpEHM5DUugchyckGboOK L0kUuv8E19DHeHO2wtYUhIYzFdFIAuonOJ/HZs8lPHLo4J10cU9jt0MJ/DPX+6zm6pqQQc6m v9MkI1hQXQriT6mN946HP1qvCB+n4TxsQTCXB3e+QXjG5XZpu9APp5HjMSjA5vEIqr39BmK+ X6h3BuSqfm6TkqBM4jA8oydUIqroD3kMKaz/P4IyQfWyZ+5cRoggGG8WwTqK4mWqg3qlKExo oFgkiSGDStw9jf1xNXJVaIFZ2e866rsOmG9JYlPQFib1RjabRfsm5FxhejjUuPUjRi2swFC0 rZphplEPsEWpBczsHrD03yARpCf4UXtH4kmNlYggPvuIcpBwxDaBQzG0KTOCTpshgESGwEob BgMaTBsGCEMuIUDbQxKVdqLsDdaqlvVwsx8haZNS9NxkvIIM2c0r23QIIfHQZHtHDHSocczk 1mMmASaGLaji4k6AIbDSHpheOcROksCw1DZ4lPpYvE2GuAZ3gQguJSQsddmUvqpcJJdaBrbM hcDx6UWX/g3dgQmNoYw6ahZKLg8O+6V48JwKRbhEu91ytTKYNjTbF9zhJCHbQ1aQNmCtUXSq iC7+Q2XgDOHpAsyZeuPGNo2a+YUd7jk3BYuGjOIySxQYDQ7hFgwYAjA1dUFU8wQ36twaIcgy FnlDGjoGEzpIPqtGwFklp4qEjn+LkUSBdYRaFdZEEpkYxYUYEFJ9hq8A47hZcoqRqsxg0+Ag 0o2s6TqWtG5jJwmIPS5lUaM85HmiOhSEgwNDXiKWkCQEFRgMaYwVke+SPcqBgZgpZhkIlQro qMqtxiKnbTkYwdMZqG1otIErwUphC3aDf00osSio52+XZsuFbEKYdJy0NqtTaPJp8bvsiK0Y mJXkuobVivsMyabnnMKwERYsgvDsPPeKdZMlSsnlva7JO4D6UdRAa9SquwpQRM7btuB7CV5u DWJsIUaIR0ikgYe8cwjpTGTCyOxBc44PygqrMCOsx1GnOSWjr4zJkDBQ2ZwUBJNiK7i96shG 9hpQvdTBX49fXUW7FQsja+1NnEN4d63gm2LOc+07bFDJhkjENRzRcExBfDNHu5lYzhPDXIYh 1DTMTSvhkB2j49lxQyj/wEUjtHUmI9cXSBKF0P976Z+rQkoF8gMELMsRDPE1zuc3NoTggLod c1oo0jUVEGPMwxM03SgcrDDJRUWAjJDVBgYjA0DYDiQ73mzo4Ck3MU7CphJGPVLHQnQMkRs3 z7jEVEHeB5Eg76+W1Wu1YjFi0TWSNx/O80AwYaWxwlU0CDLN3a8U5lyXmNuc26ZG9958QpLc C5jgIvOZtvgKMdi50g4mF/gu5GAX1SEZLdm0oAowRg6TIYPFEmSIUyCZzoZmBpMuKMBOdChQ S6AqjjETBppsKMaXv3FpUrFaytJjU0uSRZaZlCxiZZnHEXMYJZTLLmzdVIc4h64SLmiTmJSM VpD012sYNDfnai68XNtGBeHJdQiQbwQ9WhCsATQhpLdxxpLVeMySDk0WTPujTLG9lxwhG2mD kpGynKZu0rOctve8bjznW2cBi0pCnDxN2EIJqGBid4MhYHGCgHPrm333VQ/hGEK64kcpanmo I+t1eJVBBoBACcERECIhTNXVh7gYqOAeURQoVidJ0LpTcqFS7M0Z12HQDlyNvJORkZbesR3K ixV4I5jNOIjhNJGGE/eeAUEEbKUwRSxdeA9l4EIz3pETUQWIzowz+TVOQR2Gc9MF0qd2+h/w 6GMg4U6XapkzRZZDN3CbBVBN0oJaDA23G4umlMsqIb5RJYIdU3AvgSYl4BhNGMQmgiEVFgwJ ayaTpKaJmbFC0VhYXINC3Z5iDzaVcSIhgwtnPlqkjMJebfvEV1CDOPBHgeYAx0CqHBoX53JJ gxBHBDOzKZTAhFxZGXgoCREgurgtXRmJg2Lo6SQOH4KgTKakcMyhnuZ0cglCVxVllo1KU9EF ZBvRymo2JFSXpPWXjDLoVi7ZjnJE1vqkjUarLW4x7dGExAtirrRPrGEG64CsrIjJlMB/4u5I pwoSC1VzOcA= --opJtzjQTFsWo+cga-- From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 4 12:19:39 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10A9A16A4CE for ; Sat, 4 Sep 2004 12:19:39 +0000 (GMT) Received: from wagner.elixus.org (h241-28.NTCU.net [211.76.241.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A94343D1F for ; Sat, 4 Sep 2004 12:19:36 +0000 (GMT) (envelope-from clkao@portege.clkao.org) Received: from portege.clkao.org (h241-28.NTCU.net [211.76.241.28]) by wagner.elixus.org (Postfix) with ESMTP id 79D77162A81D for ; Sat, 4 Sep 2004 20:19:29 +0800 (CST) Received: by portege.clkao.org (Postfix, from userid 1000) id 26E1D20D; Sat, 4 Sep 2004 13:19:13 +0100 (BST) Resent-From: clkao@portege.clkao.org Resent-Date: Sat, 4 Sep 2004 13:19:13 +0100 Resent-Message-ID: <20040904121913.GB43400@portege.clkao.org> Resent-To: hackers@freebsd.org Date: Sat, 4 Sep 2004 12:43:53 +0100 From: Chia-liang Kao To: hackers@freebsd.org Message-ID: <20040904114353.GA43351@portege.clkao.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: [ANNOUNCE] Subversion/svk mirror of the FreeBSD src tree X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2004 12:19:39 -0000 --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Greetings, I'm pleased to announce a Subversion/svk mirror of the freebsd src tree at: svn://svn.clkao.org/freebsd/cvs Web interface at http://svn.clkao.org/svnweb/freebsd/log/cvs/ The mirror is incremental, and will be run twice a day. Meanwhile svk 0.20, the first beta release, is now available: http://freshmeat.net/releases/171821/ [1] BACKGROUND svk (devel/svk) is a distributed version control system based on the versioned filesystem of Subversion. An introduction can be found at: http://wagner.elixus.org/~clkao/svk-intro/. The key feature of svk is that you can create a local branch and commit offline, and then generate patches against the trunk easily, or merge back directly. svk also provides smart merging facility, so you can constantly merge from the trunk for a branch that lives longer. The purpose of this mirror is not telling anyone to switch version control systems immediately. It's more like providing something like how Perforce is currently used in the project, but more accessible and decentralized. FAQ * How do I use the mirror? Since the tree is quite large, you might not want to grab the entire repository's history. You can start off with the 100 most recent revisions like this: svk mirror //freebsd/trunk svn://svn.clkao.org/freebsd/cvs/trunk svk sync --skipto HEAD-100 //freebsd/trunk * svk is built on-top of Subversion? I heard Subversion is slow. Doesn't that means svk is even slower? svk only uses the lowest two layers of Subversion, which is well-maintained and constantly improving. On large trees that reside locally, svk checkout is about twice as fast as svn. * How is the mirror provided? svk can also mirror non-subversion repositories with the nice and extensible VCP framework: svk mirror /freebsd/cvs cvs:/home/ncvs:src/... --branch-only=trunk,RELENG_4,RELENG_5 svk sync /freebsd/cvs That's it. You can run the mirror by yourself to pickup the branches you like. The memory consumption is about 300M. * The RELENG_* trees look a bit strange upon its initial creation. The branch grouping logic in VCP is not optimized yet for calculate the accurate branching point for all files. So the branches are created in some weird way, but they are still correct. It's currently not a priority task for me. * What happens when changes are merged back to cvs? Unfortunately the meta-data used by svk to record merge history will not (easily) propagate back to cvs. But normally they should be just be merged in the next merge down, while sometimes you might encounter conflicts if someone alters your change. A VCP Source driver for svk that does bidirectional synchronization of meta-data is required to solve this cleanly, however it's not a priority task for me either. * What is on the development roadmap of svk? o A lightweight, mirror-aware svkup protocol to update trees faster for non-developer access. o A centralized version and thin client, pretty much like how Perforce works. So people can choose between mirroring everything to be able to work offline, or to work online only. ACKNOWLEDGMENT Thanks to the FreeBSD project providing the excellent operating system that has been my primary development platform since 8 years ago. Special thanks to xs4all.nl for providing hardware and bandwidth for svk development and such mirror service. [1] Prebuilt binaries is available at http://rafan.infor.org/tmp/svk/. you only need devel/subversion (not even -perl) installed to run the binary. However it is a bit slow with this binary, but you don't have to install zillions of dependencies, and can preview the software easily. Cheers, CLK --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBOap4k1XldlEkA5YRAjH1AJ4n10Eu9VUtc2LvzTuqLtszjhmOIwCeMqKf tGt4ggEK1Spsp+cCzfFm5X8= =crfV -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS--