From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 13 01:35:36 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42A2116A418 for ; Sun, 13 Jan 2008 01:35:36 +0000 (UTC) (envelope-from freebsd-jobs@bebik.net) Received: from postfix1-g20.free.fr (postfix1-g20.free.fr [212.27.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id 03A1213C45A for ; Sun, 13 Jan 2008 01:35:35 +0000 (UTC) (envelope-from freebsd-jobs@bebik.net) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by postfix1-g20.free.fr (Postfix) with ESMTP id 78A5F2146C22 for ; Sun, 13 Jan 2008 02:03:47 +0100 (CET) Received: from smtp4-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp4-g19.free.fr (Postfix) with ESMTP id 7649C3EA0A9 for ; Sun, 13 Jan 2008 02:03:45 +0100 (CET) Received: from [192.168.0.244] (gam75-4-82-235-223-127.fbx.proxad.net [82.235.223.127]) by smtp4-g19.free.fr (Postfix) with ESMTP id 51F933EA0A7 for ; Sun, 13 Jan 2008 02:03:45 +0100 (CET) Message-ID: <47896373.6060608@bebik.net> Date: Sun, 13 Jan 2008 02:03:47 +0100 From: ros User-Agent: Thunderbird 2.0.0.6 (X11/20070927) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Micropolis port X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2008 01:35:36 -0000 I discover this afternoon Micropolis, the renamed "Sim City" game who is now open source (see http://developers.slashdot.org/article.pl?sid=08/01/12/1846256&from=rss) I really was a addicted to this game so I decide to try a port to FreeBSD At this point and after a few fixes the code compile without errors, and a binary is generate. The problem is after launching the application I'm no more able to interact with the application windows. I'm not a good X developer so if anyone want to check it It will helps. The code modified is available here : http://www.bebik.net/~rodrigo/freebsd-ports/micropolis-activity-freebsd-0.1.tgz To compile it, untar the archive, go to the micropolis-activity/src directory and start a 'make all' After compilation male a symbolic link from micropolis-activity/sim to micropolis-activity/src/sim/sim with % ln -s micropolis-activity/src/sim/sim sim and launch sim ! Requirement (as I can see): * tcl/tk * xlib Thanks for your help ! - rodrigo From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 13 02:27:57 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE78B16A420 for ; Sun, 13 Jan 2008 02:27:57 +0000 (UTC) (envelope-from xistence@0x58.com) Received: from mailexchange.osnn.net (1e.66.5646.static.theplanet.com [70.86.102.30]) by mx1.freebsd.org (Postfix) with SMTP id 9FF5413C44B for ; Sun, 13 Jan 2008 02:27:57 +0000 (UTC) (envelope-from xistence@0x58.com) Received: (qmail 71001 invoked by uid 0); 13 Jan 2008 01:57:29 -0000 Received: from unknown (HELO wideload.network.lan) (xistence@0x58.com@68.228.228.123) by mailexchange.osnn.net with SMTP; 13 Jan 2008 01:57:29 -0000 Message-Id: From: Bert JW Regeer To: hackers@freebsd.org Content-Type: multipart/signed; boundary=Apple-Mail-6-691652653; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v915) Date: Sat, 12 Jan 2008 19:01:08 -0700 X-Mailer: Apple Mail (2.915) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Using freebsd-update to install a clean system X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2008 02:27:57 -0000 --Apple-Mail-6-691652653 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hello, I am working on a tool to automatically provision new servers, and currently have it working properly using netboot, the way we currently do it is to have our own /usr/src and /usr/obj that we keep up to date with the latest patches and versions. The machines netboot an image, that NFS mounts those, and fdisks/bsdlabels the local disk and mount that as /target/{tmp,usr,var}, from there we set DESTDIR and run make {installworld, installkernel, distrib-dirs, distribution}, write out an fstab file, set up a simple rc.conf and let the machine reboot. This process works great, however for stability reasons we are not able to rebuild the source tree, each time an advisory comes out, and would like a better way of automating this system. Now that freebsd- update looks like it is going to be a first class citizen, we would like to take advantage of it always being up to date, we would want to run our own local update server, and then using freebsd-update install an entire distribution, from scratch without first installing one from compiled sources. Is this possible? Is there some way I can tell freebsd-update to target /target/ and install every part that we would need (kernel/ generic, world/base, world/manpages), without there already being a system installed in that location? While using -b partially works, it throws back all kinds of errors: install: /target//boot/kernel/3dfx_linux.ko.symbols: No such file or directory install: /target//boot/kernel/aac.ko.symbols: No such file or directory install: /target//boot/kernel/aac_linux.ko.symbols: No such file or directory install: /target//boot/kernel/accf_data.ko.symbols: No such file or directory install: /target//boot/kernel/accf_http.ko.symbols: No such file or directory Also, looking at the freebsd-update.sh script, sometimes it does not have ${BASEDIR} in front of what it is doing, for example on line 2492: kldxref -R /boot/ 2>/dev/null Would that not have to be: kldxref -R ${BASEDIR}/boot/ 2>/dev/null ? Thank you, Bert JW Regeer --Apple-Mail-6-691652653-- From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 13 16:01:30 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F77216A41B for ; Sun, 13 Jan 2008 16:01:30 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id D1CB613C455 for ; Sun, 13 Jan 2008 16:01:29 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 8847C1CD4C; Sun, 13 Jan 2008 17:01:27 +0100 (CET) Date: Sun, 13 Jan 2008 17:01:27 +0100 From: Ed Schouten To: FreeBSD Hackers Message-ID: <20080113160127.GF80300@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="McOwgVabxjWRBDh+" Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Three questions about FreeBSD kernel internals X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2008 16:01:30 -0000 --McOwgVabxjWRBDh+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello everyone, I've got three small questions about some of the source code in the FreeBSD kernel, based on some of the source code and the manpages. I didn't send it to questions@, because of their technical nature. >>> Question 1: Sleepqueues and turnstiles are allocated on thread creation. Why can't they be allocated when needed? I think the following answer should be quite okay: I suspect because we can't always run sleepq_alloc(). That way we're use we always have a sleepqueue for the process when we need it. We always need these, because otherwise the process is doomed when it can't allocate one. It's also faster I guess, because we don't have to allocate a brand new sleepqueue whenever we walk into a condition on which we have to wait (which happens a real lot, because a real lot of processes sleep). The reason why we don't keep them on the freelist as much as possible, is because we don't have to lock the hash table that much. We've always got one at hand. >>> Question 2: The kernel has three mechanisms to wait for an asynchronous event, namely sema(9), condvar(9) and sleep(9). Strictly, there are only two interfaces, because sema(9) is implemented using mutex(9) and condvar(9). My question is: which interface is the preferred one when writing new code? >>> Question 3: In the file tty_subr.c there is the following comment: | /* | * Allocate an initial base set of cblocks as a 'slush'. | * We allocate non-slush cblocks with each initial tty_open() and | * deallocate them with each tty_close(). | * We should adjust the slush allocation. This can't be done in | * the i/o routines because they are sometimes called from | * interrupt handlers when it may be unsafe to call malloc(). | */ My question is whether the bottom three lines of the comment are still accurate. If I believe the manpage, it's safe to call malloc() in interrupt handlers, if you use M_NOWAIT. I'm not really familiar with older xBSD implementations, but is it true that the kernel couldn't allocate memory in interrupt handlers back then? Yours, --=20 Ed Schouten WWW: http://g-rave.nl/ --McOwgVabxjWRBDh+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkeKNdcACgkQ52SDGA2eCwU34ACeOLhY5OIQFJy5q1JoxkAbEHu7 f2IAnimXZ8FFk8pRKDfdTHxwd9PAMDBE =ob6e -----END PGP SIGNATURE----- --McOwgVabxjWRBDh+-- From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 13 16:02:32 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6423F16A47C for ; Sun, 13 Jan 2008 16:02:32 +0000 (UTC) (envelope-from dgiagio@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.191]) by mx1.freebsd.org (Postfix) with ESMTP id 8EE7B13C45B for ; Sun, 13 Jan 2008 16:02:31 +0000 (UTC) (envelope-from dgiagio@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so1830907rvb.43 for ; Sun, 13 Jan 2008 08:02:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=1lf4MPlf3JmaF5kpQkRH1DqmYCjYqLc1CnTk9WX0YeU=; b=llKIwAWOLiaaHNAxqJRDe2qy+LPjrrx5leVY7Lv7ega8MzEa6b+JofViMtt56ulpTE8bzWItnli6ZTQJAOIW2sRXV/edXje91iBXWCQoWH9Ap+2PPnXxOdeliXV5h/aQuTuzti2pyM2Cq0za8ZlJleN/T5oYBJYt9bQ1x9IrC4g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SW3150Jo/uh4Ly21EE4L97QTsQKbHrvSKXCJ5EOFLlkvOGATRH1fIF1n9Xp4R/AJaaxqzsqkRSQFpRAEblul8j/WVauka5UcBUBmxMmTQ8FBV0LCRSJM5FZaGeZOcYd5UfnCvynGGZvLJokYlQz1SmjeOLFvConlMQy7KMRt1js= Received: by 10.141.51.15 with SMTP id d15mr3225422rvk.118.1200239722996; Sun, 13 Jan 2008 07:55:22 -0800 (PST) Received: by 10.141.129.11 with HTTP; Sun, 13 Jan 2008 07:55:22 -0800 (PST) Message-ID: <1b0798830801130755y440aa6cm3deef0b5788a9860@mail.gmail.com> Date: Sun, 13 Jan 2008 12:55:22 -0300 From: "Diego Giagio" To: "freebsd-current@freebsd.org" , freebsd-hackers@freebsd.org In-Reply-To: <1b0798830801130752k4209bce7yc5e1cbec7dd67f82@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1b0798830801130752k4209bce7yc5e1cbec7dd67f82@mail.gmail.com> Cc: Subject: Re: NDIS debugging X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2008 16:02:32 -0000 I forgot to mention: # uname -a FreeBSD 8.0-CURRENT FreeBSD 8.0-CURRENT #4: Sun Jan 13 12:46:48 BRST 2008 root@oblivion:/usr/src/sys/amd64/compile/GENERIC amd64 # uname -m amd64 # I'm using CURRENT as of 11/Jan/08. On Jan 13, 2008 12:52 PM, Diego Giagio wrote: > Hi, > > Recently i've bought a new laptop (Dell Precision M2300) which came > with Intel 4965 Wifi chipset. Since there's no native driver available > yet, I've been trying to get it to work throught Project Evil (NDIS > Windows Driver NETw4x64). > > At first, the driver complained for "no match for > InitializeSListHead". Then I figured it out how to implement that > function (a simple bzero on slist_head, just like ndiswrapper on > Linux) and it stopped complaining. I'm able to kldload NETx4x64_sys.ko > with success, but it stays silent. It just loads two dependent modules > (if_nids.ko and nids.ko) and nothing is printed into dmesg or console. > Also, there's no ndis0 device. > > As far as I can get I could see that DriverEntry()'s module is working > OK as it returns STATUS_SUCCESS on subr_windrv.c's windrv_load(). > > So, the question is: Is there a way to turn on verbose debugging on > the NDIS subsystem? Would be great if I could get some more info on > what's going wrong. > > Thank you. > > -- > DG > From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 13 16:16:22 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1860116A417 for ; Sun, 13 Jan 2008 16:16:22 +0000 (UTC) (envelope-from dgiagio@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.186]) by mx1.freebsd.org (Postfix) with ESMTP id E852213C442 for ; Sun, 13 Jan 2008 16:16:21 +0000 (UTC) (envelope-from dgiagio@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so1833986rvb.43 for ; Sun, 13 Jan 2008 08:16:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=1dww6s2mVFrcK5YX1yWZulVnVEPy4wRKxZNMu5rFauk=; b=uHrCoEP7z58H+yRxlD6QBaE8K4g03w1Im2Ow5Xxt4N/nSgu7ou1F/ypFQm++7XsZbvVyOWSTtY/bZWm7624RJo9t54seJCqdrLuxHjfKrPS9Ynbm8pz3wLh3QCeYFQO/gkeKsXTNyM4M2aRAiga6oftCW0GHtxg/vXMX6zdCuAY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=jmfeKm8sEiJ91PoPj4ws+91yIKx5GJGZ4Dx2UGKEZFemtln7y+1zeZ2VUnR1OuXmokE7GPCCa5QvaAVRw3dfMlBaUZ40Qx9VAH6kJjxVUzu4aNkb13qAyM4CSDlzoQLlqgZ77Tfb4BTm4bDH7NFemnCndfBX1zo4OdNnKCiHoV0= Received: by 10.141.178.5 with SMTP id f5mr3228116rvp.112.1200239521591; Sun, 13 Jan 2008 07:52:01 -0800 (PST) Received: by 10.141.129.11 with HTTP; Sun, 13 Jan 2008 07:52:01 -0800 (PST) Message-ID: <1b0798830801130752k4209bce7yc5e1cbec7dd67f82@mail.gmail.com> Date: Sun, 13 Jan 2008 12:52:01 -0300 From: "Diego Giagio" To: "freebsd-current@freebsd.org" , freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: NDIS debugging X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2008 16:16:22 -0000 Hi, Recently i've bought a new laptop (Dell Precision M2300) which came with Intel 4965 Wifi chipset. Since there's no native driver available yet, I've been trying to get it to work throught Project Evil (NDIS Windows Driver NETw4x64). At first, the driver complained for "no match for InitializeSListHead". Then I figured it out how to implement that function (a simple bzero on slist_head, just like ndiswrapper on Linux) and it stopped complaining. I'm able to kldload NETx4x64_sys.ko with success, but it stays silent. It just loads two dependent modules (if_nids.ko and nids.ko) and nothing is printed into dmesg or console. Also, there's no ndis0 device. As far as I can get I could see that DriverEntry()'s module is working OK as it returns STATUS_SUCCESS on subr_windrv.c's windrv_load(). So, the question is: Is there a way to turn on verbose debugging on the NDIS subsystem? Would be great if I could get some more info on what's going wrong. Thank you. -- DG From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 13 18:34:39 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AACB816A419 for ; Sun, 13 Jan 2008 18:34:39 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from hs-out-2122.google.com (hs-out-0708.google.com [64.233.178.248]) by mx1.freebsd.org (Postfix) with ESMTP id 5D40D13C447 for ; Sun, 13 Jan 2008 18:34:39 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by hs-out-2122.google.com with SMTP id h53so1955842hsh.11 for ; Sun, 13 Jan 2008 10:34:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=298RkZEJLDN6lOcS2CQyVl6wB2fELZ7kQMh/JTY3gWg=; b=MKmoGe5N6fg4uLOzHpynQX21txSdD1G795/Epc2mflOyMCTu1LSa9Vd163E8NggOmG/9aZ8OGxIdYbtJ+yoYxPGAGCa0dVkkdv878Iid1Mj4EOMe2QxJKwKEa/mavAgod/EDCB6dUkb5PDHzasiF9y+besC5D8llqqb+gnWNHHc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=kz97PK1tiGCLMXDK9tWmtTnX4qZIuH5Bt3CvyeUOh8VEo12G5SE5pjlOs8sIjNtltep8kkzxkhaxOJoJxHZbNguCed90jxi736NfWdkM4NMP17+2RXRAZDzgnY9qB/a5xSlS+s21I+GUgGRlt/oJNdyMxgJig4wQyvA9H6SFIkM= Received: by 10.150.211.19 with SMTP id j19mr2060607ybg.61.1200249278678; Sun, 13 Jan 2008 10:34:38 -0800 (PST) Received: by 10.150.152.8 with HTTP; Sun, 13 Jan 2008 10:34:38 -0800 (PST) Message-ID: <1bd550a00801131034o2999b85eu589cd8ee18a114ea@mail.gmail.com> Date: Sun, 13 Jan 2008 19:34:38 +0100 From: "=?ISO-8859-1?Q?Fernando_Apestegu=EDa?=" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: mutex lock for filesystem list. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2008 18:34:39 -0000 Hi all, I'm trying to write a patch to add a file to the linprocfs. This file provides the list of filesystems present in the kernel. Though I was able to create the file and traverse the list, it's clearly unsafe. I would like to know wich semaphore I should lock cause I can't find it in the kernel code. In addition I'd like to know if there is a book similar to the Understanding the Linux kernel, but for freebsd. What is the best information source to get introduced in the freebsd kernel programming (apart of the code itself)? Thanks in advance From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 13 19:49:56 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4240916A41B for ; Sun, 13 Jan 2008 19:49:56 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id F417813C461 for ; Sun, 13 Jan 2008 19:49:55 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id C56181CD4C; Sun, 13 Jan 2008 20:49:54 +0100 (CET) Date: Sun, 13 Jan 2008 20:49:54 +0100 From: Ed Schouten To: Fernando =?iso-8859-1?Q?Apestegu=EDa?= Message-ID: <20080113194954.GG80300@hoeg.nl> References: <1bd550a00801131034o2999b85eu589cd8ee18a114ea@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jk/5KjyVsvxWSMIA" Content-Disposition: inline In-Reply-To: <1bd550a00801131034o2999b85eu589cd8ee18a114ea@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: FreeBSD Hackers Subject: Re: mutex lock for filesystem list. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2008 19:49:56 -0000 --jk/5KjyVsvxWSMIA Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Fernando Apestegu=EDa wrote: > I'm trying to write a patch to add a file to the linprocfs. This file > provides the list of filesystems present in the kernel. >=20 > Though I was able to create the file and traverse the list, it's > clearly unsafe. I would like to know wich semaphore I should lock > cause I can't find it in the kernel code. >=20 > In addition I'd like to know if there is a book similar to the > Understanding the Linux kernel, but for freebsd. What is the best > information source to get introduced in the freebsd kernel programming > (apart of the code itself)? You're probably looking through the mountlist? Then you need to make sure you lock the mountlist_mtx. See src/sys/kern/vfs_mount.c. --=20 Ed Schouten WWW: http://g-rave.nl/ --jk/5KjyVsvxWSMIA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkeKa2IACgkQ52SDGA2eCwXQqACfbuRDpg1XfCI/CR5Tk/dxXsJK p2IAnjd1OeGhpYYfkg/jOaW2D5+pm8af =jEwV -----END PGP SIGNATURE----- --jk/5KjyVsvxWSMIA-- From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 13 19:52:46 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 298E016A41A for ; Sun, 13 Jan 2008 19:52:46 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id DB61413C458 for ; Sun, 13 Jan 2008 19:52:45 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 47D161CCC9; Sun, 13 Jan 2008 20:52:45 +0100 (CET) Date: Sun, 13 Jan 2008 20:52:45 +0100 From: Ed Schouten To: Fernando =?iso-8859-1?Q?Apestegu=EDa?= Message-ID: <20080113195245.GH80300@hoeg.nl> References: <1bd550a00801131034o2999b85eu589cd8ee18a114ea@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/zLL6W406Aotuby1" Content-Disposition: inline In-Reply-To: <1bd550a00801131034o2999b85eu589cd8ee18a114ea@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: FreeBSD Hackers Subject: Re: mutex lock for filesystem list. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2008 19:52:46 -0000 --/zLL6W406Aotuby1 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable And of course I forgot to answer all the questions. * Fernando Apestegu=EDa wrote: > In addition I'd like to know if there is a book similar to the > Understanding the Linux kernel, but for freebsd. What is the best > information source to get introduced in the freebsd kernel programming > (apart of the code itself)? I guess most people would say "The Design and Implementation of the FreeBSD Operating System", by McKusick and Neville-Neil: http://www.amazon.com/Design-Implementation-FreeBSD-Operating-System/dp/02= 01702452 Yours, --=20 Ed Schouten WWW: http://g-rave.nl/ --/zLL6W406Aotuby1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkeKbA0ACgkQ52SDGA2eCwUJQgCfZSaepUh2OIGZOfIceNDMlVYp bS8An3Cg4146TVo4JhoULk7wrCSrAasn =yRZ2 -----END PGP SIGNATURE----- --/zLL6W406Aotuby1-- From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 13 23:42:07 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9748616A417 for ; Sun, 13 Jan 2008 23:42:07 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outP.internet-mail-service.net (outP.internet-mail-service.net [216.240.47.239]) by mx1.freebsd.org (Postfix) with ESMTP id 736E313C455 for ; Sun, 13 Jan 2008 23:42:07 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Sun, 13 Jan 2008 15:42:06 -0800 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id A5D97126EC9; Sun, 13 Jan 2008 15:42:05 -0800 (PST) Message-ID: <478AA1CD.6030803@elischer.org> Date: Sun, 13 Jan 2008 15:42:05 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Ed Schouten References: <1bd550a00801131034o2999b85eu589cd8ee18a114ea@mail.gmail.com> <20080113195245.GH80300@hoeg.nl> In-Reply-To: <20080113195245.GH80300@hoeg.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: FreeBSD Hackers , =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= Subject: Re: mutex lock for filesystem list. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2008 23:42:07 -0000 Ed Schouten wrote: > And of course I forgot to answer all the questions. > > * Fernando Apesteguía wrote: >> In addition I'd like to know if there is a book similar to the >> Understanding the Linux kernel, but for freebsd. What is the best >> information source to get introduced in the freebsd kernel programming >> (apart of the code itself)? > > I guess most people would say "The Design and Implementation of the > FreeBSD Operating System", by McKusick and Neville-Neil: > > http://www.amazon.com/Design-Implementation-FreeBSD-Operating-System/dp/0201702452 but be warned that th at book was written part way through the SMP rewrite so a lot has changed... Dr McKusick said the words "Next edition" the other day but I think it's still just a glimmer in his eye. > > Yours, From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 01:47:27 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4CCC16A417 for ; Mon, 14 Jan 2008 01:47:27 +0000 (UTC) (envelope-from mashtizadeh@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249]) by mx1.freebsd.org (Postfix) with ESMTP id 887E213C467 for ; Mon, 14 Jan 2008 01:47:27 +0000 (UTC) (envelope-from mashtizadeh@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so500951anc.13 for ; Sun, 13 Jan 2008 17:47:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=oDy/vOHxYe6nA2D/VuZkeJ/BmTCwBMib1pHu8eN5qXw=; b=bvvkdAqIF6twA8b7Sybq3sgJoIOT2xf8rcZbVjNRujXrYE8/48jTz3g8v3DSZQw8daHuQp4bzZRhm5bbRKKTw8QEbzxZn7C5okiIbIkYcIWYljaUweSG7a0Xl3CXtVHRm/5prD5N6Xv9o/tfwn0tzJJUxiqxs7/3m1ViDJvIcy0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=TyD7hNirBE85vJ332eOSOXmcv0ol746kXVm/IKa+1+K4bQ+H+T7kGAOp6pQgATp3Byw8vqbMlt4bWzrjx2ObpDvYRjMEQQPv1t07MwCksooXhh4I0OFIB+A2kj2pUnVP1NzHhnVFkpVJpQHi7d84OL3b0DPhgxl/7uaCvGD7qyY= Received: by 10.100.41.16 with SMTP id o16mr12767300ano.118.1200273766797; Sun, 13 Jan 2008 17:22:46 -0800 (PST) Received: by 10.100.226.17 with HTTP; Sun, 13 Jan 2008 17:22:46 -0800 (PST) Message-ID: <440b3e930801131722p1289b434w66633e302936aa12@mail.gmail.com> Date: Sun, 13 Jan 2008 17:22:46 -0800 From: "Ali Mashtizadeh" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Nvidia Driver w/RELENG_7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 01:47:27 -0000 SGksCgpEb2VzIGFueW9uZSBoYXZlIHRoZSBudmlkaWEgdmlkZW8gZHJpdmVyIHdvcmtpbmcgd2l0 aCByZWxlbmcgNz8gV2hhdCBJIGFtCnNlZWluZyBpcyB0aGF0IHRoZSBrZXJuZWwgbW9kdWxlIGNv bXBpbGVzIGFuZCBsb2FkcyBmaW5lLCBidXQgaXQgd2lsbCBub3QKZGV0ZWN0IGFueSB2aWRlbyBj YXJkLiBJJ3ZlIHRyaWVkIHJlbW92aW5nIHRoZSBhZ3AgZGV2aWNlIGZyb20gbXkgQlNEIGtlcm5l bAphbmQgdXNpbmcgbnZpZGlhJ3MuCgotLSAKQWxpIE1hc2h0aXphZGVoCti52YTbjCDZhdi02Krb jCDYstin2K/Zhwo= From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 01:52:07 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E924E16A417 for ; Mon, 14 Jan 2008 01:52:07 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 995A013C458 for ; Mon, 14 Jan 2008 01:52:07 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (unknown [202.108.54.204]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTP id 3B59F28448 for ; Mon, 14 Jan 2008 09:52:06 +0800 (CST) Received: from localhost (unknown [202.108.54.204]) by tarsier.geekcn.org (Postfix) with ESMTP id DA14AEB48EF; Mon, 14 Jan 2008 09:52:05 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([202.108.54.204]) by localhost (mail.geekcn.org [202.108.54.204]) (amavisd-new, port 10024) with ESMTP id J7S4AFiUBBpu; Mon, 14 Jan 2008 09:52:03 +0800 (CST) Received: from charlie.delphij.net (c-67-161-39-180.hsd1.ca.comcast.net [67.161.39.180]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id BD7ECEB0BD8; Mon, 14 Jan 2008 09:52:02 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=ck5qW3+cBvfQ1/kuopvAfoqzyyida9nd1NdjGBiISiwVWdLVnlRg/tYZ+wI2ELGEF gUq+zbTwY4KJRGOeHYImA== Message-ID: <478AC040.1010703@delphij.net> Date: Sun, 13 Jan 2008 17:52:00 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: Ali Mashtizadeh References: <440b3e930801131722p1289b434w66633e302936aa12@mail.gmail.com> In-Reply-To: <440b3e930801131722p1289b434w66633e302936aa12@mail.gmail.com> X-Enigmail-Version: 0.95.5 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Nvidia Driver w/RELENG_7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 01:52:08 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ali Mashtizadeh wrote: > Hi, > > Does anyone have the nvidia video driver working with releng 7? What I am > seeing is that the kernel module compiles and loads fine, but it will not > detect any video card. I've tried removing the agp device from my BSD kernel > and using nvidia's. I'm using xf86-video-nv, I think you are referring the binary driver, which is not this one? - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHisBAi+vbBBjt66ARAob/AKCQxMuw0DvAZixDm+8qvU+lGpLNhwCfdelk at4T0KRlKFKfMq2sQiCElcE= =oL2t -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 01:59:34 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A01C16A418 for ; Mon, 14 Jan 2008 01:59:34 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 9158313C44B for ; Mon, 14 Jan 2008 01:59:33 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m0E1xUtl085857 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Jan 2008 12:29:30 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Mon, 14 Jan 2008 12:29:15 +1030 User-Agent: KMail/1.9.7 References: <440b3e930801131722p1289b434w66633e302936aa12@mail.gmail.com> In-Reply-To: <440b3e930801131722p1289b434w66633e302936aa12@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2767381.TYuiRTy8EW"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200801141229.22058.doconnor@gsoft.com.au> X-Spam-Score: -3.382 () ALL_TRUSTED,AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: Ali Mashtizadeh Subject: Re: Nvidia Driver w/RELENG_7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 01:59:34 -0000 --nextPart2767381.TYuiRTy8EW Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Mon, 14 Jan 2008, Ali Mashtizadeh wrote: > Does anyone have the nvidia video driver working with releng 7? What > I am seeing is that the kernel module compiles and loads fine, but it > will not detect any video card. I've tried removing the agp device > from my BSD kernel and using nvidia's. Load the module in the loader rather than after the kernel has booted. acpi_video can also grab the device I believe.. I am running current (ie=20 8) and I ran -current when it was 7.x and loading it from the loader=20 has always worked (modulo incompatible source changes :) =2D-=20 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 --nextPart2767381.TYuiRTy8EW Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHisH55ZPcIHs/zowRAunbAJ0faUeu3/VauQpp/yOetbZxGvhtKwCeMKxa dQ0riwq4YSHmYi8RJF4Uz5E= =yxWc -----END PGP SIGNATURE----- --nextPart2767381.TYuiRTy8EW-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 01:56:19 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E807916A417 for ; Mon, 14 Jan 2008 01:56:19 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from darklight.org.ru (ipv6.darklight.org.ru [IPv6:2001:470:1f07:84::1]) by mx1.freebsd.org (Postfix) with ESMTP id AE13513C448 for ; Mon, 14 Jan 2008 01:56:18 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from darklight.org.ru (yuri@darklight.org.ru [IPv6:::1]) by darklight.org.ru (8.14.2/8.14.2) with ESMTP id m0E1tlds001702; Mon, 14 Jan 2008 04:55:47 +0300 (MSK) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by darklight.org.ru (8.14.2/8.14.2/Submit) id m0E1tkxi001701; Mon, 14 Jan 2008 04:55:46 +0300 (MSK) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: darklight.org.ru: yuri set sender to yuri.pankov@gmail.com using -f Date: Mon, 14 Jan 2008 04:55:46 +0300 From: Yuri Pankov To: Ali Mashtizadeh Message-ID: <20080114015546.GA1545@darklight.org.ru> References: <440b3e930801131722p1289b434w66633e302936aa12@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <440b3e930801131722p1289b434w66633e302936aa12@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Mailman-Approved-At: Mon, 14 Jan 2008 02:17:13 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Nvidia Driver w/RELENG_7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 01:56:20 -0000 On Sun, Jan 13, 2008 at 05:22:46PM -0800, Ali Mashtizadeh wrote: > Hi, > > Does anyone have the nvidia video driver working with releng 7? What I am > seeing is that the kernel module compiles and loads fine, but it will not > detect any video card. I've tried removing the agp device from my BSD kernel > and using nvidia's. > > -- > Ali Mashtizadeh > علی مشتی زاده If you are sure that installed version of nvidia-driver supports your card, try putting nvidia_load="YES" in /boot/loader.conf. I guess your problem is vgapci attaching to device, leaving nvidia module without hardware to attach, like below: vgapci0@pci0:5:0:0: class=0x030000 card=0x40161682 chip=0x040210de rev=0xa1 hdr=0x00 vendor = 'Nvidia Corp' device = 'GeForce 8600 GT' class = display subclass = VGA HTH, Yuri From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 02:20:21 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0AD0416A468 for ; Mon, 14 Jan 2008 02:20:21 +0000 (UTC) (envelope-from lveax.m@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id C243F13C461 for ; Mon, 14 Jan 2008 02:20:20 +0000 (UTC) (envelope-from lveax.m@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so503210anc.13 for ; Sun, 13 Jan 2008 18:20:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ZwwOB9JcyTqcBbD3h3HLX0K632ZTmgrOLKmZYa2iaFY=; b=wBYasoz9xcKKqpoSh/iuQUo9rEcITeNUR0/IjNNT7Soi+y5kYE0Kzl0mKZqArzg7UPgBvVAsti6UI2MxPo7Yl/lVu1UTbKlU0exr+7cxrDHuowPwWRzfTUSPMPs2PKcMPpxrncjEhkvR0KqaXWfETQbzVBGiJLriN9vgmUjfufw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=B9FrkTJqiYcKAkZGgX+sdIbL8KIOuU6WrMo8L41dDtsKlDxwgIHcWAGnuS/kBxJgqEm73TCKe10OnsELVnL78XOl0hZOd2s7wjG/1SOU0vuPCt/c0Yd8xAoJdKQq3NTMDfS9B+FnkG/IATxBgdu+vTvfY5KLelX4Rp019yzYcT0= Received: by 10.100.225.19 with SMTP id x19mr12877351ang.9.1200275479354; Sun, 13 Jan 2008 17:51:19 -0800 (PST) Received: by 10.100.32.1 with HTTP; Sun, 13 Jan 2008 17:51:19 -0800 (PST) Message-ID: <576dcbc20801131751s75203cb7k2075c7e2d11895ce@mail.gmail.com> Date: Mon, 14 Jan 2008 09:51:19 +0800 From: lveax To: "Ali Mashtizadeh" In-Reply-To: <440b3e930801131722p1289b434w66633e302936aa12@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <440b3e930801131722p1289b434w66633e302936aa12@mail.gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Nvidia Driver w/RELENG_7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 02:20:21 -0000 it work right for me: nvidia0@pci0:1:0:0: #uname -srm FreeBSD 7.0-RC1 i386 From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 06:20:33 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE41616A418 for ; Mon, 14 Jan 2008 06:20:33 +0000 (UTC) (envelope-from lstewart@freebsd.org) Received: from swin.edu.au (gpo4.cc.swin.edu.au [136.186.1.224]) by mx1.freebsd.org (Postfix) with ESMTP id 553C113C43E for ; Mon, 14 Jan 2008 06:20:32 +0000 (UTC) (envelope-from lstewart@freebsd.org) Received: from [136.186.229.95] (lstewart.caia.swin.edu.au [136.186.229.95]) by swin.edu.au (8.13.6.20060614/8.13.1) with ESMTP id m0E2FWOC016555; Mon, 14 Jan 2008 13:15:32 +1100 Message-ID: <478AC5C4.7000709@freebsd.org> Date: Mon, 14 Jan 2008 13:15:32 +1100 From: Lawrence Stewart User-Agent: Thunderbird 1.5.0.9 (X11/20070123) MIME-Version: 1.0 To: Subhash Gopinath References: <5db9d2e0801112010s55812b20p6a43f0fbb5cddd17@mail.gmail.com> <47885EF3.8070104@freebsd.org> <5db9d2e0801121140x76c26a6k20e12a21db4cf0ae@mail.gmail.com> In-Reply-To: <5db9d2e0801121140x76c26a6k20e12a21db4cf0ae@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.1.9 X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on gpo4.cc.swin.edu.au Cc: freebsd-hackers@freebsd.org Subject: Re: netgraph question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 06:20:33 -0000 Subhash Gopinath wrote: > Thanks, looks interesting. > But I was looking at processing the packets in userspace. Sorry I > didn't mention it clearly. Ah ok. I didn't get that from your initial email. Have you looked at the firewall (ipfw and/or pf) code at all? I believe you can use mechanisms like divert sockets (man 4 divert) to pass packets up from the kernel to userspace for processing, and then reinject the packets into the stack if they pass whatever criteria is required. I'm sure there are other mechanisms for getting packets up into userspace as well, but firewall code is probably a good place to start looking for ideas. > > Thanks, > -Subhash > > On Jan 11, 2008 10:32 PM, Lawrence Stewart wrote: >> Hi Subhash, >> >> Subhash Gopinath wrote: >>> Hello folks, >>> >>> I am looking at writing an application program to tap certain ipv6 packets >>> (say icmpv6) >>> using netgraph. The application has to do some processing, before kernel can >>> proceed >>> with those packets. >>> >>> I have vaguely understood netgraph, and I see that I need a ng_socket node >>> in the application, an ng_bpf node, and an ng_ether or ng_iface node in the >>> kernel. >>> >>> My question is. would I need to create such nodes for each interface. Then >>> it becomes unscalable.. >>> Can I have just one socket, bpf, iface node that can tap icmpv6 packets on >>> all interfaces? >> The PFIL(9) interface might also be of interest to you. If all you need >> to do is packet interception and then allow/deny packets based on the >> results of some processing, PFIL might be the way to go. We wrote some >> code (SIFTR [1]) which uses PFIL in a similar capacity and you may want >> to refer to it as an example. >> >> Cheers, >> Lawrence >> >> [1] http://caia.swin.edu.au/urp/newtcp/tools.html >> Cheers, Lawrence From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 09:53:53 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4683B16A418 for ; Mon, 14 Jan 2008 09:53:53 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id 0891E13C4EB for ; Mon, 14 Jan 2008 09:53:52 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id CD3571B10EF4; Mon, 14 Jan 2008 10:36:18 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on blah.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.6 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 Received: from hater.haters.org (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id 7D54D1B10EFE; Mon, 14 Jan 2008 10:36:14 +0100 (CET) Message-ID: <478B2D0E.7010800@moneybookers.com> Date: Mon, 14 Jan 2008 11:36:14 +0200 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.9 (X11/20071120) MIME-Version: 1.0 To: Ali Mashtizadeh References: <440b3e930801131722p1289b434w66633e302936aa12@mail.gmail.com> In-Reply-To: <440b3e930801131722p1289b434w66633e302936aa12@mail.gmail.com> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.2/5482/Sun Jan 13 22:43:51 2008 on blah.cmotd.com X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org Subject: Re: Nvidia Driver w/RELENG_7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 09:53:53 -0000 Greetings, Ali Mashtizadeh wrote: > Hi, > > Does anyone have the nvidia video driver working with releng 7? What I am > seeing is that the kernel module compiles and loads fine, but it will not > detect any video card. I've tried removing the agp device from my BSD kernel > and using nvidia's. > > cat /boot/loader.conf nvidia_load="YES" linux_load="YES" and reboot I guess you have vgapci@ instead of nvidia@ and loading the module before the kernel should fix it. > ------------------------------------------------------------------------ > > _______________________________________________ > 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" -- Best Wishes, Stefan Lambrev ICQ# 24134177 From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 13:24:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00EE616A417 for ; Mon, 14 Jan 2008 13:24:41 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 001AD13C447 for ; Mon, 14 Jan 2008 13:24:40 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 46BCF1CC091; Mon, 14 Jan 2008 05:24:40 -0800 (PST) Date: Mon, 14 Jan 2008 05:24:40 -0800 From: Jeremy Chadwick To: freebsd-hackers@freebsd.org Message-ID: <20080114132440.GA71321@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Examples of sysctl/sysctlbyname/sysctlnametomib? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 13:24:41 -0000 Does anyone know of some documentation which would help explain how to walk the sysctl MIB tree for such things as dev.cpu? The sysctl(3) documentation is not very clear in regards to how to do this, and the closest thing I can find is what's in src/usr.sbin/powerd/powerd.c. I'm attempting to retrieve the integer values for dev.cpu.X.temperature. For example, using sysctlbyname("dev.cpu.X.temperature") does work, but the results returned in *oldp don't match that of what sysctl(8) shows. This lead me to consider using sysctlnametomib("dev.cpu.X"), which also returns success, but from there I'm confused... Thanks... :-) -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 14:28:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D1E116A417 for ; Mon, 14 Jan 2008 14:28:41 +0000 (UTC) (envelope-from gregoryd.freebsd@free.fr) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by mx1.freebsd.org (Postfix) with ESMTP id 0B8A713C465 for ; Mon, 14 Jan 2008 14:28:40 +0000 (UTC) (envelope-from gregoryd.freebsd@free.fr) Received: from smtp1-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp1-g19.free.fr (Postfix) with ESMTP id 60C481AB2B9; Mon, 14 Jan 2008 15:28:39 +0100 (CET) Received: from imp8-g19.free.fr (imp8-g19.free.fr [212.27.42.39]) by smtp1-g19.free.fr (Postfix) with ESMTP id 277F51AB36B; Mon, 14 Jan 2008 15:28:38 +0100 (CET) Received: by imp8-g19.free.fr (Postfix, from userid 33) id 752E63D00; Mon, 14 Jan 2008 15:28:38 +0100 (CET) Received: from 145.242.11.2 ([145.242.11.2]) by imp.free.fr (IMP) with HTTP for ; Mon, 14 Jan 2008 15:28:37 +0100 Message-ID: <1200320917.478b7195b7902@imp.free.fr> Date: Mon, 14 Jan 2008 15:28:37 +0100 From: gregoryd.freebsd@free.fr To: Julian Elischer References: <1bd550a00801131034o2999b85eu589cd8ee18a114ea@mail.gmail.com> <20080113195245.GH80300@hoeg.nl> <478AA1CD.6030803@elischer.org> In-Reply-To: <478AA1CD.6030803@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.8 X-Originating-IP: 145.242.11.2 Cc: FreeBSD Hackers , Ed Schouten , Fernando =?iso-8859-1?b?QXBlc3RlZ3XtYQ==?= Subject: Re: mutex lock for filesystem list. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 14:28:41 -0000 Quoting Julian Elischer : > but be warned that th at book was written part way through the SMP > rewrite so a lot has changed... Dr McKusick said the words "Next > edition" the other day but I think it's still just a glimmer in his eye. I for one am _really_ looking forward to it. :-) (please, please...) Meanwhile, there is this: http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/index.html (maybe: http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/index.html too, sections about kernel-debugging and stuff...) I was told that "designing bsd rootkits", No Starch Press, might be considered an introduction, too. Have layed my hands on it, but not my eyes yet... gregory From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 14:50:32 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6016B16A41B for ; Mon, 14 Jan 2008 14:50:32 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id E1A5B13C455 for ; Mon, 14 Jan 2008 14:50:31 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by elvis.mu.org (Postfix) with ESMTP id B6BFF1A4D7C; Mon, 14 Jan 2008 06:29:17 -0800 (PST) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Mon, 14 Jan 2008 08:23:43 -0500 User-Agent: KMail/1.9.7 References: <20080113160127.GF80300@hoeg.nl> In-Reply-To: <20080113160127.GF80300@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801140832.32347.jhb@freebsd.org> Cc: Ed Schouten Subject: Re: Three questions about FreeBSD kernel internals X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 14:50:32 -0000 On Sunday 13 January 2008 11:01:27 am Ed Schouten wrote: > Hello everyone, > > I've got three small questions about some of the source code in the > FreeBSD kernel, based on some of the source code and the manpages. I > didn't send it to questions@, because of their technical nature. > > >>> Question 1: > > Sleepqueues and turnstiles are allocated on thread creation. Why can't > they be allocated when needed? Because malloc() uses locks (mutexes) and sleeping internally. What would happen if you blocked on a lock or condvar while trying to allocate a sleepq or turnstile? :) Hence, we allocate them in another thread's context during thread creation. > >>> Question 2: > > The kernel has three mechanisms to wait for an asynchronous event, > namely sema(9), condvar(9) and sleep(9). Strictly, there are only two > interfaces, because sema(9) is implemented using mutex(9) and > condvar(9). My question is: which interface is the preferred one when > writing new code? condvar(9) is my preference. If you just need a sleep delay you can use pause(9). > >>> Question 3: > > In the file tty_subr.c there is the following comment: > > | /* > | * Allocate an initial base set of cblocks as a 'slush'. > | * We allocate non-slush cblocks with each initial tty_open() and > | * deallocate them with each tty_close(). > | * We should adjust the slush allocation. This can't be done in > | * the i/o routines because they are sometimes called from > | * interrupt handlers when it may be unsafe to call malloc(). > | */ > > My question is whether the bottom three lines of the comment are still > accurate. If I believe the manpage, it's safe to call malloc() in > interrupt handlers, if you use M_NOWAIT. I'm not really familiar with > older xBSD implementations, but is it true that the kernel couldn't > allocate memory in interrupt handlers back then? M_NOWAIT is ok in normal interrupt handlers, it is not valid in INTR_FAST/ filter interrupt handlers used by some tty drivers (e.g. sio(4)). -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 14:50:32 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67CF116A473 for ; Mon, 14 Jan 2008 14:50:32 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 26ACC13C45A for ; Mon, 14 Jan 2008 14:50:32 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by elvis.mu.org (Postfix) with ESMTP id 9C0141A4D7E; Mon, 14 Jan 2008 06:29:18 -0800 (PST) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Mon, 14 Jan 2008 08:34:34 -0500 User-Agent: KMail/1.9.7 References: <440b3e930801131722p1289b434w66633e302936aa12@mail.gmail.com> <20080114015546.GA1545@darklight.org.ru> In-Reply-To: <20080114015546.GA1545@darklight.org.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200801140834.34917.jhb@freebsd.org> Cc: Yuri Pankov , Ali Mashtizadeh Subject: Re: Nvidia Driver w/RELENG_7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 14:50:32 -0000 On Sunday 13 January 2008 08:55:46 pm Yuri Pankov wrote: > On Sun, Jan 13, 2008 at 05:22:46PM -0800, Ali Mashtizadeh wrote: > > Hi, > >=20 > > Does anyone have the nvidia video driver working with releng 7? What I = am > > seeing is that the kernel module compiles and loads fine, but it will n= ot > > detect any video card. I've tried removing the agp device from my BSD k= ernel > > and using nvidia's. > >=20 > > --=20 > > Ali Mashtizadeh > > =D8=B9=D9=84=DB=8C =D9=85=D8=B4=D8=AA=DB=8C =D8=B2=D8=A7=D8=AF=D9=87 >=20 > If you are sure that installed version of nvidia-driver supports your > card, try putting nvidia_load=3D"YES" in /boot/loader.conf. I guess your > problem is vgapci attaching to device, leaving nvidia module without > hardware to attach, like below: >=20 > vgapci0@pci0:5:0:0: class=3D0x030000 card=3D0x40161682 chip=3D0x04021= 0de > rev=3D0xa1 hdr=3D0x00 > vendor =3D 'Nvidia Corp' > device =3D 'GeForce 8600 GT' > class =3D display > subclass =3D VGA Actually, nvidia-driver is supposed to be a child of vgapci0 so it can cooperate with things like acpi_video(4). The Nvidia driver author is aware of this and should be able to fix it. =2D-=20 John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 15:07:27 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60DB716A418 for ; Mon, 14 Jan 2008 15:07:27 +0000 (UTC) (envelope-from raffaele.delorenzo@libero.it) Received: from grupposervizi.it (mail1.tagetik.com [85.18.71.243]) by mx1.freebsd.org (Postfix) with SMTP id 7522813C47E for ; Mon, 14 Jan 2008 15:07:25 +0000 (UTC) (envelope-from raffaele.delorenzo@libero.it) Received: (qmail 9225 invoked by uid 453); 14 Jan 2008 15:07:24 -0000 Received: from [192.9.217.29] (HELO noel.grupposervizi.it) (192.9.217.29) by grupposervizi.it (qpsmtpd/0.31.1) with ESMTP; Mon, 14 Jan 2008 16:07:24 +0100 Message-ID: <478B7AA6.9010304@libero.it> Date: Mon, 14 Jan 2008 16:07:18 +0100 From: Raffaele De Lorenzo User-Agent: Thunderbird 2.0.0.9 (X11/20071204) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, freebsd-net@freebsd.org, freebsd-security@freebsd.org, freebsd-arch@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "raffaele.delorenzo" Subject: Added native socks support to libc in FreeBSD 7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 15:07:27 -0000 Upgrade: 1) Added IPv6 Support (need to be tested) Cheers Raffaele Hi, i added a native (client) Socks V4/V5 support inside FreeBSD libc library. The work is based of my project (see http://csocks.altervista.org) CSOCKS. You can get it here: http://csocks.altervista.org/download/FreeBSD_libc.tar.gz CHANGES: I changed the file: /usr/src/lib/libc/Makefile I added the Directory: /usr/src/lib/libc/socks They contains the files: csocks.c csocks.h csocks.conf.5 csocks.1 Makefile.inc I added the configuration file (csocks.conf in the /etc/ directory) /usr/src/etc/ INSTALL ISTRUCTIONS: copy the Makefile in /usr/src/lib/libc/ copy the directory socks in /usr/src/lib/libc/ touch /etc/csocks.conf recompile the libc and install it (cd /usr/src/lib/libc && make && make install) I Tested it in FreeBSD 7 only on i386 cheers Raffaele From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 16:15:11 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A7EC16A41A for ; Mon, 14 Jan 2008 16:15:11 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id A400613C468 for ; Mon, 14 Jan 2008 16:15:10 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JERxn-0005WE-4i for freebsd-hackers@freebsd.org; Mon, 14 Jan 2008 16:15:03 +0000 Received: from 81.210.234.246 ([81.210.234.246]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Jan 2008 16:15:03 +0000 Received: from saper by 81.210.234.246 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Jan 2008 16:15:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Marcin Cieslak Date: Mon, 14 Jan 2008 16:50:12 +0100 Lines: 11 Message-ID: <478B84B4.3010000@system.pl> References: <20080114132440.GA71321@eos.sc1.parodius.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 81.210.234.246 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.11) Gecko/20071215 SeaMonkey/1.1.7 In-Reply-To: <20080114132440.GA71321@eos.sc1.parodius.com> Sender: news Subject: Re: Examples of sysctl/sysctlbyname/sysctlnametomib? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 16:15:11 -0000 Jeremy Chadwick wrote: > Does anyone know of some documentation which would help explain how to > walk the sysctl MIB tree for such things as dev.cpu? The sysctl(3) > documentation is not very clear in regards to how to do this, and the > closest thing I can find is what's in src/usr.sbin/powerd/powerd.c. Does sysctl_all() of src/sbin/sysctl/sysctl.c does that what you need? Mightt be easier to iterate a whole subtree and skipping things you don't need. --Marcin From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 19:03:19 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B6A516A418 for ; Mon, 14 Jan 2008 19:03:19 +0000 (UTC) (envelope-from mashtizadeh@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by mx1.freebsd.org (Postfix) with ESMTP id BE5C013C45A for ; Mon, 14 Jan 2008 19:03:18 +0000 (UTC) (envelope-from mashtizadeh@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so573483anc.13 for ; Mon, 14 Jan 2008 11:03:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=IdS384EkzHzWzKKTFXit2wCQjopkt+TJKtViAg2yuZg=; b=dQw64AP0JkjR5hIWMNfcDINq3l57tiFRLDrBn87Ey1+wXV8fHTZKddwI3w8ic56NORNnCV6AZfiOshI90fQPIdvHLy0e2JSGS5VzIRpF5vXntuEafvny9m9MU7zTSZigyNXqBaa+NC5By27OXYzu6jIIYutwjYARonkTC+3TqWw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Ik//XvSYpZe13OxplJQfGra3JdRBgL4ngslLWCPhyXclTWO+eElqE0AlVVlNGCl2sHrQNC4TsoPSWIYw1aXLTehD6X+almlCeWvpVDyytmfM7XaLXAKl9tfcQ/H7VAW/nnEEik1NHM6ydL/UPtt/Gig1tYgnaqAWkrMDTEEpkEc= Received: by 10.100.171.10 with SMTP id t10mr14757167ane.94.1200337397955; Mon, 14 Jan 2008 11:03:17 -0800 (PST) Received: by 10.100.197.13 with HTTP; Mon, 14 Jan 2008 11:03:17 -0800 (PST) Message-ID: <440b3e930801141103n6dcfabcet4a788fe4c7e01678@mail.gmail.com> Date: Mon, 14 Jan 2008 11:03:17 -0800 From: "Ali Mashtizadeh" To: "John Baldwin" In-Reply-To: <200801140834.34917.jhb@freebsd.org> MIME-Version: 1.0 References: <440b3e930801131722p1289b434w66633e302936aa12@mail.gmail.com> <20080114015546.GA1545@darklight.org.ru> <200801140834.34917.jhb@freebsd.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Yuri Pankov , freebsd-hackers@freebsd.org Subject: Re: Nvidia Driver w/RELENG_7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 19:03:19 -0000 QWgsIG9rYXkgeWVzIGlmIGl0cyBsb2FkZWQgYXQgYm9vdCB0aW1lIGl0IHdvcmtzLCBmdW5ueSBJ IHRob3VnaHQgSSB0cmllZAp0aGF0IHByZXZpb3VzbHkuIFRoYXQgd291bGQgYmUgYSBuaWNlIGZp eCB0byBnZXQgbnZpZGlhIHRhbGtpbmcgdG8gdGhlCmFjcGlfdmlkZW8gZHJpdmVyLgoKQWxpCgpP biBKYW4gMTQsIDIwMDggNTozNCBBTSwgSm9obiBCYWxkd2luIDxqaGJAZnJlZWJzZC5vcmc+IHdy b3RlOgoKPiBPbiBTdW5kYXkgMTMgSmFudWFyeSAyMDA4IDA4OjU1OjQ2IHBtIFl1cmkgUGFua292 IHdyb3RlOgo+ID4gT24gU3VuLCBKYW4gMTMsIDIwMDggYXQgMDU6MjI6NDZQTSAtMDgwMCwgQWxp IE1hc2h0aXphZGVoIHdyb3RlOgo+ID4gPiBIaSwKPiA+ID4KPiA+ID4gRG9lcyBhbnlvbmUgaGF2 ZSB0aGUgbnZpZGlhIHZpZGVvIGRyaXZlciB3b3JraW5nIHdpdGggcmVsZW5nIDc/IFdoYXQgSQo+ IGFtCj4gPiA+IHNlZWluZyBpcyB0aGF0IHRoZSBrZXJuZWwgbW9kdWxlIGNvbXBpbGVzIGFuZCBs b2FkcyBmaW5lLCBidXQgaXQgd2lsbAo+IG5vdAo+ID4gPiBkZXRlY3QgYW55IHZpZGVvIGNhcmQu IEkndmUgdHJpZWQgcmVtb3ZpbmcgdGhlIGFncCBkZXZpY2UgZnJvbSBteSBCU0QKPiBrZXJuZWwK PiA+ID4gYW5kIHVzaW5nIG52aWRpYSdzLgo+ID4gPgo+ID4gPiAtLQo+ID4gPiBBbGkgTWFzaHRp emFkZWgKPiA+ID4g2LnZhNuMINmF2LTYqtuMINiy2KfYr9mHCj4gPgo+ID4gSWYgeW91IGFyZSBz dXJlIHRoYXQgaW5zdGFsbGVkIHZlcnNpb24gb2YgbnZpZGlhLWRyaXZlciBzdXBwb3J0cyB5b3Vy Cj4gPiBjYXJkLCB0cnkgcHV0dGluZyBudmlkaWFfbG9hZD0iWUVTIiBpbiAvYm9vdC9sb2FkZXIu Y29uZi4gSSBndWVzcyB5b3VyCj4gPiBwcm9ibGVtIGlzIHZnYXBjaSBhdHRhY2hpbmcgdG8gZGV2 aWNlLCBsZWF2aW5nIG52aWRpYSBtb2R1bGUgd2l0aG91dAo+ID4gaGFyZHdhcmUgdG8gYXR0YWNo LCBsaWtlIGJlbG93Ogo+ID4KPiA+IHZnYXBjaTBAcGNpMDo1OjA6MDogICAgIGNsYXNzPTB4MDMw MDAwIGNhcmQ9MHg0MDE2MTY4MiBjaGlwPTB4MDQwMjEwZGUKPiA+IHJldj0weGExIGhkcj0weDAw Cj4gPiAgICAgdmVuZG9yICAgICA9ICdOdmlkaWEgQ29ycCcKPiA+ICAgICBkZXZpY2UgICAgID0g J0dlRm9yY2UgODYwMCBHVCcKPiA+ICAgICBjbGFzcyAgICAgID0gZGlzcGxheQo+ID4gICAgIHN1 YmNsYXNzICAgPSBWR0EKPgo+IEFjdHVhbGx5LCBudmlkaWEtZHJpdmVyIGlzIHN1cHBvc2VkIHRv IGJlIGEgY2hpbGQgb2YgdmdhcGNpMCBzbyBpdCBjYW4KPiBjb29wZXJhdGUgd2l0aCB0aGluZ3Mg bGlrZSBhY3BpX3ZpZGVvKDQpLiAgVGhlIE52aWRpYSBkcml2ZXIgYXV0aG9yIGlzCj4gYXdhcmUg b2YgdGhpcyBhbmQgc2hvdWxkIGJlIGFibGUgdG8gZml4IGl0Lgo+Cj4gLS0KPiBKb2huIEJhbGR3 aW4KPgoKCgotLSAKQWxpIE1hc2h0aXphZGVoCti52YTbjCDZhdi02KrbjCDYstin2K/Zhwo= From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 20:17:55 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D034B16A419 for ; Mon, 14 Jan 2008 20:17:55 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.10]) by mx1.freebsd.org (Postfix) with ESMTP id A74AB13C447 for ; Mon, 14 Jan 2008 20:17:50 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 12875 invoked from network); 14 Jan 2008 20:17:50 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 14 Jan 2008 20:17:50 -0000 Message-ID: <478BC29D.8030806@chuckr.org> Date: Mon, 14 Jan 2008 15:14:21 -0500 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: FreeBSD-Hackers X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: nvidia working? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 20:17:55 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I was wondering ... I have (I think) nvidia working on my box, or at least, I am calling out the nvidia driver in the xorg.conf, but I was wondering if there is any program that only works with the nvidia hardware, some way I can absolutely prove that I have the real nvidia card working here? Before I had it working, I was using the vesa driver, and most things look exactly the same, and if I could fine some program that shows the 8600GTS's abilities, I would sure like that. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHi8Kdz62J6PPcoOkRAlGaAJ0SR7/FCKHnAnU35zlfXV5WKjZ+aACeLSgq uDoVu+bTe2m6VCwYCn1BmMY= =I7gG -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 20:54:38 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF72716A420 for ; Mon, 14 Jan 2008 20:54:38 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id A508613C45A for ; Mon, 14 Jan 2008 20:54:38 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (jn@ns1 [69.55.238.237]) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id m0EKQOQV007631; Mon, 14 Jan 2008 15:26:24 -0500 (EST) (envelope-from lists@jnielsen.net) Received: (from www@localhost) by ns1.jnielsen.net (8.12.9p2/8.12.9/Submit) id m0EKQOOS007630; Mon, 14 Jan 2008 15:26:24 -0500 (EST) (envelope-from lists@jnielsen.net) X-Authentication-Warning: ns1.jnielsen.net: www set sender to lists@jnielsen.net using -f Received: from nc-2wac-zop03.wachovia.com (nc-2wac-zop03.wachovia.com [162.111.235.14]) by newwebmail.jnielsen.net (Horde MIME library) with HTTP; Mon, 14 Jan 2008 15:26:23 -0500 Message-ID: <20080114152623.lnpqtvs0g880kogo@newwebmail.jnielsen.net> Date: Mon, 14 Jan 2008 15:26:23 -0500 From: John Nielsen To: Chuck Robey References: <478BC29D.8030806@chuckr.org> In-Reply-To: <478BC29D.8030806@chuckr.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.4) / FreeBSD-4.9 X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: FreeBSD-Hackers Subject: Re: nvidia working? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 20:54:38 -0000 Quoting Chuck Robey : > I was wondering ... I have (I think) nvidia working on my box, or at > least, I am calling out the nvidia driver in the xorg.conf, but I was > wondering if there is any program that only works with the nvidia > hardware, some way I can absolutely prove that I have the real nvidia > card working here? Before I had it working, I was using the vesa > driver, and most things look exactly the same, and if I could fine some > program that shows the 8600GTS's abilities, I would sure like that. btw -questions would probably have been a better forum for this question than -hackers. The most straightforward approach is probably to review the output of your Xorg log, e.g. /var/log/Xorg.0.log. Output from the nvidia driver will be prefixed by NVIDIA (rather than VESA or NV if you were using a different driver). There is also x11/nvidia-settings port. It's a control panel of sorts that will show you nvidia-specific information. In theory it lets you control some settings as well but personally I've never found it useful for that. YMMV. JN From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 21:07:10 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E99116A41A for ; Mon, 14 Jan 2008 21:07:10 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.freebsd.org (Postfix) with ESMTP id 3322D13C44B for ; Mon, 14 Jan 2008 21:07:10 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id m0EL79Nw007489 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 14 Jan 2008 13:07:09 -0800 X-Auth-Received: from [192.168.1.105] (c-76-22-52-184.hsd1.wa.comcast.net [76.22.52.184]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id m0EL79Ot032712 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Mon, 14 Jan 2008 13:07:09 -0800 In-Reply-To: <20080114152623.lnpqtvs0g880kogo@newwebmail.jnielsen.net> References: <478BC29D.8030806@chuckr.org> <20080114152623.lnpqtvs0g880kogo@newwebmail.jnielsen.net> Mime-Version: 1.0 (Apple Message framework v753) X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <44F2053B-6AC5-4CB2-81C2-C2AF10130F5B@u.washington.edu> Content-Transfer-Encoding: 7bit From: Garrett Cooper Date: Mon, 14 Jan 2008 13:07:08 -0800 To: John Nielsen X-Mailer: Apple Mail (2.753) X-PMX-Version: 5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.1.14.124954 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='BODY_SIZE_800_899 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Cc: hackers@freebsd.org Subject: Re: nvidia working? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 21:07:10 -0000 On Jan 14, 2008, at 12:26 PM, John Nielsen wrote: > The most straightforward approach is probably to review the output > of your Xorg log, e.g. /var/log/Xorg.0.log. Output from the nvidia > driver will be prefixed by NVIDIA (rather than VESA or NV if you > were using a different driver). > > There is also x11/nvidia-settings port. It's a control panel of > sorts that will show you nvidia-specific information. In theory it > lets you control some settings as well but personally I've never > found it useful for that. YMMV. > > JN Yeah, I agree on both points: 1. Xorg.*.log will most likely yield the info you need about the nvidia driver. X -probe may as well.. 2. nvidia-settings was sort of useless for my purposes.. you may or may not discover that as well after using the tool. Its Windows counterpart is much more useful. Cheers, -Garrett From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 21:20:22 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA6C616A417 for ; Mon, 14 Jan 2008 21:20:22 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from cauchy.math.missouri.edu (cauchy.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 9DC7113C44B for ; Mon, 14 Jan 2008 21:20:22 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from laptop2.gateway.2wire.net (cauchy.math.missouri.edu [128.206.184.213]) by cauchy.math.missouri.edu (8.14.2/8.14.1) with ESMTP id m0EKsZ3A043856; Mon, 14 Jan 2008 14:54:36 -0600 (CST) (envelope-from stephen@math.missouri.edu) Message-ID: <478BCC3C.8090702@math.missouri.edu> Date: Mon, 14 Jan 2008 14:55:24 -0600 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.11) Gecko/20080109 SeaMonkey/1.1.7 MIME-Version: 1.0 To: Chuck Robey References: <478BC29D.8030806@chuckr.org> In-Reply-To: <478BC29D.8030806@chuckr.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD-Hackers Subject: Re: nvidia working? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 21:20:22 -0000 Chuck Robey wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I was wondering ... I have (I think) nvidia working on my box, or at least, > I am calling out the nvidia driver in the xorg.conf, but I was wondering if > there is any program that only works with the nvidia hardware, some way I > can absolutely prove that I have the real nvidia card working here? Before > I had it working, I was using the vesa driver, and most things look exactly > the same, and if I could fine some program that shows the 8600GTS's > abilities, I would sure like that. "xlock -mode atunnel" is a good work out. bzflag simply will grind to a halt without GL acceleration. From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 14 21:22:48 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E94A616A41B for ; Mon, 14 Jan 2008 21:22:48 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from mail.giulioferro.it (mail.giulioferro.it [85.18.102.52]) by mx1.freebsd.org (Postfix) with ESMTP id 9E54D13C455 for ; Mon, 14 Jan 2008 21:22:48 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from localhost (localhost [127.0.0.1]) by mail.giulioferro.it (Postfix) with ESMTP id CC53633C14; Mon, 14 Jan 2008 22:24:30 +0100 (CET) X-Virus-Scanned: amavisd-new at giulioferro.it Received: from mail.giulioferro.it ([127.0.0.1]) by localhost (aurynwork1sv1.giulioferro.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KvkMYr5ph-i2; Mon, 14 Jan 2008 22:24:25 +0100 (CET) Received: from aurynmob2.giulioferro.it (mail.zirakzigil.org [82.63.178.63]) (Authenticated sender: gferro@giulioferro.it) by mail.giulioferro.it (Postfix) with ESMTP id D563533C0F; Mon, 14 Jan 2008 22:24:24 +0100 (CET) Message-ID: <478BD292.7090909@zirakzigil.org> Date: Mon, 14 Jan 2008 22:22:26 +0100 From: Giulio Ferro User-Agent: Thunderbird 2.0.0.5 (X11/20070724) MIME-Version: 1.0 To: jamie@bishopston.net, freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: new linux-flashplugin9 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 21:22:49 -0000 Doesn't work. Both with linux-firefox and native firefox it either hangs or crashes. I tried this site: http://www.patek.com os: 7.0 beta 4 amd64 Hope it helps... From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 15 02:22:32 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69FA116A417 for ; Tue, 15 Jan 2008 02:22:32 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by mx1.freebsd.org (Postfix) with ESMTP id 40EFF13C45B for ; Tue, 15 Jan 2008 02:22:32 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 19136 invoked from network); 15 Jan 2008 02:22:31 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 15 Jan 2008 02:22:31 -0000 Message-ID: <478C1818.5050506@chuckr.org> Date: Mon, 14 Jan 2008 21:19:04 -0500 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: John Nielsen References: <478BC29D.8030806@chuckr.org> <20080114152623.lnpqtvs0g880kogo@newwebmail.jnielsen.net> In-Reply-To: <20080114152623.lnpqtvs0g880kogo@newwebmail.jnielsen.net> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD-Hackers Subject: Re: nvidia working? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 02:22:32 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Nielsen wrote: > Quoting Chuck Robey : >> I was wondering ... I have (I think) nvidia working on my box, or at >> least, I am calling out the nvidia driver in the xorg.conf, but I was >> wondering if there is any program that only works with the nvidia >> hardware, some way I can absolutely prove that I have the real nvidia >> card working here? Before I had it working, I was using the vesa >> driver, and most things look exactly the same, and if I could fine some >> program that shows the 8600GTS's abilities, I would sure like that. > > btw -questions would probably have been a better forum for this question > than -hackers. > True, but I didn't open this thread up, I just grabbed onto the tail of one that was already opened for me. It was opened on hackers, and I figured it would be too much, both to hijack a thread because it seemed to be ending, AND also to redirect it to -questions. I know I get no credit for realizing that another list would have beeen better, most especially because I figured that multimedia would have been the better list, not - -questions. > The most straightforward approach is probably to review the output of > your Xorg log, e.g. /var/log/Xorg.0.log. Output from the nvidia driver > will be prefixed by NVIDIA (rather than VESA or NV if you were using a > different driver). > > There is also x11/nvidia-settings port. It's a control panel of sorts > that will show you nvidia-specific information. In theory it lets you > control some settings as well but personally I've never found it useful > for that. YMMV. > Now, THAT's what i was after, I figure that nvidia-settings thingy ought to answer my "is my nvidia card working in nvidia mode?" question well enough. > JN > > _______________________________________________ > 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" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHjBgYz62J6PPcoOkRAqGtAJ9CSfMBnrfTUAgNw7P9KDU832wedACgkfes +55Sx6lrv+bKRrI/wqZvbDU= =PFQt -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 15 02:42:55 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE05B16A419 for ; Tue, 15 Jan 2008 02:42:55 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail5.sea5.speakeasy.net (mail5.sea5.speakeasy.net [69.17.117.7]) by mx1.freebsd.org (Postfix) with ESMTP id 87B4813C45A for ; Tue, 15 Jan 2008 02:42:55 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 31816 invoked from network); 15 Jan 2008 02:16:14 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail5.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 15 Jan 2008 02:16:14 -0000 Message-ID: <478C169E.50800@chuckr.org> Date: Mon, 14 Jan 2008 21:12:46 -0500 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: Garrett Cooper References: <478BC29D.8030806@chuckr.org> <20080114152623.lnpqtvs0g880kogo@newwebmail.jnielsen.net> <44F2053B-6AC5-4CB2-81C2-C2AF10130F5B@u.washington.edu> In-Reply-To: <44F2053B-6AC5-4CB2-81C2-C2AF10130F5B@u.washington.edu> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: nvidia working? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 02:42:55 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Garrett Cooper wrote: > On Jan 14, 2008, at 12:26 PM, John Nielsen wrote: > >> The most straightforward approach is probably to review the output of >> your Xorg log, e.g. /var/log/Xorg.0.log. Output from the nvidia driver >> will be prefixed by NVIDIA (rather than VESA or NV if you were using a >> different driver). >> >> There is also x11/nvidia-settings port. It's a control panel of sorts >> that will show you nvidia-specific information. In theory it lets you >> control some settings as well but personally I've never found it >> useful for that. YMMV. OK, that left mre a ton of questions, but I think some time spent looking at files might answer them, so in case I can't answer them all, I'll be back at you. Thanks! >> JN > > Yeah, I agree on both points: > > 1. Xorg.*.log will most likely yield the info you need about the nvidia > driver. X -probe may as well.. > 2. nvidia-settings was sort of useless for my purposes.. you may or may > not discover that as well after using the tool. Its Windows counterpart > is much more useful. > > Cheers, > -Garrett > _______________________________________________ > 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" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHjBaez62J6PPcoOkRApClAKChGW3QQgmDP3pR2XLkd4a2kM8lTQCdEy+j Tb6lrwjGIJvxsbMFAhNu2w0= =Xmxz -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 15 03:11:17 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4487916A417; Tue, 15 Jan 2008 03:11:17 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 1973813C45A; Tue, 15 Jan 2008 03:11:16 +0000 (UTC) (envelope-from sam@errno.com) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m0F3BGDH040162 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Jan 2008 19:11:16 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <478C2454.5050000@errno.com> Date: Mon, 14 Jan 2008 19:11:16 -0800 From: Sam Leffler User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: John Baldwin References: <440b3e930801131722p1289b434w66633e302936aa12@mail.gmail.com> <20080114015546.GA1545@darklight.org.ru> <200801140834.34917.jhb@freebsd.org> In-Reply-To: <200801140834.34917.jhb@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: Yuri Pankov , freebsd-hackers@freebsd.org, Ali Mashtizadeh Subject: Re: Nvidia Driver w/RELENG_7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 03:11:17 -0000 John Baldwin wrote: > On Sunday 13 January 2008 08:55:46 pm Yuri Pankov wrote: > >> On Sun, Jan 13, 2008 at 05:22:46PM -0800, Ali Mashtizadeh wrote: >> >>> Hi, >>> >>> Does anyone have the nvidia video driver working with releng 7? What I am >>> seeing is that the kernel module compiles and loads fine, but it will not >>> detect any video card. I've tried removing the agp device from my BSD kernel >>> and using nvidia's. >>> >>> -- >>> Ali Mashtizadeh >>> علی مشتی زاده >>> >> If you are sure that installed version of nvidia-driver supports your >> card, try putting nvidia_load="YES" in /boot/loader.conf. I guess your >> problem is vgapci attaching to device, leaving nvidia module without >> hardware to attach, like below: >> >> vgapci0@pci0:5:0:0: class=0x030000 card=0x40161682 chip=0x040210de >> rev=0xa1 hdr=0x00 >> vendor = 'Nvidia Corp' >> device = 'GeForce 8600 GT' >> class = display >> subclass = VGA >> > > Actually, nvidia-driver is supposed to be a child of vgapci0 so it can > cooperate with things like acpi_video(4). The Nvidia driver author is > aware of this and should be able to fix it. > FWIW I tried to update my desktop running HEAD and couldn't get the nvidia-driver-96.43.01 driver I need for my Quadro NVS to work correctly. The old build of the driver didn't work because of kernel changes and after rebuild the system locked up after displaying the Nvidia logo. I ended up having to downgrade the system to releng7. Sam From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 15 05:11:48 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C23516A420 for ; Tue, 15 Jan 2008 05:11:48 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id 381E813C44B for ; Tue, 15 Jan 2008 05:11:48 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so4335835waf.3 for ; Mon, 14 Jan 2008 21:11:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:organization:x-operation-sytem:from; bh=UCEW4nRSuTAm2r+8sGmwg42Y40/53V5vs2BDOVP1Qoo=; b=KVuL8k/o/ka5iS9HuTIe8JS2e/4wxv7qiOYRBpZDmy3uRjZLSyfjPfzJEKR/vaippnLYLY09fWXkefse24cvjGPlJ+ZOZmsGztZIypqk7DR8gGesp9dIBaKthODK/v0yL6OU5buTHtyK9Qp/XOpOoTHRgfZIs3eVhpHpBF2oxwE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:organization:x-operation-sytem:from; b=itOIsc1gXllHk7JEyxPkkBa8R5MfXgcBoXSOzovludy8bi32h0f+xxScQV20SzrJsuU4PPkmUl/BFUXXcDJTWcID1HhnS/NR2cmhJwUDNEdCZNK9Z4RG3F2p5QPsFIk/4LpxlhNeJh0BwfQlewJPIG+vRfSLYQd7SPBKRL906y4= Received: by 10.114.200.2 with SMTP id x2mr5150877waf.19.1200373907792; Mon, 14 Jan 2008 21:11:47 -0800 (PST) Received: from freebsd.weongyo.org ( [211.53.35.67]) by mx.google.com with ESMTPS id l38sm17311283waf.27.2008.01.14.21.11.46 (version=SSLv3 cipher=OTHER); Mon, 14 Jan 2008 21:11:47 -0800 (PST) Received: by freebsd.weongyo.org (sSMTP sendmail emulation); Tue, 15 Jan 2008 14:11:26 +0900 Date: Tue, 15 Jan 2008 14:11:26 +0900 To: Diego Giagio Message-ID: <20080115051126.GA42277@freebsd.weongyo.org> Mail-Followup-To: Diego Giagio , "freebsd-current@freebsd.org" , freebsd-hackers@freebsd.org References: <1b0798830801130752k4209bce7yc5e1cbec7dd67f82@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1b0798830801130752k4209bce7yc5e1cbec7dd67f82@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD From: Weongyo Jeong Cc: freebsd-hackers@freebsd.org, "freebsd-current@freebsd.org" Subject: Re: NDIS debugging X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 05:11:48 -0000 On Sun, Jan 13, 2008 at 12:52:01PM -0300, Diego Giagio wrote: > Hi, > > Recently i've bought a new laptop (Dell Precision M2300) which came > with Intel 4965 Wifi chipset. Since there's no native driver available > yet, I've been trying to get it to work throught Project Evil (NDIS > Windows Driver NETw4x64). > > At first, the driver complained for "no match for > InitializeSListHead". Then I figured it out how to implement that > function (a simple bzero on slist_head, just like ndiswrapper on > Linux) and it stopped complaining. I'm able to kldload NETx4x64_sys.ko > with success, but it stays silent. It just loads two dependent modules > (if_nids.ko and nids.ko) and nothing is printed into dmesg or console. > Also, there's no ndis0 device. > > As far as I can get I could see that DriverEntry()'s module is working > OK as it returns STATUS_SUCCESS on subr_windrv.c's windrv_load(). > > So, the question is: Is there a way to turn on verbose debugging on > the NDIS subsystem? Would be great if I could get some more info on > what's going wrong. As far as I know, there is no verbose debugging mode on the NDIS subsystem. Only a variable `ndis_debug' which is defined in if_ndis.c can be available to turn on `if_ndis' module's debugging mode. regards, Weongyo Jeong From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 15 10:41:05 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD58716A494; Tue, 15 Jan 2008 10:41:05 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from smtp.ht-systems.ru (mr0.ht-systems.ru [78.110.50.55]) by mx1.freebsd.org (Postfix) with ESMTP id 983B913C447; Tue, 15 Jan 2008 10:41:05 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from [78.110.49.49] (helo=quasar.ht-systems.ru) by smtp.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1JEiu2-00019S-4E; Tue, 15 Jan 2008 13:20:18 +0300 Received: by quasar.ht-systems.ru (Postfix, from userid 1024) id F0FA27D32ED; Tue, 15 Jan 2008 13:20:16 +0300 (MSK) Date: Tue, 15 Jan 2008 13:20:16 +0300 From: Stanislav Sedov To: Jeremy Chadwick Message-ID: <20080115102016.GJ22695@dracon.ht-systems.ru> References: <20080114132440.GA71321@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080114132440.GA71321@eos.sc1.parodius.com> Organization: The FreeBSD Project X-Voice: +7 916 849 20 23 X-XMPP: ssedov@jabber.ru X-Yahoo: stanislav_sedov X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-University: MEPhI X-Mailer: carrier-pigeon X-Operating-System: FreeBSD quasar.ht-systems.ru 7.0-BETA2 FreeBSD 7.0-BETA2 Cc: freebsd-hackers@freebsd.org Subject: Re: Examples of sysctl/sysctlbyname/sysctlnametomib? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 10:41:05 -0000 On Mon, Jan 14, 2008 at 05:24:40AM -0800 Jeremy Chadwick mentioned: > > I'm attempting to retrieve the integer values for dev.cpu.X.temperature. > For example, using sysctlbyname("dev.cpu.X.temperature") does work, but > the results returned in *oldp don't match that of what sysctl(8) shows. > This lead me to consider using sysctlnametomib("dev.cpu.X"), which also > returns success, but from there I'm confused... > sysctl converts temperature values to Celsius or Farenheit according to locale, e.g.: printf("%.1fC", (mv - 2732.0) / 10); When you retrive value using sysctlbyname, it's raw number, and it'll differ from what sysctl displays. -- Stanislav Sedov ST4096-RIPE From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 15 22:46:40 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E609B16A469 for ; Tue, 15 Jan 2008 22:46:40 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mail0.rawbw.com (mail0.rawbw.com [198.144.192.41]) by mx1.freebsd.org (Postfix) with ESMTP id B077913C45A for ; Tue, 15 Jan 2008 22:46:40 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mail0.rawbw.com (localhost [127.0.0.1]) by mail0.rawbw.com (8.13.8/8.13.8) with ESMTP id m0FMk4GG001834; Tue, 15 Jan 2008 14:46:04 -0800 (PST) Received: (from www@localhost) by mail0.rawbw.com (8.13.8/8.13.8/Submit) id m0FMk4wf001823; Tue, 15 Jan 2008 14:46:04 -0800 (PST) X-Authentication-Warning: mail0.rawbw.com: www set sender to yuri@rawbw.com using -f Received: from ip224.carlyle.sfo.ygnition.net (ip224.carlyle.sfo.ygnition.net [24.219.144.224]) by webmail.rawbw.com (IMP) with HTTP for ; Tue, 15 Jan 2008 14:46:03 -0800 Message-ID: <1200437163.478d37abc422c@webmail.rawbw.com> Date: Tue, 15 Jan 2008 14:46:03 -0800 From: Yuri To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 24.219.144.224 X-Mailman-Approved-At: Tue, 15 Jan 2008 23:08:50 +0000 Subject: Is Elf formatdocumented anywhere? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 22:46:41 -0000 When I am trying to understand how Elf executable works I am only getting to few pages with very fragmentary information. Googling many constants like R_386_PC32, R_386_TLS_LD only yields some discussion references and code. Anybody knows where to read more about the Elf format? Does such document even exist? Yuri From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 15 23:20:03 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A8C816A41B for ; Tue, 15 Jan 2008 23:20:03 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id E3EFE13C459 for ; Tue, 15 Jan 2008 23:20:02 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:54982 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JEv4b-0005pa-8b for freebsd-hackers@freebsd.org; Wed, 16 Jan 2008 00:20:02 +0100 Received: (qmail 88286 invoked from network); 16 Jan 2008 00:19:58 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 16 Jan 2008 00:19:58 +0100 Received: (qmail 64071 invoked by uid 1001); 16 Jan 2008 00:19:58 +0100 Date: Wed, 16 Jan 2008 00:19:58 +0100 From: Erik Trulsson To: Yuri Message-ID: <20080115231958.GA64002@owl.midgard.homeip.net> Mail-Followup-To: Yuri , freebsd-hackers@freebsd.org References: <1200437163.478d37abc422c@webmail.rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1200437163.478d37abc422c@webmail.rawbw.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1JEv4b-0005pa-8b. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JEv4b-0005pa-8b abcdb31b869f203c700bfd221b4ec35d Cc: freebsd-hackers@freebsd.org Subject: Re: Is Elf formatdocumented anywhere? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 23:20:03 -0000 On Tue, Jan 15, 2008 at 02:46:03PM -0800, Yuri wrote: > When I am trying to understand how Elf executable works I am only getting to few > pages with very fragmentary information. > > Googling many constants like R_386_PC32, R_386_TLS_LD only yields some > discussion references and code. > > Anybody knows where to read more about the Elf format? Does such document even > exist? > ELF is fairly well documented and standardized. Just googling for 'ELF' quickly yields the Wikipedia page http://en.wikipedia.org/wiki/Executable_and_Linkable_Format which contains several links to documents describing plenty of details. You can also read the elf(5) manpage in FreeBSD If that information is not what you are looking for you will have to ask much more specific questions (which hopefully somebody will be able to answer.) -- Erik Trulsson ertr1013@student.uu.se From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 15 23:40:59 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C60816A41A for ; Tue, 15 Jan 2008 23:40:59 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from gidgate.gid.co.uk (gid.co.uk [194.32.164.225]) by mx1.freebsd.org (Postfix) with ESMTP id 98ECC13C447 for ; Tue, 15 Jan 2008 23:40:58 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from rbPBP.gid.co.uk (host-83-146-60-88.bulldogdsl.com [83.146.60.88]) by gidgate.gid.co.uk (8.13.8/8.13.8) with ESMTP id m0FNI4CU009695; Tue, 15 Jan 2008 23:18:04 GMT (envelope-from rb@gid.co.uk) Message-Id: <6DFE241B-B42C-4F77-B081-1B616ED464D5@gid.co.uk> From: Bob Bishop To: Yuri In-Reply-To: <1200437163.478d37abc422c@webmail.rawbw.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Tue, 15 Jan 2008 23:17:59 +0000 References: <1200437163.478d37abc422c@webmail.rawbw.com> X-Mailer: Apple Mail (2.915) Cc: freebsd-hackers@freebsd.org Subject: Re: Is Elf formatdocumented anywhere? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 23:40:59 -0000 Hi, On 15 Jan 2008, at 22:46, Yuri wrote: > [...] > Anybody knows where to read more about the Elf format? Does such > document even > exist? It's originally defined in the System V ABI specification, http://www.caldera.com/developers/devspecs/gabi41.pdf -- Bob Bishop +44 (0)118 940 1243 rb@gid.co.uk fax +44 (0)118 940 1295 From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 15 23:46:07 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D72F716A418 for ; Tue, 15 Jan 2008 23:46:07 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mail0.rawbw.com (mail0.rawbw.com [198.144.192.41]) by mx1.freebsd.org (Postfix) with ESMTP id B91D113C455 for ; Tue, 15 Jan 2008 23:46:07 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mail0.rawbw.com (localhost [127.0.0.1]) by mail0.rawbw.com (8.13.8/8.13.8) with ESMTP id m0FNk7cX044015; Tue, 15 Jan 2008 15:46:07 -0800 (PST) Received: (from www@localhost) by mail0.rawbw.com (8.13.8/8.13.8/Submit) id m0FNk77U044012; Tue, 15 Jan 2008 15:46:07 -0800 (PST) X-Authentication-Warning: mail0.rawbw.com: www set sender to yuri@rawbw.com using -f Received: from ip224.carlyle.sfo.ygnition.net (ip224.carlyle.sfo.ygnition.net [24.219.144.224]) by webmail.rawbw.com (IMP) with HTTP for ; Tue, 15 Jan 2008 15:46:06 -0800 Message-ID: <1200440766.478d45be80915@webmail.rawbw.com> Date: Tue, 15 Jan 2008 15:46:06 -0800 From: Yuri To: Erik Trulsson References: <1200437163.478d37abc422c@webmail.rawbw.com> <20080115231958.GA64002@owl.midgard.homeip.net> In-Reply-To: <20080115231958.GA64002@owl.midgard.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 24.219.144.224 X-Mailman-Approved-At: Wed, 16 Jan 2008 00:37:50 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Is Elf formatdocumented anywhere? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 23:46:07 -0000 > ELF is fairly well documented and standardized. No, I would say ELF is somewhat documented. > > Just googling for 'ELF' quickly yields the Wikipedia page > http://en.wikipedia.org/wiki/Executable_and_Linkable_Format > which contains several links to documents describing plenty of details. These links only go that far. Googling many if not most of the constants that are in /usr/include/sys/elf_common.h only gives some discussion references. > > You can also read the elf(5) manpage in FreeBSD Not many details here too. Yuri From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 02:45:01 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B25216A41A for ; Wed, 16 Jan 2008 02:45:01 +0000 (UTC) (envelope-from raysonlogin@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.freebsd.org (Postfix) with ESMTP id DF94E13C461 for ; Wed, 16 Jan 2008 02:45:00 +0000 (UTC) (envelope-from raysonlogin@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so131275pyb.10 for ; Tue, 15 Jan 2008 18:44:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=xzIM/VzaUHyoEwbjW/chV3dFoOsOnHbUkf91510yEtw=; b=P1oBfOuL/N3xauZyo0fIwFmlVi1IreRycNNVWEyWoxqwNjoIwduH/lP9q8hM/xC80qOBJqzG7FwF3XUzF1rRNuoS+0gA9DWAUNJcpcpdaL9bV0292oWAwwr6kMk66YcHYRzr1rzLaD5sqL7wBSWdqlfix2x87yHhfD3ugb+JQuU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=p4UyF84xwndXLvmFvxj9h/8wxkSA5fYxG6z4Ol6ZlVpWAhrd2Y35HOCFzk8zTGIt5SeZwS+Jc483RHwyd8i92w/pl9IP51Z3Z8NwC8vkuvy2zWo7R/cU/+ZjgZQfgnD98AeenG+Dne4rGiUItkv1B5aF3t5pOA4/GXaeJeXriQo= Received: by 10.35.91.1 with SMTP id t1mr263559pyl.5.1200450038816; Tue, 15 Jan 2008 18:20:38 -0800 (PST) Received: by 10.35.8.15 with HTTP; Tue, 15 Jan 2008 18:20:38 -0800 (PST) Message-ID: <73a01bf20801151820g33377310sdf337117cd96984e@mail.gmail.com> Date: Tue, 15 Jan 2008 21:20:38 -0500 From: "Rayson Ho" To: freebsd-hackers@freebsd.org In-Reply-To: <1200440766.478d45be80915@webmail.rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1200437163.478d37abc422c@webmail.rawbw.com> <20080115231958.GA64002@owl.midgard.homeip.net> <1200440766.478d45be80915@webmail.rawbw.com> Subject: Re: Is Elf formatdocumented anywhere? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 02:45:01 -0000 What specifically you want to know about ELF?? Rayson On Jan 15, 2008 6:46 PM, Yuri wrote: > > ELF is fairly well documented and standardized. > No, I would say ELF is somewhat documented. > > > > Just googling for 'ELF' quickly yields the Wikipedia page > > http://en.wikipedia.org/wiki/Executable_and_Linkable_Format > > which contains several links to documents describing plenty of details. > These links only go that far. Googling many if not most of the constants > that are in /usr/include/sys/elf_common.h only gives some discussion > references. > > > > You can also read the elf(5) manpage in FreeBSD > Not many details here too. > > Yuri > > _______________________________________________ > 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 Wed Jan 16 04:10:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DEC816A417 for ; Wed, 16 Jan 2008 04:10:41 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 1B93713C45A for ; Wed, 16 Jan 2008 04:10:40 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JEzbl-0005Gu-El for freebsd-hackers@freebsd.org; Wed, 16 Jan 2008 04:10:33 +0000 Received: from 81.210.234.246 ([81.210.234.246]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jan 2008 04:10:33 +0000 Received: from saper by 81.210.234.246 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Jan 2008 04:10:33 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Marcin Cieslak Date: Wed, 16 Jan 2008 05:10:17 +0100 Lines: 17 Message-ID: References: <1200437163.478d37abc422c@webmail.rawbw.com> <20080115231958.GA64002@owl.midgard.homeip.net> <1200440766.478d45be80915@webmail.rawbw.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 81.210.234.246 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.11) Gecko/20071215 SeaMonkey/1.1.7 In-Reply-To: <1200440766.478d45be80915@webmail.rawbw.com> Sender: news Subject: Re: Is Elf formatdocumented anywhere? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 04:10:41 -0000 Yuri wrote: >> ELF is fairly well documented and standardized. > No, I would say ELF is somewhat documented. >> Just googling for 'ELF' quickly yields the Wikipedia page >> http://en.wikipedia.org/wiki/Executable_and_Linkable_Format >> which contains several links to documents describing plenty of details. > These links only go that far. Googling many if not most of the constants > that are in /usr/include/sys/elf_common.h only gives some discussion > references. >> You can also read the elf(5) manpage in FreeBSD > Not many details here too. For introductory material, please see the Linkers and Loaders book: http://www.iecc.com/linker/ --Marcin From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 09:33:14 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD5CF16A418; Wed, 16 Jan 2008 09:33:14 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from bene2.itea.ntnu.no (bene2.itea.ntnu.no [IPv6:2001:700:300:3::57]) by mx1.freebsd.org (Postfix) with ESMTP id C209713C502; Wed, 16 Jan 2008 09:33:12 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from localhost (localhost [127.0.0.1]) by bene2.itea.ntnu.no (Postfix) with ESMTP id EDBA3160654; Wed, 16 Jan 2008 10:33:10 +0100 (CET) Received: from carrot.studby.ntnu.no (caracal.stud.ntnu.no [129.241.56.185]) by bene2.itea.ntnu.no (Postfix) with ESMTP id B84FD90002; Wed, 16 Jan 2008 10:33:03 +0100 (CET) Date: Wed, 16 Jan 2008 10:33:02 +0100 From: Ulf Lilleengen To: freebsd-hackers@freebsd.org Message-ID: <20080116093302.GA13632@carrot.studby.ntnu.no> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: Debian amavisd-new at bene2.itea.ntnu.no Cc: Subject: Csup cvsmode build discussion X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 09:33:14 -0000 Hello hackers, As some might know, I've been implementing CVSMode for csup over the last couple of months. Right now, I'm quite close to have it work (does not mean it will work perfect :)), but I encountered some issues regarding the inclusion of my lex and yacc files that I would like to discuss. It is assumed that the reader know what lex and yacc is. First of all, I implemented the RCS parser required to operate on RCS files using lex and yacc. Those are in FreeBSD userland, but the problem is they are wayy to outdated for csups need. The reason is mainly because they don't support: 1) reentrancy (needed since csup uses two threads, one to send information to the server regarding it's files, and one to recieve information on how a file is to be updated). 2) prefixing of lex/yacc output. Not a big deal, but easy if one doesn't need to have to work around it. 3) parameter passing. Part of the reentrancy requirement but useful if one would extend the arguments to a parser. Because of this, I've been compiling the parser and tokenizer with the help of bison and flex from ports. Now, the base system already have flex, but the flex version in base is heavily outdated (version 2.5.4 versus 2.5.34 in ports) and does not support reentrancy. Is there a reason why it's outdated? What I can think of is that it is either unmaintained, or that developers want it to disappear from base. The yacc version in base is pretty old too and does not support reentrancy. I would like to not have to hack it up to support this to avoid using bison, (And I suspect importing bison into base is going to happen over someones dead body :)). So, I'm asking you, how should I best deal with this? Should I a) Just include the _generated_ parser and tokenizer (e.g the output from bison and flex) and just include the yacc and lex files in case someone wants to work more on it? b) Modify parser to be non-reentrant and solve my issues with locks. c) Import bison into base and update flex version. d) Alternative 'a' is my favorite, and seems to be the easiest way to avoid a heavy inpact on the base system, but again it will complicate procedure of modifying the parser since one have to use the correct build tools etc. 'b' would lead to performance loss and I would very much like to avoid it. 'c' would take a lot of work and I think many would protest on importing bison (including me if I were not biased with needing it and all :)) What I ask of you is comments on these alternatives as well as inserting your fantastic idea if you happen to have one :) -- Ulf Lilleengen From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 11:08:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EB1F16A419 for ; Wed, 16 Jan 2008 11:08:23 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from gidgate.gid.co.uk (gid.co.uk [194.32.164.225]) by mx1.freebsd.org (Postfix) with ESMTP id 8DF5113C457 for ; Wed, 16 Jan 2008 11:08:22 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from [10.10.1.241] (isbalham.ist.co.uk [192.31.26.1]) by gidgate.gid.co.uk (8.13.8/8.13.8) with ESMTP id m0GB8LXM017244; Wed, 16 Jan 2008 11:08:21 GMT (envelope-from rb@gid.co.uk) Message-Id: <0CE4984F-41F7-44EA-9FE7-0E573DB2B338@gid.co.uk> From: Bob Bishop To: Ulf Lilleengen In-Reply-To: <20080116093302.GA13632@carrot.studby.ntnu.no> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Wed, 16 Jan 2008 11:08:20 +0000 References: <20080116093302.GA13632@carrot.studby.ntnu.no> X-Mailer: Apple Mail (2.915) Cc: freebsd-hackers@freebsd.org Subject: Re: Csup cvsmode build discussion X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 11:08:23 -0000 Hi, On 16 Jan 2008, at 09:33, Ulf Lilleengen wrote: > Hello hackers, > > As some might know, I've been implementing CVSMode for csup over the > last couple > of months. Right now, I'm quite close to have it work (does not mean > it will > work perfect :)), but I encountered some issues regarding the > inclusion of my > lex and yacc files that I would like to discuss. It is assumed that > the reader > know what lex and yacc is. > > First of all, I implemented the RCS parser required to operate on > RCS files > using lex and yacc. Those are in FreeBSD userland, but the problem > is they are > wayy to outdated for csups need. The reason is mainly because they > don't > support: > 1) reentrancy (needed since csup uses two threads, one to send > information > to the server regarding it's files, and one to recieve information > on how a file > is to be updated). > > 2) prefixing of lex/yacc output. Not a big deal, but easy if one > doesn't need to > have to work around it. > > 3) parameter passing. Part of the reentrancy requirement but useful > if one would > extend the arguments to a parser. > > Because of this, I've been compiling the parser and tokenizer with > the help of bison > and flex from ports. > > Now, the base system already have flex, but the flex version in base > is heavily > outdated (version 2.5.4 versus 2.5.34 in ports) and does not support > reentrancy. > Is there a reason why it's outdated? What I can think of is that it > is either > unmaintained, or that developers want it to disappear from base. > > The yacc version in base is pretty old too and does not support > reentrancy. I > would like to not have to hack it up to support this to avoid using > bison, (And > I suspect importing bison into base is going to happen over someones > dead > body :)). > > So, I'm asking you, how should I best deal with this? Should I > a) Just include the _generated_ parser and tokenizer (e.g the output > from bison > and flex) and just include the yacc and lex files in case someone > wants to work > more on it? > > b) Modify parser to be non-reentrant and solve my issues with locks. > > c) Import bison into base and update flex version. > > d) > > Alternative 'a' is my favorite, and seems to be the easiest way to > avoid a heavy > inpact on the base system, but again it will complicate procedure of > modifying the parser since one have to use the correct build tools > etc. 'b' > would lead to performance loss and I would very much like to avoid > it. 'c' > would take a lot of work and I think many would protest on importing > bison > (including me if I were not biased with needing it and all :)) > > What I ask of you is comments on these alternatives as well as > inserting your > fantastic idea if you happen to have one :) I'm not going to comment on the merits of flex and bison as I like to be polite :-) I'd suggest (a), but package the yacc and lex source files up as a port so that they are in CVS and can readily be rebuilt if necessary. Why do you want prefixing? And precisely what do you want to do with parameters? -- Bob Bishop +44 (0)118 940 1243 rb@gid.co.uk fax +44 (0)118 940 1295 From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 11:59:15 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1476116A41A for ; Wed, 16 Jan 2008 11:59:15 +0000 (UTC) (envelope-from atom@smasher.org) Received: from atom.smasher.org (atom.smasher.org [69.55.237.145]) by mx1.freebsd.org (Postfix) with SMTP id CCDB313C461 for ; Wed, 16 Jan 2008 11:59:14 +0000 (UTC) (envelope-from atom@smasher.org) Received: (qmail 55749 invoked by uid 1000); 16 Jan 2008 09:48:29 -0000 Message-ID: <20080116094829.55748.qmail@smasher.org> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Date: Wed, 16 Jan 2008 22:48:27 +1300 (NZDT) From: Atom Smasher MIME-Version: 1.0 OpenPGP: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt To: freebsd-hackers@freebsd.org X-POM: The Moon is Waxing Gibbous (57% of Full) X-Hashcash: 1:20:0801160948:freebsd-hackers@freebsd.org::2Dkp2iZYMplr/AHc:000000 0000000000000000000000003hKJ Subject: disk throughput X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 11:59:15 -0000 i've got this running in one term: systat -iostat 1 and this in another term: dd if=/dev/acd0 bs=2048 count=123456 | md5 apparently the system only knows about throughput of mounted disks? is that a bug or a feature? -- ...atom ________________________ http://atom.smasher.org/ 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "Only sick music makes money today." -- Friedrich Nietzsche, Der Fall Wagner, 1888 From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 12:48:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF75216A41A for ; Wed, 16 Jan 2008 12:48:23 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 6844913C459 for ; Wed, 16 Jan 2008 12:48:23 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id m0GCmLvN006643; Wed, 16 Jan 2008 13:48:21 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id m0GCmDZm080786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Jan 2008 13:48:13 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id m0GCmDM8009084; Wed, 16 Jan 2008 13:48:13 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id m0GCmCrd009083; Wed, 16 Jan 2008 13:48:12 +0100 (CET) (envelope-from ticso) Date: Wed, 16 Jan 2008 13:48:12 +0100 From: Bernd Walter To: Atom Smasher Message-ID: <20080116124812.GR79270@cicely12.cicely.de> References: <20080116094829.55748.qmail@smasher.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080116094829.55748.qmail@smasher.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on cicely12.cicely.de Cc: freebsd-hackers@freebsd.org Subject: Re: disk throughput X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 12:48:24 -0000 On Wed, Jan 16, 2008 at 10:48:27PM +1300, Atom Smasher wrote: > i've got this running in one term: > systat -iostat 1 > and this in another term: > dd if=/dev/acd0 bs=2048 count=123456 | md5 > > apparently the system only knows about throughput of mounted disks? It doesn't seem to know about ata CD drives, SCSI CD drives work fine. Use gstat, which retrieves statistics at a different layer. You should use a multiple of 2k (e.g. 64k) for blocksize though. Just using 2k is likely to be much slower. > is that a bug or a feature? I would say it's a missing feature in acd driver. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 13:32:24 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8732C16A41A for ; Wed, 16 Jan 2008 13:32:24 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from bene1.itea.ntnu.no (bene1.itea.ntnu.no [IPv6:2001:700:300:3::56]) by mx1.freebsd.org (Postfix) with ESMTP id C4A8313C458 for ; Wed, 16 Jan 2008 13:32:23 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from localhost (localhost [127.0.0.1]) by bene1.itea.ntnu.no (Postfix) with ESMTP id B160816C690; Wed, 16 Jan 2008 14:32:21 +0100 (CET) Received: from carrot.studby.ntnu.no (caracal.stud.ntnu.no [129.241.56.185]) by bene1.itea.ntnu.no (Postfix) with ESMTP id D883716C750; Wed, 16 Jan 2008 14:32:14 +0100 (CET) Date: Wed, 16 Jan 2008 14:32:14 +0100 From: Ulf Lilleengen To: Bob Bishop Message-ID: <20080116133214.GA2666@carrot.studby.ntnu.no> References: <20080116093302.GA13632@carrot.studby.ntnu.no> <0CE4984F-41F7-44EA-9FE7-0E573DB2B338@gid.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0CE4984F-41F7-44EA-9FE7-0E573DB2B338@gid.co.uk> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: Debian amavisd-new at bene1.itea.ntnu.no Cc: freebsd-hackers@freebsd.org Subject: Re: Csup cvsmode build discussion X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 13:32:24 -0000 On Wed, Jan 16, 2008 at 11:08:20AM +0000, Bob Bishop wrote: > Hi, > > On 16 Jan 2008, at 09:33, Ulf Lilleengen wrote: > >> Hello hackers, >> >> As some might know, I've been implementing CVSMode for csup over the last >> couple >> of months. Right now, I'm quite close to have it work (does not mean it [...] >> >> What I ask of you is comments on these alternatives as well as inserting >> your >> fantastic idea if you happen to have one :) > > I'm not going to comment on the merits of flex and bison as I like to be > polite :-) > > I'd suggest (a), but package the yacc and lex source files up as a port so > that they are in CVS and can readily be rebuilt if necessary. > Perhaps. Not very pretty. > Why do you want prefixing? And precisely what do you want to do with > parameters? > Prefixing is needed since csup already have a configuration parser written in lex/yacc and therefore needed to avoid conflicts. Parameters is nice if one were to modify the parser to take extra arguments, I don't have a concrete example for it yet, but it's nonetheless a requirement for reentrancy. An alternative d) that I got from Maxime is that I'll take a look and see if I can use a parser from cvsync or from the previous SoC 2005 work, which I think is a good idea. -- Ulf Lilleengen From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 13:43:27 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA65416A420 for ; Wed, 16 Jan 2008 13:43:27 +0000 (UTC) (envelope-from philip@paeps.cx) Received: from gateway.nixsys.be (gateway.nixsys.be [IPv6:2001:6f8:32f::42]) by mx1.freebsd.org (Postfix) with ESMTP id 59F2813C46B for ; Wed, 16 Jan 2008 13:43:27 +0000 (UTC) (envelope-from philip@paeps.cx) Received: from wotan.home.paeps.cx (wotan.home.paeps.cx [IPv6:2001:6f8:32f:10:a00:20ff:fe9b:138c]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "wotan.home.paeps.cx", Issuer "NixSys CA" (verified OK)) by gateway.nixsys.be (Postfix) with ESMTP id A3578404D for ; Wed, 16 Jan 2008 14:43:26 +0100 (CET) Received: from fasolt.home.paeps.cx (fasolt.home.paeps.cx [IPv6:2001:6f8:32f:10:214:5eff:feca:2496]) by wotan.home.paeps.cx (Postfix) with ESMTP id E2D5561D5 for ; Wed, 16 Jan 2008 14:43:24 +0100 (CET) Received: from fasolt.home.paeps.cx (philip@localhost [127.0.0.1]) by fasolt.home.paeps.cx (8.14.2/8.14.2) with ESMTP id m0GDhO66038144 for ; Wed, 16 Jan 2008 14:43:24 +0100 (CET) (envelope-from philip@fasolt.home.paeps.cx) Received: (from philip@localhost) by fasolt.home.paeps.cx (8.14.2/8.14.2/Submit) id m0GDhOjT038143 for freebsd-hackers@freebsd.org; Wed, 16 Jan 2008 14:43:24 +0100 (CET) (envelope-from philip) Date: Wed, 16 Jan 2008 14:43:24 +0100 From: Philip Paeps To: freebsd-hackers@freebsd.org Message-ID: <20080116134324.GG34278@fasolt.home.paeps.cx> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20080116093302.GA13632@carrot.studby.ntnu.no> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20080116093302.GA13632@carrot.studby.ntnu.no> X-PGP-Fingerprint: 356B AE02 4763 F739 2FA2 E438 2649 E628 C5D3 4D05 X-Date: Today is Sweetmorn, the 16th day of Chaos in the YOLD 3174 X-Date-in-France: Septidi 27 =?utf-8?B?Tml2w7Rz?= =?utf-8?Q?e?= CCXVI, jour du plomb X-Date-in-Rome: ante diem XVII Kalendas Februarias MMDCCLXI ab Urbe Condida X-Phase-of-Moon: The Moon is Waxing Gibbous (59% of Full) X-Message-Flag: Get a proper mailclient! Organization: Happily Disorganized User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Re: Csup cvsmode build discussion X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 13:43:27 -0000 On 2008-01-16 10:33:02 (+0100), Ulf Lilleengen wrote: > Now, the base system already have flex, but the flex version in base is heavily > outdated (version 2.5.4 versus 2.5.34 in ports) and does not support reentrancy. > Is there a reason why it's outdated? What I can think of is that it is either > unmaintained, or that developers want it to disappear from base. I think it's just unmaintained in base ... I wonder what it would take to update it. /me takes a look - Philip -- Philip Paeps Please don't Cc me, I am philip@freebsd.org subscribed to the list. Da da da da da da da da da, yeah yeah yeah yeah, da da da da da da da da da, yeah yeah yeah yeah... -- Various people singing along to "Man On The Moon" without knowing the words From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 14:13:08 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F22DA16A417 for ; Wed, 16 Jan 2008 14:13:08 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from optimus.centralmiss.com (ns.centralmiss.com [206.156.254.79]) by mx1.freebsd.org (Postfix) with ESMTP id B8F6113C458 for ; Wed, 16 Jan 2008 14:13:08 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (adsl-072-148-013-213.sip.jan.bellsouth.net [72.148.13.213]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by optimus.centralmiss.com (Postfix) with ESMTP id 9AA2328431; Wed, 16 Jan 2008 07:41:48 -0600 (CST) Received: by draco.over-yonder.net (Postfix, from userid 100) id 0371E61C44; Wed, 16 Jan 2008 07:41:48 -0600 (CST) Date: Wed, 16 Jan 2008 07:41:47 -0600 From: "Matthew D. Fuller" To: Ulf Lilleengen Message-ID: <20080116134147.GJ87329@over-yonder.net> References: <20080116093302.GA13632@carrot.studby.ntnu.no> <0CE4984F-41F7-44EA-9FE7-0E573DB2B338@gid.co.uk> <20080116133214.GA2666@carrot.studby.ntnu.no> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080116133214.GA2666@carrot.studby.ntnu.no> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.17-fullermd.4 (2007-11-01) Cc: freebsd-hackers@freebsd.org Subject: Re: Csup cvsmode build discussion X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 14:13:09 -0000 On Wed, Jan 16, 2008 at 02:32:14PM +0100 I heard the voice of Ulf Lilleengen, and lo! it spake thus: > On Wed, Jan 16, 2008 at 11:08:20AM +0000, Bob Bishop wrote: > > > Why do you want prefixing? > > Prefixing is needed since csup already have a configuration parser > written in lex/yacc and therefore needed to avoid conflicts. Does lex's -P and yacc's -p not rewrite enough? -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream. From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 14:22:50 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D90116A418 for ; Wed, 16 Jan 2008 14:22:50 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from bene2.itea.ntnu.no (bene2.itea.ntnu.no [IPv6:2001:700:300:3::57]) by mx1.freebsd.org (Postfix) with ESMTP id 4AD1313C478 for ; Wed, 16 Jan 2008 14:22:49 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from localhost (localhost [127.0.0.1]) by bene2.itea.ntnu.no (Postfix) with ESMTP id 6C2FD90001; Wed, 16 Jan 2008 15:22:47 +0100 (CET) Received: from carrot.studby.ntnu.no (caracal.stud.ntnu.no [129.241.56.185]) by bene2.itea.ntnu.no (Postfix) with ESMTP id 01C4790006; Wed, 16 Jan 2008 15:22:41 +0100 (CET) Date: Wed, 16 Jan 2008 15:22:40 +0100 From: Ulf Lilleengen To: "Matthew D. Fuller" Message-ID: <20080116142240.GB2666@carrot.studby.ntnu.no> References: <20080116093302.GA13632@carrot.studby.ntnu.no> <0CE4984F-41F7-44EA-9FE7-0E573DB2B338@gid.co.uk> <20080116133214.GA2666@carrot.studby.ntnu.no> <20080116134147.GJ87329@over-yonder.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080116134147.GJ87329@over-yonder.net> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: Debian amavisd-new at bene2.itea.ntnu.no Cc: freebsd-hackers@freebsd.org Subject: Re: Csup cvsmode build discussion X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 14:22:50 -0000 On Wed, Jan 16, 2008 at 07:41:47AM -0600, Matthew D. Fuller wrote: > On Wed, Jan 16, 2008 at 02:32:14PM +0100 I heard the voice of > Ulf Lilleengen, and lo! it spake thus: > > On Wed, Jan 16, 2008 at 11:08:20AM +0000, Bob Bishop wrote: > > > > > Why do you want prefixing? > > > > Prefixing is needed since csup already have a configuration parser > > written in lex/yacc and therefore needed to avoid conflicts. > > Does lex's -P and yacc's -p not rewrite enough? > This was just pointed out to me. Sorry for the bad research. -- Ulf Lilleengen From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 14:39:28 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B66016A417 for ; Wed, 16 Jan 2008 14:39:28 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from gidgate.gid.co.uk (gid.co.uk [194.32.164.225]) by mx1.freebsd.org (Postfix) with ESMTP id 2921B13C447 for ; Wed, 16 Jan 2008 14:39:27 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from [192.168.234.199] ([192.168.234.199]) by gidgate.gid.co.uk (8.13.8/8.13.8) with ESMTP id m0GEdQ4p019865; Wed, 16 Jan 2008 14:39:26 GMT (envelope-from rb@gid.co.uk) Message-Id: From: Bob Bishop To: Ulf Lilleengen In-Reply-To: <20080116133214.GA2666@carrot.studby.ntnu.no> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Wed, 16 Jan 2008 14:39:26 +0000 References: <20080116093302.GA13632@carrot.studby.ntnu.no> <0CE4984F-41F7-44EA-9FE7-0E573DB2B338@gid.co.uk> <20080116133214.GA2666@carrot.studby.ntnu.no> X-Mailer: Apple Mail (2.915) Cc: freebsd-hackers@freebsd.org Subject: Re: Csup cvsmode build discussion X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 14:39:28 -0000 Hi, On 16 Jan 2008, at 13:32, Ulf Lilleengen wrote: > On Wed, Jan 16, 2008 at 11:08:20AM +0000, Bob Bishop wrote: >> [...] >> Why do you want prefixing? And precisely what do you want to do with >> parameters? >> > Prefixing is needed since csup already have a configuration parser > written in > lex/yacc and therefore needed to avoid conflicts. You can alternatively avoid conflicts by putting both grammars in the same file, with an entry rule which refers to one or other of the two grammars' real entries based on a defined token. You then arrange for the lexer to supply the appropriate value of the switch token each time the parser is started up. > Parameters is nice if one > were to modify the parser to take extra arguments, I don't have a > concrete > example for it yet, but it's nonetheless a requirement for > reentrancy. [etc] You may be able to do this using a variation on the above trick. > -- > Ulf Lilleengen > -- Bob Bishop +44 (0)118 940 1243 rb@gid.co.uk fax +44 (0)118 940 1295 From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 15:07:05 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A3A616A418 for ; Wed, 16 Jan 2008 15:07:05 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from bene2.itea.ntnu.no (bene2.itea.ntnu.no [IPv6:2001:700:300:3::57]) by mx1.freebsd.org (Postfix) with ESMTP id 5BAA613C45B for ; Wed, 16 Jan 2008 15:07:04 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from localhost (localhost [127.0.0.1]) by bene2.itea.ntnu.no (Postfix) with ESMTP id 79C3D90004; Wed, 16 Jan 2008 16:07:02 +0100 (CET) Received: from carrot.studby.ntnu.no (caracal.stud.ntnu.no [129.241.56.185]) by bene2.itea.ntnu.no (Postfix) with ESMTP id B1E8790003; Wed, 16 Jan 2008 16:06:56 +0100 (CET) Date: Wed, 16 Jan 2008 16:06:56 +0100 From: Ulf Lilleengen To: Bob Bishop Message-ID: <20080116150655.GA47095@carrot.studby.ntnu.no> References: <20080116093302.GA13632@carrot.studby.ntnu.no> <0CE4984F-41F7-44EA-9FE7-0E573DB2B338@gid.co.uk> <20080116133214.GA2666@carrot.studby.ntnu.no> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: Debian amavisd-new at bene2.itea.ntnu.no Cc: freebsd-hackers@freebsd.org Subject: Re: Csup cvsmode build discussion X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 15:07:05 -0000 On ons, jan 16, 2008 at 02:39:26pm +0000, Bob Bishop wrote: > Hi, > > On 16 Jan 2008, at 13:32, Ulf Lilleengen wrote: > >> On Wed, Jan 16, 2008 at 11:08:20AM +0000, Bob Bishop wrote: >>> [...] >>> Why do you want prefixing? And precisely what do you want to do with >>> parameters? >>> >> Prefixing is needed since csup already have a configuration parser written >> in >> lex/yacc and therefore needed to avoid conflicts. > > You can alternatively avoid conflicts by putting both grammars in the same > file, with an entry rule which refers to one or other of the two grammars' > real entries based on a defined token. You then arrange for the lexer to > supply the appropriate value of the switch token each time the parser is > started up. > As noted by others in this thread, the lex and yacc versions in base does in fact support prefixing. Thus, the only problem is reentrancy, which I've commented on below. >> Parameters is nice if one >> were to modify the parser to take extra arguments, I don't have a concrete >> example for it yet, but it's nonetheless a requirement for reentrancy. >> [etc] > > You may be able to do this using a variation on the above trick. > So for the reentrancy part, what you suggest is that instead of passing the argument to the reentrant parser, I create the global variables for each thread using the parser, and then use one or the other global variables depending on which thread is calling the parser? It's a very interesting trick, and I think it might work. It's not very "scalable", but it's a good workaround to be able to use the base system lex and yacc. However, this might only fix the issue with yacc if I'm thinking correctly, because the lexer also needs to be told about this for reentrancy. (But perhaps a much smaller problem since it's a matter of updating the lex version in base). Anyway, thanks for a useful suggestion. I'll try it out. -- Ulf Lilleengen From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 15:15:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99E2D16A419 for ; Wed, 16 Jan 2008 15:15:57 +0000 (UTC) (envelope-from philip@paeps.cx) Received: from gateway.nixsys.be (gateway.nixsys.be [IPv6:2001:6f8:32f::42]) by mx1.freebsd.org (Postfix) with ESMTP id 33B6213C467 for ; Wed, 16 Jan 2008 15:15:57 +0000 (UTC) (envelope-from philip@paeps.cx) Received: from wotan.home.paeps.cx (wotan.home.paeps.cx [IPv6:2001:6f8:32f:10:a00:20ff:fe9b:138c]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "wotan.home.paeps.cx", Issuer "NixSys CA" (verified OK)) by gateway.nixsys.be (Postfix) with ESMTP id 30913404D; Wed, 16 Jan 2008 16:15:56 +0100 (CET) Received: from fasolt.home.paeps.cx (fasolt.home.paeps.cx [IPv6:2001:6f8:32f:10:214:5eff:feca:2496]) by wotan.home.paeps.cx (Postfix) with ESMTP id EF98F61D5; Wed, 16 Jan 2008 16:15:53 +0100 (CET) Received: from fasolt.home.paeps.cx (philip@localhost [127.0.0.1]) by fasolt.home.paeps.cx (8.14.2/8.14.2) with ESMTP id m0GFFrDp047351; Wed, 16 Jan 2008 16:15:53 +0100 (CET) (envelope-from philip@fasolt.home.paeps.cx) Received: (from philip@localhost) by fasolt.home.paeps.cx (8.14.2/8.14.2/Submit) id m0GFFr8Z047350; Wed, 16 Jan 2008 16:15:53 +0100 (CET) (envelope-from philip) Date: Wed, 16 Jan 2008 16:15:53 +0100 From: Philip Paeps To: Ulf Lilleengen Message-ID: <20080116151553.GH34278@fasolt.home.paeps.cx> Mail-Followup-To: Ulf Lilleengen , Bob Bishop , freebsd-hackers@freebsd.org References: <20080116093302.GA13632@carrot.studby.ntnu.no> <0CE4984F-41F7-44EA-9FE7-0E573DB2B338@gid.co.uk> <20080116133214.GA2666@carrot.studby.ntnu.no> <20080116150655.GA47095@carrot.studby.ntnu.no> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20080116150655.GA47095@carrot.studby.ntnu.no> X-PGP-Fingerprint: 356B AE02 4763 F739 2FA2 E438 2649 E628 C5D3 4D05 X-Date: Today is Sweetmorn, the 16th day of Chaos in the YOLD 3174 X-Date-in-France: Septidi 27 =?utf-8?B?Tml2w7Rz?= =?utf-8?Q?e?= CCXVI, jour du plomb X-Date-in-Rome: ante diem XVII Kalendas Februarias MMDCCLXI ab Urbe Condida X-Phase-of-Moon: The Moon is Waxing Gibbous (60% of Full) X-Message-Flag: Get a proper mailclient! Organization: Happily Disorganized User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-hackers@freebsd.org Subject: Re: Csup cvsmode build discussion X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 15:15:57 -0000 On 2008-01-16 16:06:56 (+0100), Ulf Lilleengen wrote: > However, this might only fix the issue with yacc if I'm thinking correctly, > because the lexer also needs to be told about this for reentrancy. (But > perhaps a much smaller problem since it's a matter of updating the lex > version in base). I found that updating the lex in base was surprisingly easy. :-) I'll clean up my patches and post them for review later this evening. - Philip -- Philip Paeps Please don't Cc me, I am philip@freebsd.org subscribed to the list. One day a tortoise will learn how to fly. -- (Terry Pratchett, Small Gods) From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 17:34:48 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE83216A420 for ; Wed, 16 Jan 2008 17:34:48 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.9]) by mx1.freebsd.org (Postfix) with ESMTP id A975913C4CC for ; Wed, 16 Jan 2008 17:34:48 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 4224 invoked from network); 16 Jan 2008 17:34:47 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 16 Jan 2008 17:34:47 -0000 Message-ID: <478E3F70.8010106@chuckr.org> Date: Wed, 16 Jan 2008 12:31:28 -0500 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: John Nielsen References: <478BC29D.8030806@chuckr.org> <20080114152623.lnpqtvs0g880kogo@newwebmail.jnielsen.net> In-Reply-To: <20080114152623.lnpqtvs0g880kogo@newwebmail.jnielsen.net> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD-Hackers Subject: Re: nvidia working? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 17:34:48 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Nielsen wrote: > Quoting Chuck Robey : >> I was wondering ... I have (I think) nvidia working on my box, or at >> least, I am calling out the nvidia driver in the xorg.conf, but I was >> wondering if there is any program that only works with the nvidia >> hardware, some way I can absolutely prove that I have the real nvidia >> card working here? Before I had it working, I was using the vesa >> driver, and most things look exactly the same, and if I could fine some >> program that shows the 8600GTS's abilities, I would sure like that. > > btw -questions would probably have been a better forum for this question > than -hackers. > > The most straightforward approach is probably to review the output of > your Xorg log, e.g. /var/log/Xorg.0.log. Output from the nvidia driver > will be prefixed by NVIDIA (rather than VESA or NV if you were using a > different driver). > > There is also x11/nvidia-settings port. It's a control panel of sorts > that will show you nvidia-specific information. In theory it lets you > control some settings as well but personally I've never found it useful > for that. YMMV. Thanks! Looks like I really do finally have that card/driver working right, too. Sure 'preciate the ideas. > > JN > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHjj9wz62J6PPcoOkRAjmBAJ405DDYxex5XhZIXm7X+7OVJghXwwCfWoBp pJ1g1hqT6Vp7AEifghRGx+c= =1XCQ -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 19:39:48 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D17A16A41B for ; Wed, 16 Jan 2008 19:39:48 +0000 (UTC) (envelope-from admin@su29.net) Received: from mxoa.su29.ru (mxoa.su29.ru [81.200.9.12]) by mx1.freebsd.org (Postfix) with ESMTP id 5904213C45B for ; Wed, 16 Jan 2008 19:39:48 +0000 (UTC) (envelope-from admin@su29.net) Received: from secured.by.ipfw.ru ([81.200.11.182] helo=ws.su29.net) by mail.su29.ru with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JFACY-000K0n-Ru; Wed, 16 Jan 2008 18:29:14 +0300 Message-ID: <478E22C8.9070602@su29.net> Date: Wed, 16 Jan 2008 18:29:12 +0300 From: "Alexander V. Chernikov" Organization: AlmazTelecom User-Agent: Thunderbird 2.0.0.9 (X11/20080116) MIME-Version: 1.0 To: Yuri References: <1200437163.478d37abc422c@webmail.rawbw.com> In-Reply-To: <1200437163.478d37abc422c@webmail.rawbw.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Original-SMTP-From: admin@su29.net X-Original-SMTP-To: yuri@rawbw.com, freebsd-hackers@freebsd.org Cc: freebsd-hackers@freebsd.org Subject: Re: Is Elf formatdocumented anywhere? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: admin@su29.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 19:39:48 -0000 Yuri wrote: > When I am trying to understand how Elf executable works I am only getting to few > pages with very fragmentary information. > > Googling many constants like R_386_PC32, R_386_TLS_LD only yields some > discussion references and code. > > Anybody knows where to read more about the Elf format? Does such document even > exist? > > Yuri You can look at http://www.skyfree.org/linux/references/ELF_Format.pdf > _______________________________________________ > 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 Thu Jan 17 10:37:16 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2063B16A417; Thu, 17 Jan 2008 10:37:16 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from bene1.itea.ntnu.no (bene1.itea.ntnu.no [IPv6:2001:700:300:3::56]) by mx1.freebsd.org (Postfix) with ESMTP id 6063413C442; Thu, 17 Jan 2008 10:37:15 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from localhost (localhost [127.0.0.1]) by bene1.itea.ntnu.no (Postfix) with ESMTP id 8733C16C759; Thu, 17 Jan 2008 11:37:13 +0100 (CET) Received: from carrot.studby.ntnu.no (caracal.stud.ntnu.no [129.241.56.185]) by bene1.itea.ntnu.no (Postfix) with ESMTP id 048C416C757; Thu, 17 Jan 2008 11:37:07 +0100 (CET) Date: Thu, 17 Jan 2008 11:37:06 +0100 From: Ulf Lilleengen To: freebsd-hackers@freebsd.org Message-ID: <20080117103706.GB11124@carrot.studby.ntnu.no> References: <20080116093302.GA13632@carrot.studby.ntnu.no> <0CE4984F-41F7-44EA-9FE7-0E573DB2B338@gid.co.uk> <20080116133214.GA2666@carrot.studby.ntnu.no> <20080116150655.GA47095@carrot.studby.ntnu.no> <20080116151553.GH34278@fasolt.home.paeps.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080116151553.GH34278@fasolt.home.paeps.cx> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: Debian amavisd-new at bene1.itea.ntnu.no Cc: philip@FreeBSD.org Subject: Re: Csup cvsmode build discussion X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2008 10:37:16 -0000 On ons, jan 16, 2008 at 04:15:53pm +0100, Philip Paeps wrote: > On 2008-01-16 16:06:56 (+0100), Ulf Lilleengen wrote: > > However, this might only fix the issue with yacc if I'm thinking correctly, > > because the lexer also needs to be told about this for reentrancy. (But > > perhaps a much smaller problem since it's a matter of updating the lex > > version in base). > > I found that updating the lex in base was surprisingly easy. :-) I'll clean > up my patches and post them for review later this evening. > Excellent, thank you for your work on this Philip. I also found a good way to do what I planned. I'll use the updated flex in base, and then write the parser in C. This shouldn't be too hard since I have a tokenizer and just need to assert the correct structure of the file. This way I won't have to deal with yacc at all, which is sort of a relief :) -- Ulf Lilleengen From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 17 09:24:59 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A36C916A469 for ; Thu, 17 Jan 2008 09:24:59 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mail0.rawbw.com (mail0.rawbw.com [198.144.192.41]) by mx1.freebsd.org (Postfix) with ESMTP id 8CFD113C4CE for ; Thu, 17 Jan 2008 09:24:59 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mail0.rawbw.com (localhost [127.0.0.1]) by mail0.rawbw.com (8.13.8/8.13.8) with ESMTP id m0H9Osr6096105; Thu, 17 Jan 2008 01:24:54 -0800 (PST) Received: (from www@localhost) by mail0.rawbw.com (8.13.8/8.13.8/Submit) id m0H9OsVd096101; Thu, 17 Jan 2008 01:24:54 -0800 (PST) X-Authentication-Warning: mail0.rawbw.com: www set sender to yuri@rawbw.com using -f Received: from ip224.carlyle.sfo.ygnition.net (ip224.carlyle.sfo.ygnition.net [24.219.144.224]) by webmail.rawbw.com (IMP) with HTTP for ; Thu, 17 Jan 2008 01:24:53 -0800 Message-ID: <1200561893.478f1ee5c0eb3@webmail.rawbw.com> Date: Thu, 17 Jan 2008 01:24:53 -0800 From: Yuri To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 24.219.144.224 X-Mailman-Approved-At: Thu, 17 Jan 2008 12:38:13 +0000 Subject: Reading from sound card broken in perelease? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2008 09:24:59 -0000 I tried to record sound from microphone and only getting errors. During startup my soundcard is recognized as: pcm0: port 0xdc00-0xdc1f irq 17 at device 6.0 on pci0 pcm0: pcm0: [ITHREAD] When I am trying to record with rawrec-0.9.991: /usr/local/bin/rawrec file I am getting an error: /usr/local/bin/rawrec: read syscall of dsp device failed: Invalid argument And dmesg gets a new record: pcm0:record:dsp0.r1: record interrupt timeout, channel dead Should I file a PR? Yuri FreeBSD xxx.xxx.xxx 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Fri Jan 4 16:25:43 PST 2008 yuri@xxx.xxx.xxx:/usr/obj/usr/src/sys/GENERIC i386 From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 17 14:45:07 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 580D516A418 for ; Thu, 17 Jan 2008 14:45:07 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.237]) by mx1.freebsd.org (Postfix) with ESMTP id 2AD9513C448 for ; Thu, 17 Jan 2008 14:45:07 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so380145wxd.7 for ; Thu, 17 Jan 2008 06:45:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=cmGNqe7KFWLH8f9erNJXeqaODhloh9qA4Rf+GWEB7DQ=; b=ef1fYIwyfXpGCHMY7IfgEXvc9f/gYNp9xDo+Yo8Np4qoSi6G4mW8wct7+qQBtuWjK05zWbNh14WYLQRI9fglvRkXjxpPmId/KRy6TO/YZA6Pz8+cSGtl96pT1j+9LrM9OxdAKaR2xmFACvPtyO3/3z+F90OC61ha7coBz5hSBKg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SM7U0GE/PMXwPGQuJBZdn3EnEo/8+RqLiqPqaT1vY3bNawVtVACHrTXys9Ywuj3zaiVH+1Y3QsEDV4dK21nL8iiI+EQrCjeuGRqpiriasi1aZHKJSLLF+kAAYjiE+HeBCK4hPnusJ7kLoHec8z+BZTVvskITX6H0PE8RZwq+9kU= Received: by 10.142.201.3 with SMTP id y3mr1221430wff.120.1200579506050; Thu, 17 Jan 2008 06:18:26 -0800 (PST) Received: by 10.142.125.15 with HTTP; Thu, 17 Jan 2008 06:18:26 -0800 (PST) Message-ID: Date: Thu, 17 Jan 2008 15:18:26 +0100 From: usleepless@gmail.com To: Yuri In-Reply-To: <1200561893.478f1ee5c0eb3@webmail.rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1200561893.478f1ee5c0eb3@webmail.rawbw.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Reading from sound card broken in perelease? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2008 14:45:07 -0000 On Jan 17, 2008 10:24 AM, Yuri wrote: > I tried to record sound from microphone and only getting errors. > > During startup my soundcard is recognized as: > pcm0: port 0xdc00-0xdc1f irq 17 at device 6.0 on pci0 > pcm0: > pcm0: [ITHREAD] > > When I am trying to record with rawrec-0.9.991: > /usr/local/bin/rawrec file > I am getting an error: > /usr/local/bin/rawrec: read syscall of dsp device failed: Invalid argument > > And dmesg gets a new record: > pcm0:record:dsp0.r1: record interrupt timeout, channel dead > > Should I file a PR? i believe you should search the PRs first: i have a vague memory of seeing a report on this before. regards, usleep From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 17 20:53:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EB2A16A468 for ; Thu, 17 Jan 2008 20:53:57 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mail0.rawbw.com (mail0.rawbw.com [198.144.192.41]) by mx1.freebsd.org (Postfix) with ESMTP id 3AFC513C4D9 for ; Thu, 17 Jan 2008 20:53:57 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mail0.rawbw.com (localhost [127.0.0.1]) by mail0.rawbw.com (8.13.8/8.13.8) with ESMTP id m0HKrsih099033; Thu, 17 Jan 2008 12:53:54 -0800 (PST) Received: (from www@localhost) by mail0.rawbw.com (8.13.8/8.13.8/Submit) id m0HKrsAo099032; Thu, 17 Jan 2008 12:53:54 -0800 (PST) X-Authentication-Warning: mail0.rawbw.com: www set sender to yuri@rawbw.com using -f Received: from ip224.carlyle.sfo.ygnition.net (ip224.carlyle.sfo.ygnition.net [24.219.144.224]) by webmail.rawbw.com (IMP) with HTTP for ; Thu, 17 Jan 2008 12:53:54 -0800 Message-ID: <1200603234.478fc06269614@webmail.rawbw.com> Date: Thu, 17 Jan 2008 12:53:54 -0800 From: Yuri To: usleepless@gmail.com References: <1200561893.478f1ee5c0eb3@webmail.rawbw.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 24.219.144.224 X-Mailman-Approved-At: Thu, 17 Jan 2008 21:09:34 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Reading from sound card broken in prerelease? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2008 20:53:57 -0000 > i believe you should search the PRs first: i have a vague memory of > seeing a report on this before. I ran the search by sound/audio/emu10k1 and wasn't able to find any recent PR like this. So I filed a new PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=119759 Yuri From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 18 01:42:56 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01A3616A41B for ; Fri, 18 Jan 2008 01:42:56 +0000 (UTC) (envelope-from emaste@freebsd.org) Received: from gw.sandvine.com (gw.sandvine.com [199.243.201.138]) by mx1.freebsd.org (Postfix) with ESMTP id 9A13E13C448 for ; Fri, 18 Jan 2008 01:42:55 +0000 (UTC) (envelope-from emaste@freebsd.org) Received: from labgw2.phaedrus.sandvine.com ([192.168.3.11]) by gw.sandvine.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 17 Jan 2008 20:41:53 -0500 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 12627) id 8746F116FD; Thu, 17 Jan 2008 20:41:53 -0500 (EST) Date: Thu, 17 Jan 2008 20:41:53 -0500 From: Ed Maste To: freebsd-hackers@freebsd.org Message-ID: <20080118014153.GA12493@sandvine.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-OriginalArrivalTime: 18 Jan 2008 01:41:53.0739 (UTC) FILETIME=[4D8F09B0:01C85973] Subject: kgdb info threads and proc / thread names X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 01:42:56 -0000 --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I noticed kgdb's "info threads" is a little less useful after kernel threads have been changed to share a proc: 8 Thread 100007 (PID=12: intr) fork_trampoline 7 Thread 100006 (PID=12: intr) sched_switch 6 Thread 100005 (PID=12: intr) sched_switch The attached patch outputs both the proc's p_comm and the thread's td_name, like so: 8 Thread 100007 (PID=12: intr/swi3: vm) 7 Thread 100006 (PID=12: intr/swi4: clock sio) 6 Thread 100005 (PID=12: intr/swi1: net) Any comments on the format (p_comm/td_name) or the patch? I'd like to do something similar with top, as right now for threaded apps you just get {initial thread} in the COMMAND column. I'd like to display something like artsd/initial thread instead. -Ed --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="kgdb.diff" Index: kthr.c =================================================================== RCS file: /usr/cvs/src/gnu/usr.bin/gdb/kgdb/kthr.c,v retrieving revision 1.8 diff -p -u -r1.8 kthr.c --- kthr.c 16 Nov 2007 22:17:37 -0000 1.8 +++ kthr.c 17 Jan 2008 21:24:48 -0000 @@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include @@ -206,15 +207,25 @@ kgdb_thr_extra_thread_info(int tid) { struct kthr *kt; struct proc *p; - static char comm[MAXCOMLEN + 1]; + struct thread *t; + char comm[MAXCOMLEN + 1]; + char td_name[MAXCOMLEN + 1]; + static char info[MAXCOMLEN + 1 + MAXCOMLEN + 1]; kt = kgdb_thr_lookup_tid(tid); if (kt == NULL) return (NULL); p = (struct proc *)kt->paddr; + t = (struct thread *)kt->kaddr; if (kvm_read(kvm, (uintptr_t)&p->p_comm[0], &comm, sizeof(comm)) != sizeof(comm)) return (NULL); - - return (comm); + if (kvm_read(kvm, (uintptr_t)&t->td_name[0], &td_name, + sizeof(td_name)) != sizeof(td_name)) + td_name[0] = '\0'; + if (td_name[0] != '\0' && strcmp(comm, td_name) != 0) + snprintf(info, sizeof(info), "%s/%s", comm, td_name); + else + strlcpy(info, comm, sizeof(info)); + return (info); } --azLHFNyN32YCQGCU-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 18 10:59:35 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A49BA16A41A for ; Fri, 18 Jan 2008 10:59:35 +0000 (UTC) (envelope-from tobez@tobez.org) Received: from heechee.tobez.org (heechee.tobez.org [194.255.56.42]) by mx1.freebsd.org (Postfix) with ESMTP id 112BC13C442 for ; Fri, 18 Jan 2008 10:59:34 +0000 (UTC) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id C9CCA125421; Fri, 18 Jan 2008 11:41:34 +0100 (CET) Date: Fri, 18 Jan 2008 11:41:34 +0100 From: Anton Berezin To: freebsd-hackers@freebsd.org Message-ID: <20080118104134.GB41865@heechee.tobez.org> References: <375FDDD936C407E534A68033@rambutan.pingpong.net> <20080115234339.GB1313@straylight.m.ringlet.net> <20080117135026.GA11444@heechee.tobez.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080117135026.GA11444@heechee.tobez.org> X-Powered-By: FreeBSD http://www.freebsd.org/ User-Agent: Mutt/1.5.17 (2007-11-01) Cc: girgen@FreeBSD.org Subject: Initial thread stack size (Was: postgresql port, link with libc_r or not?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 10:59:35 -0000 Following an advice from Kris, moving this to a more appropriate list. On Thu, Jan 17, 2008 at 02:50:26PM +0100, Anton Berezin wrote: > On Wed, Jan 16, 2008 at 01:43:39AM +0200, Peter Pentchev wrote: > > On Tue, Jan 15, 2008 at 04:22:06PM +0100, Palle Girgensohn wrote: > > > > I need some advice. When configuring postgresql, I can set > > > "--enable-thread-safe", which links libpq.so (the postgresql client > > > library) with libc_r, and makes libpq thread safe. > > > > > > Postgresql itself is not threaded, but uses processes only. But if a client > > > library is threaded, and links with libpq, it will get into trouble unless > > > libpq is build thread safe. > > > > > > I'm wondering, are there any drawbacks leaving this on per default? > > > > The main problem I've seen with other thread-safe libraries (now why > > does Perl come to mind, I wonder... but there were others, too) were... > > wait for it... other libraries :) > > Perl comes to mind probably because I've done exactly the same thing that > Palle is considering now to do with PostgreSQL port to lang/perl5.8 5.8.7 or > 5.8.6, some time ago. This turned out not be a good idea because of the > initial thread stack size. > > When you don't do this, you get, for most intents, an "unlimited" stack size > (unless RLIMIT_STACK is in effect). > > When you *do* this, all of a sudden you end up with a quite limited stack > for your main thread. And if you don't use threads as such, and just want > to be "thread safe", this can and will bite you in the ass. > > While our modern defaults (2 MB on 32-bit platforms and twice that on 64-bit > ones) would seem "large enough" for a typical C program, dynamic languages > are a different story. I had to revert the change to lang/perl5.8 after > some popular mail filtering application (either amavisd or Spam Assassin, I > don't recall which) was segfaulting with stack overflow for some people. > > If you google for "thread stack size segfault freebsd", most of the > fountains of frustration you'll discover will be related to Perl, Python, > Tcl. > > The worst of it is, that if you write a "real" threaded program, you have > quite substantial degree of control - you can specify your own stack size, > however large you want it, when you create *new* threads. > > There is no way in FreeBSD to do the same for initial stack size for the > main thread. No runtime, no linktime, no nada nichego. Apparently, the > only way to increase it is to recompile your threaded library, which will > have a system-wide effect. > > What would be a good solution to this? I don't know. Two things come to > mind: > > - make a symbol which holds the initial stack size in our threading > libraries (_thr_stack_initial for libthr and libkse) to have global > scope, and make it weak, so that a program could change it at linktime, > > or > > - do not allocate stacks for threads other than the main thread on the > system stack; leave the system stack to the main thread; allocate > thread stacks using malloc. > > I was meaning to start this discussion for some time. This seems to be as > good opportunity as any. > > Cheers, > \Anton. -- We're going for 'working' here. 'clean' is for people with skills... -- Flemming Jacobsen From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 18 09:17:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 111C516A418 for ; Fri, 18 Jan 2008 09:17:23 +0000 (UTC) (envelope-from navneet.upadhyay@gmail.com) Received: from hs-out-2122.google.com (hs-out-0708.google.com [64.233.178.240]) by mx1.freebsd.org (Postfix) with ESMTP id 896AB13C461 for ; Fri, 18 Jan 2008 09:17:22 +0000 (UTC) (envelope-from navneet.upadhyay@gmail.com) Received: by hs-out-2122.google.com with SMTP id h53so862903hsh.11 for ; Fri, 18 Jan 2008 01:17:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=YcMBG7qMfun4wg3WMXg7uQ/OjHglodB+cu7DSXULPX8=; b=m4jZ2OsHsF954+aaVoZHlcFUAavl9dEGBK2s1eLZVS43qqBwrWUjVduVPF4XxUmQoLTzDqv7oy0JdXBuAC+/S/+xvUEXO4Ry9ZvCjnGGpr6flveAxmWjnzWuuWygJh4rbsMGblSx18KIZ38rkDf+/VOrcWk+MvGhc16LqJ07Rhs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=AOtc2Zp5Q6Yxc+Qv9+Y4vKzPO6QBictT/N0yWQRpmjMupRwN2vMlRRkRJdXKGrMdxQfw3VAo4LnNZI29zar3tgu6a7NS/7x82lq6/h8fp7171M2rI566X0oS+t9xXsHyk/iaEblhIshU1OwgsJ/yNUMfkZ7HRpFawBjNHDupDfs= Received: by 10.150.58.5 with SMTP id g5mr1007612yba.20.1200646088409; Fri, 18 Jan 2008 00:48:08 -0800 (PST) Received: by 10.150.185.7 with HTTP; Fri, 18 Jan 2008 00:48:08 -0800 (PST) Message-ID: <1563a4fd0801180048q37cb0df2wcf00c49c9aea3e14@mail.gmail.com> Date: Fri, 18 Jan 2008 14:18:08 +0530 From: "navneet Upadhyay" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 18 Jan 2008 12:45:53 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Trying to support my product on BSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 09:17:23 -0000 Hi , My product is successfully running on Linux( all most all versions) and HP- UX and Windows . *It is 100 % C++ code*. I am planning to support it on FreeBSD, i have two queries : 1. *How to build my code into binaries* on FreeBSD , i have my unix make files. Just to give an idea i have around 200 cpp files and they complile to 5 binaries . I am using multithreading(posix on linux) and sockets heavily. 2.* How to package the binaries*(RPM sort of thing). Idea is to provide a package to user who can install them binaries using this package by issuing single command. Please let me know if there is anyother forum where i can get answers to my queries, as i will be needing lot of help in near future. *Help will be appreciated.* Thanks, Navneet From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 18 13:01:39 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E98816A419 for ; Fri, 18 Jan 2008 13:01:39 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.224]) by mx1.freebsd.org (Postfix) with ESMTP id E356013C465 for ; Fri, 18 Jan 2008 13:01:38 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so614433wxd.7 for ; Fri, 18 Jan 2008 05:01:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=FI4v59GvJVoaTHG/VIYZW9CqYZxWik4mzwXuYSa+C/8=; b=lPpCuXu9KxySdo4N2lrfXzcEqCswkikB8oIGjrOGrcTRx9VnsQROuQZzD/9LeWsqQt0Li4HnTQB8/BDxSdJf0+xbWDmrCuM3gwKAfCT2jF14EgmE6Hc22HeEOEbswzxAOsP7ieBVFehDmd2bHF06d0/YePt57jrNGhYNeD9CerA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=qmXMrznJ30F2O7/t017b8eisicPRxAnw6VaqK0UzxF4TfXrivXUKfJRmSB5Cq1tYRnCr2TDNZxefqiD1CnikXaIfGxhKc6bgEqYxk0NH5KdqG03E2Fm0oAudmWWgkxCgZM45Q7UT630TchApO2tgqVFp+Yoq3qMwVsSRMs0p840= Received: by 10.142.201.3 with SMTP id y3mr1981334wff.120.1200661297452; Fri, 18 Jan 2008 05:01:37 -0800 (PST) Received: by 10.143.155.13 with HTTP; Fri, 18 Jan 2008 05:01:37 -0800 (PST) Message-ID: Date: Fri, 18 Jan 2008 22:01:37 +0900 From: "Adrian Chadd" Sender: adrian.chadd@gmail.com To: "navneet Upadhyay" In-Reply-To: <1563a4fd0801180048q37cb0df2wcf00c49c9aea3e14@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1563a4fd0801180048q37cb0df2wcf00c49c9aea3e14@mail.gmail.com> X-Google-Sender-Auth: a6b82368951a4f45 Cc: freebsd-hackers@freebsd.org Subject: Re: Trying to support my product on BSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 13:01:39 -0000 On 18/01/2008, navneet Upadhyay wrote: > Hi , > My product is successfully running on Linux( all most all versions) > and HP- UX and Windows . > > *It is 100 % C++ code*. A good start. It could get ugly though, depends on your compiler version and how much of your code is linux specific. :) > I am planning to support it on FreeBSD, i have two queries : > > 1. *How to build my code into binaries* on FreeBSD , i have my unix make > files. Just to give an idea i have around 200 cpp files and they complile to > 5 binaries . I am using multithreading(posix on linux) and sockets heavily. I'd suggest installing the gmake port in FreeBSD, going into your source directory and typing 'gmake'. See how far you get. > 2.* How to package the binaries*(RPM sort of thing). Idea is to provide a > package to user who can install them binaries using this package by issuing > single command. FreeBSD has a ports system which lets you automate a source build of a package and optionally build a binary package you can distribute to your clients. > Please let me know if there is anyother forum where i can get answers to my > queries, as i will be needing lot of help in near future. Well, here's a good a place as any I guess, although if you're after more commercial help then I'm sure someone who does that sort of thing can pipe up. In theory, well-written C/C++ should "just work" across platforms. In practice, you'll probably have to modify some Linux-specific stuff to work, although you've probably gone through that pain already to port it to HP/UX and Windows. HTH, Adrian -- Adrian Chadd - adrian@freebsd.org From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 18 13:06:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DC6616A41A for ; Fri, 18 Jan 2008 13:06:57 +0000 (UTC) (envelope-from v.haisman@sh.cvut.cz) Received: from service2.sh.cvut.cz (service2.sh.cvut.cz [IPv6:2001:718:2:0:217:a4ff:fe3f:b3d4]) by mx1.freebsd.org (Postfix) with ESMTP id 027C213C458 for ; Fri, 18 Jan 2008 13:06:56 +0000 (UTC) (envelope-from v.haisman@sh.cvut.cz) Received: from localhost (localhost [127.0.0.1]) by service2.sh.cvut.cz (Postfix) with ESMTP id C342A13774C; Fri, 18 Jan 2008 14:06:51 +0100 (CET) Received: from service2.sh.cvut.cz ([127.0.0.1]) by localhost (service2.sh.cvut.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08639-08; Fri, 18 Jan 2008 14:06:45 +0100 (CET) Received: from logout.sh.cvut.cz (logout.sh.cvut.cz [147.32.127.203]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by service2.sh.cvut.cz (Postfix) with ESMTP id 730EE137725; Fri, 18 Jan 2008 14:06:39 +0100 (CET) Received: from [192.168.111.22] (localhost [127.0.0.1]) by logout.sh.cvut.cz (Postfix) with ESMTP id 401F461C25; Fri, 18 Jan 2008 14:06:39 +0100 (CET) Message-ID: <4790A458.2060101@sh.cvut.cz> Date: Fri, 18 Jan 2008 14:06:32 +0100 From: =?ISO-8859-1?Q?V=E1clav_Haisman?= User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Cc: freebsd-hackers@freebsd.org References: <1563a4fd0801180048q37cb0df2wcf00c49c9aea3e14@mail.gmail.com> In-Reply-To: <1563a4fd0801180048q37cb0df2wcf00c49c9aea3e14@mail.gmail.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigA1F9C4196C32919690338221" X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at service2.sh.cvut.cz X-Spam-Status: No, hits=0.4 tagged_above=-255.0 required=5.0 tests=AWL, CRM114_HAM_10, JR_RCVD_HOST_PROBS1, JR_RCVD_TOO_FEW_HOPS X-Spam-Level: Subject: Re: Trying to support my product on BSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 13:06:57 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA1F9C4196C32919690338221 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable navneet Upadhyay wrote: > Hi , > My product is successfully running on Linux( all most all versio= ns) > and HP- UX and Windows . >=20 > *It is 100 % C++ code*. Cool. >=20 > I am planning to support it on FreeBSD, i have two queries : >=20 > 1. *How to build my code into binaries* on FreeBSD , i have my unix mak= e > files. Just to give an idea i have around 200 cpp files and they compli= le to > 5 binaries . I am using multithreading(posix on linux) and sockets heav= ily. FreeBSD's make is BSD make. If you need GNU make you will have to=20 install the devel/gmake port and use the gmake executable. >=20 >=20 > 2.* How to package the binaries*(RPM sort of thing). Idea is to provide= a > package to user who can install them binaries using this package by iss= uing > single command. I think that the easiest might be to create own local FreeBSD Ports=20 port. When you have a working port it is just a matter of saying make=20 package. See man ports and Porter's Handbook=20 . >=20 >=20 >=20 > Please let me know if there is anyother forum where i can get answers t= o my > queries, as i will be needing lot of help in near future. >=20 > *Help will be appreciated.* >=20 > Thanks, > Navneet -- VH --------------enigA1F9C4196C32919690338221 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHkKRejksRtmO2spcRCDebAJ4v9lwj1w2CI76Xn9m12P7l1ht3LACeJr/8 2MFzjHIivelxfWnISLKX3f4= =lrZf -----END PGP SIGNATURE----- --------------enigA1F9C4196C32919690338221-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 18 13:45:26 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D914016A417; Fri, 18 Jan 2008 13:45:26 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8D60B13C447; Fri, 18 Jan 2008 13:45:26 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id AEF15486FF; Fri, 18 Jan 2008 08:45:25 -0500 (EST) Date: Fri, 18 Jan 2008 13:45:25 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Adrian Chadd In-Reply-To: Message-ID: <20080118134418.B28136@fledge.watson.org> References: <1563a4fd0801180048q37cb0df2wcf00c49c9aea3e14@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: navneet Upadhyay , freebsd-hackers@freebsd.org Subject: Re: Trying to support my product on BSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 13:45:26 -0000 On Fri, 18 Jan 2008, Adrian Chadd wrote: >> 2.* How to package the binaries*(RPM sort of thing). Idea is to provide a >> package to user who can install them binaries using this package by issuing >> single command. > > FreeBSD has a ports system which lets you automate a source build of a > package and optionally build a binary package you can distribute to your > clients. You can also directly invoke pkg_create(1) to create binary packages that will be understood by pkg_info, pkg_add, etc. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 18 13:26:48 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80C7216A417 for ; Fri, 18 Jan 2008 13:26:48 +0000 (UTC) (envelope-from eugen@www.svzserv.kemerovo.su) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.freebsd.org (Postfix) with ESMTP id A2EB113C448 for ; Fri, 18 Jan 2008 13:26:47 +0000 (UTC) (envelope-from eugen@www.svzserv.kemerovo.su) Received: from www.svzserv.kemerovo.su (eugen@localhost [127.0.0.1]) by www.svzserv.kemerovo.su (8.13.8/8.13.8) with ESMTP id m0ICr0vM012782; Fri, 18 Jan 2008 19:53:00 +0700 (KRAT) (envelope-from eugen@www.svzserv.kemerovo.su) Received: (from eugen@localhost) by www.svzserv.kemerovo.su (8.13.8/8.13.8/Submit) id m0ICr04M012781; Fri, 18 Jan 2008 19:53:00 +0700 (KRAT) (envelope-from eugen) Date: Fri, 18 Jan 2008 19:53:00 +0700 From: Eugene Grosbein To: navneet Upadhyay Message-ID: <20080118125300.GA12429@svzserv.kemerovo.su> References: <1563a4fd0801180048q37cb0df2wcf00c49c9aea3e14@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1563a4fd0801180048q37cb0df2wcf00c49c9aea3e14@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Fri, 18 Jan 2008 13:50:36 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Trying to support my product on BSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 13:26:48 -0000 On Fri, Jan 18, 2008 at 02:18:08PM +0530, navneet Upadhyay wrote: > My product is successfully running on Linux( all most all versions) > and HP- UX and Windows . > *It is 100 % C++ code*. > I am planning to support it on FreeBSD, i have two queries : > 1. *How to build my code into binaries* on FreeBSD , i have my unix make > files. Just to give an idea i have around 200 cpp files and they complile to > 5 binaries . I am using multithreading(posix on linux) and sockets heavily. > 2.* How to package the binaries*(RPM sort of thing). Idea is to provide a > package to user who can install them binaries using this package by issuing > single command. First, please read The Porter's Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/index.html If, after finishing, you still have a question, ask again :-) Eugene Grosbein From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 18 18:11:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC76A16A418 for ; Fri, 18 Jan 2008 18:11:57 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mail0.rawbw.com (mail0.rawbw.com [198.144.192.41]) by mx1.freebsd.org (Postfix) with ESMTP id 90CEC13C467 for ; Fri, 18 Jan 2008 18:11:57 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mail0.rawbw.com (localhost [127.0.0.1]) by mail0.rawbw.com (8.13.8/8.13.8) with ESMTP id m0IIBhTh092904; Fri, 18 Jan 2008 10:11:43 -0800 (PST) Received: (from www@localhost) by mail0.rawbw.com (8.13.8/8.13.8/Submit) id m0IIBhYi092898; Fri, 18 Jan 2008 10:11:43 -0800 (PST) X-Authentication-Warning: mail0.rawbw.com: www set sender to yuri@rawbw.com using -f Received: from ip224.carlyle.sfo.ygnition.net (ip224.carlyle.sfo.ygnition.net [24.219.144.224]) by webmail.rawbw.com (IMP) with HTTP for ; Fri, 18 Jan 2008 10:11:42 -0800 Message-ID: <1200679902.4790ebdee1975@webmail.rawbw.com> Date: Fri, 18 Jan 2008 10:11:42 -0800 From: Yuri To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 24.219.144.224 X-Mailman-Approved-At: Fri, 18 Jan 2008 18:57:06 +0000 Subject: ATAPI dvdreader always fails on a particular DVD movie title X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 18:11:57 -0000 I tried to make a backup copy of one DVD that I own and 'dvdbackup' always fails at a particular point. Running it under 'truss' I discovered that particular 'read' operation always fails after successfully reading hundreds of MB. Doesn't seem to be specific to a particular DVD drive. Out of curiosity I ordered another copy of the same DVD and it failed in the same manner. Log of the relevant kernel calls: open("/dev/acd0",O_RDONLY,05010132000) = 3 (0x3) lseek(3,0x132cd800,SEEK_SET) = 321705984 (0x132cd800) read(3,"\0\0\^A\M-:D\0\^D\0\^D\^A\^A\M^I"...,1048576) = 1048576 (0x100000) read(3,0x28300000,1048576) ERR#5 'Input/output error' And dmesg simultaneously gets these messages: acd0: FAILURE - READ_BIG MEDIUM ERROR asc=0x11 ascq=0x05 acd0: FAILURE - READ_BIG MEDIUM ERROR asc=0x11 ascq=0x05 So for some reason failure occurs at ~495 MB offset on the disk. I believe this issue is not 7.0 related since I saw it happening in 6.X before. Also some other particular titles always have the same problem while most titles work ok. Is this a known issue? Yuri From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 18 18:14:34 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E457516A41A for ; Fri, 18 Jan 2008 18:14:34 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mail0.rawbw.com (mail0.rawbw.com [198.144.192.41]) by mx1.freebsd.org (Postfix) with ESMTP id A42B213C45B for ; Fri, 18 Jan 2008 18:14:34 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mail0.rawbw.com (localhost [127.0.0.1]) by mail0.rawbw.com (8.13.8/8.13.8) with ESMTP id m0IIEVhv094260; Fri, 18 Jan 2008 10:14:31 -0800 (PST) Received: (from www@localhost) by mail0.rawbw.com (8.13.8/8.13.8/Submit) id m0IIEVNS094259; Fri, 18 Jan 2008 10:14:31 -0800 (PST) X-Authentication-Warning: mail0.rawbw.com: www set sender to yuri@rawbw.com using -f Received: from ip224.carlyle.sfo.ygnition.net (ip224.carlyle.sfo.ygnition.net [24.219.144.224]) by webmail.rawbw.com (IMP) with HTTP for ; Fri, 18 Jan 2008 10:14:31 -0800 Message-ID: <1200680071.4790ec87363cd@webmail.rawbw.com> Date: Fri, 18 Jan 2008 10:14:31 -0800 From: Yuri To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 24.219.144.224 X-Mailman-Approved-At: Fri, 18 Jan 2008 18:58:21 +0000 Subject: Compile of freshly updated 7.0 sources fails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 18:14:35 -0000 I just updated my sources and compile failed: ===> lib/libpam/modules/pam_securetty (buildincludes) ===> lib/libpam/modules/pam_self (buildincludes) ===> lib/libpam/modules/pam_ssh (buildincludes) ===> lib/libpam/modules/pam_tacplus (buildincludes) ===> lib/libpam/modules/pam_unix (buildincludes) ===> lib/libpam/libpam (buildincludes) make: don't know how to make security/openpam_attr.h. Stop Yuri From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 18 19:46:56 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 106C716A417 for ; Fri, 18 Jan 2008 19:46:56 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.239]) by mx1.freebsd.org (Postfix) with ESMTP id 9BA8F13C458 for ; Fri, 18 Jan 2008 19:46:55 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by wr-out-0506.google.com with SMTP id 68so508498wra.13 for ; Fri, 18 Jan 2008 11:46:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=45NWJRAP5iG64av2X8TUlS57tm4f+mFw7r0D0PSjCRM=; b=ClhRa92JXZ5xLAm91WogOTYkj2hyTU/U9gRQtHkK4VqGTzc69/YekjgbEGIUY57GBUJmjXfqUGAvnzKKXtfpZFLHPse1LOpPwKUyBCsbbpchvQ/DQ5rI7JQmTfi6wZ1saqPPn+KttENnzasK2hr3OaqIJy19SDiZWXsFqyVLvlE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=M3xdDvtB4XcJD2u7N6DkH8Qffcz1h0Ey6f/EGwuteIRbzwh49+1uIBZJyR5dvbLfM3AEzNHaHz/Ni1LG/Pm5CEQybOzJvBEk4lLpp+5p0Fikm7sREB7uzYwCBPW+qUlq2DM93RBrtysUSwQ4y6hToIHJ7P3GV2CqxIGtIbzJn4U= Received: by 10.150.58.5 with SMTP id g5mr1289912yba.158.1200685614901; Fri, 18 Jan 2008 11:46:54 -0800 (PST) Received: by 10.150.152.8 with HTTP; Fri, 18 Jan 2008 11:46:54 -0800 (PST) Message-ID: <1bd550a00801181146s1ee3fd44x309d7ee9e8db92f9@mail.gmail.com> Date: Fri, 18 Jan 2008 20:46:54 +0100 From: "=?ISO-8859-1?Q?Fernando_Apestegu=EDa?=" To: "Ed Schouten" In-Reply-To: <20080113194954.GG80300@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1bd550a00801131034o2999b85eu589cd8ee18a114ea@mail.gmail.com> <20080113194954.GG80300@hoeg.nl> Cc: FreeBSD Hackers Subject: Re: mutex lock for filesystem list. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 19:46:56 -0000 On 1/13/08, Ed Schouten wrote: > * Fernando Apestegu=EDa wrote: > > I'm trying to write a patch to add a file to the linprocfs. This file > > provides the list of filesystems present in the kernel. > > > > Though I was able to create the file and traverse the list, it's > > clearly unsafe. I would like to know wich semaphore I should lock > > cause I can't find it in the kernel code. > > > > In addition I'd like to know if there is a book similar to the > > Understanding the Linux kernel, but for freebsd. What is the best > > information source to get introduced in the freebsd kernel programming > > (apart of the code itself)? > > You're probably looking through the mountlist? Then you need to make > sure you lock the mountlist_mtx. See src/sys/kern/vfs_mount.c. Hi, My apologies for the delay with the reply by due to a failure in my DSL line, I had no internet connection for several days :( Actually I'm using vfsconf list. What's the difference between mountlist and the one I'm using? Best Regards > > -- > Ed Schouten > WWW: http://g-rave.nl/ > > From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 19 05:21:54 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C93A16A419 for ; Sat, 19 Jan 2008 05:21:54 +0000 (UTC) (envelope-from kayve@sfsu.edu) Received: from iron1.sfsu.edu (iron1.sfsu.edu [130.212.10.35]) by mx1.freebsd.org (Postfix) with ESMTP id 3575913C465 for ; Sat, 19 Jan 2008 05:21:54 +0000 (UTC) (envelope-from kayve@sfsu.edu) X-onepass: IPPSC X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAIoXkUeC1Apk/2dsb2JhbACuTA Received: from smtp01.sfsu.edu ([130.212.10.100]) by iron1.sfsu.edu with ESMTP; 18 Jan 2008 21:21:53 -0800 Received: from libra.sfsu.edu ([130.212.10.238]) by mail05a.sfsu.edu (Lotus Domino Release 7.0.3HF100) with ESMTP id 2008011821215214-1492 ; Fri, 18 Jan 2008 21:21:52 -0800 Date: Fri, 18 Jan 2008 21:21:52 -0800 (PST) From: KAYVEN RIESE To: "j. ron heeblack" In-Reply-To: <1bd550a00801181146s1ee3fd44x309d7ee9e8db92f9@mail.gmail.com> Message-ID: References: <1bd550a00801131034o2999b85eu589cd8ee18a114ea@mail.gmail.com> <20080113194954.GG80300@hoeg.nl> <1bd550a00801181146s1ee3fd44x309d7ee9e8db92f9@mail.gmail.com> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on MAIL05a/SERVERS/SFSU(Release 7.0.3HF100 | December 5, 2007) at 01/18/2008 21:21:52, Serialize by Router on SMTP01/SERVERS/SFSU(Release 7.0.3|September 26, 2007) at 01/18/2008 21:21:53, Serialize complete at 01/18/2008 21:21:53 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Hackers Subject: insufficient power for Xcraft HD enclosure X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2008 05:21:54 -0000 i got an Xcraft HD enclosure for real cheap (you get what you pay for, oops) http://www.coolermaster.com/products/product.php?act=detail&tbcate=32&id=3219 it comes with a silly barebones manual that tells you to slide it in and screw the screw or some such, not very helpful. it also with a USB connector that has one junction fitting the device coupled to what i am calling a daisy chain of two USB connectors. i have taken pictures of all these things and put it on the web: http://www.monkeyview.net/id/965/fsck/index.vhtml there are a total of over 1000 pix, mostly dmesg, but crucial ones http://www.monkeyview.net/id/965/fsck/dmesg/PB12001901.vhtml showing my model #M6800N ASUS notebook travelstar hitachi decal http://www.monkeyview.net/id/965/fsck/jumpers/PC170027.vhtml and an album of 28 photos closeups of the guts of the enclosure http://www.monkeyview.net/id/965/fsck/jumpers/index.vhtml BIOS doesn't see the HD http://www.monkeyview.net/id/965/fsck/bioshd/index.vhtml and the first of a series of pictures documenting experiments with plugging the two USB junctions into the laptop http://www.monkeyview.net/id/965/fsck/bioshd/p1100033.vhtml it hangs differently depending on the USB connection configuration. i have been told that it is meant to draw power via the USB connections, but that the power of my laptop is insufficient to spin the drive. can anyone offer any ideas, perhaps an external power source, is it possible to buy such an accessory without spending the equivalent an entire computer, hopefully less than $30, i don't know? i was told to futz with the "jumpers" but i am not sure how to do that. TeRReF: No, no. Unscrewing will ruin the HD for sure. These settings: http://www.monkeyview.net/id/965/fsck/jumpers/PC170031.vhtml relate to the group of 4 pins you see here (the group on the left): http://www.monkeyview.net/id/965/fsck/jumpers/PC170021.vhtml As you can see on the first pic, there is a little rectangular device that is used to connect two pins so you can alter the settings. No rectangular device at all means the HD is set to master for instance. I think the current setting is the right one. If you still have that rectangular thingy, you could try the other two settings. *----------------------------------------------------------* Kayven Riese, BSCS, MS (Physiology and Biophysics) (415) 902 5513 cellular http://kayve.net Webmaster http://ChessYoga.org *----------------------------------------------------------* From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 19 05:31:44 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E23B16A419 for ; Sat, 19 Jan 2008 05:31:44 +0000 (UTC) (envelope-from kayve@sfsu.edu) Received: from iron1.sfsu.edu (iron1.sfsu.edu [130.212.10.35]) by mx1.freebsd.org (Postfix) with ESMTP id 7764C13C45B for ; Sat, 19 Jan 2008 05:31:44 +0000 (UTC) (envelope-from kayve@sfsu.edu) X-onepass: IPPSC X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAB4akUeC1Apk/2dsb2JhbACuSA Received: from smtp01.sfsu.edu ([130.212.10.100]) by iron1.sfsu.edu with ESMTP; 18 Jan 2008 21:31:43 -0800 Received: from libra.sfsu.edu ([130.212.10.238]) by mail05a.sfsu.edu (Lotus Domino Release 7.0.3HF100) with ESMTP id 2008011821314272-1493 ; Fri, 18 Jan 2008 21:31:42 -0800 Date: Fri, 18 Jan 2008 21:31:42 -0800 (PST) From: KAYVEN RIESE To: "j. ron heeblack" In-Reply-To: <1bd550a00801181146s1ee3fd44x309d7ee9e8db92f9@mail.gmail.com> Message-ID: References: <1bd550a00801131034o2999b85eu589cd8ee18a114ea@mail.gmail.com> <20080113194954.GG80300@hoeg.nl> <1bd550a00801181146s1ee3fd44x309d7ee9e8db92f9@mail.gmail.com> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on MAIL05a/SERVERS/SFSU(Release 7.0.3HF100 | December 5, 2007) at 01/18/2008 21:31:42, Serialize by Router on SMTP01/SERVERS/SFSU(Release 7.0.3|September 26, 2007) at 01/18/2008 21:31:43, Serialize complete at 01/18/2008 21:31:43 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Hackers Subject: mplayer failure /usr/ports/UPDATING entry 20070519 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2008 05:31:44 -0000 i am trying to install plugins for my firefox browser kv_bsd# uname -a FreeBSD kv_bsd 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 kv_bsd# i am running gnome2 my make ran into the following error: ===> Verifying install for /usr/local/libdata/xorg/libraries in /usr/ports/x11/xorg-libraries /usr/X11R6 exists, but it is not a symlink. Installation cannot proceed. This looks like an incompletely removed old version of X. In the current version, /usr/X11R6 must be a symlink if it exists at all.Please read /usr/ports/UPDATING (entry of 20070519) for the procedure to upgrade X.org related ports.*** Error code 1 Stop in /usr/ports/x11/xorg-libraries. *** Error code 1 Stop in /usr/ports/multimedia/mplayer. *** Error code 1 Stop in /usr/ports/multimedia/mplayer. kv_bsd# i followed a bunch of the instructions in /usr/ports/UPDATING entry 20070519.. one failure was here: kv_bsd# /usr/local/sbin/portupgrade -Rf LibXft ** No such installed package: LibXft kv_bsd# i ignored it and went to the next step. i haven't done anything about gstreamer, i THINK.. pkgdb -F seemed to go allright.. but then when i was using mergebase.sh i noted that all of the crucial varialbles were blank: Enter 'yes' to continue, anything else will exit script: Aborted. kv_bsd# echo "$X11BASE $LOCALBASE $BACKUPDIR" X11BASE: Undefined variable. kv_bsd# echo "$LOCALBASE $BACKUPDIR" LOCALBASE: Undefined variable. kv_bsd# echo "$BACKUPDIR" BACKUPDIR: Undefined variable. kv_bsd# sh /usr/ports/Tools/scripts/mergebase.sh that didn't feel right.. but i hit yes.. but then i got to here: Enter 'yes' to continue, anything else will exit script: yes CONFLICTING FILES: ./man/whatis ./share/applications/mimeinfo.cache ./share/gnome/applications/mimeinfo.cache ./share/mime/XMLnamespaces ./share/mime/aliases ./share/mime/globs ./share/mime/magic ./share/mime/mime.cache ./share/mime/subclasses Files that exist both in /usr/local and /usr/X11R6 have been found as shown above. Merging will not continue. While some such files are safe to remove as they will be regenerated (like /usr/X11R6/man/whatis), some you might want to move away somewhere safe, and some might point to conflicts in ports. For this script to continue, you need to either move these files away from /usr/X11R6 or delete them. If you don't know what to do about a particular file, ask on x11@FreeBSD.org mailing list. The list is saved in /tmp/mergebase.KRqFzl0P. kv_bsd# i decided i had a headache. should i just press on anyway? *----------------------------------------------------------* Kayven Riese, BSCS, MS (Physiology and Biophysics) (415) 902 5513 cellular http://kayve.net Webmaster http://ChessYoga.org *----------------------------------------------------------* From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 19 05:50:04 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97E5B16A417 for ; Sat, 19 Jan 2008 05:50:04 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 0CEE413C45D for ; Sat, 19 Jan 2008 05:50:03 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp121-45-39-232.lns10.adl2.internode.on.net [121.45.39.232]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m0J5o0hf064100 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 19 Jan 2008 16:20:01 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Sat, 19 Jan 2008 16:19:43 +1030 User-Agent: KMail/1.9.7 References: <1bd550a00801131034o2999b85eu589cd8ee18a114ea@mail.gmail.com> <1bd550a00801181146s1ee3fd44x309d7ee9e8db92f9@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2669877.LNmFJzMm8n"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200801191619.51302.doconnor@gsoft.com.au> X-Spam-Score: -2.395 () AWL,BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: "j. ron heeblack" , KAYVEN RIESE Subject: Re: mplayer failure /usr/ports/UPDATING entry 20070519 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2008 05:50:04 -0000 --nextPart2669877.LNmFJzMm8n Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sat, 19 Jan 2008, KAYVEN RIESE wrote: > i followed a bunch of the instructions in /usr/ports/UPDATING entry > 20070519.. one failure was here: > > kv_bsd# /usr/local/sbin/portupgrade -Rf LibXft > ** No such installed package: LibXft > kv_bsd# > > i ignored it and went to the next step. i haven't done anything > about gstreamer, i THINK.. pkgdb -F seemed to go allright.. > but then when i was using mergebase.sh i noted that all of > the crucial varialbles were blank: It's spelt libXft (lowercase L) If the only conflicts you have are what was in your email I think you'll=20 be fine.. Check what installed them with pkg_info -W to be sure. =2D-=20 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 --nextPart2669877.LNmFJzMm8n Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHkY9/5ZPcIHs/zowRAuWDAKCr7YIOtYCj3cGriBfAYyE0ofi8LwCcCxI0 wRHHCLGv+XIltKo8kLmy7uw= =gtE5 -----END PGP SIGNATURE----- --nextPart2669877.LNmFJzMm8n-- From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 19 16:30:45 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 005B616A419 for ; Sat, 19 Jan 2008 16:30:44 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with SMTP id A4D4D13C458 for ; Sat, 19 Jan 2008 16:30:44 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 14314 invoked by uid 399); 19 Jan 2008 16:04:03 -0000 Received: from localhost (HELO ?192.168.0.4?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTP; 19 Jan 2008 16:04:03 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <47921F6E.8020806@FreeBSD.org> Date: Sat, 19 Jan 2008 08:03:58 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Yuri References: <1200679902.4790ebdee1975@webmail.rawbw.com> In-Reply-To: <1200679902.4790ebdee1975@webmail.rawbw.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: ATAPI dvdreader always fails on a particular DVD movie title X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2008 16:30:45 -0000 Yuri wrote: > I tried to make a backup copy of one DVD that I own and 'dvdbackup' > always fails at a particular point. Would the dvds in question happen to be Sony movies? If so a web search might be useful to you. Doug -- This .signature sanitized for your protection From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 19 18:29:02 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5BE716A418 for ; Sat, 19 Jan 2008 18:29:02 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.freebsd.org (Postfix) with ESMTP id 41F6B13C4D9 for ; Sat, 19 Jan 2008 18:29:02 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so2094965pyb.10 for ; Sat, 19 Jan 2008 10:29:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:content-transfer-encoding:cc:from:subject:date:to:x-mailer; bh=VuTStL34DLtRxTSeSfNGm0Khvqw0L+u4fHHuHRZK4wE=; b=K4SjNyoPBHKS4CAw19+DwWq2cg+I1T7TPJA658xRRbg3qzpc5cMNwEUX38znfi+EAvpG9o/hT36C3fs48KCcX14mfS2pYvEpClVjLL+cWC47qjGN+259V66MA1RIn4iNA5RTbED0qLgtqOJRG4u2smiXjBVpITBpCGq969xdaJg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:content-transfer-encoding:cc:from:subject:date:to:x-mailer; b=KCzHNRYOs992/YjKQa7yD8HxKbvp4oWTfUP3/X3Q2Vk1CC6JfD8wPsdrKLNAyYee0WiCYiwuJF3u2IHgNuJk59aGhfEj6bd8LAyjxf0SObkLFzud8iy66oAJ6pxJ0Ckyw2opjyNCCcWw7h7doz581T7Lm8iS7+L3n3vit1FTa10= Received: by 10.35.86.19 with SMTP id o19mr5481124pyl.9.1200767340778; Sat, 19 Jan 2008 10:29:00 -0800 (PST) Received: from ?192.168.1.3? ( [74.134.230.123]) by mx.google.com with ESMTPS id a70sm14580677pye.4.2008.01.19.10.28.58 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 Jan 2008 10:28:59 -0800 (PST) In-Reply-To: <47921F6E.8020806@FreeBSD.org> References: <1200679902.4790ebdee1975@webmail.rawbw.com> <47921F6E.8020806@FreeBSD.org> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Joshua Isom Date: Sat, 19 Jan 2008 12:30:06 -0600 To: Doug Barton X-Mailer: Apple Mail (2.624) Cc: Yuri , freebsd-hackers@freebsd.org Subject: Re: ATAPI dvdreader always fails on a particular DVD movie title X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2008 18:29:02 -0000 On Jan 19, 2008, at 10:03 AM, Doug Barton wrote: > Yuri wrote: >> I tried to make a backup copy of one DVD that I own and 'dvdbackup' >> always fails at a particular point. > > Would the dvds in question happen to be Sony movies? If so a web > search might be useful to you. > > Doug > Not only that, but do you actually see a DVD logo? Disney movies use Disney DVD which is incompatible with the DVD specification. > -- > > This .signature sanitized for your protection > _______________________________________________ > 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 Sat Jan 19 22:52:09 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A6D216A41A; Sat, 19 Jan 2008 22:52:09 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from conn-smtp.mc.mpls.visi.com (conn.mc.mpls.visi.com [208.42.156.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3465F13C448; Sat, 19 Jan 2008 22:52:09 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from mail.tcbug.org (mail.tcbug.org [208.42.70.163]) by conn-smtp.mc.mpls.visi.com (Postfix) with ESMTP id C55377814; Sat, 19 Jan 2008 16:19:44 -0600 (CST) Received: from build64.tcbug.org (unknown [208.42.70.167]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.tcbug.org (Postfix) with ESMTP id 2951C2149802; Sat, 19 Jan 2008 16:19:44 -0600 (CST) From: Josh Paetzel To: freebsd-hackers@freebsd.org Date: Sat, 19 Jan 2008 16:19:37 -0600 User-Agent: KMail/1.9.7 References: <1200679902.4790ebdee1975@webmail.rawbw.com> <47921F6E.8020806@FreeBSD.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2622756.vU4FMI6zeq"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200801191619.43588.josh@tcbug.org> Cc: Yuri , Joshua Isom , Doug Barton Subject: Re: ATAPI dvdreader always fails on a particular DVD movie title X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2008 22:52:09 -0000 --nextPart2622756.vU4FMI6zeq Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 19 January 2008 12:30:06 pm Joshua Isom wrote: > On Jan 19, 2008, at 10:03 AM, Doug Barton wrote: > > Yuri wrote: > >> I tried to make a backup copy of one DVD that I own and 'dvdbackup' > >> always fails at a particular point. > > > > Would the dvds in question happen to be Sony movies? If so a web > > search might be useful to you. > > > > Doug > > Not only that, but do you actually see a DVD logo? Disney movies use > Disney DVD which is incompatible with the DVD specification. > Sony isn't the only maker of DVDs that has goo in them that will confuse=20 libdvdcss. =20 In a nut shell, in many places it's illegal to use 'nonauthorized' tools (l= ike=20 libdvdcss) to decrypt DVDs for any purpose (including playback). On top of= =20 that, the underlying tool used by nearly everything that reads movie DVDs o= n=20 =46reeBSD (libdvdcss) is unmaintained by anyone upstream, as time goes on m= ore=20 and more dvds are released that it either can't decrypt or are able to chok= e=20 it. =2D-=20 Thanks, Josh Paetzel (wearing libdvdcss port maintainer hat) PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB --nextPart2622756.vU4FMI6zeq Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHknd/JvkB8SevrssRAoAjAJ4+8mFEfRYgcU/PJnGGTwoEM+V+XwCglD9X ByatHn9VfYzMYisSlLtCtho= =HXoX -----END PGP SIGNATURE----- --nextPart2622756.vU4FMI6zeq-- From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 19 23:39:01 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 250E916A420 for ; Sat, 19 Jan 2008 23:39:01 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmpop109.cox.net (eastrmpop109.cox.net [68.230.240.51]) by mx1.freebsd.org (Postfix) with ESMTP id AA86413C45A for ; Sat, 19 Jan 2008 23:39:00 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao104.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20080119230617.QWXV23675.eastrmmtao104.cox.net@eastrmimpo01.cox.net>; Sat, 19 Jan 2008 18:06:17 -0500 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo01.cox.net with bizsmtp id fB591Y0074iy4EG0000000; Sat, 19 Jan 2008 18:05:09 -0500 Date: Sat, 19 Jan 2008 17:07:02 -0600 To: "Josh Paetzel" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <1200679902.4790ebdee1975@webmail.rawbw.com> <47921F6E.8020806@FreeBSD.org> <200801191619.43588.josh@tcbug.org> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <200801191619.43588.josh@tcbug.org> User-Agent: Opera Mail/9.25 (Linux) Cc: Yuri , Joshua Isom , freebsd-hackers@freebsd.org, Doug Barton Subject: Re: ATAPI dvdreader always fails on a particular DVD movie title X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2008 23:39:01 -0000 On Sat, 19 Jan 2008 16:19:37 -0600, Josh Paetzel wrote: > On Saturday 19 January 2008 12:30:06 pm Joshua Isom wrote: >> On Jan 19, 2008, at 10:03 AM, Doug Barton wrote: >> > Yuri wrote: >> >> I tried to make a backup copy of one DVD that I own and 'dvdbackup' >> >> always fails at a particular point. >> > >> > Would the dvds in question happen to be Sony movies? If so a web >> > search might be useful to you. >> > >> > Doug >> >> Not only that, but do you actually see a DVD logo? Disney movies use >> Disney DVD which is incompatible with the DVD specification. >> > > Sony isn't the only maker of DVDs that has goo in them that will confuse > libdvdcss. > > In a nut shell, in many places it's illegal to use 'nonauthorized' tools > (like > libdvdcss) to decrypt DVDs for any purpose (including playback). On top > of > that, the underlying tool used by nearly everything that reads movie > DVDs on > FreeBSD (libdvdcss) is unmaintained by anyone upstream, as time goes on > more > and more dvds are released that it either can't decrypt or are able to > choke > it. It's why I am still keeping WinXP in USB flash drive (2gb) for I can use AnyDVD and other nice tools for rip DVD movie. Rip DVD movie in Linux/FreeBSD suck and don't work for me. Cheers, Mezz -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org