From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 23 11:39: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 34ADC1065675 for ; Sun, 23 Nov 2008 11:39:27 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from mx0.gid.co.uk (mx0.gid.co.uk [194.32.164.250]) by mx1.freebsd.org (Postfix) with ESMTP id C8D4C8FC19 for ; Sun, 23 Nov 2008 11:39:26 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from gidgate.gid.co.uk (80-46-130-69.static.dsl.as9105.com [80.46.130.69]) by mx0.gid.co.uk (8.14.2/8.14.2) with ESMTP id mANBMSi4053411; Sun, 23 Nov 2008 11:22:28 GMT (envelope-from rb@gid.co.uk) Received: from [194.32.164.28] ([194.32.164.6]) by gidgate.gid.co.uk (8.13.8/8.13.8) with ESMTP id mANBMMxi017394; Sun, 23 Nov 2008 11:22:22 GMT (envelope-from rb@gid.co.uk) Message-Id: From: Bob Bishop To: Christoph Kukulies In-Reply-To: <4927E659.3010602@kukulies.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Sun, 23 Nov 2008 11:22:21 +0000 References: <4927E659.3010602@kukulies.org> X-Mailer: Apple Mail (2.929.2) Cc: freebsd-hackers@freebsd.org Subject: Re: mounting Mac OS .dmg files? 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, 23 Nov 2008 11:39:27 -0000 Hi, On 22 Nov 2008, at 11:00, Christoph Kukulies wrote: > Since the underlying OS of Mac OS is FreeBSD I'm wondering whether > itr is possible to mount a > .dmg file as it is used in Apple software distribution for the Mac > OS. I would like to install an > Apple iPhone configuration utility on my FreeBSD box > (iPhoneConfigurationUtility.dmg). It consists of a > web application that is supposedly capable of doing updates of Apple > iPhones through a web service. > (good for company wide distribution of address book information and > other data that iPhones can hold). If you want to see what the package contains, try building dmg2img from here: http://vu1tur.eu.org/tools/ Use that to extract the HFS image from the package, then examine it one of the HFS tools from ports/emulators, But as others have mentioned, you may not be able to do much with the contents. -- Bob Bishop rb@gid.co.uk From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 23 15:23: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 5CEF6106564A for ; Sun, 23 Nov 2008 15:23:34 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 3CE1E8FC13 for ; Sun, 23 Nov 2008 15:23:34 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTP id D7F5C46B03; Sun, 23 Nov 2008 10:23:33 -0500 (EST) Date: Sun, 23 Nov 2008 15:23:33 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Erik Trulsson In-Reply-To: <20081122222324.GA92500@owl.midgard.homeip.net> Message-ID: References: <4927E659.3010602@kukulies.org> <7d6fde3d0811221406u38de767fnd22175518b8502bf@mail.gmail.com> <20081122222324.GA92500@owl.midgard.homeip.net> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Garrett Cooper , Christoph Kukulies , freebsd-hackers@freebsd.org Subject: Re: mounting Mac OS .dmg files? 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, 23 Nov 2008 15:23:34 -0000 On Sat, 22 Nov 2008, Erik Trulsson wrote: > Which version of FreeBSD was used in OSX will almost certainly depend on > which version of MacOS X you look at. > > It is quite possible that the latest version of OSX uses code from FreeBSD > 5.x, but I guarantee that the first release of OSX did not. (This is easily > seen from the fact the MacOS X 10.0 was first released in March 2001. The > latest FreeBSD release at that time was 4.2 (released in November 2000.) > FreeBSD 5.0 was not released until January 2003.) It would be accurate to describe Apple's approach to adopting FreeBSD changes as "cherry-picking" - their source code base is sufficiently diverged from ours that they basicaly pull our change on an as-needed basis rather than remaining strictly sync'd to a particular version. Many of you will have noticed that articles describing the recent SnowLeopard seed include mention of pulling the most recent OpenBSM and OpenPAM drops from FreeBSD into Mac OS X, as examples of recently integrated technologies from recent FreeBSD versions. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 24 01:46:10 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 1E12A1065672 for ; Mon, 24 Nov 2008 01:46:10 +0000 (UTC) (envelope-from braulio@solsoft.co.cr) Received: from wbm7.pair.net (wbm7.pair.net [209.68.4.129]) by mx1.freebsd.org (Postfix) with ESMTP id E8D438FC1B for ; Mon, 24 Nov 2008 01:46:09 +0000 (UTC) (envelope-from braulio@solsoft.co.cr) Received: by wbm7.pair.net (Postfix, from userid 65534) id 2F70210564; Sun, 23 Nov 2008 20:15:54 -0500 (EST) Received: from 201.198.34.106 ([201.198.34.106]) (SquirrelMail authenticated user braulio@solsoft.co.cr) by webmail7.pair.com with HTTP; Sun, 23 Nov 2008 19:15:54 -0600 (CST) Message-ID: <44979.201.198.34.106.1227489354.squirrel@webmail7.pair.com> In-Reply-To: References: <4927E659.3010602@kukulies.org> Date: Sun, 23 Nov 2008 19:15:54 -0600 (CST) From: Braulio =?iso-8859-1?Q?Jos=E9_Solano_Rojas?= To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: mounting Mac OS .dmg files? 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, 24 Nov 2008 01:46:10 -0000 On Sun, 23 de Noviembre de 2008, 5:22 am, Bob Bishop wrote: > > On 22 Nov 2008, at 11:00, Christoph Kukulies wrote: >> Since the underlying OS of Mac OS is FreeBSD I'm wondering whether >> itr is possible to mount a >> .dmg file as it is used in Apple software distribution for the Mac >> OS. I would like to install an >> Apple iPhone configuration utility on my FreeBSD box >> (iPhoneConfigurationUtility.dmg). It consists of a >> web application that is supposedly capable of doing updates of Apple >> iPhones through a web service. >> (good for company wide distribution of address book information and >> other data that iPhones can hold). > > ... > > But as others have mentioned, you may not be able to do much with the > contents. I have an innocent question. I have read on the handbook and the thesis about the Linux ABI technical explanations that lead me to think that it could be possible to run Mac OS binaries on FreeBSD. I think that if the correct loader was implemented in execve and the Mac OS system calls were also implemented it would be possible to run Mac OS binaries. Am I right? (I am not asking anyone to support this feature, I just would like an hypothetic answer in order to improve my knowledge.) Of course, I suppose there would be technical challenges to solve as there are still for Linux. In fact, I would like to ask further: could this be possible for any operating system (without thinking about if it would worth it)? Best regards, Braulio Solano From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 24 01:52:16 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 367111065673 for ; Mon, 24 Nov 2008 01:52:16 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id F42228FC17 for ; Mon, 24 Nov 2008 01:52:15 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from feathers.peganest.com ([IPv6:2001:4d48:ad51:32:21b:21ff:fe1c:3ce]) (authenticated bits=0) by hercules.mthelicon.com (8.14.3/8.14.2) with ESMTP id mAO1qETm033059 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Mon, 24 Nov 2008 01:52:15 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc Cleaft Organization: Feathers To: hackers@freebsd.org Date: Mon, 24 Nov 2008 01:52:12 +0000 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; amd64; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811240152.13032.ken@mthelicon.com> Cc: Subject: who on FreeBSD 8.0 - AMD64 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, 24 Nov 2008 01:52:16 -0000 Hello Hackers, I noticed something the other day that I thought was a bit weird. I had a high amount of HD activity, so I wanted to see who was on my machine. I tried using the "who" command and received no information (not even for myself). I have found that various methods of signing in cause different behavior, presumably due to being assigned different terminal names. For instance: If I open an Xterm, or telnet into the machine, I will not see any information (Although a who -q does), however, if I SSH or sign in on the console, I get the results I was expecting. Am I missing something or being a bit thick? (please see below for examples) Peg [through a xterm] feathers$ who feathers$ [through a telnet] feathers$ telnet localhost Trying ::1... Connected to localhost. Escape character is '^]'. Trying SRA secure login: User (XXXXXX): Password: [ SRA accepts you ] FreeBSD/amd64 (feathers.peganest.com) (pts/2) You have new mail. feathers$ who feathers$ [Through a SSH connection] titan$ ssh feathers Enter passphrase for key '/home/XXXXX/.ssh/id_rsa': Last login: Mon Nov 24 01:45:08 2008 from localhost Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 8.0-CURRENT (FEATHERS) #1: Sat Nov 22 16:07:04 UTC 2008 feathers$ feathers$ who XXXXX pts/3 Nov 24 01:47 (XXX.XXX.XXX.XXX) feathers$ From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 24 02:16:09 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 34745106564A for ; Mon, 24 Nov 2008 02:16:09 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.226]) by mx1.freebsd.org (Postfix) with ESMTP id F3DD78FC14 for ; Mon, 24 Nov 2008 02:16:08 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1812618rvf.43 for ; Sun, 23 Nov 2008 18:16:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=0+fjTc9uULkcfVKx/mVI2mT3xPP0IzOJDhArSqFvk+s=; b=dYJFUZnhZ1rVRRY44dzX9BEFGSh1+ecZyW7bmeYniEHSvru3fj/8wPFr2QZ7Elrz2J z0oAjSs3CF3ZiUl4fkgtyNqawZxPs0U83ypEiEFybpEGEkTzcu7OM9bp3Mdao0QlfZa8 QnrjcliGM690J3Uu1I3gejOXbjMrCRKMyTT5Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=LwiqdhLXZo9ICC+PE/xrnmGnlcjA5aqN8fvK3vfXOPqRBbtDTkyvZG8XCulLJt3d2U GqdY4ICTcYtGQ1ur3WcG1M2PHDftqm7ZSa/W/FiakWQpihOwEf7PoqOoUgVBg21s5TJe z9E/dBHfcvybDQi5QkJXVKBYNjOjN33RcIRz8= Received: by 10.142.254.6 with SMTP id b6mr1419826wfi.157.1227492967606; Sun, 23 Nov 2008 18:16:07 -0800 (PST) Received: from ?192.168.10.7? (adsl-76-254-6-199.dsl.pltn13.sbcglobal.net [76.254.6.199]) by mx.google.com with ESMTPS id 9sm6190380wfc.36.2008.11.23.18.16.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 23 Nov 2008 18:16:07 -0800 (PST) Message-Id: <2B28B3C6-FC8F-4F00-A5CB-241DE2B8B00A@gmail.com> From: Garrett Cooper To: Pegasus Mc Cleaft In-Reply-To: <200811240152.13032.ken@mthelicon.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Sun, 23 Nov 2008 18:19:40 -0800 References: <200811240152.13032.ken@mthelicon.com> X-Mailer: Apple Mail (2.929.2) Cc: hackers@freebsd.org Subject: Re: who on FreeBSD 8.0 - AMD64 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, 24 Nov 2008 02:16:09 -0000 On Nov 23, 2008, at 5:52 PM, Pegasus Mc Cleaft wrote: > Hello Hackers, > > I noticed something the other day that I thought was a bit weird. I > had a > high amount of HD activity, so I wanted to see who was on my > machine. I tried > using the "who" command and received no information (not even for > myself). > > I have found that various methods of signing in cause different > behavior, > presumably due to being assigned different terminal names. For > instance: If I > open an Xterm, or telnet into the machine, I will not see any > information > (Although a who -q does), however, if I SSH or sign in on the > console, I get > the results I was expecting. > > Am I missing something or being a bit thick? (please see below for > examples) > > Peg > > [through a xterm] > feathers$ who > feathers$ > > [through a telnet] > feathers$ telnet localhost > Trying ::1... > Connected to localhost. > Escape character is '^]'. > Trying SRA secure login: > User (XXXXXX): > Password: > [ SRA accepts you ] > > FreeBSD/amd64 (feathers.peganest.com) (pts/2) > > You have new mail. > feathers$ who > feathers$ > > [Through a SSH connection] > titan$ ssh feathers > Enter passphrase for key '/home/XXXXX/.ssh/id_rsa': > Last login: Mon Nov 24 01:45:08 2008 from localhost > Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 > The Regents of the University of California. All rights > reserved. > > FreeBSD 8.0-CURRENT (FEATHERS) #1: Sat Nov 22 16:07:04 UTC 2008 > > > feathers$ > feathers$ who > XXXXX pts/3 Nov 24 01:47 (XXX.XXX.XXX.XXX) > feathers$ `who' works perfectly fine for me on CURRENT/AMD64 synced up 3 days ago, via an ssh terminal. Can you provide more details, e.g. when was your last sync date, did you blow away your utmp directory, etc? Thanks, -Garrett From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 24 02:27:00 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 BB0511065674 for ; Mon, 24 Nov 2008 02:27:00 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8120B8FC14 for ; Mon, 24 Nov 2008 02:27:00 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from feathers.peganest.com ([IPv6:2001:4d48:ad51:32:21b:21ff:fe1c:3ce]) (authenticated bits=0) by hercules.mthelicon.com (8.14.3/8.14.2) with ESMTP id mAO2QwpK033180 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Mon, 24 Nov 2008 02:26:59 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc Cleaft Organization: Feathers To: Garrett Cooper Date: Mon, 24 Nov 2008 02:26:58 +0000 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; amd64; ; ) References: <200811240152.13032.ken@mthelicon.com> <2B28B3C6-FC8F-4F00-A5CB-241DE2B8B00A@gmail.com> In-Reply-To: <2B28B3C6-FC8F-4F00-A5CB-241DE2B8B00A@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811240226.58137.ken@mthelicon.com> Cc: hackers@freebsd.org Subject: Re: who on FreeBSD 8.0 - AMD64 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, 24 Nov 2008 02:27:00 -0000 On Monday 24 November 2008 02:19:40 Garrett Cooper wrote: > On Nov 23, 2008, at 5:52 PM, Pegasus Mc Cleaft wrote: > > Hello Hackers, > > > > `who' works perfectly fine for me on CURRENT/AMD64 synced up 3 days > ago, via an ssh terminal. Can you provide more details, e.g. when was > your last sync date, did you blow away your utmp directory, etc? > Thanks, > -Garrett Hi Garrett, Its actually the other way around. If I SSH into the machine, I see my login in the 'who', however, if I telnet in or use a xterm I dont.. The last sync/build world/build kernel I have done was about 24 hours ago, however, I think the problem has been going on for a while now. I noticed it about a month ago and forgot about it until the other day when I tried using 'who' again. I havent blown away the utmp directory (or touched it, for that matter). I can try clearing if, if you think it may help? Ta Peg From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 23 23:45: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 0633E1065678 for ; Sun, 23 Nov 2008 23:45:27 +0000 (UTC) (envelope-from lg.zevlg@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 87D788FC3A for ; Sun, 23 Nov 2008 23:45:26 +0000 (UTC) (envelope-from lg.zevlg@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so584916ugs.39 for ; Sun, 23 Nov 2008 15:45:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:to:subject:from :x-face:date:message-id:user-agent:mime-version:content-type; bh=3qjyxo+Hj2/dgO4IKg0y2CYOb0gmH6aVHJDP3vrMrUU=; b=KDW915oD2HH2vKkqLURc4IVVhxeY6anuq9R3+oMNr4tBpWlNcmkxBu/Mi7QCchTfGB oHJ4gKVW/ymDY/wHXOYIqCclbAvhlKxJXiV6cZ1OPozlglNfT+ZGS6OHpaY8xvM61zc8 +y7kXbDq/Hzp76P/bw9x18Tr2l/qXVs0XyG74= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:from:x-face:date:message-id:user-agent:mime-version :content-type; b=xPnD3EvBQzwBwB+9X6dkwIgIBmiLyazVJplP418haXmRFuFatIXnDGJMiL8ytGz1Zp 8TSSJWlUZ57CseNd2D5rHcnkto0c/YIjsAe7qGgPETLvU9nvTQXQJGEcXXYzmCKTP89j 3WDTjOuJMOFtCVgeFNXK6rNEu9dhaxzEKjQIQ= Received: by 10.103.193.13 with SMTP id v13mr858483mup.125.1227481958869; Sun, 23 Nov 2008 15:12:38 -0800 (PST) Received: from h1 (nat17.jdsl.mv.ru [89.239.131.241]) by mx.google.com with ESMTPS id 14sm4233437muo.9.2008.11.23.15.12.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 23 Nov 2008 15:12:38 -0800 (PST) Received: by h1 (sSMTP sendmail emulation); Mon, 24 Nov 2008 02:12:23 +0300 To: freebsd-hackers@freebsd.org From: Zajcev Evgeny X-Face: Y=JrMgb2CLEwY1XwvwUwNYC+.LVm+nEG>MTW+Rw]SYj!co:?k6(FjM5wf1Xcz&}'pEB3Sm^ b-ghtWTI%P/"GpTXGx!fSQ|i7}(m?b$6]_E|_`}UG2V8e&>k?.wVCwlixNEn3TXD-pCrf"\R\}5[#j =;*{~ou7s-VG14_t}Mw4TmbI/kff Date: Mon, 24 Nov 2008 02:12:22 +0300 Message-ID: <87vdueavft.fsf@h1.lan> User-Agent: Gnus/5.1008 (Gnus v5.10.8) SXEmacs/22.1.10 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Mon, 24 Nov 2008 02:37:23 +0000 Subject: `type' built-in command in /bin/sh 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, 23 Nov 2008 23:45:27 -0000 Hello there. I just hit into "problem" that built-in sh command type outputs to stdout when error occurs. I mean it returns non-0 status, but outputs to stdout! I think stderr has been made exactly for such purposes and `type' should use it in case of error .. what do you think? thanks -- lg From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 24 02:42:08 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 B5310106564A for ; Mon, 24 Nov 2008 02:42:08 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.227]) by mx1.freebsd.org (Postfix) with ESMTP id 82DCC8FC16 for ; Mon, 24 Nov 2008 02:42:08 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1820488rvf.43 for ; Sun, 23 Nov 2008 18:42:08 -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=0CoxLCqIXgzJY3svzcg7Scvn+Lj4XEeUlAN85vcGeo0=; b=fcKLD2xDWtl5OjTMieLEWIwEZFo/QXFK/RauahW1BKc0mEm1yfLWQZZ+q4uU1i6LzC V+a4UAjAJ3OY88criY8I2G+LIY45Jq0iCENOF3o2hCqHPGlIPQBH941clw/CuM9eczDy vpTaTAalljC1Zy3cu78j8Le7WlYIheXGRrBG0= 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=PAFHa3cwusyNmmDpVINymvYUJHjoHagWaiqQ+5qES9QpOHCF652W3acrXn13riiVND iG3YWrXwxpe4Gphh2V2QWQC3pQcV0DA//Qssd8v+NA3uetwf8o3KCDnFTR0yzLpQxpfU TCrGsO+pSLHZpYd0RLdzWdeqXeZ4UhJY6VgeE= Received: by 10.141.137.6 with SMTP id p6mr1617497rvn.133.1227494528271; Sun, 23 Nov 2008 18:42:08 -0800 (PST) Received: by 10.140.158.13 with HTTP; Sun, 23 Nov 2008 18:42:08 -0800 (PST) Message-ID: <7d6fde3d0811231842u418ac567m5cb2041b2cc8f1de@mail.gmail.com> Date: Sun, 23 Nov 2008 18:42:08 -0800 From: "Garrett Cooper" To: "Pegasus Mc Cleaft" In-Reply-To: <200811240226.58137.ken@mthelicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811240152.13032.ken@mthelicon.com> <2B28B3C6-FC8F-4F00-A5CB-241DE2B8B00A@gmail.com> <200811240226.58137.ken@mthelicon.com> Cc: hackers@freebsd.org Subject: Re: who on FreeBSD 8.0 - AMD64 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, 24 Nov 2008 02:42:08 -0000 On Sun, Nov 23, 2008 at 6:26 PM, Pegasus Mc Cleaft wrote: > On Monday 24 November 2008 02:19:40 Garrett Cooper wrote: >> On Nov 23, 2008, at 5:52 PM, Pegasus Mc Cleaft wrote: >> > Hello Hackers, >> > > > >> >> `who' works perfectly fine for me on CURRENT/AMD64 synced up 3 days >> ago, via an ssh terminal. Can you provide more details, e.g. when was >> your last sync date, did you blow away your utmp directory, etc? >> Thanks, >> -Garrett > > Hi Garrett, > Its actually the other way around. If I SSH into the machine, I see my login > in the 'who', however, if I telnet in or use a xterm I dont.. > > The last sync/build world/build kernel I have done was about 24 hours ago, > however, I think the problem has been going on for a while now. I noticed it > about a month ago and forgot about it until the other day when I tried using > 'who' again. > > I havent blown away the utmp directory (or touched it, for that matter). I > can try clearing if, if you think it may help? > > Ta > Peg Actually, no please don't blow it. After hearing that it occurs only over ssh I tried with a local login and it functions exactly the same as with the ssh terminal. 1. What's the exit code after you try and execute who? 2. `ls -l /var/run/utmp'? Should be set to mode 00644. Thanks, -Garrett From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 24 02:49:21 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 845BE1065670 for ; Mon, 24 Nov 2008 02:49:21 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2FD4E8FC0A for ; Mon, 24 Nov 2008 02:49:21 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from feathers.peganest.com ([IPv6:2001:4d48:ad51:32:21b:21ff:fe1c:3ce]) (authenticated bits=0) by hercules.mthelicon.com (8.14.3/8.14.2) with ESMTP id mAO2nJXC033254 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Mon, 24 Nov 2008 02:49:20 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc Cleaft Organization: Feathers To: "Garrett Cooper" , hackers@freebsd.org Date: Mon, 24 Nov 2008 02:49:18 +0000 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; amd64; ; ) References: <200811240152.13032.ken@mthelicon.com> <200811240226.58137.ken@mthelicon.com> <7d6fde3d0811231842u418ac567m5cb2041b2cc8f1de@mail.gmail.com> In-Reply-To: <7d6fde3d0811231842u418ac567m5cb2041b2cc8f1de@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811240249.18860.ken@mthelicon.com> Cc: Subject: Re: who on FreeBSD 8.0 - AMD64 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, 24 Nov 2008 02:49:21 -0000 On Monday 24 November 2008 02:42:08 you wrote: > On Sun, Nov 23, 2008 at 6:26 PM, Pegasus Mc Cleaft wrote: > > On Monday 24 November 2008 02:19:40 Garrett Cooper wrote: > >> On Nov 23, 2008, at 5:52 PM, Pegasus Mc Cleaft wrote: > >> > Hello Hackers, > > > > > > > >> `who' works perfectly fine for me on CURRENT/AMD64 synced up 3 > >> days ago, via an ssh terminal. Can you provide more details, e.g. when > >> was your last sync date, did you blow away your utmp directory, etc? > >> Thanks, > >> -Garrett > > > > Hi Garrett, > > Its actually the other way around. If I SSH into the machine, I > > see my login in the 'who', however, if I telnet in or use a xterm I > > dont.. > > > > The last sync/build world/build kernel I have done was about 24 > > hours ago, however, I think the problem has been going on for a while > > now. I noticed it about a month ago and forgot about it until the other > > day when I tried using 'who' again. > > > > I havent blown away the utmp directory (or touched it, for that > > matter). I can try clearing if, if you think it may help? > > > > Ta > > Peg > > Actually, no please don't blow it. After hearing that it occurs > only over ssh I tried with a local login and it functions exactly the > same as with the ssh terminal. > 1. What's the exit code after you try and execute who? > 2. `ls -l /var/run/utmp'? Should be set to mode 00644. > Thanks, > -Garrett Hi Garrett, I'm not sure of the exit code, but it dosent display any errors, just returns nothing. The /var/run/utmp is set to 00644 as well.. Can you try telneting into your box (even as a localhost) and see if if it still functions correctly? Using a telnet login or a xterm window is the only time I see it fail. Ta Peg From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 24 05:48: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 094B4106567A for ; Mon, 24 Nov 2008 05:48:26 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (five.mired.org [66.92.153.75]) by mx1.freebsd.org (Postfix) with ESMTP id A4CC58FC1C for ; Mon, 24 Nov 2008 05:48:25 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 505 invoked by uid 1001); 24 Nov 2008 00:21:35 -0500 Received: from bhuda.mired.org (localhost.localdomain [127.0.0.1]) by bhuda (tmda-ofmipd) with ESMTP; Mon, 24 Nov 2008 00:21:34 -0500 Date: Mon, 24 Nov 2008 00:21:33 -0500 To: Braulio =?UTF-8?B?Sm9zw6k=?= Solano Rojas Message-ID: <20081124002133.500eec9e@bhuda.mired.org> In-Reply-To: <44979.201.198.34.106.1227489354.squirrel@webmail7.pair.com> References: <4927E659.3010602@kukulies.org> <44979.201.198.34.106.1227489354.squirrel@webmail7.pair.com> Organization: Meyer Consulting X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; amd64-portbld-freebsd7.0) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: mounting Mac OS .dmg files? 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, 24 Nov 2008 05:48:26 -0000 On Sun, 23 Nov 2008 19:15:54 -0600 (CST) Braulio Jos=C3=A9 Solano Rojas wrote: > I have an innocent question. I have read on the handbook and the thesis > about the Linux ABI technical explanations that lead me to think that it > could be possible to run Mac OS binaries on FreeBSD. I think that if the > correct loader was implemented in execve and the Mac OS system calls were > also implemented it would be possible to run Mac OS binaries. Am I right? > (I am not asking anyone to support this feature, I just would like an > hypothetic answer in order to improve my knowledge.) Of course, I suppose > there would be technical challenges to solve as there are still for Linux. > In fact, I would like to ask further: could this be possible for any > operating system (without thinking about if it would worth it)? In theory, you can provide an ABI for any OS that you care to emulate the necessary calls for. In essence, that's what the WINE project is: emulation of all the Windows API's required to run Windows applications on a Unix/X11 platform. The thing is, an OS these days is more than just a set of system calls - it's a collection of shared libraries providing a complete user interface. That's why you have to install large chunks of a Linux system to run Linux binaries on FreeBSD - getting all the libraries down to the system call level needed by those binaries (and in some cases, you want GNU/Linux executable also, because the binaries expect to invoke executables from Linux, not BSD, and they are different enough to matter). Even then, the reason it works reasonably well for GNU/Linux with X is because the X server/client API use IPC mechanisms so you can get away with running a FreeBSD X11 server, letting the Linux applications use Linux client-side libraries, and just make sure the IPC calls are simulated properly (module hi-end graphics tools and other late additions). Other OSs don't have as clean a division between applications and the graphics subsystem, so you have to provide all the services the OS provides for talking to the graphics device as well. Linux gets another win here in that all the relevant libraries are open source; for proprietary systems, even if you could find a clean layer to switch platforms, you'd have to rewrite all those libraries above that layer from scratch anyway. Which is why WINE has to simulate all the Windows GUI calls using X11 code. So while a Darwin (the OS underneath OSX) ABI would be possible - though it's not clear how painful because it's not clear how visible the MACH APIs are - it's not clear how useful it would be by itself. You could run OSX applications that used X11 for the GUI after building the appropriate libraries (just like Linux), but those apps are probably available native anyway. You couldn't run applications that use the various and sundry Mac-specific graphics (among other things) frameworks, not without providing code to simulate all the calls provided by those frameworks - which are proprietary, and not part of Darwin. Which means this project now resembles WINE more than the Linux ABI layer. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 24 06:40:49 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 6BD3A1065672 for ; Mon, 24 Nov 2008 06:40:49 +0000 (UTC) (envelope-from leafy7382@gmail.com) Received: from mail-qy0-f18.google.com (mail-qy0-f18.google.com [209.85.221.18]) by mx1.freebsd.org (Postfix) with ESMTP id 065558FC12 for ; Mon, 24 Nov 2008 06:40:48 +0000 (UTC) (envelope-from leafy7382@gmail.com) Received: by qyk11 with SMTP id 11so1642192qyk.19 for ; Sun, 23 Nov 2008 22:40:48 -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=7JZ6/WcCPFyXvTERTo/V73WrX47aYkcqOGMU11bafYI=; b=eTtXI3JluP1dhDUrIi6k6A1tascyc51YmWqOEJHYIcm+MQmlMER6nOxGqumTfbAOjY zeVm+waX3SrNgiXNoe7A0/usgrCmUz9zK7pKYucq2RvyC7U+meUvaQqqnd38YeTZkCeW GvMs1cEXFiYWlrGzbeYQMqzmSq9BKuuxZBwds= 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=bBYOl2KG0EvPqxivOzidjYB43vzHl44PYrXt9xmEAYP5NdmaGWrKLetCW5dKKZfQfB Q12CeYllCg4Kl2yuhgsRke69AILcrPEyVCdQgDDSCAbJb+VxdNz6sy7lGPc5+Bfoy2fb D6G5ubFTr9DUuQdRBGntFrrxx+/hOqC2bg/s0= Received: by 10.214.59.16 with SMTP id h16mr1699898qaa.300.1227507563504; Sun, 23 Nov 2008 22:19:23 -0800 (PST) Received: by 10.215.41.16 with HTTP; Sun, 23 Nov 2008 22:19:23 -0800 (PST) Message-ID: Date: Mon, 24 Nov 2008 14:19:23 +0800 From: "Jiawei Ye" To: "Mike Meyer" In-Reply-To: <20081124002133.500eec9e@bhuda.mired.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4927E659.3010602@kukulies.org> <44979.201.198.34.106.1227489354.squirrel@webmail7.pair.com> <20081124002133.500eec9e@bhuda.mired.org> Cc: freebsd-hackers@freebsd.org Subject: Re: mounting Mac OS .dmg files? 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, 24 Nov 2008 06:40:49 -0000 On Mon, Nov 24, 2008 at 1:21 PM, Mike Meyer wrote: --snip-- > So while a Darwin (the OS underneath OSX) ABI would be possible - > though it's not clear how painful because it's not clear how visible > the MACH APIs are - it's not clear how useful it would be by > itself. You could run OSX applications that used X11 for the GUI after > building the appropriate libraries (just like Linux), but those apps > are probably available native anyway. You couldn't run applications > that use the various and sundry Mac-specific graphics (among other > things) frameworks, not without providing code to simulate all the > calls provided by those frameworks - which are proprietary, and not > part of Darwin. Which means this project now resembles WINE more than > the Linux ABI layer. > > 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 A08C91065670 for ; Mon, 24 Nov 2008 08:56:45 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from viefep25-int.chello.at (viefep25-int.chello.at [62.179.121.45]) by mx1.freebsd.org (Postfix) with ESMTP id E2CBA8FC12 for ; Mon, 24 Nov 2008 08:56:44 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from edge04.upc.biz ([192.168.13.239]) by viefep16-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20081124084032.KVFS22909.viefep16-int.chello.at@edge04.upc.biz>; Mon, 24 Nov 2008 09:40:32 +0100 Received: from lizard.fafoe.narf.at ([213.47.85.26]) by edge04.upc.biz with edge id iwgX1a0100a5KZh04wgYT9; Mon, 24 Nov 2008 09:40:32 +0100 X-SourceIP: 213.47.85.26 Received: by lizard.fafoe.narf.at (Postfix, from userid 1001) id 4B959BB5E; Mon, 24 Nov 2008 09:40:17 +0100 (CET) Date: Mon, 24 Nov 2008 09:40:17 +0100 From: Stefan Farfeleder To: Zajcev Evgeny Message-ID: <20081124084016.GA1384@lizard.fafoe.narf.at> Mail-Followup-To: Zajcev Evgeny , freebsd-hackers@freebsd.org References: <87vdueavft.fsf@h1.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87vdueavft.fsf@h1.lan> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-hackers@freebsd.org Subject: Re: `type' built-in command in /bin/sh 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, 24 Nov 2008 08:56:45 -0000 On Mon, Nov 24, 2008 at 02:12:22AM +0300, Zajcev Evgeny wrote: > > Hello there. I just hit into "problem" that built-in sh command type > outputs to stdout when error occurs. I mean it returns non-0 status, > but outputs to stdout! I think stderr has been made exactly for such > purposes and `type' should use it in case of error .. what do you > think? You're right. I will fix it. From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 24 10:35:21 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 052511065708; Mon, 24 Nov 2008 10:35:21 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from itchy.rabson.org (unknown [IPv6:2002:50b1:e8f2:1::143]) by mx1.freebsd.org (Postfix) with ESMTP id ADB0D8FC1A; Mon, 24 Nov 2008 10:35:20 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from [IPv6:2001:470:909f:1:21b:63ff:feb8:5abc] (unknown [IPv6:2001:470:909f:1:21b:63ff:feb8:5abc]) by itchy.rabson.org (Postfix) with ESMTP id 89A3A3FB8; Mon, 24 Nov 2008 10:34:06 +0000 (GMT) Message-Id: <16BCBB6C-2BF4-4007-9A19-9976BEBAAD1E@rabson.org> From: Doug Rabson To: Olivier SMEDTS In-Reply-To: <367b2c980811201141j42977204ne6052000a0d095ab@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Mon, 24 Nov 2008 10:35:19 +0000 References: <20081120134836.2870a827@nebuchadnezzar> <367b2c980811201038s7d2ae03bnf36a6630f36bc188@mail.gmail.com> <367b2c980811201107x7fc859b8yeee0816a37eae470@mail.gmail.com> <367b2c980811201141j42977204ne6052000a0d095ab@mail.gmail.com> X-Mailer: Apple Mail (2.929.2) X-Virus-Scanned: ClamAV 0.92/8669/Mon Nov 24 08:21:48 2008 on itchy.rabson.org X-Virus-Status: Clean Cc: hackers@freebsd.org, current@freebsd.org, Pegasus Mc Cleaft , Pascal Hofstee Subject: Re: build problems with gptzfsboot (AMD64) 8.0-CURRENT 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, 24 Nov 2008 10:35:21 -0000 On 20 Nov 2008, at 19:41, Olivier SMEDTS wrote: > 2008/11/20 Olivier SMEDTS : >> 2008/11/20 Olivier SMEDTS : >>> 2008/11/20 Pascal Hofstee : >>>> On Thu, 20 Nov 2008 01:46:31 -0000 >>>> "Pegasus Mc Cleaft" wrote: >>>> >>>>> Hi everyone, >>>>> >>>>> I am having difficulties rebuilding the world after some >>>>> patches >>>>> were made today. I was wondering if anyone else is experiencing >>>>> the >>>>> same troubles? >>>>> >>>>> ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -Ttext >>>>> 0x0 -o >>>>> gptzfsboot.out /usr/obj/usr/src/sys/boot/i386/gptzfsboot/../btx/ >>>>> lib/crt0.o >>>>> zfsboot.o sio.o gptzfsboot.o ld: gptzfsboot.o: No such file: No >>>>> such >>>>> file or directory *** Error code 1 >>>>> >>>>> Stop in /usr/src/sys/boot/i386/gptzfsboot. >>>>> *** Error code 1 >>>> >>>> I am experiencing the exact same problem with a fresh svn checkout >>> >>> Just my "me too". >>> I did not experience the problem 24 hours ago (after ZFS version 13 >>> update and zfsboot import). >> >> That's it. Seems to work with the following patch : >> >> --- sys/boot/i386/gptzfsboot/Makefile.orig 2008-11-20 >> 19:58:45.000000000 +0100 >> +++ sys/boot/i386/gptzfsboot/Makefile 2008-11-20 >> 20:01:53.000000000 +0100 >> @@ -65,7 +65,7 @@ >> zfsboot.o: ${.CURDIR}/../../zfs/zfsimpl.c >> >> .if ${MACHINE_ARCH} == "amd64" >> -beforedepend gptzfsboot.o: machine >> +beforedepend gptzfsboot.bin: machine >> CLEANFILES+= machine >> machine: >> ln -sf ${.CURDIR}/../../../i386/include machine > > Sorry for replying again to my own post :) > The patch is crap, in fact it just breaks the already broken > conditional. At least I can buildworld on amd64 now (I don't use the > recently introduced gptzfsboot). > > Makefile experts ? I think I fixed this in r185175. Sorry for the inconvenience. From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 24 10:41:24 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 168F11065675 for ; Mon, 24 Nov 2008 10:41:24 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id D09BE8FC12 for ; Mon, 24 Nov 2008 10:41:23 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from PegaPegII (93-152-14-233.daisydsl.managedbroadband.co.uk [93.152.14.233]) (authenticated bits=0) by hercules.mthelicon.com (8.14.3/8.14.2) with ESMTP id mAOAfLN4035221; Mon, 24 Nov 2008 10:41:22 GMT (envelope-from ken@mthelicon.com) Message-ID: <0B3A85C390F2454C95A3BE66FDC95DAE@PegaPegII> From: "Pegasus Mc Cleaft" To: "Doug Rabson" References: <20081120134836.2870a827@nebuchadnezzar><367b2c980811201038s7d2ae03bnf36a6630f36bc188@mail.gmail.com><367b2c980811201107x7fc859b8yeee0816a37eae470@mail.gmail.com><367b2c980811201141j42977204ne6052000a0d095ab@mail.gmail.com> <16BCBB6C-2BF4-4007-9A19-9976BEBAAD1E@rabson.org> In-Reply-To: <16BCBB6C-2BF4-4007-9A19-9976BEBAAD1E@rabson.org> Date: Mon, 24 Nov 2008 10:41:30 -0000 Organization: Feathers MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049 X-Antivirus: avast! (VPS 081123-0, 23/11/2008), Outbound message X-Antivirus-Status: Clean Cc: hackers@freebsd.org Subject: Re: build problems with gptzfsboot (AMD64) 8.0-CURRENT X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pegasus Mc Cleaft List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2008 10:41:24 -0000 ----- Original Message ----- From: "Doug Rabson" To: "Olivier SMEDTS" Cc: ; ; "Pegasus Mc Cleaft" ; "Pascal Hofstee" Sent: Monday, November 24, 2008 10:35 AM Subject: Re: build problems with gptzfsboot (AMD64) 8.0-CURRENT > > On 20 Nov 2008, at 19:41, Olivier SMEDTS wrote: > >> 2008/11/20 Olivier SMEDTS : >>> 2008/11/20 Olivier SMEDTS : >>>> 2008/11/20 Pascal Hofstee : >>>>> On Thu, 20 Nov 2008 01:46:31 -0000 >>>>> "Pegasus Mc Cleaft" wrote: >>>>> >>>>>> Hi everyone, >>>>>> >>>>>> I am having difficulties rebuilding the world after some patches >>>>>> were made today. I was wondering if anyone else is experiencing the >>>>>> same troubles? >>>>>> >>>>>> ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -Ttext 0x0 -o >>>>>> gptzfsboot.out /usr/obj/usr/src/sys/boot/i386/gptzfsboot/../btx/ >>>>>> lib/crt0.o >>>>>> zfsboot.o sio.o gptzfsboot.o ld: gptzfsboot.o: No such file: No such >>>>>> file or directory *** Error code 1 >>>>>> >>>>>> Stop in /usr/src/sys/boot/i386/gptzfsboot. >>>>>> *** Error code 1 >>>>> >>>>> I am experiencing the exact same problem with a fresh svn checkout >>>> >>>> Just my "me too". >>>> I did not experience the problem 24 hours ago (after ZFS version 13 >>>> update and zfsboot import). >>> >>> That's it. Seems to work with the following patch : >>> >>> --- sys/boot/i386/gptzfsboot/Makefile.orig 2008-11-20 >>> 19:58:45.000000000 +0100 >>> +++ sys/boot/i386/gptzfsboot/Makefile 2008-11-20 20:01:53.000000000 >>> +0100 >>> @@ -65,7 +65,7 @@ >>> zfsboot.o: ${.CURDIR}/../../zfs/zfsimpl.c >>> >>> .if ${MACHINE_ARCH} == "amd64" >>> -beforedepend gptzfsboot.o: machine >>> +beforedepend gptzfsboot.bin: machine >>> CLEANFILES+= machine >>> machine: >>> ln -sf ${.CURDIR}/../../../i386/include machine >> >> Sorry for replying again to my own post :) >> The patch is crap, in fact it just breaks the already broken >> conditional. At least I can buildworld on amd64 now (I don't use the >> recently introduced gptzfsboot). >> >> Makefile experts ? > > I think I fixed this in r185175. Sorry for the inconvenience. > Hi Doug, Yes and thank you. I am able to build the world now :> No appologies necessary, I'm just glad it wasent something I did on my machine (The build failure happened exactly at the same time I moved /usr/src and /usr/obj into a seperate zfs.. -Peg From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 24 12:20: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 E45E21065679 for ; Mon, 24 Nov 2008 12:20:09 +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 A08208FC18 for ; Mon, 24 Nov 2008 12:20:09 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L4aQ9-0005P9-Qr for freebsd-hackers@freebsd.org; Mon, 24 Nov 2008 12:20:05 +0000 Received: from 195.208.174.178 ([195.208.174.178]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Nov 2008 12:20:05 +0000 Received: from vadim_nuclight by 195.208.174.178 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Nov 2008 12:20:05 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Vadim Goncharov Date: Mon, 24 Nov 2008 12:19:54 +0000 (UTC) Organization: Nuclear Lightning @ Tomsk, TPU AVTF Hostel Lines: 17 Message-ID: References: <200811240152.13032.ken@mthelicon.com> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 195.208.174.178 X-Comment-To: Pegasus Mc Cleaft User-Agent: slrn/0.9.8.1 (FreeBSD) Sender: news Subject: Re: who on FreeBSD 8.0 - AMD64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vadim_nuclight@mail.ru List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2008 12:20:10 -0000 Hi Pegasus Mc Cleaft! On Mon, 24 Nov 2008 01:52:12 +0000; Pegasus Mc Cleaft wrote about 'who on FreeBSD 8.0 - AMD64': > FreeBSD/amd64 (feathers.peganest.com) (pts/2) > > feathers$ who > XXXXX pts/3 Nov 24 01:47 (XXX.XXX.XXX.XXX) > feathers$ By the way, are there pseudo-terminal names renamed in -CURRENT ? Why? It is more cute to see ttyp0 or simply p0 on FreeBSD, compared to pts/1 on Linux :) -- WBR, Vadim Goncharov. ICQ#166852181 mailto:vadim_nuclight@mail.ru [Moderator of RU.ANTI-ECOLOGY][FreeBSD][http://antigreen.org][LJ:/nuclight] From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 24 12:45: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 C25C9106564A for ; Mon, 24 Nov 2008 12:45:19 +0000 (UTC) (envelope-from rink@rink.nu) Received: from mx1.rink.nu (gloom.rink.nu [213.34.49.2]) by mx1.freebsd.org (Postfix) with ESMTP id 84B7F8FC13 for ; Mon, 24 Nov 2008 12:45:19 +0000 (UTC) (envelope-from rink@rink.nu) Received: from localhost (localhost [127.0.0.1]) by mx1.rink.nu (Postfix) with ESMTP id 6AD436D42B; Mon, 24 Nov 2008 13:27:21 +0100 (CET) X-Virus-Scanned: amavisd-new at rink.nu Received: from mx1.rink.nu ([213.34.49.2]) by localhost (gloom.rink.nu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WKfmk0OY73XQ; Mon, 24 Nov 2008 13:27:18 +0100 (CET) Received: by mx1.rink.nu (Postfix, from userid 1000) id 4A0036D423; Mon, 24 Nov 2008 13:27:18 +0100 (CET) Date: Mon, 24 Nov 2008 13:27:18 +0100 From: Rink Springer To: Vadim Goncharov Message-ID: <20081124122718.GB28709@rink.nu> References: <200811240152.13032.ken@mthelicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: who on FreeBSD 8.0 - AMD64 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, 24 Nov 2008 12:45:19 -0000 On Mon, Nov 24, 2008 at 12:19:54PM +0000, Vadim Goncharov wrote: > By the way, are there pseudo-terminal names renamed in -CURRENT ? Why? Yes, this is the result of the new giant-free TTY layer that was imported a few months ago. Regards, -- Rink P.W. Springer - http://rink.nu "Anyway boys, this is America. Just because you get more votes doesn't mean you win." - Fox Mulder From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 24 15:44: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 1F028106564A for ; Mon, 24 Nov 2008 15:44:16 +0000 (UTC) (envelope-from braulio@solsoft.co.cr) Received: from wbm7.pair.net (wbm7.pair.net [209.68.4.129]) by mx1.freebsd.org (Postfix) with ESMTP id EB7198FC17 for ; Mon, 24 Nov 2008 15:44:15 +0000 (UTC) (envelope-from braulio@solsoft.co.cr) Received: by wbm7.pair.net (Postfix, from userid 65534) id 09E271055F; Mon, 24 Nov 2008 10:44:14 -0500 (EST) Received: from 201.198.34.106 ([201.198.34.106]) (SquirrelMail authenticated user braulio@solsoft.co.cr) by webmail7.pair.com with HTTP; Mon, 24 Nov 2008 09:44:13 -0600 (CST) Message-ID: <47774.201.198.34.106.1227541453.squirrel@webmail7.pair.com> In-Reply-To: References: <4927E659.3010602@kukulies.org> <44979.201.198.34.106.1227489354.squirrel@webmail7.pair.com> <20081124002133.500eec9e@bhuda.mired.org> Date: Mon, 24 Nov 2008 09:44:13 -0600 (CST) From: Braulio =?iso-8859-1?Q?Jos=E9_Solano_Rojas?= To: "Jiawei Ye" User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-hackers@freebsd.org, Mike Meyer Subject: Re: mounting Mac OS .dmg files? 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, 24 Nov 2008 15:44:16 -0000 Hi! On Mon, 24 de Noviembre de 2008, 12:19 am, Jiawei Ye wrote: > On Mon, Nov 24, 2008 at 1:21 PM, Mike Meyer > wrote: > --snip-- >> So while a Darwin (the OS underneath OSX) ABI would be possible - >> though it's not clear how painful because it's not clear how visible >> the MACH APIs are - it's not clear how useful it would be by >> itself. You could run OSX applications that used X11 for the GUI after >> building the appropriate libraries (just like Linux), but those apps >> are probably available native anyway. You couldn't run applications >> that use the various and sundry Mac-specific graphics (among other >> things) frameworks, not without providing code to simulate all the >> calls provided by those frameworks - which are proprietary, and not >> part of Darwin. Which means this project now resembles WINE more than >> the Linux ABI layer. >> >> One open-source project at least try to replicate the frameworks on > top of Windows: > > http://www.cocotron.org/ > > As Mike mentioned this is not a trivial port and requires tweaks to > the target application source as well. So even if one is diligent > enough to get cocotron running on FreeBSD/Linux, the app itself will > have to be modified to run there. Thank you for your answers. This list is always very educative. It seems like it could take years to program a Mac ABI layer. Best regards, B. From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 24 16:23: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 3239E1065673 for ; Mon, 24 Nov 2008 16:23:21 +0000 (UTC) (envelope-from ravi.murty@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.239]) by mx1.freebsd.org (Postfix) with ESMTP id 0B7B48FC0C for ; Mon, 24 Nov 2008 16:23:20 +0000 (UTC) (envelope-from ravi.murty@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2079191rvf.43 for ; Mon, 24 Nov 2008 08:23: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; bh=houRYbTLa+ykwqOgas51jJ5wylkCl+fUcy36ycpgXcU=; b=jd0gKS6UJPOk6b7IAwcyfv5D9HjvvD/z1frsS8+eJ87wxsX5LSAn1/jj4Wkp8O0dVi q5BgNlxo2PHMoj6bw9RHX0Yk8dP1l724tX76fl3fuK43W8Tze4mVnIVhLfmTnmb9dC1f BJr8tYZCgxajKuhtNLM7a/27rLgwPGIXOEUR0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=BqT+MDWFsJ8jmJ7NJTpMQvgsKqJYVKOZCFbMwH5yEO8gg9hG2LYCSv2Sea5YvmJxKT bkTIC1cPfkurqlpXLFDpnQFwFdTpJ9X+52RYvY5E/Og+gg0I+Vv1zXxb+POXN9Okdk4U AAcsduPhL+IGFD1si+WRCIiUSZqHBx8nU7khY= Received: by 10.141.53.20 with SMTP id f20mr1934262rvk.192.1227542396003; Mon, 24 Nov 2008 07:59:56 -0800 (PST) Received: by 10.140.251.14 with HTTP; Mon, 24 Nov 2008 07:59:55 -0800 (PST) Message-ID: <95b10a340811240759gf6eb4e9qd6fd06a92bc3bc63@mail.gmail.com> Date: Mon, 24 Nov 2008 07:59:55 -0800 From: "Ravi Murty" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 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: option pci 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, 24 Nov 2008 16:23:21 -0000 Hello All, I've been trying to turn off option PCI and several other options in the configuration file when I build my 8.0 kernel. For things like "option INET", I see a bunch of link errors and after looking at the head of the tree realized that the latest source code has some of the functions wrapped in ifdef INET and include the proper headers. For option PCI, nexus.c and some of the pci device functionalily call functions that are defined in msi.c which is optional while the files that call these functions are defined "standard". Is there an easy way to cleanly compile the kernel with option pci turned off? Thanks Ravi From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 11:23:37 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 3D387106567A for ; Tue, 25 Nov 2008 11:23:37 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: from web39105.mail.mud.yahoo.com (web39105.mail.mud.yahoo.com [209.191.87.224]) by mx1.freebsd.org (Postfix) with SMTP id F3BB78FC19 for ; Tue, 25 Nov 2008 11:23:36 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: (qmail 69214 invoked by uid 60001); 25 Nov 2008 10:56:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=k7JBxpoTrxzQljPSBx3lioJ8FeGGKx1i4tYh101VkWTQ7SYfFYpslP1hhmhog7G2aZhMceOQM1YEyMltWgYFg0kq+TfT+K3pc1/BuiTGZmGOx3uXWvtfonqWcz17aIPDCfIClJTxCn9TE9BqLmkGUWTkGNRK3tzaYNc1Ju85G8g=; X-YMail-OSG: vGTUawQVM1nmhUeQottyeX2U1EbHLSXwmIVhVWXjQFrNwOB9il4O51th1XCqCP133pHLBJaAnK0avY_Kv0SJWtbt78nqQSL.53ZRhI3c0izym5Yet2wurmqrGJ9jWWkj3dxi3JAWzVI15zU5D9QcW0lrSIs2zy2P6SLtcZfKtHcnmyp6khKVheT4tN3P5IhMv1.x07rbS267gCA- Received: from [78.107.237.16] by web39105.mail.mud.yahoo.com via HTTP; Tue, 25 Nov 2008 02:56:55 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Tue, 25 Nov 2008 02:56:55 -0800 (PST) From: bf To: Tim Kientzle MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <259774.68895.qm@web39105.mail.mud.yahoo.com> X-Mailman-Approved-At: Tue, 25 Nov 2008 12:30:41 +0000 Cc: freebsd-hackers@FreeBSD.org Subject: lzma compression/decompression in bsdtar/libarchive? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf2006a@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2008 11:23:37 -0000 Tim: There is good news: Igor Pavlov, the primary author of the original LZMA SDK, has placed the latest version, available at: http://downloads.sourceforge.net/sevenzip/lzma461.tar.bz2 into the public domain. It's a mix of ANSI-C and C++ code, and so it would seem suitable for adoption into the FreeBSD source tree in some form that could be integrated with bsdtar/libarchive. What do you think? It would be *really* nice to have this, since in many ways it is better than bzip2, and many projects have started to distribute code in lzma-compressed tarballs. It could help us save disk space and network throughput, and help us with the current problems in shoehorning releases onto as few cds as possible, etc. Regards, b. --- On Thu, 3/6/08, bf wrote: > From: bf > Subject: Re: bsdtar/libarchive > To: "Tim Kientzle" > Date: Thursday, March 6, 2008, 1:52 PM > Yes, the LZMA implementations that I have seen are > LGPL, CPL, and/or GPL: > > http://www.7-zip.org/sdk.html > http://tukaani.org/lzma/ > > I will inquire if anyone knows of a BSD-licensed > alternative. I was hoping that portmgr would make > some minimal changes to encourage people to take > advantage of the LZMA port distfiles that are now > available, but it would be nice to have it available > in the base, too. > > Regards, > > bf > > > > --- Tim Kientzle wrote: > > > This would first require incorporating a > > BSD-licensed LZMA > > library into the base system. Last I checked, the > > LZMA > > code was all GPL, but that may have changed. (I > > seem to recall finding suitable decompression code > > at one point, but that's not sufficient for this > > type > > of change.) > > > > After that hurdle, incorporating LZMA support into > > libarchive is pretty straightforward. Once > > libarchive > > supports it, bsdtar gets it pretty much for free. > > > > Tim > > > > bf wrote: > > > Perhaps you have some comments or suggestions?: > > > > > > > > > > > > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=ports/121413 > > > > > > > > > Regards, > > > bf > > > From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 15:06: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 2013C106564A for ; Tue, 25 Nov 2008 15:06:28 +0000 (UTC) (envelope-from laladelausanne@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30]) by mx1.freebsd.org (Postfix) with ESMTP id CC07A8FC18 for ; Tue, 25 Nov 2008 15:06:27 +0000 (UTC) (envelope-from laladelausanne@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1069918ywe.13 for ; Tue, 25 Nov 2008 07:06:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=TCEZ6Br7skL0YhW6KCuMt89R6begcPBEtYQofxCmzco=; b=B28d/aWgEAn+VVP9kOhpxCVycIFlpztDbsakjKzYKA6xEv9J7xy0saGffxHoXUb3s/ ZEFz+Dl7zLKY6MNJ3IHTPpO2e9VSRIqL+DfDFACVzWq5xIrkboVT1ndylm4Rjwv02raA /kq5uwCAKlevJ4fQOyZuoPM3fu8LrvJm91akU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=s4ZEVshRWV8KoI9rwfjLAKUcXvUfn34LavJRWSJa2N2J6MDvvOl2WsUiumWmk6q1Lv qHGt9O4PEI1dvczxmY+Xf2RgvI/fuEB/mjacvzU2A1vbqZVPEF0AR4d8UrOTFpjZKn5v FVoOjSbS7pqtOvT7qYPgW3BVnk1khjdwEDvdM= Received: by 10.86.62.3 with SMTP id k3mr3006157fga.46.1227622856743; Tue, 25 Nov 2008 06:20:56 -0800 (PST) Received: from nslpc5.epfl.ch (nslpc5.epfl.ch [128.178.149.20]) by mx.google.com with ESMTPS id e11sm7457220fga.9.2008.11.25.06.20.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 Nov 2008 06:20:55 -0800 (PST) Message-Id: <711D7381-D852-4B6B-991A-84BA6DEFB679@gmail.com> From: =?UTF-8?Q?Nikola_Kne=C5=BEevi=C4=87?= To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Tue, 25 Nov 2008 15:20:54 +0100 X-Mailer: Apple Mail (2.929.2) Subject: How to build kernel module spread on subdirectories? 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, 25 Nov 2008 15:06:28 -0000 Hi, I'm playing with the Click Modular router on my FreeBSD box. Out of curiosity, I decided to switch its GNU makefile to BSD style. I managed to do it, but I would like to polish it a bit more (and learn some things along). Old GNUmakefile relies heavily on OBJS and *_OBJS, as it fills these variables. I would like to switch to using SRCS. I managed to do it partially, for the files which are in the ${.CURDIR}. Click has a certain dir hierarchy of elements. First, it builds its elements, where each group of elements is in a different directory. Then it places all generated .o files in ${.CURDIR}. Finally, it links the whole shebang. Element building is done in another Makefile, which is generated by a script. (Main) GNUmakefile calls this script, then it includes that makefile via '-include'. The script traverses the dir hierarchy, and based on some variables, creates a Makefile which outlines like this: # subdir0 ELEMENT_OBJS__x= \ file0.o \ file1.o #subdir1 ELEMENT_OBJS__y= \ file2.o \ file3.o \ ... ELEMENT_OBJS= \ $(ELEMENT_OBJS__x) \ $(ELEMENT_OBJS__y) $(ELEMENT_OBJS__x): %.o: subdir0/%.cc $(call cxxcompile,-c $< -o $@,CXX) $(ELEMENT_OBJS__y): %.o: subdir1/%.cc $(call cxxcompile,-c $< -o $@,CXX) I'm interested in how can I transfer this into BSD-style makefile? I tried to move from OBJS into SRCS (main BSDmakefile now has: SRCS+=$ (ELEMENT_SRCS)), by using something like: # subdir0 ELEMENT_SRCS__x =\ subdir1/file0.cc \ subdir1/file1.cc ... But this fails during the linking phase, because the linker is called with subdir1/file0.o, instead of just file0.o. To make something clear, I didn't just rewrite the GNUmakefile to BSDmakefile, I also followed some of the logic used to build kernel modules. I'm including bsd.kmod.ko, list sources in SRCS, don't have any explicit rule to build .o out of .cc/.c. There is no all: target, as well. Thanks, Nikola From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 16:53:43 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 14F5C1065704 for ; Tue, 25 Nov 2008 16:53:43 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from arcturus.maxiscale.com (arcturus.maxiscale.com [76.231.178.136]) by mx1.freebsd.org (Postfix) with ESMTP id C0DE58FC1D for ; Tue, 25 Nov 2008 16:53:42 +0000 (UTC) (envelope-from psteele@maxiscale.com) X-ASG-Debug-ID: 1227632001-2bb000000000-P5m3U7 X-Barracuda-URL: http://10.100.1.25:8000/cgi-bin/mark.cgi Received: from polaris.maxiscale.com (localhost [127.0.0.1]) by arcturus.maxiscale.com (Spam Firewall) with ESMTP id 9AEF530BEF for ; Tue, 25 Nov 2008 08:53:21 -0800 (PST) Received: from polaris.maxiscale.com (polaris.maxiscale.com [10.100.1.24]) by arcturus.maxiscale.com with ESMTP id Q4c0wIOI6XOpTYbT for ; Tue, 25 Nov 2008 08:53:21 -0800 (PST) X-ASG-Whitelist: Client X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 X-ASG-Orig-Subj: Hot swapping SATA drives Date: Tue, 25 Nov 2008 08:53:20 -0800 Message-ID: <2ACA3DE8F9758A48B8BE2C7A847F91F240CD5E@polaris.maxiscale.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Hot swapping SATA drives Thread-Index: AclPHlImUwTanoxHS9GlWHcygFWntQ== From: "Peter Steele" To: X-Barracuda-Connect: polaris.maxiscale.com[10.100.1.24] X-Barracuda-Start-Time: 1227632003 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at maxiscale.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Hot swapping SATA drives 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, 25 Nov 2008 16:53:43 -0000 I've done some searches regarding FreeBSD's 7 support for the hot swapping of SATA drives and the general consensus appears that it *is* supported, but not necessarily with all drive models/brands. In our own testing, we've discovered that our Seagate 250GB drives cannot be hot swapped in our servers. The system appears to sense when they are removed but not when they are reinserted, and we've had numerous panics experimenting with them. =20 We also have some Western Digital drives, and these fare much better. FreeBSD appears to recognize when these drives are removed and inserted. If we have a WD configured as part of a geom mirror, the geom driver automatically re-inserts a previously configured drive as soon as it is plugged in. It isn't even necessary to do an atacontrol attach/detach. =20 However, even with the Western Digital drive, there are issues. In particular, if there are any mounted file systems on a drive when it is removed, attempting to unmount the file systems after it has been removed usually leads to a kernel panic, not necessarily immediately but shortly afterwards. I've tried the latest 7.0 patch level, p6, and the panics appear to have been fixed, but there are still problems. =20 If a drive dies on us, we want to be able to close existing file handles and allow the new drive to take over. But what we've experienced is that even a "umount -f" will not umount a file system if the drive has been pulled. And as I type this, I have a system in the lab that is completely frozen after a drive pull test. No panic, no reboot, it's just hung up solid. =20 Why does FreeBSD panic/freeze instead of simply issuing an I/O error, and why is there no way to force open file handles to close when a drive is pulled. The implication is that if a drive was to suddenly die on a live system, even if we have gmirror configured for HA, the system will likely panic or freeze and we'll have to reboot. We have software that detects when a drive disappears, but if the system is going to end up having to be rebooted, our detection code isn't going to do us much good. =20 Is there any solution to this? Can a server be built around FreeBSD that supports hot swappable SATA drives? =20 From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 17:05: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 164031065673 for ; Tue, 25 Nov 2008 17:05:30 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id C92DE8FC1B for ; Tue, 25 Nov 2008 17:05:29 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.123.2.178] (p53.kientzle.com [66.166.149.53]) by kientzle.com (8.12.9/8.12.9) with ESMTP id mAPH5Stv062191; Tue, 25 Nov 2008 09:05:29 -0800 (PST) (envelope-from kientzle@freebsd.org) Message-ID: <492C3053.1030802@freebsd.org> Date: Tue, 25 Nov 2008 09:05:23 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: bf2006a@yahoo.com References: <259774.68895.qm@web39105.mail.mud.yahoo.com> In-Reply-To: <259774.68895.qm@web39105.mail.mud.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: lzma compression/decompression in bsdtar/libarchive? 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, 25 Nov 2008 17:05:30 -0000 Where is the announcement of this change? I haven't downloaded the code yet, but the sourceforge project pages all still say GPL. Tim bf wrote: > Tim: > > There is good news: Igor Pavlov, the primary author of the original LZMA > SDK, has placed the latest version, available at: > > http://downloads.sourceforge.net/sevenzip/lzma461.tar.bz2 > > into the public domain. It's a mix of ANSI-C and C++ code, and so it > would seem suitable for adoption into the FreeBSD source tree in some > form that could be integrated with bsdtar/libarchive. What do you > think? It would be *really* nice to have this, since in many ways > it is better than bzip2, and many projects have started to distribute > code in lzma-compressed tarballs. It could help us save disk space > and network throughput, and help us with the current problems in > shoehorning releases onto as few cds as possible, etc. > > Regards, > b. > > > > --- On Thu, 3/6/08, bf wrote: > > >>From: bf >>Subject: Re: bsdtar/libarchive >>To: "Tim Kientzle" >>Date: Thursday, March 6, 2008, 1:52 PM >>Yes, the LZMA implementations that I have seen are >>LGPL, CPL, and/or GPL: >> >>http://www.7-zip.org/sdk.html >>http://tukaani.org/lzma/ >> >>I will inquire if anyone knows of a BSD-licensed >>alternative. I was hoping that portmgr would make >>some minimal changes to encourage people to take >>advantage of the LZMA port distfiles that are now >>available, but it would be nice to have it available >>in the base, too. >> >>Regards, >> >>bf >> >> >> >>--- Tim Kientzle wrote: >> >> >>>This would first require incorporating a >>>BSD-licensed LZMA >>>library into the base system. Last I checked, the >>>LZMA >>>code was all GPL, but that may have changed. (I >>>seem to recall finding suitable decompression code >>>at one point, but that's not sufficient for this >>>type >>>of change.) >>> >>>After that hurdle, incorporating LZMA support into >>>libarchive is pretty straightforward. Once >>>libarchive >>>supports it, bsdtar gets it pretty much for free. >>> >>>Tim >>> >>>bf wrote: >>> >>>>Perhaps you have some comments or suggestions?: >>>> >>>> >>>> >>> >>http://www.FreeBSD.org/cgi/query-pr.cgi?pr=ports/121413 >> >>>> >>>>Regards, >>>>bf >>>> > > > > > > > From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 17:29: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 7F0441065673 for ; Tue, 25 Nov 2008 17:29:39 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from smtp.sd73.bc.ca (smtp.sd73.bc.ca [142.24.13.140]) by mx1.freebsd.org (Postfix) with ESMTP id 675738FC0C for ; Tue, 25 Nov 2008 17:29:39 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id E0F621A000B18 for ; Tue, 25 Nov 2008 09:29:38 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at smtp.sd73.bc.ca Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (smtp.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mkg8Cy+68T5j for ; Tue, 25 Nov 2008 09:29:38 -0800 (PST) Received: from coal (unknown [192.168.0.10]) by smtp.sd73.bc.ca (Postfix) with ESMTP id 0BF261A000B24 for ; Tue, 25 Nov 2008 09:29:38 -0800 (PST) From: Freddie Cash To: freebsd-hackers@freebsd.org Date: Tue, 25 Nov 2008 09:29:37 -0800 User-Agent: KMail/1.9.9 References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CD5E@polaris.maxiscale.com> In-Reply-To: <2ACA3DE8F9758A48B8BE2C7A847F91F240CD5E@polaris.maxiscale.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811250929.37929.fjwcash@gmail.com> Subject: Re: Hot swapping SATA drives 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, 25 Nov 2008 17:29:39 -0000 On November 25, 2008 08:53 am Peter Steele wrote: > Is there any solution to this? Can a server be built around FreeBSD > that supports hot swappable SATA drives? Use a real hot-swappable drive plane, attached to a good SATA controller that handles hot-swap in hardware? :) Use ZFS, which seems to work better with drives being added/removed than ata(4)? :) Sorry, the few systems we have running FreeBSD either have single IDE drives, single SATA drives, or 12-24 SATA drives attached to a hardware hot-swappable drive-plane connected to 3Ware 9550/9650 RAID controllers. The single-drive systems obviously can't do swapping, and the rest work without issues. -- Freddie Cash fjwcash@gmail.com From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 17:38:20 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 135321065673 for ; Tue, 25 Nov 2008 17:38:20 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.184]) by mx1.freebsd.org (Postfix) with ESMTP id A1ABD8FC12 for ; Tue, 25 Nov 2008 17:38:19 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: by gv-out-0910.google.com with SMTP id n8so32310gve.39 for ; Tue, 25 Nov 2008 09:38:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:reply-to:mail-followup-to:mime-version:content-type :content-disposition:user-agent; bh=tlhR6TBiU+UQ1WG1p+TQBHBNSmmC/uITmxG1dseRYPI=; b=qCAYdY/AHZAwdt7YFAzqNg5dervmfo6vfJtiXtFTUtNcdVcZaFGAoULfwcnhHJ7m9d Lo9AFT/KJOFcvovQqViNPPBUy6InIcRigBpD9mhnyxBYozXFfvMeEYLt9V61KdVe38PR Nq+Xz71YAI90lm+7dSk6fMubDlAHr1wkS5rRU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:reply-to:mail-followup-to :mime-version:content-type:content-disposition:user-agent; b=deiZY7/sIDqjOk/ybei/lXVZFj+i3ThOriTqzQNpns9axkuPoe0BvkrzAYK1gGaY3N d4lcjBMeSl1J/UpKnVTF+JR5+eCBcNPxvp1fYk1TbJ+P5w2CTMU6pwgQc8ZY8I83xJ1k n0e+wf2Xost2ok11tjJKBC4QuUQ0inrvxjqy4= Received: by 10.86.79.19 with SMTP id c19mr3120759fgb.66.1227634698350; Tue, 25 Nov 2008 09:38:18 -0800 (PST) Received: from localhost (BAJ43d7.baj.pppool.de [77.137.67.215]) by mx.google.com with ESMTPS id 4sm7626696fgg.4.2008.11.25.09.38.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 Nov 2008 09:38:17 -0800 (PST) Date: Tue, 25 Nov 2008 18:37:50 +0100 From: Alexej Sokolov To: freebsd-hackers@freebsd.org Message-ID: <20081125173750.GA4131@debian.samsung.router> Mail-Followup-To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Subject: copy, copyin, copyout X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexej Sokolov List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2008 17:38:20 -0000 Hello, could anyone please explain to me the difference between functions: copystr() and copyinstr() ? For i386 copyinstr is implemented in assembler. I can not read the assembler code very well. I tried to allocate a memory in space of user process using vm_map_find and then with copystr() I could copy data between user and kernel memory. copystr() seemed to be able to do the same what copyinstr do. % uname -rp 7.0-RELEASE-p5 i386 -- Alexej Sokolov From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 17:41: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 4A11B106564A; Tue, 25 Nov 2008 17:41:35 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id 19D918FC1D; Tue, 25 Nov 2008 17:41:34 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (HPooka@thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.3/8.14.3) with ESMTP id mAPHP91a020656; Tue, 25 Nov 2008 11:25:09 -0600 (CST) (envelope-from scf@FreeBSD.org) Date: Tue, 25 Nov 2008 11:25:09 -0600 (CST) From: "Sean C. Farley" To: Tim Kientzle In-Reply-To: <492C3053.1030802@freebsd.org> Message-ID: References: <259774.68895.qm@web39105.mail.mud.yahoo.com> <492C3053.1030802@freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-4.4 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farley.org Cc: bf2006a@yahoo.com, freebsd-hackers@FreeBSD.org Subject: Re: lzma compression/decompression in bsdtar/libarchive? 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, 25 Nov 2008 17:41:35 -0000 On Tue, 25 Nov 2008, Tim Kientzle wrote: > Where is the announcement of this change? > > I haven't downloaded the code yet, but the > sourceforge project pages all still say GPL. It is on the SDK page: http://www.7-zip.org/sdk.html > bf wrote: >> Tim: >> >> There is good news: Igor Pavlov, the primary author of the original >> LZMA SDK, has placed the latest version, available at: >> >> http://downloads.sourceforge.net/sevenzip/lzma461.tar.bz2 >> >> into the public domain. It's a mix of ANSI-C and C++ code, and so it >> would seem suitable for adoption into the FreeBSD source tree in some >> form that could be integrated with bsdtar/libarchive. What do you >> think? It would be *really* nice to have this, since in many ways it >> is better than bzip2, and many projects have started to distribute >> code in lzma-compressed tarballs. It could help us save disk space >> and network throughput, and help us with the current problems in >> shoehorning releases onto as few cds as possible, etc. *snip* Sean -- scf@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 17:55: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 B25F4106564A for ; Tue, 25 Nov 2008 17:55:50 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by mx1.freebsd.org (Postfix) with ESMTP id 4D7E38FC14 for ; Tue, 25 Nov 2008 17:55:50 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-058-162.pools.arcor-ip.net [88.66.58.162]) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis) id 0MKwh2-1L528a2edj-0004g3; Tue, 25 Nov 2008 18:55:48 +0100 Received: (qmail 89587 invoked from network); 25 Nov 2008 17:55:46 -0000 Received: from fbsd8.laiers.local (192.168.4.151) by router.laiers.local with SMTP; 25 Nov 2008 17:55:46 -0000 From: Max Laier Organization: FreeBSD To: freebsd-hackers@freebsd.org, Alexej Sokolov Date: Tue, 25 Nov 2008 18:55:44 +0100 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; i386; ; ) References: <20081125173750.GA4131@debian.samsung.router> In-Reply-To: <20081125173750.GA4131@debian.samsung.router> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811251855.44853.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1+Xf/s30l84MahS9LLOOqdT0yEYPQEx3d/Qofl zltRoOgIDCEXSPjZgCxC8rL1TbSRrKxbsmRfG/FESEY7LfNWoo LICOkik40D5GbfoVllPiA== Cc: Subject: Re: copy, copyin, copyout 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, 25 Nov 2008 17:55:50 -0000 On Tuesday 25 November 2008 18:37:50 Alexej Sokolov wrote: > Hello, > could anyone please explain to me the difference between functions: > copystr() and copyinstr() ? > > For i386 copyinstr is implemented in assembler. I can not read > the assembler code very well. > > I tried to allocate a memory in space of user process using vm_map_find > and then with copystr() I could copy data between user and kernel > memory. copystr() seemed to be able to do the same what copyinstr do. You might get lucky with copystr() if the user page is already resident, but if you page fault copystr() will kill the kernel. copyinstr() handles page faults. -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 18:02: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 E168E1065675 for ; Tue, 25 Nov 2008 18:02:26 +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 6D6F58FC1B for ; Tue, 25 Nov 2008 18:02:26 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L52Ey-0001DZ-4a for freebsd-hackers@freebsd.org; Tue, 25 Nov 2008 18:02:24 +0000 Received: from 93-138-72-174.adsl.net.t-com.hr ([93.138.72.174]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Nov 2008 18:02:24 +0000 Received: from ivoras by 93-138-72-174.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Nov 2008 18:02:24 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Tue, 25 Nov 2008 19:02:02 +0100 Lines: 49 Message-ID: References: <259774.68895.qm@web39105.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0906BFF8D1AC19451A7DE081" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 93-138-72-174.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) In-Reply-To: <259774.68895.qm@web39105.mail.mud.yahoo.com> X-Enigmail-Version: 0.95.7 Sender: news Subject: Re: lzma compression/decompression in bsdtar/libarchive? 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, 25 Nov 2008 18:02:27 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0906BFF8D1AC19451A7DE081 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable bf wrote: > Tim: >=20 > There is good news: Igor Pavlov, the primary author of the original LZM= A > SDK, has placed the latest version, available at: >=20 > http://downloads.sourceforge.net/sevenzip/lzma461.tar.bz2 >=20 > into the public domain. It's a mix of ANSI-C and C++ code, and so it > would seem suitable for adoption into the FreeBSD source tree in some > form that could be integrated with bsdtar/libarchive. What do you=20 > think? It would be *really* nice to have this, since in many ways > it is better than bzip2, and many projects have started to distribute > code in lzma-compressed tarballs. It could help us save disk space > and network throughput, and help us with the current problems in=20 > shoehorning releases onto as few cds as possible, etc. How useful would LZMA be without supporting the .7z file format? Probably not at all, since there isn't a gzip-like file format or wrapper that supports LZMA. Since .7z supports a lot of compression formats and options (unfortunatly saving unix ownership and mode attributes isn't one of them so be careful there!) it would probably be easier to just import p7z - and that's probably out of the question. It's available in the ports just fine. --------------enig0906BFF8D1AC19451A7DE081 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.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkksPaQACgkQldnAQVacBcjJxACgmRBxCKVtadUtczpd8IY4yaU9 +NoAoIR6nyD8K81UC1xzYvwUp53duHZg =DfHr -----END PGP SIGNATURE----- --------------enig0906BFF8D1AC19451A7DE081-- From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 18:26:58 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 BC7BF106564A for ; Tue, 25 Nov 2008 18:26:58 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.189]) by mx1.freebsd.org (Postfix) with ESMTP id 4E4EB8FC0C for ; Tue, 25 Nov 2008 18:26:58 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: by gv-out-0910.google.com with SMTP id n8so45014gve.39 for ; Tue, 25 Nov 2008 10:26:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:reply-to:mail-followup-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=g+fnkmfcJvimqqHEjQejYKzcO/UKvMQChEKb/cebGos=; b=Pog9Qoa6L0dPHl8d1EMrw5DBtXjkZuq2ERY9xtwiz0xOkakmf+XnHsoFWksa4+XcjX X/4iH70iVLCfXeHspSU24LMIGXjLgjErXKMFFJAMi5F8xld9qFXiySqGgglULGLvYPh6 d1w9ZfZ+Y/+2WrKkSLbK7Nr8hv09yq1Tr7iNU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; b=T5sGr9O9b86FT49lNlRLjRZ5DzuSsi62qumRSsg+QOFgNkB1UUqdbSVKEAzCUFECD3 /5X/o9LNWplvinnz2vaqnT97X8KSvQx7y6Mm4PKrY9Q7zXmTevMjpb3h8X49n3WYgWXA M5bpI6DtrBvASGw8RvQx2lR+x6758GBKQZdvs= Received: by 10.103.121.19 with SMTP id y19mr1726767mum.56.1227637616992; Tue, 25 Nov 2008 10:26:56 -0800 (PST) Received: from localhost (BAJ43d7.baj.pppool.de [77.137.67.215]) by mx.google.com with ESMTPS id j2sm8134593mue.35.2008.11.25.10.26.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 Nov 2008 10:26:56 -0800 (PST) Date: Tue, 25 Nov 2008 19:26:27 +0100 From: Alexej Sokolov To: freebsd-hackers@freebsd.org Message-ID: <20081125182627.GA4223@debian.samsung.router> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20081125173750.GA4131@debian.samsung.router> <200811251855.44853.max@love2party.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <200811251855.44853.max@love2party.net> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: copy, copyin, copyout X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexej Sokolov List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2008 18:26:58 -0000 On Tue, Nov 25, 2008 at 06:55:21PM +0100, Max Laier wrote: > On Tuesday 25 November 2008 18:37:50 Alexej Sokolov wrote: > > Hello, > > could anyone please explain to me the difference between functions: > > copystr() and copyinstr() ? > > > > For i386 copyinstr is implemented in assembler. I can not read > > the assembler code very well. > > > > I tried to allocate a memory in space of user process using vm_map_find > > and then with copystr() I could copy data between user and kernel > > memory. copystr() seemed to be able to do the same what copyinstr do. > > You might get lucky with copystr() if the user page is already resident, but > if you page fault copystr() will kill the kernel. copyinstr() handles page > faults. Thanks a lot! I was lucky because I wired allocated pages before. > > -- > /"\ Best regards, | mlaier@freebsd.org > \ / Max Laier | ICQ #67774661 > X http://pf4freebsd.love2party.net/ | mlaier@EFnet > / \ ASCII Ribbon Campaign | Against HTML Mail and News -- Alexej Sokolov From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 18:56:25 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 A8002106564A for ; Tue, 25 Nov 2008 18:56:25 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: from web39102.mail.mud.yahoo.com (web39102.mail.mud.yahoo.com [209.191.86.253]) by mx1.freebsd.org (Postfix) with SMTP id 721F18FC0C for ; Tue, 25 Nov 2008 18:56:25 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: (qmail 1708 invoked by uid 60001); 25 Nov 2008 18:56:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=XhqS++YSfPTPDQKnxFXAFZXGNg7glR7DpqkthAy+cuvr/pR4FouD0XzVs4Gc//eKYK09Z+48kfl1aXnQlcyk+HucdcOCAi5U21Qn7uZRKILZSwYlMh45+vA7obTkQFVms1zHEGMdL4ciMN7dPde0VpgdzHF5sq3FEl+1DuIbjzU=; X-YMail-OSG: b1orZAcVM1nRnmf1mWNaTT73Yb8rLAcnKnoxu.tR05aGy6z7_m17Kp3KSi9qQ242TJJsLVcfM.rcKpOVC6FkM5SMUk.JChiWUa5n5Vl2ph1TDzQ3ed5LPqsO_Kcg2gp2TpumwA-- Received: from [71.233.52.32] by web39102.mail.mud.yahoo.com via HTTP; Tue, 25 Nov 2008 10:56:24 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Tue, 25 Nov 2008 10:56:24 -0800 (PST) From: bf To: ivoras@FreeBSD.org, freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <917783.1650.qm@web39102.mail.mud.yahoo.com> X-Mailman-Approved-At: Tue, 25 Nov 2008 19:23:09 +0000 Cc: Subject: Re: lzma compression/decompression in bsdtar/libarchive? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf2006a@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2008 18:56:25 -0000 > How useful would LZMA be without supporting the .7z file format? > Probably not at all, since there isn't a gzip-like file format or > wrapper that supports LZMA. ?? Have you looked at this code? Yes, there is: there is an "LZMA compressed file format" and the 7z file format, both of which support LZMA. The former format has been widely adopted by people who distribute lzma-compressed tarballs, especially GNU-related projects that use the lzmautils port. Some projects, like GNU coreutils, no longer distribute the latest versions of their software in bzip2-compressed tarballs. > Since .7z supports a lot of compression formats and options > (unfortunatly saving unix ownership and mode attributes isn't one of > them so be careful there!) it would probably be easier to just import > p7z - and that's probably out of the question. It's available in the > ports just fine. I don't see why the 7z file format couldn't be supported, if that's considered desirable. But it's certainly not *necessary* to do so in order to derive some benefit from lzma compression. It seems to me that importing some form of the smaller lzma sdk would be easier than importing the whole of p7z, which probably isn't necessary in any case. Both the lzma sdk and p7z are available in ports, but they haven't been exploited in ports or the base system. If there is an efficient, integrated lzma (de)compression engine in libarchive, it is almost certain to be more widely used, and that would probably benefit a lot of people. It's the same rationale for having compress, zip, gzip, and bzip2 forms of compression in the base system, although they are also available from ports. Regards, b. From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 19:42: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 B5FE11065673 for ; Tue, 25 Nov 2008 19:42:08 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from arcturus.maxiscale.com (arcturus.maxiscale.com [76.231.178.136]) by mx1.freebsd.org (Postfix) with ESMTP id 916F18FC17 for ; Tue, 25 Nov 2008 19:42:08 +0000 (UTC) (envelope-from psteele@maxiscale.com) X-ASG-Debug-ID: 1227642126-162200040000-P5m3U7 X-Barracuda-URL: http://10.100.1.25:8000/cgi-bin/mark.cgi Received: from polaris.maxiscale.com (localhost [127.0.0.1]) by arcturus.maxiscale.com (Spam Firewall) with ESMTP id 500DC30DBC for ; Tue, 25 Nov 2008 11:42:07 -0800 (PST) Received: from polaris.maxiscale.com (polaris.maxiscale.com [10.100.1.24]) by arcturus.maxiscale.com with ESMTP id AhBlsRCfK5feK8D5 for ; Tue, 25 Nov 2008 11:42:06 -0800 (PST) X-ASG-Whitelist: Client X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-ASG-Orig-Subj: RE: Hot swapping SATA drives MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 25 Nov 2008 11:42:05 -0800 Message-ID: <2ACA3DE8F9758A48B8BE2C7A847F91F240CD9D@polaris.maxiscale.com> In-Reply-To: <200811250929.37929.fjwcash@gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Hot swapping SATA drives Thread-Index: AclPI5uvjDuybpv4Q5eTy7lnw91/ewAEazWQ References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CD5E@polaris.maxiscale.com> <200811250929.37929.fjwcash@gmail.com> From: "Peter Steele" To: X-Barracuda-Connect: polaris.maxiscale.com[10.100.1.24] X-Barracuda-Start-Time: 1227642127 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at maxiscale.com Subject: RE: Hot swapping SATA drives 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, 25 Nov 2008 19:42:08 -0000 >Use a real hot-swappable drive plane, attached to a good SATA controller=20 >that handles hot-swap in hardware? :) > >Use ZFS, which seems to work better with drives being added/removed than=20 >ata(4)? :) > >Sorry, the few systems we have running FreeBSD either have single IDE=20 >drives, single SATA drives, or 12-24 SATA drives attached to a hardware >hot-swappable drive-plane connected to 3Ware 9550/9650 RAID controllers. =20 >The single-drive systems obviously can't do swapping, and the rest work >without issues. I should further clarified that we are running 4-drive systems, with drive sizes ranging from 250GB-1TB. These drives are not in a RAID cluster and we do not want them to be. We do need the drives to be hot swappable though. I'll contact 3Ware and go from there. Thanks for the reply. From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 20:12: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 013011065674 for ; Tue, 25 Nov 2008 20:12:38 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id 80A388FC16 for ; Tue, 25 Nov 2008 20:12:37 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so67025fgb.35 for ; Tue, 25 Nov 2008 12:12:36 -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=aPzm7mGMnB1BA0vBWrkrjvKQVBcusyd3XXBQk5sZHuo=; b=aXXpkkx9tHQc1pJ0FCfj3pjwH13sz9Gt87FUuOAFYFPJSnm+MlDEd8GdYepSWImqD1 xf0mMWB1fB5D9byuEjbCyJXL26decSkpMiZ5tTWtYAWmQ0ekHI2wfAGZvyS2zZkJWkGh MOkcnQa/WVcSEgFaT3oDOD7B7U34sfL86QrZo= 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=G0nWcJS95pVoym/f2HX7QVOjkqu/eADzUWCSWVtSPurB+1VF/sYjwtFxeimwP3I/fq n+9anJBKLqprTxmNfq4rh0v81UfPsna3hyVqQB8jOIHqn3JSq8DAAGjMF7bvYMaDmEHw tpo3CubgLLsL3Kk1ob05KjKW6pY/T1b4zapCQ= Received: by 10.181.206.15 with SMTP id i15mr944395bkq.32.1227642069730; Tue, 25 Nov 2008 11:41:09 -0800 (PST) Received: by 10.181.58.1 with HTTP; Tue, 25 Nov 2008 11:41:09 -0800 (PST) Message-ID: <9bbcef730811251141w63ad793as6efac3e7156bc2ef@mail.gmail.com> Date: Tue, 25 Nov 2008 20:41:09 +0100 From: "Ivan Voras" Sender: ivoras@gmail.com To: bf2006a@yahoo.com In-Reply-To: <917783.1650.qm@web39102.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <917783.1650.qm@web39102.mail.mud.yahoo.com> X-Google-Sender-Auth: e28c209a887645d5 Cc: freebsd-hackers@freebsd.org Subject: Re: lzma compression/decompression in bsdtar/libarchive? 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, 25 Nov 2008 20:12:38 -0000 2008/11/25 bf : >> How useful would LZMA be without supporting the .7z file format? >> Probably not at all, since there isn't a gzip-like file format or >> wrapper that supports LZMA. > > ?? Have you looked at this code? Yes, there is: there is an "LZMA > compressed file format" and the 7z file format, both of which support > LZMA. The former format has been widely adopted by people who distribute > lzma-compressed tarballs, especially GNU-related projects that use the > lzmautils port. Some projects, like GNU coreutils, no longer distribute > the latest versions of their software in bzip2-compressed tarballs. That's interesting - I've never seen an .lzma file "in the wild". But there they are: http://ftp.gnu.org/gnu/coreutils/ [ ] coreutils-6.12.tar.gz 01-Jun-2008 05:03 8.6M [ ] coreutils-6.12.tar.lzma 01-Jun-2008 05:04 3.6M And there's a compressor in ports: archivers/lzma From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 21:05: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 19648106568C for ; Tue, 25 Nov 2008 21:05:32 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from www.sonnenberger.org (www.ostsee-abc.de [62.206.222.50]) by mx1.freebsd.org (Postfix) with ESMTP id CE4178FC1B for ; Tue, 25 Nov 2008 21:05:28 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (www.sonnenberger.org [192.168.1.10]) by www.sonnenberger.org (Postfix) with ESMTP id 6CDB9667C2 for ; Tue, 25 Nov 2008 22:05:26 +0100 (CET) Received: by britannica.bec.de (Postfix, from userid 1000) id 58AB28DC51; Tue, 25 Nov 2008 22:05:27 +0100 (CET) Date: Tue, 25 Nov 2008 22:05:27 +0100 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20081125210526.GB9737@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <917783.1650.qm@web39102.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <917783.1650.qm@web39102.mail.mud.yahoo.com> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: lzma compression/decompression in bsdtar/libarchive? 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, 25 Nov 2008 21:05:32 -0000 On Tue, Nov 25, 2008 at 10:56:24AM -0800, bf wrote: > ?? Have you looked at this code? Yes, there is: there is an "LZMA > compressed file format" and the 7z file format, both of which support > LZMA. The former format has been widely adopted by people who distribute > lzma-compressed tarballs, especially GNU-related projects that use the > lzmautils port. Some projects, like GNU coreutils, no longer distribute > the latest versions of their software in bzip2-compressed tarballs. lzma files in the current form are a major PITA. The format doesn't have a proper header and therefore is not really autodetectable. Joerg From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 20:51: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 C84901065678 for ; Tue, 25 Nov 2008 20:51:33 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: from web39107.mail.mud.yahoo.com (web39107.mail.mud.yahoo.com [209.191.87.226]) by mx1.freebsd.org (Postfix) with SMTP id 99A0F8FC08 for ; Tue, 25 Nov 2008 20:51:33 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: (qmail 32562 invoked by uid 60001); 25 Nov 2008 20:51:33 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=BPRX0X7oJiSRF/R0IZUiOnk/PXQ4Hrpy2Xnv6/Py1k/xNWCw0QTC11kaF4MiOnpKrsGtDsfU8arb71Fuyj0e0UYEUiGHQeCP1JGZ+9XMwuekg907BfYlBQ9ePRgAcfs5EepZ/rWzxM+WCUPg8QaQhWEbhmcIxZg0GR5rjIVRRhs=; X-YMail-OSG: 5Ww0gi0VM1nNOUePBvYUCTMt4lGz1S6bhEd0YBaWIz3yD4cGE44vBmaQ_beODyYFiO400wpI46hFomHo.bsOnrRZlaK6P42Sq5C_45IcJAQCZfLT7s8fipWNa5aij8.32lmkTLzU1uY56nt7HGjqmRrU.fjgzBaVIRR5NQ9pzDQczZdXDfV4H6Hwkagbt.ainP7pkbw.XNP44CQ- Received: from [81.169.183.122] by web39107.mail.mud.yahoo.com via HTTP; Tue, 25 Nov 2008 12:51:33 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Tue, 25 Nov 2008 12:51:33 -0800 (PST) From: bf To: Ivan Voras , freebsd-hackers@FreeBSD.org In-Reply-To: <9bbcef730811251141w63ad793as6efac3e7156bc2ef@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <48704.32247.qm@web39107.mail.mud.yahoo.com> X-Mailman-Approved-At: Tue, 25 Nov 2008 21:11:30 +0000 Cc: Subject: Re: lzma compression/decompression in bsdtar/libarchive? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf2006a@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2008 20:51:33 -0000 --- On Tue, 11/25/08, Ivan Voras wrote: > From: Ivan Voras > Subject: Re: lzma compression/decompression in bsdtar/libarchive? > To: bf2006a@yahoo.com > Cc: freebsd-hackers@freebsd.org > Date: Tuesday, November 25, 2008, 2:41 PM > 2008/11/25 bf : > >> How useful would LZMA be without supporting the > .7z file format? > >> Probably not at all, since there isn't a > gzip-like file format or > >> wrapper that supports LZMA. > > > > ?? Have you looked at this code? Yes, there is: > there is an "LZMA > > compressed file format" and the 7z file format, > both of which support > > LZMA. The former format has been widely adopted by > people who distribute > > lzma-compressed tarballs, especially GNU-related > projects that use the > > lzmautils port. Some projects, like GNU coreutils, no > longer distribute > > the latest versions of their software in > bzip2-compressed tarballs. > > That's interesting - I've never seen an .lzma file > "in the wild". > > But there they are: > http://ftp.gnu.org/gnu/coreutils/ > > [ ] coreutils-6.12.tar.gz 01-Jun-2008 05:03 > 8.6M > [ ] coreutils-6.12.tar.lzma 01-Jun-2008 05:04 > 3.6M > > And there's a compressor in ports: archivers/lzma Yes, a surprising number of projects now give you the option of lzma- compressed tarballs, and have for months. When necessary, they rely on tar to preserve some of the file data you were concerned with, then compress the tarball with lzma, and bundle it in the very simple "lzma compressed file" format, which is roughly: "LZMA compressed file format --------------------------- Offset Size Description 0 1 Special LZMA properties (lc,lp, pb in encoded form) 1 4 Dictionary size (little endian) 5 8 Uncompressed size (little endian). -1 means unknown size 13 Compressed data" as described in the documentation. In the end you obtain compression ratios better than or equal to bzip2 in almost all cases ( usually substantially better), and decompression speeds closer to that of gzip. Compression speed is comparable to, but usually slightly slower than, bzip2. archivers/lzma was the first widely-used implementation, but GNU-inspired projects usually recommend the compatible archivers/lzmautils fork. The benefits can clearly be seen when you compare the size of lzma-compressed tarballs to those using gzip and bzip2. You can see more examples at many of the GNU projects, Graphicsmagick and Imagemagick, etc. -- and many of these are using lzma compression with suboptimal settings. The other night I archived a subversion repository of gentoo portage in a 5.5Mb file by using bsdtar and archivers/lzma. This repository is normally about 420Mb in size, and gentoo's lzma-compressed snapshot tarballs are 29Mb in size, so not all implementations are equal. Not so long ago (the end of April, this year) someone tried to switch ImageMagick to using lzma-compressed tarballs, and caught a lot of flak from others who were unfamiliar with this form of compression. If Tim could integrate it with libarchive, I'm sure that it would be more favorably received. Among the other high-end compression methods, ppmd has attained a stability that would merit support in libarchive, but many of the others are still evolving, or in their present form are too computationally intensive, for diminishing returns, on any but the newest hardware. Regards, b. From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 22:42: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 D6A831065670 for ; Tue, 25 Nov 2008 22:42:10 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id 852BC8FC13 for ; Tue, 25 Nov 2008 22:42:10 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 3E7EF7309E; Tue, 25 Nov 2008 23:46:48 +0100 (CET) Date: Tue, 25 Nov 2008 23:46:48 +0100 From: Luigi Rizzo To: hackers@freebsd.org Message-ID: <20081125224648.GA54158@onelab2.iet.unipi.it> References: <20081114131217.GA62275@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081114131217.GA62275@onelab2.iet.unipi.it> User-Agent: Mutt/1.4.2.3i Cc: Subject: convert bootable freebsd or linux iso to bootable flash image 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, 25 Nov 2008 22:42:10 -0000 I have updated my iso2flash.sh script so that now it can convert both FreeBSD _and_ linux ISO images to flash images. For the latter, it uses a FAT filesystem, and puts a linux loader with syslinux, for which you can find a port at http://info.iet.unipi.it/~luigi/FreeBSD/index.html#syslinux-port Below is the updated code for iso2flash.sh ------------------- cut here -------------------------------- #!/bin/sh # $Id: iso2flash.sh 897 2008-11-25 22:41:00Z luigi $ # convert an ISO image to flash image # The type of filesystem depends on the content, but can be forced # manually. # # based on picobsd tricks. # Requires makefs, bsdlabel, sed and dd # The linux image uses mtools and syslinux, see # http://info.iet.unipi.it/~luigi/FreeBSD/#syslinux-port # see http://www.allbootdisks.com/download/iso.html MAKEFS=makefs MKLABEL=bsdlabel BSDTAR=tar # Create a linux disk starting from an ISO. Use a FAT media # and syslinux to format it. Add some intelligence to figure # out where the kernel is and what options it needs. make_linux_image() { # src_tree dest_image local tree=$1 local img=$2 local size=$(( $3 + 1000 )) # size in kb local x=$(( 1 + $size / 128 )) # 128k units, good for dd # if you have an old newfs_msdos... local OPTS=" -h 16 -u 64 -S 512 -s $(( 2 * ${size} )) -o 0" [ -f ${img} ] && { chmod u+w ${img}; rm ${img} ; } dd if=/dev/zero bs=128k count=$x of=${img} # create blank file newfs_msdos ${OPTS} ${img} # format msdos syslinux ${img} # add linux bootcode # Try to identify where the kernel is local boot=`find $tree -name boot` if [ x"${boot}" != x -a -d "${boot}" ] ; then echo "moving boot code" chmod u+w ${boot} ${boot}/* mv ${boot}/* $tree [ -f ${tree}/syslinux.cfg ] || mv ${tree}/isolinux.cfg ${tree}/syslinux.cfg fi if [ -d ${tree}/isolinux ] ; then # systemrescuecd local sys=${tree}/syslinux echo moving files... [ -d ${sys} ] || mkdir -p ${sys} chmod -R u+w ${tree}/isolinux mv ${tree}/isolinux/* ${sys} [ -f ${sys}/syslinux.cfg ] || mv ${sys}/isolinux.cfg ${sys}/syslinux.cfg fi if [ -f ${tree}/syslinux.cfg ] ; then elif [ -f ${tree}/syslinux/syslinux.cfg ] ; then elif [ -f ${tree}/linux ] ; then elif [ -f ${tree}/CE_BZ ] ; then # splashtop / expressgate echo "default ce_bz" > ${tree}/syslinux.cfg else boot=`cd ${tree}; find . -name boot.img` if [ x"${boot}" != x -a -f "${tree}/${boot}" ] ; then cp -p /usr/local/share/syslinux/memdisk $tree ( echo "default memdisk"; echo "append initrd=${boot}" ) > $tree/syslinux.cfg fi fi mcopy -i ${img} -s ${tree}/* ::/ # copy the tree mdir -/ -i ${img} :: # show the results } # to add freedos code: #perl sys-freedos.pl --disk=${img} --heads=16 --sectors=64 --offset=0 # --lb #dd if=mbrfat.bin bs=90 iseek=1 oseek=1 of=${img} conv=notrunc # Create a FreeBSD image. make_freebsd_image() { # tree imagefile size local tree=$1 local imagefile=$2 local boot1=${tree}/boot/boot1 local boot2=${tree}/boot/boot2 echo "convert tree $tree image $img" ${MAKEFS} -t ffs -o bsize=4096 -o fsize=512 \ -f 50 ${imagefile} ${tree} ${MKLABEL} -w -f ${imagefile} auto # write a label # copy partition c: into a: with some sed magic ${MKLABEL} -f ${imagefile} | sed -e '/ c:/{p;s/c:/a:/;}' | \ ${MKLABEL} -R -f ${imagefile} /dev/stdin # dump the primary and secondary boot (primary is 512 bytes) dd if=${boot1} of=${imagefile} conv=notrunc 2>/dev/null # XXX secondary starts after the 0x114 = dec 276 bytes of the label # so we skip 276 from the source, and 276+512=788 from dst # the old style blocks used 512 and 1024 respectively dd if=${boot2} iseek=1 ibs=276 2> /dev/null | \ dd of=${imagefile} oseek=1 obs=788 conv=notrunc 2>/dev/null } extract_image() { # extract image to a tree [ -f $1 ] || return local tmp="${tree}.tree" echo "Extract files from ${tree} into $tmp " (chmod -R +w $tmp; rm -rf $tmp ) mkdir -p $tmp ls -la $tmp (cd $tmp && ${BSDTAR} xf $tree ) ls -la $tmp tree=$tmp } guess_type() { echo guess type imgtype="error" # default [ -f $tree/boot/loader -a -f $tree/boot/loader.rc ] && { imgtype="bsd"; return ; } local a=`find $tree -name isolinux` [ x"$a" != x -a -d $a ] && { imgtype="linux"; return ; } } # option processing while [ x"$*" != x ] ; do case x"$1" in x-t ) # type shift imgtype=$1 ;; *) break ;; esac shift done tree=`realpath $1` image=`realpath $2` echo "type <$imgtype> tree <$tree> image <$image>" extract_image $tree set `du -sk $tree` size=$1 echo "image size is $size kb" while true ; do case x"$imgtype" in *[Bb][Ss][Dd] ) make_freebsd_image $tree $image $size ;; *[Ll][Ii][Nn][Uu][Xx] ) make_linux_image $tree $image $size ;; xerror) echo "Image type not found, giving up" ;; * ) guess_type continue ;; esac break done [ -d "$tmp" ] && (chmod -R u+w $tmp && rm -rf $tmp) #---------------------- end of file ------------------------------- From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 25 22:30: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 C2EAB1065673 for ; Tue, 25 Nov 2008 22:30:04 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: from web39102.mail.mud.yahoo.com (web39102.mail.mud.yahoo.com [209.191.86.253]) by mx1.freebsd.org (Postfix) with SMTP id 76CF68FC1B for ; Tue, 25 Nov 2008 22:30:04 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: (qmail 46979 invoked by uid 60001); 25 Nov 2008 22:30:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=2GCGoj3WF6M6J7kekXT9ZSpgVHXzoz2I7bUkC/6MlFPSGRWDaEVTFhA9aFfB+qnfd6Iu/CoqkoxLuMUSq7tIFbe/G0LDdsa16RmdjdFBp9RuIK3q+3TKyYqczK0qZGQDBx/5yBLwsLhha33HWiGFxVGwh9zjpvQh9ZR/uq1+i7Y=; X-YMail-OSG: Uyoyq.UVM1mt68tO.ePemkZ5TqY1rSUjxMujmJCajzk4moO3joY_QmErTrtDpvG1U_Zt5Dz64flAnN4k5KL49DqtqxBZIEW_jMpLD5CIw65rr.vmRG_iNl3ykGy.L3Yqxg_6Ng-- Received: from [203.218.97.181] by web39102.mail.mud.yahoo.com via HTTP; Tue, 25 Nov 2008 14:30:03 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Tue, 25 Nov 2008 14:30:03 -0800 (PST) From: bf To: joerg@britannica.bec.de, freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <511182.46413.qm@web39102.mail.mud.yahoo.com> X-Mailman-Approved-At: Tue, 25 Nov 2008 22:56:25 +0000 Cc: Subject: Re: lzma compression/decompression in bsdtar/libarchive? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf2006a@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2008 22:30:04 -0000 > lzma files in the current form are a major PITA. The format doesn't have > a proper header and therefore is not really autodetectable. I'm sure that the format has some shortcomings; however, it is being widely used, and so it would be helpful to be able to deal with such files. To be clear: I'm not arguing the merits of any particular *file format*, although I have mentioned a couple of the ones that are now used for lzma-compressed data. (There is no reason why we couldn't define and promote our own file format to contain such data, if we thought that the existing ones didn't meet our needs.) What I am arguing for is to have the capability to use lzma *compression* when it would be to our advantage. Regards, b. From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 00:11: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 185AE1065674 for ; Wed, 26 Nov 2008 00:11:39 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id D570D8FC08 for ; Wed, 26 Nov 2008 00:11:38 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id E860C6D43F; Wed, 26 Nov 2008 00:11:37 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id CD72684479; Wed, 26 Nov 2008 01:11:37 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Peter Steele" References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CD5E@polaris.maxiscale.com> Date: Wed, 26 Nov 2008 01:11:37 +0100 In-Reply-To: <2ACA3DE8F9758A48B8BE2C7A847F91F240CD5E@polaris.maxiscale.com> (Peter Steele's message of "Tue, 25 Nov 2008 08:53:20 -0800") Message-ID: <86hc5vny6e.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Hot swapping SATA drives 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, 26 Nov 2008 00:11:39 -0000 "Peter Steele" writes: > I've done some searches regarding FreeBSD's 7 support for the hot > swapping of SATA drives and the general consensus appears that it *is* > supported, but not necessarily with all drive models/brands. Make sure the SATA controller is running in AHCI mode. It is disabled by default on most consumer-grade motherboards. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 01:33: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 B3AE91065672 for ; Wed, 26 Nov 2008 01:33:23 +0000 (UTC) (envelope-from lists@rhavenn.net) Received: from smtp205.sat.emailsrvr.com (smtp205.sat.emailsrvr.com [66.216.121.205]) by mx1.freebsd.org (Postfix) with ESMTP id 930C98FC16 for ; Wed, 26 Nov 2008 01:33:23 +0000 (UTC) (envelope-from lists@rhavenn.net) Received: from relay10.relay.sat.mlsrvr.com (localhost [127.0.0.1]) by relay10.relay.sat.mlsrvr.com (SMTP Server) with ESMTP id 4284A1E0E71 for ; Tue, 25 Nov 2008 20:09:25 -0500 (EST) Received: by relay10.relay.sat.mlsrvr.com (Authenticated sender: rhavenn-AT-rhavenn.net) with ESMTP id C01AC1E0E61 for ; Tue, 25 Nov 2008 20:09:24 -0500 (EST) Received: by alucard.int.rhavenn.net (Postfix, from userid 1001) id EFE6F3F42D; Tue, 25 Nov 2008 16:09:14 -0900 (AKST) Date: Tue, 25 Nov 2008 16:09:14 -0900 From: Henrik Hudson To: freebsd-hackers@freebsd.org Message-ID: <20081126010914.GA30629@alucard.int.rhavenn.net> References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CD5E@polaris.maxiscale.com> <200811250929.37929.fjwcash@gmail.com> <2ACA3DE8F9758A48B8BE2C7A847F91F240CD9D@polaris.maxiscale.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2ACA3DE8F9758A48B8BE2C7A847F91F240CD9D@polaris.maxiscale.com> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: Hot swapping SATA drives 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, 26 Nov 2008 01:33:23 -0000 On Tue, 25 Nov 2008, Peter Steele wrote: > >Use a real hot-swappable drive plane, attached to a good SATA > controller > >that handles hot-swap in hardware? :) > > > >Use ZFS, which seems to work better with drives being added/removed > than > >ata(4)? :) > > > >Sorry, the few systems we have running FreeBSD either have single IDE > >drives, single SATA drives, or 12-24 SATA drives attached to a hardware > > >hot-swappable drive-plane connected to 3Ware 9550/9650 RAID > controllers. > >The single-drive systems obviously can't do swapping, and the rest work > > >without issues. > > I should further clarified that we are running 4-drive systems, with > drive sizes ranging from 250GB-1TB. These drives are not in a RAID > cluster and we do not want them to be. We do need the drives to be hot > swappable though. I'll contact 3Ware and go from there. I would think that if you're using a 3ware controller in JBOD and as stated are in AHCI mode that as long as the OS umounts the drive that you should be able to hot-swap. However, checking with 3ware is probably the best option :) Henrik -- Henrik Hudson lists@rhavenn.net From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 07:26:52 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 87EA8106564A; Wed, 26 Nov 2008 07:26:52 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forwards4.yandex.ru (forwards4.yandex.ru [77.88.32.20]) by mx1.freebsd.org (Postfix) with ESMTP id 32EE98FC1E; Wed, 26 Nov 2008 07:26:52 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp13.yandex.ru (smtp13.yandex.ru [77.88.32.83]) by forwards4.yandex.ru (Yandex) with ESMTP id 47A6C193373; Wed, 26 Nov 2008 10:15:02 +0300 (MSK) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:29645 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S5980321AbYKZHOx (ORCPT + 3 others); Wed, 26 Nov 2008 10:14:53 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp13 X-Yandex-TimeMark: 1227683693 X-BornDate: 1137963600 X-Yandex-Karma: 0 X-Yandex-KarmaStatus: 0 X-MsgDayCount: 4 X-Comment: RFC 2476 MSA function at smtp13.yandex.ru logged sender identity as: bu7cher Message-ID: <492CF763.7090605@yandex.ru> Date: Wed, 26 Nov 2008 10:14:43 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: "Sean C. Farley" References: <259774.68895.qm@web39105.mail.mud.yahoo.com> <492C3053.1030802@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: bf2006a@yahoo.com, Tim Kientzle , freebsd-hackers@FreeBSD.org Subject: Re: lzma compression/decompression in bsdtar/libarchive? 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, 26 Nov 2008 07:26:52 -0000 Sean C. Farley wrote: > On Tue, 25 Nov 2008, Tim Kientzle wrote: > >> Where is the announcement of this change? >> >> I haven't downloaded the code yet, but the >> sourceforge project pages all still say GPL. > > It is on the SDK page: http://www.7-zip.org/sdk.html I think you need contact to author. I don't see information about public domain on russian page http://7-zip.org.ua/ru/sdk.html (may be it is translation bug :). LZMA is avaiable under one of three license: 1. GNU LGPL 2. CPL 3. Special author's license (you can use code, but can't change it) -- WBR, Andrey V. Elsukov From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 08:44: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 BECF71065670; Wed, 26 Nov 2008 08:44:16 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from smtp.ht-systems.ru (mr0.ht-systems.ru [78.110.50.55]) by mx1.freebsd.org (Postfix) with ESMTP id 70A7A8FC1A; Wed, 26 Nov 2008 08:44:16 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from [85.21.245.235] (helo=orion.SpringDaemons.com) by smtp.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1L5FMc-0002ps-5q; Wed, 26 Nov 2008 11:03:10 +0300 Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id 02AD2398F4; Wed, 26 Nov 2008 11:04:39 +0300 (MSK) Date: Wed, 26 Nov 2008 11:04:35 +0300 From: Stanislav Sedov To: bf2006a@yahoo.com Message-Id: <20081126110435.fe722ef8.stas@FreeBSD.org> In-Reply-To: <48704.32247.qm@web39107.mail.mud.yahoo.com> References: <9bbcef730811251141w63ad793as6efac3e7156bc2ef@mail.gmail.com> <48704.32247.qm@web39107.mail.mud.yahoo.com> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@FreeBSD.org, Ivan Voras Subject: Re: lzma compression/decompression in bsdtar/libarchive? 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, 26 Nov 2008 08:44:16 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 25 Nov 2008 12:51:33 -0800 (PST) bf mentioned: > Not so long ago (the end of April, this year) someone tried to switch > ImageMagick to using lzma-compressed tarballs, and caught a lot of flak > from others who were unfamiliar with this form of compression. If Tim > could integrate it with libarchive, I'm sure that it would be more > favorably received. > Indeed, the main argument against was that you need an extra dependency to unpack these, and there's no point in requiring that as bz2 versions were available. - -- Stanislav Sedov ST4096-RIPE -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAkktAxcACgkQK/VZk+smlYF8DQCfVraD3lSYoZNsPVeYf0tWj9Nr q5UAnjVWWhkSakJWq8K634Pap9hdYDRi =9XOq -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 09:33: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 F39D21065677 for ; Wed, 26 Nov 2008 09:33:55 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: from web39103.mail.mud.yahoo.com (web39103.mail.mud.yahoo.com [209.191.86.254]) by mx1.freebsd.org (Postfix) with SMTP id B26CA8FC26 for ; Wed, 26 Nov 2008 09:33:55 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: (qmail 61330 invoked by uid 60001); 26 Nov 2008 09:33:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=4a9vOBwDiKjCxA35lP5phvthd5qhBnrBpNU/jUP4KpmGlhXDTyUBWGHI0u/fkcn+9E3mbO0rhOhhjg+zRBcgh48UdQGhlsCv33L9mcrtwQqc+H8j74KiuzIbFgpTtJakwf+x+PB6MOxSKF/T+GdeOLJDlQS6R/JumE/zngJ6elQ=; X-YMail-OSG: 2bHtc1gVM1nXM7NgBK.7OFQQ9tmzTkEbeCl91Sf0hZQ4H_sw3xadJo_Nr56y3iZ8oaqc3rOsUtmyYUXRUkT2wo_9plkdWaCnYpwf5D40vtBAlullm_5YmLOMmXJLWFdcNxYBEpt2CUvo7_36WHeA76CZONb.TSSdq1Ja9xOSFs0vgw_WKq11LKkntqJh Received: from [212.42.236.140] by web39103.mail.mud.yahoo.com via HTTP; Wed, 26 Nov 2008 01:33:54 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Wed, 26 Nov 2008 01:33:54 -0800 (PST) From: bf To: "Sean C. Farley" , "Andrey V. Elsukov" In-Reply-To: <492CF763.7090605@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <963899.61157.qm@web39103.mail.mud.yahoo.com> X-Mailman-Approved-At: Wed, 26 Nov 2008 12:26:39 +0000 Cc: freebsd-hackers@FreeBSD.org, Tim Kientzle Subject: Re: lzma compression/decompression in bsdtar/libarchive? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf2006a@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2008 09:33:56 -0000 --- On Wed, 11/26/08, Andrey V. Elsukov wrote: > From: Andrey V. Elsukov > Subject: Re: lzma compression/decompression in bsdtar/libarchive? > To: "Sean C. Farley" > Cc: "Tim Kientzle" , bf2006a@yahoo.com, freebsd-hackers@FreeBSD.org > Date: Wednesday, November 26, 2008, 2:14 AM > Sean C. Farley wrote: > > On Tue, 25 Nov 2008, Tim Kientzle wrote: > > > >> Where is the announcement of this change? > >> > >> I haven't downloaded the code yet, but the > >> sourceforge project pages all still say GPL. > > > > It is on the SDK page: http://www.7-zip.org/sdk.html > > I think you need contact to author. > I don't see information about public domain on russian > page > http://7-zip.org.ua/ru/sdk.html (may be it is translation > bug :). > LZMA is avaiable under one of three license: > 1. GNU LGPL > 2. CPL > 3. Special author's license (you can use code, but > can't change it) > > -- > WBR, Andrey V. Elsukov If it is a "translation bug", which I think unlikely, it is not just confined to the webpage: the documentation and the copyright notices in the software distribution have all been changed to "public domain". Regards, b. From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 10:08: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 C63BD1065677 for ; Wed, 26 Nov 2008 10:08:41 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: from web39108.mail.mud.yahoo.com (web39108.mail.mud.yahoo.com [209.191.87.227]) by mx1.freebsd.org (Postfix) with SMTP id 837C08FC1A for ; Wed, 26 Nov 2008 10:08:41 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: (qmail 69020 invoked by uid 60001); 26 Nov 2008 10:08:41 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=jSZDUH1BXgah4vx+0cuBWMmI3aPTGDPAWF6x9rn5XLOHD3Tbs/NoHK+9Vs4MmkOrolzDdVvxwQwmizrkbjF1MTbvl+/P3D2qt+fvRP/K0bHEAcfY83lei/1wF/cCozoKhrieQdlF1QJ3/UAUrSlJtJMHywK6s1OxjzF7CMRpjzM=; X-YMail-OSG: _oNg1NUVM1l9jFGtM1Uj.EdvYnXKANHqPMEQlfwVVPH6vzzBjE_cBGp0AGhvDjVDqCNwbCIhG8GBeWd1F2P8ITMROPfltUu7K54NtTtyDYgtx66Nc9DKdliNJABuC_x2vTdI5Fw8JLbmqa0ZY9OAHHD1W6.rU4yrj6EfpwohUNzFmPwgjtPT5WsP_3BM Received: from [192.251.226.205] by web39108.mail.mud.yahoo.com via HTTP; Wed, 26 Nov 2008 02:08:40 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Wed, 26 Nov 2008 02:08:40 -0800 (PST) From: bf To: Stanislav Sedov In-Reply-To: <20081126110435.fe722ef8.stas@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <29384.68729.qm@web39108.mail.mud.yahoo.com> X-Mailman-Approved-At: Wed, 26 Nov 2008 12:26:51 +0000 Cc: freebsd-hackers@FreeBSD.org, Ivan Voras Subject: Re: lzma compression/decompression in bsdtar/libarchive? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf2006a@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2008 10:08:41 -0000 --- On Wed, 11/26/08, Stanislav Sedov wrote: > From: Stanislav Sedov > Subject: Re: lzma compression/decompression in bsdtar/libarchive? > To: bf2006a@yahoo.com > Cc: "Ivan Voras" , freebsd-hackers@FreeBSD.org > Date: Wednesday, November 26, 2008, 3:04 AM > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tue, 25 Nov 2008 12:51:33 -0800 (PST) > bf mentioned: > > > Not so long ago (the end of April, this year) someone > tried to switch > > ImageMagick to using lzma-compressed tarballs, and > caught a lot of flak > > from others who were unfamiliar with this form of > compression. If Tim > > could integrate it with libarchive, I'm sure that > it would be more > > favorably received. > > > > Indeed, the main argument against was that you need an > extra dependency > to unpack these, and there's no point in requiring that > as bz2 versions > were available. > While I can understand a reluctance to add another port to the dependency tree, on my (slow) machine archivers/lzma occupies 169kb of disk space when installed, and took only a minute or two to build from source, while every time a ImageMagick distfile is downloaded, about 3Mb of network traffic and disk space is saved by using the lzma-compressed distfile rather than the bzip2-compressed distfile. And there are some further time savings in downloading and unpacking. So I think that there is a "point" to switching, even if you didn't agree that it was worthwhile for just one port. When you consider that comparable benefits could have been gained for no further cost for scores of additional ports by switching to lzma, the decision to revert to bzip2 doesn't seem so good. I might add that I have seen ports in the tree that use gzipped tarballs when much smaller bzipped ones are available, and ports that USE_ZIP when there are smaller gzipped tarballs available, so there's more room for improvement. Regards, b. From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 11:30:13 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 36BD01065677 for ; Wed, 26 Nov 2008 11:30:13 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: from web39102.mail.mud.yahoo.com (web39102.mail.mud.yahoo.com [209.191.86.253]) by mx1.freebsd.org (Postfix) with SMTP id CBEC38FC2A for ; Wed, 26 Nov 2008 11:30:12 +0000 (UTC) (envelope-from bf2006a@yahoo.com) Received: (qmail 54351 invoked by uid 60001); 26 Nov 2008 11:30:12 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=T8rh/HgnuJsjqZBt8fAz1TAClK4fyeE8H+yzfLxlMD7TF8WKx6dvocxCkdoo0DCjfyzbLZBHnoaD2MAroNdpIHLl/5ubqnbvSSDj0imEu5Wc/61BEQd5uku2/CLcI+yru/DTmS9KWuXV/EwsU1iGj2PhlJeVt3WKqBJjQD5X/jM=; X-YMail-OSG: G4bLf6wVM1kdINPSrnNG5bQ1ktr5P2lnW3TRnUeZOKpOx8ZedZXDCEEmKql.hdatT4JvOAElR7tmAoI1C_noI6HQCM_aUJGDJHdg7L2.tHVmwczPYE0VfTOmqIyYUotrCNryPXmsBaoGOcnjdQREo0IyZAVG0JsFXakyB.aT_17FfBzN9lTYlL9uvC9H Received: from [81.169.155.246] by web39102.mail.mud.yahoo.com via HTTP; Wed, 26 Nov 2008 03:30:12 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Wed, 26 Nov 2008 03:30:12 -0800 (PST) From: bf To: "Sean C. Farley" , "Andrey V. Elsukov" In-Reply-To: <492CF763.7090605@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <164866.53825.qm@web39102.mail.mud.yahoo.com> X-Mailman-Approved-At: Wed, 26 Nov 2008 12:27:05 +0000 Cc: freebsd-hackers@FreeBSD.org, Tim Kientzle Subject: Re: lzma compression/decompression in bsdtar/libarchive? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf2006a@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2008 11:30:13 -0000 > > I think you need contact to author. > I don't see information about public domain on russian > page I should add that there has been a discussion of the license change on the project's Sourceforge forums, and the author reaffirms the change: http://sourceforge.net/forum/forum.php?thread_id=2599870&forum_id=45797 Also interesting is the note about adding .zip to the file formats that can be used to support LZMA in version 4.61. Regards, b. From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 13:40:31 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 46D7A1065673 for ; Wed, 26 Nov 2008 13:40:31 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30]) by mx1.freebsd.org (Postfix) with ESMTP id EAD928FC1B for ; Wed, 26 Nov 2008 13:40:30 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so226080ywe.13 for ; Wed, 26 Nov 2008 05:40:30 -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=kVqsja3uzsweZhZ2mScwiTxviPWBnMiJvwuXD+SfTns=; b=IUvzsI5tQG8ARvCjVSNsgNqjFpB9yw/zB/0f3SaGTTSis1oxADI3iFNTaqQe2KpYPf Yw1TOMqF7UmAj4kjSRRSEcHsCFw4P5ITpmwU/AYjoa7p3U6xjN/vOaTfQnaJ7XrxHNi2 40yypGcw8SM86Xcj9iibD2ENslM83/Byynte4= 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=jfiYjnDBQV3c+aisrKqxw2PTT7/KbHJuW/PITM3wLuQdU3bhWoL67CHGJU4QY2QBvC rxkV4LIn6kr+6NVt8SLAv9eAujYqPirnpipkQfO1I/1GHqc48yP+yyu5AcncwxeyKFha 2fRUIw0HYCHU5NwvLcIOcEpE0WIm+FTQBicvU= Received: by 10.151.15.9 with SMTP id s9mr11287880ybi.215.1227706830360; Wed, 26 Nov 2008 05:40:30 -0800 (PST) Received: by 10.150.154.21 with HTTP; Wed, 26 Nov 2008 05:40:30 -0800 (PST) Message-ID: <20def4870811260540x3d44a02bw43b6d18bc675de67@mail.gmail.com> Date: Wed, 26 Nov 2008 15:40:30 +0200 From: "Yony Yossef" 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: TSO on VLAN interface, 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: Wed, 26 Nov 2008 13:40:31 -0000 Hi All, When I create a VLAN interface it does not inherit the parent interface capabilities. Is there a way to enable TSO (as other capabilities) on VLAN interfaces? Thanks, Yony From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 18:20: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 1CB0D106564A for ; Wed, 26 Nov 2008 18:20:53 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id E74058FC18 for ; Wed, 26 Nov 2008 18:20:52 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.123.2.178] (p53.kientzle.com [66.166.149.53]) by kientzle.com (8.12.9/8.12.9) with ESMTP id mAQIKptv069819; Wed, 26 Nov 2008 10:20:51 -0800 (PST) (envelope-from kientzle@freebsd.org) Message-ID: <492D937E.3040000@freebsd.org> Date: Wed, 26 Nov 2008 10:20:46 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: bf2006a@yahoo.com References: <164866.53825.qm@web39102.mail.mud.yahoo.com> In-Reply-To: <164866.53825.qm@web39102.mail.mud.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, "Andrey V. Elsukov" , "Sean C. Farley" Subject: Re: lzma compression/decompression in bsdtar/libarchive? 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, 26 Nov 2008 18:20:53 -0000 bf wrote: >>I think you need contact to author. >>I don't see information about public domain on russian >>page > > I should add that there has been a discussion of the license > change on the project's Sourceforge forums, and the author reaffirms > the change: > > http://sourceforge.net/forum/forum.php?thread_id=2599870&forum_id=45797 Thank you very much for that pointer, that helps a lot. It is a little worrying that Igor Pavlov is asking people whether he should change the license yet again. I hope that's simply rhetorical. Having a license that keeps changing is much worse than any GPL variant. At least it's clear that 4.61 is Public Domain so even if later versions do change, then it should be feasible to fork from there. Maybe over the coming holidays I'll have time to start looking at whether it's feasible to have lzma support in FreeBSD's base system. At least the licensing should no longer be an obstacle, though there could be other hurdles. Tim From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 18:25: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 AFEB8106564A for ; Wed, 26 Nov 2008 18:25:33 +0000 (UTC) (envelope-from tutatnhamon@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id 665AC8FC1B for ; Wed, 26 Nov 2008 18:25:33 +0000 (UTC) (envelope-from tutatnhamon@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so171667qwb.7 for ; Wed, 26 Nov 2008 10:25:32 -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:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=6iR3rwhFw4U7UNnBmgn7upLpqBNqtTzSgcHXtWLRVgw=; b=OeSvVZsQ4Z0CTHawXS5TPBB3+OOL2I3JE8QOEY/YxF8GrWQ+OZvaL5a4whG17/iiJn +1+tQvi7vRI8WR1lEvCuewL2E2GLW0STDtnHwArMwst3xsGa/9vdbgOCEdQjHaBUFR97 FunHMgQuEEeAEooXzRwVsZ50gL+PwBLQE0aO8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=cNQOJtylAttGRz5WA0r19qVDdLHCzSWfmD7ovr0WARWHdYrs1ICTaVDEZ4F6y41jeo 4COAZ5YiqsIWYYhe+OzAcN7ERG/DRBrVN/ZH44m2yU2qFb1DSVHD8li3OUNOH3JshcTW gnUDz2eqRLqd4vGDR0dqskrdRHVcN6QnkFOW0= Received: by 10.65.240.13 with SMTP id s13mr6504881qbr.29.1227722525755; Wed, 26 Nov 2008 10:02:05 -0800 (PST) Received: by 10.65.160.13 with HTTP; Wed, 26 Nov 2008 10:02:05 -0800 (PST) Message-ID: <65dfa4fc0811261002w61224c0ey9ed987f3f8122db0@mail.gmail.com> Date: Wed, 26 Nov 2008 20:02:05 +0200 From: "Artem Naluzhnyy" Sender: tutatnhamon@gmail.com To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: e220d33a24487a24 Subject: crontab(5) enhancements 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, 26 Nov 2008 18:25:33 -0000 Hi, I have two suggestion for newsyslog(8) and periodic(8) entries in default /etc/crontab file: * nice(1) newsyslog and periodic entries to shape CPU load spikes; * lockf(1) them to prevent simultaneous execution. So instead 1 3 * * * root periodic daily there may be 1 3 * * * root lockf -t0 /var/run/periodic.daily.lock nice -20 periodic daily In case of collision we'll receive following email: Date: Wed, 26 Nov 2008 18:16:00 +0200 (EET) From: root@tut.at.home (Cron Daemon) To: root@tut.at.home Subject: Cron lockf -t0 /var/run/periodic.daily.lock nice -20 periodic daily lockf: /var/run/periodic.daily.lock: already locked The configuration has been working for years on my servers without any visible drawbacks. What do you think? -- Artem Naluzhnyy From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 18:46: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 71E3D1065670 for ; Wed, 26 Nov 2008 18:46:33 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from arcturus.maxiscale.com (arcturus.maxiscale.com [76.231.178.136]) by mx1.freebsd.org (Postfix) with ESMTP id 4C7D38FC1C for ; Wed, 26 Nov 2008 18:46:33 +0000 (UTC) (envelope-from psteele@maxiscale.com) X-ASG-Debug-ID: 1227725191-21af00010000-P5m3U7 X-Barracuda-URL: http://10.100.1.25:8000/cgi-bin/mark.cgi Received: from polaris.maxiscale.com (localhost [127.0.0.1]) by arcturus.maxiscale.com (Spam Firewall) with ESMTP id 8A3C031192 for ; Wed, 26 Nov 2008 10:46:31 -0800 (PST) Received: from polaris.maxiscale.com (polaris.maxiscale.com [10.100.1.24]) by arcturus.maxiscale.com with ESMTP id SQjva17KLcq14Dxv for ; Wed, 26 Nov 2008 10:46:31 -0800 (PST) X-ASG-Whitelist: Client X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 X-ASG-Orig-Subj: FreeBSD boot menu is missing Date: Wed, 26 Nov 2008 10:46:29 -0800 Message-ID: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FreeBSD boot menu is missing Thread-Index: AclP90uHGhs0h9IHRGSDagfesWbtyA== From: "Peter Steele" To: X-Barracuda-Connect: polaris.maxiscale.com[10.100.1.24] X-Barracuda-Start-Time: 1227725191 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at maxiscale.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FreeBSD boot menu is missing 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, 26 Nov 2008 18:46:33 -0000 I have a procedure for converting a FreeBSD box to use a mirrored slice for the OS. Everything working fine except that after I've made the conversion I am no longer getting the normal boot menu, the one that counts down 10 seconds waiting for the user to pick on option.=20 =20 I see a single line showing that the BTX 1.01 loader has been launched, but from there the system simply boots directly with no menu being displayed. I'm obviously missing a step when using gmirror to convert a system over to use mirroring but I'm not sure what. My basic approach is to install the OS onto the first drive, setting it to use the standard boot manager, and then setup the second drive using gmirror and copy the file systems over to the mirror. I then set boot.config to boot off this drive and it comes up fine, there just isn't any boot menu.=20 =20 Any advice on how to solve this would be appreciated. Thanks. =20 =20 From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 19:04: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 E0CC81065676 for ; Wed, 26 Nov 2008 19:04:04 +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 986458FC12 for ; Wed, 26 Nov 2008 19:04:04 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L5Pg6-00031u-9x for freebsd-hackers@freebsd.org; Wed, 26 Nov 2008 19:03:58 +0000 Received: from xdsl-10260.wroclaw.dialog.net.pl ([84.40.242.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Nov 2008 19:03:58 +0000 Received: from mwisnicki+freebsd by xdsl-10260.wroclaw.dialog.net.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Nov 2008 19:03:58 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Marcin Wisnicki Date: Wed, 26 Nov 2008 19:03:48 +0000 (UTC) Lines: 8 Message-ID: References: <259774.68895.qm@web39105.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: xdsl-10260.wroclaw.dialog.net.pl User-Agent: Pan/0.132 (Waxed in Black) Sender: news Subject: Re: lzma compression/decompression in bsdtar/libarchive? 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, 26 Nov 2008 19:04:05 -0000 On Tue, 25 Nov 2008 19:02:02 +0100, Ivan Voras wrote: > > How useful would LZMA be without supporting the .7z file format? > Probably not at all, since there isn't a gzip-like file format or > wrapper that supports LZMA. tar.lzma is quite popular From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 20:03: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 E90D71065689 for ; Wed, 26 Nov 2008 20:03:23 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id B9CDD8FC35 for ; Wed, 26 Nov 2008 20:03:23 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.123.2.178] (p53.kientzle.com [66.166.149.53]) by kientzle.com (8.12.9/8.12.9) with ESMTP id mAQK3Ntv070370; Wed, 26 Nov 2008 12:03:23 -0800 (PST) (envelope-from kientzle@freebsd.org) Message-ID: <492DAB86.8030500@freebsd.org> Date: Wed, 26 Nov 2008 12:03:18 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ivan Voras References: <259774.68895.qm@web39105.mail.mud.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: lzma compression/decompression in bsdtar/libarchive? 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, 26 Nov 2008 20:03:24 -0000 Ivan Voras wrote: > bf wrote: >> >>There is good news: Igor Pavlov, the primary author of the original LZMA >>SDK, has placed the latest version, available at: >> >>http://downloads.sourceforge.net/sevenzip/lzma461.tar.bz2 >> >>into the public domain. It's a mix of ANSI-C and C++ code, and so it >>would seem suitable for adoption into the FreeBSD source tree ... > > How useful would LZMA be without supporting the .7z file format? > Probably not at all, since there isn't a gzip-like file format or > wrapper that supports LZMA. Plain .lzma streams are being used today with tar. GNU tar added support recently and read support will be a build option in the upcoming 2.6 release of the libarchive-portable distribution, though it can't be enabled in the FreeBSD base system without the corresponding LZMA libraries. (I expect to get libarchive-portable 2.6 integrated into FreeBSD-CURRENT by the end of the year.) As Joerg pointed out, plain lzma streams are tough to auto-detect, since they only have a 1-byte leading signature. I'm hoping to study the format and find better ways to automatically detect it. Lasse Collin has proposed a wrapper format for LZMA (similar to how gzip format wraps deflate streams) that looks promising, though it's still very new and not yet widely used. I think that's called "lzip". There's also something called "lzop", though I'm not yet sure what exactly that is. The .7z file format is well supported by the 7zip utility in ports, as you pointed out. I don't see any pressing need to support that within FreeBSD base system. Some people are using lzma compression within ZIP archives, and libarchive could easily be extended to support that. (But again, that couldn't be turned on in the FreeBSD base system without the LZMA libraries.) Tim From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 20:35: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 132E41065676 for ; Wed, 26 Nov 2008 20:35:17 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (five.mired.org [66.92.153.75]) by mx1.freebsd.org (Postfix) with ESMTP id AE6728FC1A for ; Wed, 26 Nov 2008 20:35:16 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 60372 invoked by uid 1001); 26 Nov 2008 15:35:11 -0500 Received: from bhuda.mired.org (localhost.localdomain [127.0.0.1]) by bhuda (tmda-ofmipd) with ESMTP; Wed, 26 Nov 2008 15:35:10 -0500 Date: Wed, 26 Nov 2008 15:35:10 -0500 To: "Peter Steele" Message-ID: <20081126153510.6062cd55@bhuda.mired.org> In-Reply-To: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com> References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com> Organization: Meyer Consulting X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; amd64-portbld-freebsd7.0) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD boot menu is missing 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, 26 Nov 2008 20:35:17 -0000 On Wed, 26 Nov 2008 10:46:29 -0800 "Peter Steele" wrote: > I have a procedure for converting a FreeBSD box to use a mirrored slice > for the OS. Everything working fine except that after I've made the > conversion I am no longer getting the normal boot menu, the one that > counts down 10 seconds waiting for the user to pick on option. > > I see a single line showing that the BTX 1.01 loader has been launched, > but from there the system simply boots directly with no menu being > displayed. I'm obviously missing a step when using gmirror to convert a > system over to use mirroring but I'm not sure what. My basic approach is > to install the OS onto the first drive, setting it to use the standard > boot manager, and then setup the second drive using gmirror and copy the > file systems over to the mirror. I then set boot.config to boot off this > drive and it comes up fine, there just isn't any boot menu. The phrase "and copy the file systems over to the mirror" worries me. Do you actually copy the file systems, or do you let the mirror system do it for you? In particular, are you mirroring file systems or the entire disk? Because the boot blocks aren't part of any file system, so you won't have copied them over, hence you'll be getting whatever boot software the second drive has installed. My recommendation for gmirror is to set up one drive to boot from, then us gmirror label to create a gmirror device on each partition (excluding swap). Edit /etc/fstab to use the gmirror devices thus created, and reboot to make sure it's working properly. It will initially boot from the disk device (pretty much required until gmirror is started), then switch to the mirrored root partition. Now use gmirror insert to add the matching partitions on the second disk, and let gmirror update the bits on the second drive. You'll need to copy the boot blocks from the first drive to the second drive by hand if you want to boot off the second drive. Alternatively, you can mirror the entire drive instead of each partition. That will mirror the boot blocks as well, but means you have to resilver the entire drive instead of the partitions if you have a failure that corrupts a partition. It also makes getting crash dumps more interesting. I did this for a while, but eventually switched to mirroring partitions. FWIW, these days I use ZFS on 64 bit systems in preference to UFS and gmirror. Final comment: if you didn't ask on -questions first, this would have been more appropriate there than here. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 20:44: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 B60C61065672 for ; Wed, 26 Nov 2008 20:44:34 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 3AC838FC1D for ; Wed, 26 Nov 2008 20:44:33 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so379954fgb.35 for ; Wed, 26 Nov 2008 12:44:32 -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=qY9hUV420nnqmSjjyirhs1hTZkZqtdTuAy2OGdToj28=; b=L5xOqrRG6q4O8KmZNy+asF37ORP4nu4tUaMGoFHfDv9lvRNDKSMv2641T79cj7IzmP zIjnM1mfGZBOcrSxFquvxhJpiHe0pwClvOQD44ZY3iQIoNfa2XXYDI+vAkqecQb4rG2H Z29igc3XgJ44DjPZkrKL3NPtaI5s0c479a3Z8= 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=Drzq7Mpse6ryfnMUw5dnWDnfobU0aUau+UV/AtLU4h3RoevHdvMEc6/y4BuB/BLO28 DgeqrLDHqWPkMqzn4bREzJMBwQqLsByf6gROhwmfVM6fmJhUlWnVPoSI2SV53jh6iUF1 YfSdxc5iq+SPpMJY2hm2QjtQA99jt220UJRjo= Received: by 10.181.61.2 with SMTP id o2mr2082581bkk.101.1227732271610; Wed, 26 Nov 2008 12:44:31 -0800 (PST) Received: by 10.181.49.2 with HTTP; Wed, 26 Nov 2008 12:44:31 -0800 (PST) Message-ID: <9bbcef730811261244l59b3c7bdq5732af7b9facf1dc@mail.gmail.com> Date: Wed, 26 Nov 2008 21:44:31 +0100 From: "Ivan Voras" Sender: ivoras@gmail.com To: "Tim Kientzle" In-Reply-To: <492DAB86.8030500@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <259774.68895.qm@web39105.mail.mud.yahoo.com> <492DAB86.8030500@freebsd.org> X-Google-Sender-Auth: fafd111fab74624b Cc: freebsd-hackers@freebsd.org Subject: Re: lzma compression/decompression in bsdtar/libarchive? 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, 26 Nov 2008 20:44:34 -0000 2008/11/26 Tim Kientzle : > There's also something called "lzop", though I'm not > yet sure what exactly that is. lzop is the LZO archiver - created for high-speed compression, not compression efficiency. Unfortunately, LZO is GPL :( But that reminds me - while you're adding compression formats, you might add lzf (http://www.goof.com/pcg/marc/liblzf.html) which is a very high-speed compressor (again, no emphasis on efficiency), BSDL, implemented in something like 500 lines of C :) "...Very fast compression speeds, rivaling a straight copy loop, especially for decompression which is basically at (unoptimized) memcpy-speed" From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 22:46: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 8D343106564A for ; Wed, 26 Nov 2008 22:46:50 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from arcturus.maxiscale.com (arcturus.maxiscale.com [76.231.178.136]) by mx1.freebsd.org (Postfix) with ESMTP id 5DD658FC16 for ; Wed, 26 Nov 2008 22:46:50 +0000 (UTC) (envelope-from psteele@maxiscale.com) X-ASG-Debug-ID: 1227739606-30b500000000-P5m3U7 X-Barracuda-URL: http://10.100.1.25:8000/cgi-bin/mark.cgi Received: from polaris.maxiscale.com (localhost [127.0.0.1]) by arcturus.maxiscale.com (Spam Firewall) with ESMTP id 8AB45310B4 for ; Wed, 26 Nov 2008 14:46:46 -0800 (PST) Received: from polaris.maxiscale.com (polaris.maxiscale.com [10.100.1.24]) by arcturus.maxiscale.com with ESMTP id SP84DjIE4Oe2TKIU for ; Wed, 26 Nov 2008 14:46:46 -0800 (PST) X-ASG-Whitelist: Client X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-ASG-Orig-Subj: RE: FreeBSD boot menu is missing MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 26 Nov 2008 14:46:44 -0800 Message-ID: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com> In-Reply-To: <20081126153510.6062cd55@bhuda.mired.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FreeBSD boot menu is missing Thread-Index: AclQBrHcdieaNHa0Sy6ujKbDjzqPNQAAjwkg References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com> <20081126153510.6062cd55@bhuda.mired.org> From: "Peter Steele" To: X-Barracuda-Connect: polaris.maxiscale.com[10.100.1.24] X-Barracuda-Start-Time: 1227739608 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at maxiscale.com Subject: RE: FreeBSD boot menu is missing 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, 26 Nov 2008 22:46:50 -0000 >The phrase "and copy the file systems over to the mirror" worries >me. Do you actually copy the file systems, or do you let the mirror >system do it for you? In particular, are you mirroring file systems or >the entire disk? Because the boot blocks aren't part of any file >system, so you won't have copied them over, hence you'll be getting >whatever boot software the second drive has installed. I'm more or less using the approach described here: http://people.freebsd.org/~rse/mirror/ This assumes you have an existing OS installed on one drive of a multi-drive system. You then use gmirror to create mirror devices on a second drive to match the partitions of the boot drive, transfer the data to the newly established mirror, adjust /etc/fstab on the mirrored root partition to mount the appropriate mirrored devices, then reboot, telling the boot loader to boot from the mirrored drive instead of the original boot drive (via an entry in boot.config). After it comes up, you can then add the original boot drive to the mirror (and any other drive if there are more than two drives that you want to mirror) using gmirror insert. This all works fine, except I'm not getting the boot menu. I know this isn't part of the mirroring, but it is a step I need to perform as part of the whole process. The question is what do I need to do to make sure the appropriate boot loader is setup? >My recommendation for gmirror is to set up one drive to boot from, >then us gmirror label to create a gmirror device on each partition >(excluding swap). Edit /etc/fstab to use the gmirror devices thus >created, and reboot to make sure it's working properly. It will >initially boot from the disk device (pretty much required until >gmirror is started), then switch to the mirrored root partition. Now >use gmirror insert to add the matching partitions on the second disk, >and let gmirror update the bits on the second drive. You'll need to >copy the boot blocks from the first drive to the second drive by hand >if you want to boot off the second drive. I think you are describing more or less the same process here. >FWIW, these days I use ZFS on 64 bit systems in preference to UFS and >gmirror. We plan to switch our application over to ZFS, but not this close to a release. >Final comment: if you didn't ask on -questions first, this would have >been more appropriate there than here. My bad. I'm new in this arena and didn't know where the appropriate place to post. I'm use -questions in the future. From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 26 22:53: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 7B8BF1065676 for ; Wed, 26 Nov 2008 22:53:54 +0000 (UTC) (envelope-from hans@lambermont.dyndns.org) Received: from lambermont.dyndns.org (lambermont.dyndns.org [82.95.221.39]) by mx1.freebsd.org (Postfix) with ESMTP id 2B9278FC08 for ; Wed, 26 Nov 2008 22:53:53 +0000 (UTC) (envelope-from hans@lambermont.dyndns.org) Received: from frag.lambermont.dyndns.org.lambermont.dyndns.org (frag.lambermont.dyndns.org [192.168.100.21]) by lambermont.dyndns.org (Postfix) with ESMTP id 0C4D91CC21; Wed, 26 Nov 2008 23:37:53 +0100 (CET) Received: by frag.lambermont.dyndns.org.lambermont.dyndns.org (Postfix, from userid 1001) id 748374C03C; Wed, 26 Nov 2008 23:38:52 +0100 (CET) Date: Wed, 26 Nov 2008 23:38:52 +0100 To: Artem Naluzhnyy Message-ID: <20081126223852.GV23260@frag.lambermont.dyndns.org> References: <65dfa4fc0811261002w61224c0ey9ed987f3f8122db0@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <65dfa4fc0811261002w61224c0ey9ed987f3f8122db0@mail.gmail.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) From: hans@lambermont.dyndns.org (H) Cc: freebsd-hackers@freebsd.org Subject: Re: crontab(5) enhancements 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, 26 Nov 2008 22:53:54 -0000 Artem Naluzhnyy wrote on 20081126: > I have two suggestion for newsyslog(8) and periodic(8) entries in > default /etc/crontab file: > * nice(1) newsyslog and periodic entries to shape CPU load spikes; > * lockf(1) them to prevent simultaneous execution. I think a pointer to at least lockf will be welcomed by our users. regards, Hans Lambermont From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 00:01:32 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 661B0106567A for ; Thu, 27 Nov 2008 00:01:32 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id 24FD38FC14 for ; Thu, 27 Nov 2008 00:01:32 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from feathers.peganest.com ([IPv6:2001:4d48:ad51:32:21b:21ff:fe1c:3ce]) (authenticated bits=0) by hercules.mthelicon.com (8.14.3/8.14.2) with ESMTP id mAR01U7F052901 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Thu, 27 Nov 2008 00:01:31 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc Cleaft Organization: Feathers To: hackers@freebsd.org Date: Thu, 27 Nov 2008 00:01:29 +0000 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; amd64; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811270001.29378.ken@mthelicon.com> Cc: Subject: Removing zpool log device - 8.0-Current 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, 27 Nov 2008 00:01:32 -0000 Hello Hackers, I was wondering if anyone knows a work around for this. I have added a log device to one of my zfs pools (it is a unused ATA drive slice that has no activity on it after boot up as most other directories live in there own zfs filing systems). I have added a SSD to the machine and have successfully moved the cache to this device, but wanted to also move the ZIL to another slice on the SSD unit. When I type 'zpool remove PegaBase ar0s1e' I receive the following error: feathers# zpool remove PegaBase ar0s1e cannot remove ar0s1e: only inactive hot spares or cache devices can be removed I know this is a known bug: http://bugs.opensolaris.org/view_bug.do?bug_id=6574286 However, someone mentioned that if you were to flush the ZIL by closing all transactions, you can then remove the device. Does anyone know how this can be done? I have tried the usual fsync, but that dosent seem to flush the zil back to the pool. There seems to be a static amount of information held in the zil and never seems to flush back. Atleast that is how it seems. I would be grateful for any ideas.. Ta Peg From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 00:05:52 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 15ECB1065672 for ; Thu, 27 Nov 2008 00:05:52 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (five.mired.org [66.92.153.75]) by mx1.freebsd.org (Postfix) with ESMTP id 909EE8FC1D for ; Thu, 27 Nov 2008 00:05:51 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 64310 invoked by uid 1001); 26 Nov 2008 19:05:46 -0500 Received: from bhuda.mired.org (localhost.localdomain [127.0.0.1]) by bhuda (tmda-ofmipd) with ESMTP; Wed, 26 Nov 2008 19:05:46 -0500 Date: Wed, 26 Nov 2008 19:05:45 -0500 To: "Peter Steele" Message-ID: <20081126190545.17b79195@bhuda.mired.org> In-Reply-To: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com> References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com> <20081126153510.6062cd55@bhuda.mired.org> <2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com> Organization: Meyer Consulting X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; amd64-portbld-freebsd7.0) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD boot menu is missing 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, 27 Nov 2008 00:05:52 -0000 On Wed, 26 Nov 2008 14:46:44 -0800 "Peter Steele" wrote: > >The phrase "and copy the file systems over to the mirror" worries > >me. Do you actually copy the file systems, or do you let the mirror > >system do it for you? In particular, are you mirroring file systems or > >the entire disk? Because the boot blocks aren't part of any file > >system, so you won't have copied them over, hence you'll be getting > >whatever boot software the second drive has installed. > > I'm more or less using the approach described here: > > http://people.freebsd.org/~rse/mirror/ > > This assumes you have an existing OS installed on one drive of a > multi-drive system. You then use gmirror to create mirror devices on a > second drive to match the partitions of the boot drive, transfer the > data to the newly established mirror, adjust /etc/fstab on the mirrored > root partition to mount the appropriate mirrored devices, then reboot, > telling the boot loader to boot from the mirrored drive instead of the > original boot drive (via an entry in boot.config). After it comes up, > you can then add the original boot drive to the mirror (and any other > drive if there are more than two drives that you want to mirror) using > gmirror insert. This all works fine, except I'm not getting the boot > menu. I know this isn't part of the mirroring, but it is a step I need > to perform as part of the whole process. The question is what do I need > to do to make sure the appropriate boot loader is setup? He had you install a stock MBR on the second disk. You never copied the boot loader from the first disk, so that's what you're going to use when you boot from the second disk. You need to install the boot block you want on the second disk. Which probably means boot0. boot0cfg will do that for you. You probably want boot0cfg -B -s 1 # The device - ad1, not the slice! > >My recommendation for gmirror is to set up one drive to boot from, > >then us gmirror label to create a gmirror device on each partition > >(excluding swap). Edit /etc/fstab to use the gmirror devices thus > >created, and reboot to make sure it's working properly. It will > >initially boot from the disk device (pretty much required until > >gmirror is started), then switch to the mirrored root partition. Now > >use gmirror insert to add the matching partitions on the second disk, > >and let gmirror update the bits on the second drive. You'll need to > >copy the boot blocks from the first drive to the second drive by hand > >if you want to boot off the second drive. > I think you are describing more or less the same process here. Um, no. He reduced the size of one partition because he's overly paranoid about gmirror failing to recognize the providers properly, which forces him to dump and restore one partition - which leads to doing them all to get them on one disk. If you don't need to resize the partitions, you can just labelling the disk you're already using. Once you've done that, you can gmirror insert the second drive into the mirror, and it will resilver the second drive while providing full access to the first one. No need to copy any data at all. His analysis of the choices is pretty shallow as well. He lets wanting to use different-sized disks dominate the analysis, which is great if you're building your mirror with disks from the parts bin. I tend to by drives to pairs if I want to mirror them, so that's immaterial. Once that's gone, mirroring a full disk slice just doesn't make sense at all - either mirror the entire disk (to get the MBR), or mirror the partitions in the slice (for extra flexibility and less painful resilvering). Better instructions for getting a full-disk mirror can be found here: http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 00:56:06 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 39B541065674 for ; Thu, 27 Nov 2008 00:56:06 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from arcturus.maxiscale.com (arcturus.maxiscale.com [76.231.178.136]) by mx1.freebsd.org (Postfix) with ESMTP id 0C3D68FC1B for ; Thu, 27 Nov 2008 00:56:05 +0000 (UTC) (envelope-from psteele@maxiscale.com) X-ASG-Debug-ID: 1227747219-7a4800000000-P5m3U7 X-Barracuda-URL: http://10.100.1.25:8000/cgi-bin/mark.cgi Received: from polaris.maxiscale.com (localhost [127.0.0.1]) by arcturus.maxiscale.com (Spam Firewall) with ESMTP id 9528030F92 for ; Wed, 26 Nov 2008 16:53:44 -0800 (PST) Received: from polaris.maxiscale.com (polaris.maxiscale.com [10.100.1.24]) by arcturus.maxiscale.com with ESMTP id FVYnjLS7CADXih7X for ; Wed, 26 Nov 2008 16:53:43 -0800 (PST) X-ASG-Whitelist: Client X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-ASG-Orig-Subj: RE: FreeBSD boot menu is missing MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 26 Nov 2008 16:53:11 -0800 Message-ID: <2ACA3DE8F9758A48B8BE2C7A847F91F240CEB4@polaris.maxiscale.com> In-Reply-To: <20081126190545.17b79195@bhuda.mired.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FreeBSD boot menu is missing Thread-Index: AclQJCFyffkTO5sTSCmscVyeA824+wABTuBg References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com><20081126153510.6062cd55@bhuda.mired.org><2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com> <20081126190545.17b79195@bhuda.mired.org> From: "Peter Steele" To: "Mike Meyer" X-Barracuda-Connect: polaris.maxiscale.com[10.100.1.24] X-Barracuda-Start-Time: 1227747318 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at maxiscale.com Cc: freebsd-hackers@freebsd.org Subject: RE: FreeBSD boot menu is missing 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, 27 Nov 2008 00:56:06 -0000 >He had you install a stock MBR on the second disk. You never copied >the boot loader from the first disk, so that's what you're going to >use when you boot from the second disk. You need to install the boot >block you want on the second disk. Which probably means >boot0. boot0cfg will do that for you. You probably want > boot0cfg -B -s 1 # The device - ad1, not the slice! Okay, that makes sense. That's an easy change to my script. >Um, no. He reduced the size of one partition because he's overly >paranoid about gmirror failing to recognize the providers properly, >which forces him to dump and restore one partition - which leads to >doing them all to get them on one disk. If you don't need to resize >the partitions, you can just labelling the disk you're already using. >Once you've done that, you can gmirror insert the second drive into >the mirror, and it will resilver the second drive while providing full >access to the first one. No need to copy any data at all. Man, I wish I'd known this. I built a whole automated framework around this, assuming you couldn't set up the initial mirror drive with a live file system. I'll have to try your solution; it is definitely the way to go. We are dealing with identical size drives as well so this shouldn't be a problem. >His analysis of the choices is pretty shallow as well. He lets wanting >to use different-sized disks dominate the analysis, which is great if >you're building your mirror with disks from the parts bin. I tend to >by drives to pairs if I want to mirror them, so that's >immaterial. Once that's gone, mirroring a full disk slice just doesn't >make sense at all - either mirror the entire disk (to get the MBR), or >mirror the partitions in the slice (for extra flexibility and less >painful resilvering). We don't want to mirror the whole drive, just the OS partitions. I decided to go with the full slice mirroring because of what was described in this link. If mirroring the partitions in the slice is the better way to go, then that's fine my me.=20 >Better instructions for getting a full-disk mirror can be found here: >http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html I look forward to reading this. Thanks for the help! From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 03:49:43 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 6DD921065673 for ; Thu, 27 Nov 2008 03:49:43 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 52D1D8FC08 for ; Thu, 27 Nov 2008 03:49:43 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1L5XaT-0001hJ-72 for freebsd-hackers@freebsd.org; Wed, 26 Nov 2008 19:30:41 -0800 Message-ID: <20713056.post@talk.nabble.com> Date: Wed, 26 Nov 2008 19:30:41 -0800 (PST) From: ancelgray To: freebsd-hackers@freebsd.org In-Reply-To: <20080121170155.GC51116@hamlet.SetFilePointer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ancelgray@yahoo.com References: <20080121170155.GC51116@hamlet.SetFilePointer.com> X-Mailman-Approved-At: Thu, 27 Nov 2008 05:00:48 +0000 Subject: Re: Hardware support for AMD Geode CS5536 audio? 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, 27 Nov 2008 03:49:43 -0000 To AMD CS5536 users: This is Andrew Gray. I have finished the audio driver for the AMD CS5536 companion chip. It is working on a PC Engines Alix 1C low power board under FreeBSD 7.0. It can be found at: http://modelofreality.org/snd_amd5536.html Let me know how it goes. Andrew Gray ancelgray AT y a h o o DOT com -- View this message in context: http://www.nabble.com/Hardware-support-for-AMD-Geode-CS5536-audio--tp15002428p20713056.html Sent from the freebsd-hackers mailing list archive at Nabble.com. From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 05:46: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 0B9E4106564A for ; Thu, 27 Nov 2008 05:46:19 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: from mail-gx0-f12.google.com (mail-gx0-f12.google.com [209.85.217.12]) by mx1.freebsd.org (Postfix) with ESMTP id C5AEB8FC16 for ; Thu, 27 Nov 2008 05:46:18 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: by gxk5 with SMTP id 5so810800gxk.19 for ; Wed, 26 Nov 2008 21:46: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:user-agent :mime-version:to:subject:references:in-reply-to:x-enigmail-version :openpgp:content-type:content-transfer-encoding:from; bh=XyIMYTU0ViIxkJFMAc8JjhjUwUr9oHl4nzisY4+tqUY=; b=Nm0SzmELh5O62WYPSIBEO/xW/7caPASgWk3fRh9e/duu2OatCUO3PTVSBZSgJkZLIq a0d1lOdH450t/0liF0IiQArGfDj8Mgi+ThDSUnv5iHbl0pXfKBwqOJa3MbeckA9A/Ptu 4LA+MrLWsfuVobB+U15skZymSG4eeE725tu6s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding:from; b=E0TPwcUjIAVJylHDNtvUeadEM2H+OpZtVYCv893aDS4jKQXL6wHhEzHw0dEcX5La94 SB5SlHhA/hd9nceVYMEffc5y6VilfvgfjiApDU5E8tXxTBXLb8YMtD53VOYhiRAN3Da7 mPBn2sD6Cr7ZVwUmmaZ+lfwz5dIWj4q5OATMI= Received: by 10.90.98.12 with SMTP id v12mr3827372agb.64.1227764777577; Wed, 26 Nov 2008 21:46:17 -0800 (PST) Received: from ?192.168.1.101? (ool-182d26f3.dyn.optonline.net [24.45.38.243]) by mx.google.com with ESMTPS id 18sm1175564agb.12.2008.11.26.21.46.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 26 Nov 2008 21:46:16 -0800 (PST) Message-ID: <492E3424.4080109@gmail.com> Date: Thu, 27 Nov 2008 00:46:12 -0500 User-Agent: Mozilla (X11; U; FreeBSD i386; en-US; ) Gecko Thunderbird Mnenhy/0.7.5.666 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <87vdueavft.fsf@h1.lan> <20081124084016.GA1384@lizard.fafoe.narf.at> In-Reply-To: <20081124084016.GA1384@lizard.fafoe.narf.at> X-Enigmail-Version: 0.95.7 OpenPGP: id=E9C2CCD1; url=pgp.mit.edu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Eitan Adler Subject: Re: `type' built-in command in /bin/sh 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, 27 Nov 2008 05:46:19 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stefan Farfeleder wrote: > On Mon, Nov 24, 2008 at 02:12:22AM +0300, Zajcev Evgeny wrote: >> Hello there. I just hit into "problem" that built-in sh command type >> outputs to stdout when error occurs. I mean it returns non-0 status, >> but outputs to stdout! I think stderr has been made exactly for such >> purposes and `type' should use it in case of error .. what do you >> think? As far as I could tell if (cmd != TYPECMD_SMALLV) out1str(": not found\n"); has to be changed to if (cmd != TYPECMD_SMALLV) out2str(": not found\n"); C is not my strongest language so please let me know if I am correct. - -- Eitan Adler GNU Key fingerptrint: 2E13 BC16 5F54 0FBD 62ED 42B6 B65F 24AB E9C2 CCD1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkuNCQACgkQtl8kq+nCzNGrGgCfZu5MHngEnMyQ5X+g1ZtKraJu blsAn3xoReD4+mVYU5Agw3Ns5CyIIO+p =0cXm -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 10:45:12 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 563DD106564A for ; Thu, 27 Nov 2008 10:45:12 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 17CAD8FC1A for ; Thu, 27 Nov 2008 10:45:12 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 202EF6D43F; Thu, 27 Nov 2008 10:45:11 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id E9EA08449F; Thu, 27 Nov 2008 11:45:10 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Peter Steele" References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com> <20081126153510.6062cd55@bhuda.mired.org> <2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com> <20081126190545.17b79195@bhuda.mired.org> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEB4@polaris.maxiscale.com> Date: Thu, 27 Nov 2008 11:45:10 +0100 In-Reply-To: <2ACA3DE8F9758A48B8BE2C7A847F91F240CEB4@polaris.maxiscale.com> (Peter Steele's message of "Wed, 26 Nov 2008 16:53:11 -0800") Message-ID: <861vwx4fd5.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Mike Meyer Subject: Re: FreeBSD boot menu is missing 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, 27 Nov 2008 10:45:12 -0000 "Peter Steele" writes: > Man, I wish I'd known this. I built a whole automated framework around > this, assuming you couldn't set up the initial mirror drive with a live > file system. I'll have to try your solution; it is definitely the way to > go. We are dealing with identical size drives as well so this shouldn't > be a problem. Just make sure you leave a few unallocated blocks at the end of the disk (for gmirror metadata). In most cases, this happens automatically, because the size of the disk is not a multiple of the (fake) cylinder size. To pick one at random, I have a Maxtor 6B300S0 here with 586112591 LBA sectors where the fake c/h/s geometry only adds up to 586111680 sectors, leaving 911 sectors at the end. > We don't want to mirror the whole drive, just the OS partitions. I > decided to go with the full slice mirroring because of what was > described in this link. If mirroring the partitions in the slice is the > better way to go, then that's fine my me.=20 Mirroring the entire slice is far simpler. If you mirror individual partitions, you have to label them *before* you newfs them. I would mirror the whole drive, though - and I would use ZFS, with which you can easily transition to larger drives (just replace them one by one and resilver in between - you can even do it online if your disks are hot-swappable) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 12:40: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 09C141065673; Thu, 27 Nov 2008 12:40:15 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 0693C8FC18; Thu, 27 Nov 2008 12:40:13 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA20976; Thu, 27 Nov 2008 14:40:10 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <492E952A.80104@icyb.net.ua> Date: Thu, 27 Nov 2008 14:40:10 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org, freebsd-usb@FreeBSD.org References: <4911BA93.9030006@icyb.net.ua> <491ABFCD.3060309@icyb.net.ua> <491AC502.9000507@icyb.net.ua> <20081112121410.GA24629@icarus.home.lan> <491ACA19.2040008@icyb.net.ua> <20081112123315.GA24907@icarus.home.lan> <491AD0CB.8050309@icyb.net.ua> <20081112132124.GA25637@icarus.home.lan> <491ADB3B.2090000@icyb.net.ua> In-Reply-To: <491ADB3B.2090000@icyb.net.ua> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: ukbd attachment and root mount 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, 27 Nov 2008 12:40:15 -0000 Setting this issue on a technical trail now. 1. I built a kernel with USB_DEBUG enabled. BTW, there doesn't seem to be a way to set debug levels for USB subsystems at boot time, i.e. via hints. Or am I missing something? It seems that the levels can only be set via sysctl but that's too late for boot time debugging. I had to hardcode some non-zero initial values for the levels. 2. I performed a verbose boot with USB_DEBUG kernel. 3. I looked through the dmesg and through code. Some observations and thoughts. There seem to be 3 points where devices attached via USB get explored/discovered and probed/matched/attached. First of all, typical USB controllers are attached to PCI, so ehci/uhci/ohci devices and their corresponding usb and uhub devices are attached along with other PCI devices. Then, for EHCI usb devices bus exploration is performed immediately and so some devices can get attached quite early (e.g. umass). This is the first point. For UHCI/OHCI hubs are added to special cold exploration list. And also event threads are created for all hubs. Then, via SYSINIT mechanism buses in the "cold list" get explored. Actual priority is SI_SUB_CONFIGURE:SI_ORDER_MIDDLE. This is the second point. And finally the event threads get executed and after some delay (about 4 seconds) they also explore their buses. What I observe here matched the described behavior but only to a certain extent: 1. I see that certain devices like an external USB hub get reported in dmesg among PCI devices. I understand that this is the first point ("ehci"). 2. My USB mouse (low speed, attached to uhci) gets reported somewhere between the following lines: isa_probe_children: probing PnP devices ... Device configuration finished. I understand that this is the second point ("sysinit"). 3. My USB keyboard gets reported after mountroot (but before start of init). I think that this is the third point. So what is very puzzling to me is why the keyboard is not found along with the mouse at the second point. Especially given that they are attached to the ports of the same hub: Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub2 port 1 addr 2: low speed, power 98 mA, config 1, USB-PS/2 Optical Mouse(0xc040), Logitech(0x046d), rev 24.30 ums0 port 2 addr 3: low speed, power 100 mA, config 1, USB Keyboard(0x0101), CHESEN(0x0a81), rev 1.10 ukbd0 uhid0 Here's a snippet from verbose dmesg wth USB_DEBUG where the mouse is reported: isa_probe_children: probing PnP devices uhub_explore: status change hub=1 port=1 usbd_reset_port: port 1 reset done, error=NORMAL_COMPLETION usbd_new_device bus=0xffffffff80c7d000 port=1 depth=1 speed=1 usbd_setup_pipe: dev=0xffffff0004a16d00 iface=0 ep=0xffffff0004a16d38 pipe=0xffffff0004a16d08 uhci_open: pipe=0xffffff0004a16c00, addr=0, endpt=0 (1) usb_allocmem: adding fragments usbd_new_device: adding unit addr=2, rev=200, class=0, subclass=0, protocol=0, maxpacket=8, len=18, speed=1 usbd_ar_pipe: pipe=0xffffff0004a16c00 usbd_setup_pipe: dev=0xffffff0004a16d00 iface=0 ep=0xffffff0004a16d38 pipe=0xffffff0004a16d08 uhci_open: pipe=0xffffff0004a16b00, addr=0, endpt=0 (1) usbd_ar_pipe: pipe=0xffffff0004a16b00 usbd_setup_pipe: dev=0xffffff0004a16d00 iface=0 ep=0xffffff0004a16d38 pipe=0xffffff0004a16d08 uhci_open: pipe=0xffffff0004a16a00, addr=2, endpt=0 (1) usbd_new_device: new dev (addr 2), dev=0xffffff0004a16d00, parent=0xffffff0001338c00 usbd_probe_and_attach: trying device specific drivers usbd_probe_and_attach: no device specific driver found usbd_probe_and_attach: looping over 1 configurations usbd_probe_and_attach: trying config idx=0 usbd_set_config_index: (addr 1) cno=2 attr=0xa0, selfpowered=0, power=98 usbd_set_config_index: set config 1 ums0: on uhub2 ums0: 8 buttons and Z dir. uhub_explore: status change hub=1 port=2 uhub_explore: status change hub=1 port=1 Device configuration finished. And here's how the keyboard is found later: Trying to mount root from zfs:tank/root usbd_new_device bus=0xffffffff80c7d000 port=2 depth=1 speed=1 usbd_setup_pipe: dev=0xffffff0004b53000 iface=0 ep=0xffffff0004b53038 pipe=0xffffff0004b53008 uhci_open: pipe=0xffffff0001242c00, addr=0, endpt=0 (1) usbd_new_device: adding unit addr=3, rev=110, class=0, subclass=0, protocol=0, maxpacket=8, len=18, speed=1 usbd_ar_pipe: pipe=0xffffff0001242c00 usbd_setup_pipe: dev=0xffffff0004b53000 iface=0 ep=0xffffff0004b53038 pipe=0xffffff0004b53008 uhci_open: pipe=0xffffff0001242e00, addr=0, endpt=0 (1) usbd_ar_pipe: pipe=0xffffff0001242e00 usbd_setup_pipe: dev=0xffffff0004b53000 iface=0 ep=0xffffff0004b53038 pipe=0xffffff0004b53008 uhci_open: pipe=0xffffff0004b53100, addr=3, endpt=0 (1) usbd_new_device: new dev (addr 3), dev=0xffffff0004b53000, parent=0xffffff0001338c00 usbd_probe_and_attach: trying device specific drivers usbd_probe_and_attach: no device specific driver found usbd_probe_and_attach: looping over 1 configurations usbd_probe_and_attach: trying config idx=0 usbd_set_config_index: (addr 1) cno=3 attr=0xa0, selfpowered=0, power=100 usbd_set_config_index: set config 1 ukbd0: on uhub2 Full dmesg is here: http://www.icyb.net.ua/~avg/ukbd.dmesg.gz -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 12:41: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 C23AF1065670 for ; Thu, 27 Nov 2008 12:41:38 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 7D55B8FC24 for ; Thu, 27 Nov 2008 12:41:38 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so435469yxb.13 for ; Thu, 27 Nov 2008 04:41:37 -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=1+He6tQBrN+zwH9jHhLYQ4jN+LombKEj7GRyDsK6wvk=; b=kUPjbNH0E+QE4EvwbJqEvhdqeBaA9A3iTIYP2HURzu7v2i7KYYY+NcaGa/ndVYMhuB WgRO5CCpAhZn/CdfBnXz0OGbj/fqq4hQl8pRurDI2wb53rPGQbiwDwvBxX70nEZErb+y Lx6XFtpV0cX2u/PmOuRbjqkD7VY1F/ymq6cwI= 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=rnWQ5ppFS9kXfaQQIuuI0XbgVS6cGZ5ekgI7VV8Sm+0smEsbQc+ZpjoWuSeUPqfmyU /jzlpXqQPfCh/akHi+b+KWNvZKY0/ZLyOkcE0NMxU1GrRAVlSPVYcogT/CxHv1CsgUUa E7bLnnHTQw89rKPt3RY4sg+vvenVPRaMWv9UU= Received: by 10.151.46.3 with SMTP id y3mr13354608ybj.199.1227789697927; Thu, 27 Nov 2008 04:41:37 -0800 (PST) Received: by 10.150.154.21 with HTTP; Thu, 27 Nov 2008 04:41:37 -0800 (PST) Message-ID: <20def4870811270441n6b201076k715e1c7e1adc8781@mail.gmail.com> Date: Thu, 27 Nov 2008 14:41:37 +0200 From: "Yony Yossef" To: freebsd-hackers@freebsd.org, freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: IFCAP_LRO on 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: Thu, 27 Nov 2008 12:41:38 -0000 Hi All, Is there a native interface for LRO in FreeBSD 7? I can't find any use for IFCAP_LRO but notifying the driver if to use or not to use this offload. If not, is it planned for FreeBSD 8? Thanks Yony From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 12:51: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 DEA77106564A; Thu, 27 Nov 2008 12:51:28 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id B89D08FC12; Thu, 27 Nov 2008 12:51:28 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTP id 47F8546B52; Thu, 27 Nov 2008 07:51:28 -0500 (EST) Date: Thu, 27 Nov 2008 12:51:28 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Yony Yossef In-Reply-To: <20def4870811270441n6b201076k715e1c7e1adc8781@mail.gmail.com> Message-ID: References: <20def4870811270441n6b201076k715e1c7e1adc8781@mail.gmail.com> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: jfv@FreeBSD.org, freebsd-hackers@freebsd.org, freebsd-net@freebsd.org Subject: Re: IFCAP_LRO on 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: Thu, 27 Nov 2008 12:51:29 -0000 On Thu, 27 Nov 2008, Yony Yossef wrote: > Is there a native interface for LRO in FreeBSD 7? I can't find any use for > IFCAP_LRO but notifying the driver if to use or not to use this offload. > > If not, is it planned for FreeBSD 8? IFCAP_LRO is a capability/policy flag allowing drivers to declare support for LRO, and for administrators to enable/disable it if present. Drivers can either provide their own implementation (mxge, nxge) or use the system implementation (cxgb, igb). I'm slightly surprised to see that igb references tcp_lro_init() but not IFCAP_LRO -- perhaps lro isn't yet fully hooked up, or perhaps there's a bug? I believe all of the above applies to 7.1 but not 7.0, except possibly mxge supporting LRO in 7.0. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 13:23: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 254E0106564A; Thu, 27 Nov 2008 13:23:21 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 0FE5E8FC1F; Thu, 27 Nov 2008 13:23:19 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA22017; Thu, 27 Nov 2008 15:23:18 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <492E9F45.2090404@icyb.net.ua> Date: Thu, 27 Nov 2008 15:23:17 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org, freebsd-usb@FreeBSD.org References: <4911BA93.9030006@icyb.net.ua> <491ABFCD.3060309@icyb.net.ua> <491AC502.9000507@icyb.net.ua> <20081112121410.GA24629@icarus.home.lan> <491ACA19.2040008@icyb.net.ua> <20081112123315.GA24907@icarus.home.lan> <491AD0CB.8050309@icyb.net.ua> <20081112132124.GA25637@icarus.home.lan> <491ADB3B.2090000@icyb.net.ua> <492E952A.80104@icyb.net.ua> In-Reply-To: <492E952A.80104@icyb.net.ua> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: ukbd attachment and root mount 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, 27 Nov 2008 13:23:21 -0000 I increased debug level in uhub and also switched mouse and keyboard ports hoping that order might matter. It didn't. Here's fresh usbdevs output snippet: Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub2 port 1 addr 3: low speed, power 100 mA, config 1, USB Keyboard(0x0101), CHESEN(0x0a81), rev 1.10 ukbd0 uhid0 port 2 addr 2: low speed, power 98 mA, config 1, USB-PS/2 Optical Mouse(0xc040), Logitech(0x046d), rev 24.30 ums0 And here's a new snippet from cold explore dmesg: uhub2: uhub_explore: port 1 status 0x0100 0x0001 + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + So, hm, it looks like a change in connection status is reported but current status is reported as not connected. + I wonder why? + Could this be related to how we perform UHCI handover from BIOS to kernel? + Our uhci code seems to be much simpler than what MS folks described here: + http://www.microsoft.com/whdc/archive/usbhost.mspx#EQHAC uhub_explore: status change hub=1 port=1 uhub_explore: port=1 !CURRENT_CONNECT_STATUS uhub2: uhub_explore: port 2 status 0x0301 0x0001 uhub_explore: status change hub=1 port=2 usbd_reset_port: port 2 reset done, error=NORMAL_COMPLETION usbd_new_device bus=0xffffffff80c7d000 port=2 depth=1 speed=1 usbd_setup_pipe: dev=0xffffff0004a16d00 iface=0 ep=0xffffff0004a16d38 pipe=0xffffff0004a16d08 uhci_open: pipe=0xffffff0004a16c00, addr=0, endpt=0 (1) usb_allocmem: adding fragments usbd_new_device: adding unit addr=2, rev=200, class=0, subclass=0, protocol=0, maxpacket=8, len=18, speed=1 usbd_ar_pipe: pipe=0xffffff0004a16c00 usbd_setup_pipe: dev=0xffffff0004a16d00 iface=0 ep=0xffffff0004a16d38 pipe=0xffffff0004a16d08 uhci_open: pipe=0xffffff0004a16b00, addr=0, endpt=0 (1) usbd_ar_pipe: pipe=0xffffff0004a16b00 usbd_setup_pipe: dev=0xffffff0004a16d00 iface=0 ep=0xffffff0004a16d38 pipe=0xffffff0004a16d08 uhci_open: pipe=0xffffff0004a16a00, addr=2, endpt=0 (1) usbd_new_device: new dev (addr 2), dev=0xffffff0004a16d00, parent=0xffffff0001338c00 usbd_probe_and_attach: trying device specific drivers usbd_probe_and_attach: no device specific driver found usbd_probe_and_attach: looping over 1 configurations usbd_probe_and_attach: trying config idx=0 usbd_set_config_index: (addr 1) cno=2 attr=0xa0, selfpowered=0, power=98 usbd_set_config_index: set config 1 ums0: on uhub2 ums0: 8 buttons and Z dir. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 16:19:42 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 48748106564A for ; Thu, 27 Nov 2008 16:19:42 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from arcturus.maxiscale.com (arcturus.maxiscale.com [76.231.178.136]) by mx1.freebsd.org (Postfix) with ESMTP id 252528FC21 for ; Thu, 27 Nov 2008 16:19:41 +0000 (UTC) (envelope-from psteele@maxiscale.com) X-ASG-Debug-ID: 1227802762-297a00000000-P5m3U7 X-Barracuda-URL: http://10.100.1.25:8000/cgi-bin/mark.cgi Received: from polaris.maxiscale.com (localhost [127.0.0.1]) by arcturus.maxiscale.com (Spam Firewall) with ESMTP id 64788310C3 for ; Thu, 27 Nov 2008 08:19:23 -0800 (PST) Received: from polaris.maxiscale.com (polaris.maxiscale.com [10.100.1.24]) by arcturus.maxiscale.com with ESMTP id tIR8nXH8MvNQTS0P for ; Thu, 27 Nov 2008 08:19:22 -0800 (PST) X-ASG-Whitelist: Client X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-ASG-Orig-Subj: RE: FreeBSD boot menu is missing MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Date: Thu, 27 Nov 2008 08:19:18 -0800 Message-ID: <2ACA3DE8F9758A48B8BE2C7A847F91F240CEBF@polaris.maxiscale.com> In-Reply-To: <861vwx4fd5.fsf@ds4.des.no> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FreeBSD boot menu is missing Thread-Index: AclQfW+A8shxrxnsSJqtdUYEpKFMJQAK85eA References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com><20081126153510.6062cd55@bhuda.mired.org><2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com><20081126190545.17b79195@bhuda.mired.org><2ACA3DE8F9758A48B8BE2C7A847F91F240CEB4@polaris.maxiscale.com> <861vwx4fd5.fsf@ds4.des.no> From: "Peter Steele" To: =?utf-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= X-Barracuda-Connect: polaris.maxiscale.com[10.100.1.24] X-Barracuda-Start-Time: 1227802772 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at maxiscale.com Cc: freebsd-hackers@freebsd.org, Mike Meyer Subject: RE: FreeBSD boot menu is missing 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, 27 Nov 2008 16:19:42 -0000 Pk1pcnJvcmluZyB0aGUgZW50aXJlIHNsaWNlIGlzIGZhciBzaW1wbGVyLiAgSWYgeW91IG1pcnJv ciBpbmRpdmlkdWFsDQo+cGFydGl0aW9ucywgeW91IGhhdmUgdG8gbGFiZWwgdGhlbSAqYmVmb3Jl KiB5b3UgbmV3ZnMgdGhlbS4NCg0KV2hhdCB3ZSdyZSByZWFsbHkgdHJ5aW5nIHRvIGFjY29tcGxp c2ggaXMgYW4gYXV0b21hdGVkIGluc3RhbGwgdmlhIGEgUFhFIGJvb3Qgc2VydmVyLiBVbmZvcnR1 bmF0ZWx5IGdtaXJyb3IgaXNuJ3QgYXZhaWxhYmxlIGluIG1mc3Jvb3QgYXQgdGhlIHBvaW50IHRo ZSBmaWxlIHN5c3RlbXMgbmVlZCB0byBiZSBzZXQgdXAuIFNvIHdoYXQgd2UndmUgZW5kZWQgdXAg ZG9pbmcgaXMgZG9pbmcgaXMgd2hhdCBhbW91bnRzIHRvIGEgYm9vdHN0cmFwIGluc3RhbGwgb24g dGhlIGZpcnN0IGRpc2ssIGFuZCB0aGVuIGFmdGVyIHRoZSBpbnN0YWxsQ29tbWl0IGlzIGRvbmUs IGdtaXJyb3IgaXMgYXZhaWxhYmxlIGFuZCB3ZSBoYXZlIGEgcG9zdCBpbnN0YWxsIHNjcmlwdCB0 aGF0IHJ1bnMgZ21pcnJvciBvbiB0aGUgb3RoZXIgZHJpdmVzLiBUaGVuIHRoZSBzY3JpcHQgY29w aWVzIHRoZSBPUyBzbGljZSBvdmVyIHRvIHRoZSBnbWlycm9yZWQgZnMsIHJlYm9vdHMgdG8gdGhp cyBtaXJyb3JlZCBzeXN0ZW0sIGFuZCBmaW5hbGx5IGFkZHMgdGhlIG9yaWdpbmFsIGRpc2sgdG8g dGhlIG1pcnJvci4gSXQncyBmdWxseSBhdXRvbWF0ZWQgYW5kIGdpdmVzIHVzIGEgbWlycm9yZWQg T1Mgc2xpY2UgYWNyb3NzIGZvdXIgZHJpdmVzLCBhbmQgd2UgZXZlbiBoYW5kbGUgZHJpdmVzIG9m IGRpZmZlcmVudCBzaXplcy4NCg0KPkkgd291bGQgbWlycm9yIHRoZSB3aG9sZSBkcml2ZSwgdGhv dWdoDQoNCldlIGNhbid0IGRvIHRoYXQuIFRoZSBkYXRhIG9uIHRoZSBub24tbWlycm9yZWQgcG9y dGlvbiBpcyBkaWZmZXJlbnQgb24gZWFjaCBkcml2ZSBhbmQgd2UgZG9uJ3Qgd2FudCBpdCBtaXJy b3JlZC4NCg0KPiAtIGFuZCBJIHdvdWxkIHVzZSBaRlMsIHdpdGggd2hpY2gNCj55b3UgY2FuIGVh c2lseSB0cmFuc2l0aW9uIHRvIGxhcmdlciBkcml2ZXMgKGp1c3QgcmVwbGFjZSB0aGVtIG9uZSBi eSBvbmUNCj5hbmQgcmVzaWx2ZXIgaW4gYmV0d2VlbiAtIHlvdSBjYW4gZXZlbiBkbyBpdCBvbmxp bmUgaWYgeW91ciBkaXNrcyBhcmUNCj5ob3Qtc3dhcHBhYmxlKQ0KDQpGcmVlQlNEIGRvZXNuJ3Qg aGFuZGxlIGhvdCBzd2FwIHZlcnkgd2VsbCB3ZSd2ZSBkaXNjb3ZlcmVkLCBub3QgdW5sZXNzIHlv dSBhcmUgdXNpbmcgYSBSQUlEIGJhc2VkIGJhY2twbGFuZSBhbmQgZHJpdmVzLiBXZSBjYW5ub3Qg dXNlIFJBSUQgaW4gb3VyIGFwcGxpY2F0aW9uLCBhbmQgZG9uJ3QgaW4gZmFjdCB3YW50IHRvLiBX ZSdyZSBzdGlsbCB0cnlpbmcgdG8gZmlndXJlIG91dCBob3cgdG8gZGVhbCB3aXRoIGRyaXZlIHJl bW92YWwgaW4gYSBsaXZlIG5vbi1SQUlEZWQgc3lzdGVtLg0KDQpXZSBwbGFuIHRvIG1vdmUgdG8g WkZTIGJ1dCB3ZSBhcmUgdG9vIGNsb3NlIHRvIGEgcmVsZWFzZSBjeWNsZSB0byBtYWtlIHRoZSBt b3ZlIG5vdyAoUUEgd291bGQgaGF2ZSB0byBydW4gdGhyb3VnaCB3ZWVrcyBvZiB0ZXN0aW5nKS4g WkZTIHdpbGwgaGFwcGVuLCB0aG91Z2gsIHNvb25lciBvciBsYXRlci4NCg0K From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 16:49: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 8BE541065672 for ; Thu, 27 Nov 2008 16:49:48 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 4E1978FC08 for ; Thu, 27 Nov 2008 16:49:48 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 12D806D43F; Thu, 27 Nov 2008 16:49:47 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id E779D8449F; Thu, 27 Nov 2008 17:49:46 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Peter Steele" References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com> <20081126153510.6062cd55@bhuda.mired.org> <2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com> <20081126190545.17b79195@bhuda.mired.org> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEB4@polaris.maxiscale.com> <861vwx4fd5.fsf@ds4.des.no> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEBF@polaris.maxiscale.com> Date: Thu, 27 Nov 2008 17:49:46 +0100 In-Reply-To: <2ACA3DE8F9758A48B8BE2C7A847F91F240CEBF@polaris.maxiscale.com> (Peter Steele's message of "Thu, 27 Nov 2008 08:19:18 -0800") Message-ID: <86myfl15cl.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Mike Meyer Subject: Re: FreeBSD boot menu is missing 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, 27 Nov 2008 16:49:48 -0000 "Peter Steele" writes: > Dag-Erling Sm=C3=B8rgrav writes: > > Mirroring the entire slice is far simpler. If you mirror individual > > partitions, you have to label them *before* you newfs them. > What we're really trying to accomplish is an automated install via a > PXE boot server. Unfortunately gmirror isn't available in mfsroot at > the point the file systems need to be set up. So what we've ended up > doing is doing is what amounts to a bootstrap install on the first > disk, and then after the installCommit is done, gmirror is available > and we have a post install script that runs gmirror on the other > drives. Then the script copies the OS slice over to the gmirrored fs, > reboots to this mirrored system, and finally adds the original disk to > the mirror. It's fully automated and gives us a mirrored OS slice > across four drives, and we even handle drives of different sizes. Exactly. So what you do, instead, is make sure there is a little space left over at the end of the slice that you create in the first step. Then, once gmirror is available, you gmirror label the slice, then gmirror insert the corresponding slice on the other disk(s), and gmirror rebuild. No copying involved; gmirror takes care of it all. The key here is that 'gmirror label' is non-destructive as long as the last sector on the provider is unused. > FreeBSD doesn't handle hot swap very well we've discovered, not unless > you are using a RAID based backplane and drives. It does, AFAIK, even on SATA, provided the controller supports it and is configured correctly. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 18:54:51 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 11DFE106564A for ; Thu, 27 Nov 2008 18:54:51 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from arcturus.maxiscale.com (arcturus.maxiscale.com [76.231.178.136]) by mx1.freebsd.org (Postfix) with ESMTP id E2D108FC18 for ; Thu, 27 Nov 2008 18:54:50 +0000 (UTC) (envelope-from psteele@maxiscale.com) X-ASG-Debug-ID: 1227812075-065d00000000-P5m3U7 X-Barracuda-URL: http://10.100.1.25:8000/cgi-bin/mark.cgi Received: from polaris.maxiscale.com (localhost [127.0.0.1]) by arcturus.maxiscale.com (Spam Firewall) with ESMTP id 9BAD731188 for ; Thu, 27 Nov 2008 10:54:36 -0800 (PST) Received: from polaris.maxiscale.com (polaris.maxiscale.com [10.100.1.24]) by arcturus.maxiscale.com with ESMTP id oHkbA1QQ7TZ8sve1 for ; Thu, 27 Nov 2008 10:54:35 -0800 (PST) X-ASG-Whitelist: Client X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-ASG-Orig-Subj: RE: FreeBSD boot menu is missing MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Date: Thu, 27 Nov 2008 10:54:31 -0800 Message-ID: <2ACA3DE8F9758A48B8BE2C7A847F91F240CEC4@polaris.maxiscale.com> In-Reply-To: <86myfl15cl.fsf@ds4.des.no> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FreeBSD boot menu is missing Thread-Index: AclQsGbPuJX+4eoQT7CRj4PnbqwSSwAD4fbw References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com><20081126153510.6062cd55@bhuda.mired.org><2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com><20081126190545.17b79195@bhuda.mired.org><2ACA3DE8F9758A48B8BE2C7A847F91F240CEB4@polaris.maxiscale.com><861vwx4fd5.fsf@ds4.des.no><2ACA3DE8F9758A48B8BE2C7A847F91F240CEBF@polaris.maxiscale.com> <86myfl15cl.fsf@ds4.des.no> From: "Peter Steele" To: =?utf-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= X-Barracuda-Connect: polaris.maxiscale.com[10.100.1.24] X-Barracuda-Start-Time: 1227812082 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at maxiscale.com Cc: freebsd-hackers@freebsd.org, Mike Meyer Subject: RE: FreeBSD boot menu is missing 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, 27 Nov 2008 18:54:51 -0000 PlNvIHdoYXQgeW91IGRvLCBpbnN0ZWFkLCBpcyBtYWtlIHN1cmUgdGhlcmUgaXMgYSBsaXR0bGUg c3BhY2UgbGVmdCBvdmVyDQo+YXQgdGhlIGVuZCBvZiB0aGUgc2xpY2UgdGhhdCB5b3UgY3JlYXRl IGluIHRoZSBmaXJzdCBzdGVwLiAgVGhlbiwgb25jZQ0KPmdtaXJyb3IgaXMgYXZhaWxhYmxlLCB5 b3UgZ21pcnJvciBsYWJlbCB0aGUgc2xpY2UsIHRoZW4gZ21pcnJvciBpbnNlcnQNCj50aGUgY29y cmVzcG9uZGluZyBzbGljZSBvbiB0aGUgb3RoZXIgZGlzayhzKSwgYW5kIGdtaXJyb3IgcmVidWls ZC4gIE5vDQo+Y29weWluZyBpbnZvbHZlZDsgZ21pcnJvciB0YWtlcyBjYXJlIG9mIGl0IGFsbC4N Cj4NCj5UaGUga2V5IGhlcmUgaXMgdGhhdCAnZ21pcnJvciBsYWJlbCcgaXMgbm9uLWRlc3RydWN0 aXZlIGFzIGxvbmcgYXMgdGhlDQo+bGFzdCBzZWN0b3Igb24gdGhlIHByb3ZpZGVyIGlzIHVudXNl ZC4NCg0KVGhlIHByb2JsZW0gaXMgSSB3YXMgdW5hYmxlIHRvIGdldCBtdWx0aXBsZSBzbGljZXMg ZGVmaW5lZCBpbiBhIHN5c2luc3RhbGwgY29uZmlnIHNjcmlwdC4gSSB0cmllZCBtYW55IHZhcmlh dGlvbnMgb2YgcGFyYW1ldGVycyB0byBwdW1wIGludG8gZGlza1BhcnRpdGlvbkVkaXRvciBhbmQg ZGlza0xhYmVsRWRpdG9yIHNvIHRoYXQgd2UgY291bGQgY3JlYXRlIHRocmVlIHNsaWNlcyBkdXJp bmcgdGhlIGluc3RhbGwgYnV0IEkgY291bGRuJ3QgZmluZCBhbnl0aGluZyB0aGF0IHdvcmtlZC4g U28gSSBlbmRlZCB1cCBoYXZpbmcgdG8gY3JlYXRlIGEgc2luZ2xlIGZ1bGwgZGlzayBzbGljZSB0 byBpbnN0YWxsIHRoZSBPUyBvbnRvLCBhbmQgdGhlbiBpbiBhIHBvc3QgY29tbWl0IHN0ZXAgc2xp Y2UgdGhlIGRpc2tzIHVwIGFzIHdlIHdhbnQgdGhlbSBhbmQgY29weSB0aGUgT1Mgb3Zlci4gSSBj b3VsZG4ndCBmaW5kIGEgc2luZ2xlIGV4YW1wbGUgaG93IHRvIGNyZWF0ZSBtdWx0aXBsZSBzbGlj ZXMgaW4gYSBzeXNpbnN0YWxsIGNvbmZpZyBmaWxlLiBJZiB5b3Uga25vdyBob3cgdG8gZG8gdGhp cywgSSdkIGxvdmUgdG8gc2VlIGl0LiANCg0KPkl0IGRvZXMsIEFGQUlLLCBldmVuIG9uIFNBVEEs IHByb3ZpZGVkIHRoZSBjb250cm9sbGVyIHN1cHBvcnRzIGl0IGFuZCBpcw0KPmNvbmZpZ3VyZWQg Y29ycmVjdGx5Lg0KDQpXaXRoIHRoZSBwcm9wZXIgY29udHJvbGxlciBhbmQgZHJpdmUsIHllcywg RnJlZUJTRCBkb2VzIHN1cHBvcnQgaG90IHN3YXAsIHRvIGEgcG9pbnQuIExldCdzIHNheSBmb3Ig ZXhhbXBsZSB0aGF0IHlvdSBoYXZlIGEgZmlsZSBzeXN0ZW0gbW91bnRlZCBvbiBhIGRyaXZlIGFu ZCB0aGF0IGRyaXZlIGRpZXMuIFlvdSBjYW4gcHVsbCBpdCBhbmQgcHV0IGluIGEgbmV3IG9uZSwg YnV0IEZyZWVCU0Qgd2lsbCBub3QgbGV0IHlvdSB1bm1vdW50IHRoZSBmaWxlIHN5c3RlbSBvbiB0 aGUgb3JpZ2luYWwgZHJpdmUuIEV2ZW4gdW1vdW50IC1mIGZhaWxzLiBXZSBoYXZlIHRvIHJlYm9v dCB0byBnZXQgdGhlIG9sZCBtb3VudCBwb2ludCByZWxlYXNlZCwgYW5kIHdlIGhhdmVuJ3QgZm91 bmQgYW55IHdheSBhcm91bmQgdGhpcy4NCg0K From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 19:44: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 F0F3E1065670 for ; Thu, 27 Nov 2008 19:44:32 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 85C2B8FC1D for ; Thu, 27 Nov 2008 19:44:32 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 41E246D43F; Thu, 27 Nov 2008 19:44:31 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 18EDB844A7; Thu, 27 Nov 2008 20:44:31 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Peter Steele" References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com> <20081126153510.6062cd55@bhuda.mired.org> <2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com> <20081126190545.17b79195@bhuda.mired.org> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEB4@polaris.maxiscale.com> <861vwx4fd5.fsf@ds4.des.no> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEBF@polaris.maxiscale.com> <86myfl15cl.fsf@ds4.des.no> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEC4@polaris.maxiscale.com> Date: Thu, 27 Nov 2008 20:44:31 +0100 In-Reply-To: <2ACA3DE8F9758A48B8BE2C7A847F91F240CEC4@polaris.maxiscale.com> (Peter Steele's message of "Thu, 27 Nov 2008 10:54:31 -0800") Message-ID: <86wsepymw0.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Mike Meyer Subject: Re: FreeBSD boot menu is missing 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, 27 Nov 2008 19:44:33 -0000 "Peter Steele" writes: > The problem is I was unable to get multiple slices defined in a > sysinstall config script. I tried many variations of parameters to > pump into diskPartitionEditor and diskLabelEditor so that we could > create three slices during the install but I couldn't find anything > that worked. So I ended up having to create a single full disk slice > to install the OS onto, and then in a post commit step slice the disks > up as we want them and copy the OS over. I couldn't find a single > example how to create multiple slices in a sysinstall config file. If > you know how to do this, I'd love to see it. I wouldn't use a sysinstall script. Set up a file system (say /nfsroot) on an NFS server in your lab. Install FreeBSD on /nfsroot: either make installworld DESTDIR=3D/nfsroot followed by the correct mergemaster incantation, or just run the install.sh script in the base and kernels directories: # cd /mnt/7.0-RELEASE/base # env DESTDIR=3D/nfsroot sh install.sh # cd ../kernels # env DESTDIR=3D/nfsroot sh install.sh GENERIC Put a complete copy of the release CD somewhere in /nfsroot so you can access it from the client later. Make sure /nfsroot is listed in /etc/exports with the correct permissions (showmount -e is your friend) Copy /nfsroot/boot/pxeboot to /tftpboot/pxeboot and enable tftpd. Set up a DHCP server on your lab subnet or whatever, with next-server set to point at your NFS+TFTP server, filename set to "pxeboot", and option root-path set to /nfsroot. Replace /nfsroot/etc/rc with a shell script that performs the installation just the way you like it. Your script should probably start by setting up memory filesystems for /tmp and /var, otherwise stuff like disklabel might not work. Connect the new box to the lab network, turn it on, enable PXE, and let it boot. If you don't want to use PXE + NFS, you can create an installation CD with almost the exact same procedure: create a directory, follow the above procedure to populate it (just ignore the parts about NFS, TFTP and DHCP), create a bootable ISO image of that directory, burn it to a DVD, and boot the box from that DVD. The correct mkisofs incantation is: mkisofs -JR -b /cdroot/boot/cdboot -o cd.iso /cdroot If you can't use a DVD, you'll have to leave stuff out - packages and the ports and src distributions are obvious candidates. A full i386 7.0R live CD with a copy of the installation CD minus packages and src should fit on a regular CD. > With the proper controller and drive, yes, FreeBSD does support hot > swap, to a point. Let's say for example that you have a file system > mounted on a drive and that drive dies. You can pull it and put in a > new one, but FreeBSD will not let you unmount the file system on the > original drive. Even umount -f fails. We have to reboot to get the old > mount point released, and we haven't found any way around this. That's an entirely different matter... that's why you use gmirror or graid or zfs or whatever, so you can swap out the drive online. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 19:55: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 0D33B1065674 for ; Thu, 27 Nov 2008 19:55:54 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from arcturus.maxiscale.com (arcturus.maxiscale.com [76.231.178.136]) by mx1.freebsd.org (Postfix) with ESMTP id E00A38FC17 for ; Thu, 27 Nov 2008 19:55:53 +0000 (UTC) (envelope-from psteele@maxiscale.com) X-ASG-Debug-ID: 1227815748-2c9e00000000-P5m3U7 X-Barracuda-URL: http://10.100.1.25:8000/cgi-bin/mark.cgi Received: from polaris.maxiscale.com (localhost [127.0.0.1]) by arcturus.maxiscale.com (Spam Firewall) with ESMTP id C28223118A for ; Thu, 27 Nov 2008 11:55:48 -0800 (PST) Received: from polaris.maxiscale.com (polaris.maxiscale.com [10.100.1.24]) by arcturus.maxiscale.com with ESMTP id M6hRQ7TTy48MmYMU for ; Thu, 27 Nov 2008 11:55:48 -0800 (PST) X-ASG-Whitelist: Client X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-ASG-Orig-Subj: RE: FreeBSD boot menu is missing MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Date: Thu, 27 Nov 2008 11:55:45 -0800 Message-ID: <2ACA3DE8F9758A48B8BE2C7A847F91F240CEC6@polaris.maxiscale.com> In-Reply-To: <86wsepymw0.fsf@ds4.des.no> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FreeBSD boot menu is missing Thread-Index: AclQyOHkJm9xXuzUSA2cvuZ3ta62SAAADpPA References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com><20081126153510.6062cd55@bhuda.mired.org><2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com><20081126190545.17b79195@bhuda.mired.org><2ACA3DE8F9758A48B8BE2C7A847F91F240CEB4@polaris.maxiscale.com><861vwx4fd5.fsf@ds4.des.no><2ACA3DE8F9758A48B8BE2C7A847F91F240CEBF@polaris.maxiscale.com><86myfl15cl.fsf@ds4.des.no><2ACA3DE8F9758A48B8BE2C7A847F91F240CEC4@polaris.maxiscale.com> <86wsepymw0.fsf@ds4.des.no> From: "Peter Steele" To: =?utf-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= X-Barracuda-Connect: polaris.maxiscale.com[10.100.1.24] X-Barracuda-Start-Time: 1227815751 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at maxiscale.com Cc: freebsd-hackers@freebsd.org, Mike Meyer Subject: RE: FreeBSD boot menu is missing 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, 27 Nov 2008 19:55:54 -0000 Pkkgd291bGRuJ3QgdXNlIGEgc3lzaW5zdGFsbCBzY3JpcHQuDQoNClllYWgsIEkgc2hvdWxkIHBy b2JhYmx5IGhhdmUgZG9uZSBpdCB0aGF0IHdheSBidXQgSSBpbmhlcml0ZWQgdGhlIGV4aXN0aW5n IHN5c2luc3RhbGwgZnJhbWV3b3JrIGZyb20gc29tZW9uZSBlbHNlIGFuZCBlbmRlZCB1cCBleHRl bmRpbmcgaXQgdG8gdXNlIGdtaXJyb3IuIEkga25vdyBtb3JlIGFib3V0IHRoaXMgYXJlYSBub3cg YW5kIEknZCBsaWtlIHRvIHJlZG8gdGhlIHdob2xlIHRoaW5nLCBhdm9pZGluZyBzeXNpbnN0YWxs LiBUaGF0IHdpbGwgaGF2ZSB0byBiZSBhIGZ1dHVyZSBwcm9qZWN0IHRob3VnaC4NCg0KPlRoYXQn cyBhbiBlbnRpcmVseSBkaWZmZXJlbnQgbWF0dGVyLi4uICB0aGF0J3Mgd2h5IHlvdSB1c2UgZ21p cnJvciBvcg0KPmdyYWlkIG9yIHpmcyBvciB3aGF0ZXZlciwgc28geW91IGNhbiBzd2FwIG91dCB0 aGUgZHJpdmUgb25saW5lLg0KDQpSQUlEIGlzIG5vdCBhbiBvcHRpb24gZm9yIHVzLCBhdCBsZWFz dCBub3QgZm9yIHRoaXMgcGFydGljdWxhciBwcm9ibGVtLiBMb25nIHN0b3J5Lg0KDQoNCg0K From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 20:03: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 6E2FC106564A for ; Thu, 27 Nov 2008 20:03:55 +0000 (UTC) (envelope-from kevin@your.org) Received: from tokyo01.jp.mail.your.org (tokyo01.jp.mail.your.org [204.9.54.5]) by mx1.freebsd.org (Postfix) with ESMTP id 2D2368FC12 for ; Thu, 27 Nov 2008 20:03:55 +0000 (UTC) (envelope-from kevin@your.org) Received: from tokyo01.jp.mail.your.org (localhost.your.org [127.0.0.1]) by tokyo01.jp.mail.your.org (Postfix) with ESMTP id 6C5312AD55AA; Thu, 27 Nov 2008 20:03:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=your.org; h=cc:message-id :from:to:in-reply-to:content-type:content-transfer-encoding :mime-version:subject:date:references; s=selector1; bh=1dMDSCsdD GrrM7ONUwCKi7ZsOtU=; b=TYGAi3uivIBIwze+Plq4b+ReUhvFp2OWTS5VpAwms 75tNPSN9AKLZqkpJL7m5Fnt369p6gPlSHjC6nBzUR5UEpWsvFY4DwFzU9JI9Aedd fatjD77CBlb45jjnpyjoMTZPHQ/pPrnDJfSUn7QoDFhHgktuLdWrkL16uYWUBOGr bI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=your.org; h=cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references; q=dns; s=selector1; b=gQbXj/zMiMdgDiQr NM3eBllQxd/Pz7Nn9/wJ/81fTNOKKUo1ndWeYyL2ouE6kpzlgceEXTEJi1p07mX5 mbPpk2K63viy7Dq6u9swZvWhk1MeLkFqNXdqr7Ch95kmMNjUEPOQfKGV65Dm00F1 4x0LhgNPHP7fXfZ6e3B0EUtdK0Q= Received: from mail.your.org (server3-a.your.org [64.202.112.67]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by tokyo01.jp.mail.your.org (Postfix) with ESMTPS id 2B6A42AD555F; Thu, 27 Nov 2008 20:03:53 +0000 (UTC) Received: from [IPv6:2002:451f:630b:1::1] (unknown [IPv6:2002:451f:630b:1::1]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.your.org (Postfix) with ESMTPSA id B753AA0A414; Thu, 27 Nov 2008 20:04:07 +0000 (UTC) Message-Id: From: Kevin Day To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= In-Reply-To: <86wsepymw0.fsf@ds4.des.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v929.2) Date: Thu, 27 Nov 2008 14:03:49 -0600 References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com> <20081126153510.6062cd55@bhuda.mired.org> <2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com> <20081126190545.17b79195@bhuda.mired.org> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEB4@polaris.maxiscale.com> <861vwx4fd5.fsf@ds4.des.no> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEBF@polaris.maxiscale.com> <86myfl15cl.fsf@ds4.des.no> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEC4@polaris.maxiscale.com> <86wsepymw0.fsf@ds4.des.no> X-Mailer: Apple Mail (2.929.2) Cc: freebsd-hackers@freebsd.org, Mike Meyer , Peter Steele Subject: Re: FreeBSD boot menu is missing 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, 27 Nov 2008 20:03:55 -0000 On Nov 27, 2008, at 1:44 PM, Dag-Erling Sm=F8rgrav wrote: > > I wouldn't use a sysinstall script. > > Set up a file system (say /nfsroot) on an NFS server in your lab. Just in case anyone needs a real step-by-step guide to getting a =20 diskless PXE/NFS boot going, I wrote this up a little while ago. http://sigsegv.org/wiki/How_to_do_a_PXE_netboot_install_of_FreeBSD The existing documentation was either a bit out of date, glossed over =20= some of it or just flat out didn't work for me. Takes an existing =20 running system, clones it into /nfsroot, enables dhcpd/tftpd/nfsd, and =20= relies on rc.diskless to make the magic happen after boot. From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 20:11: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 CD9DC1065670 for ; Thu, 27 Nov 2008 20:11:35 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by mx1.freebsd.org (Postfix) with ESMTP id A176A8FC14 for ; Thu, 27 Nov 2008 20:11:35 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by wa-out-1112.google.com with SMTP id m34so524930wag.27 for ; Thu, 27 Nov 2008 12:11:35 -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=wrsOd/+aYsVCKZMlSXn1TJiWJXvGhSQP00jthu3/tFo=; b=jPr3096JpAgIswuc3g8ldmlAU2fOc73bWdMrThmQoem4WSp/hSL2qOvk4LxuLJctYg yac8j/dVvx8jpCPmMtFp2KNP+Hs+4HRPo2Yh5dNG78/l5iVzFdhvFzpcI2tAXcfB/oIr 6jxfckWUoswBb6X/UD02m+dB8kSpAv5xRMm8A= 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=XT0bshxbrGiR1soS2huvKwSrPjIgtiuYoGW4o/c8UOCzRcqMdobribYTsKyFtX7kt9 nJ6QOD3Cbu4SJ/fedR5XB2R9li7iqafhgpmykJZKJo0sJT0BKgb4IifXZfZmL5jqXI99 HEzL3N0TApi61Nunhkaa5hKiQdgzbVs3HK168= Received: by 10.114.197.1 with SMTP id u1mr4143269waf.120.1227815012101; Thu, 27 Nov 2008 11:43:32 -0800 (PST) Received: by 10.114.235.17 with HTTP; Thu, 27 Nov 2008 11:43:32 -0800 (PST) Message-ID: <2a41acea0811271143q25f83e89i4df2791052a980ac@mail.gmail.com> Date: Thu, 27 Nov 2008 11:43:32 -0800 From: "Jack Vogel" To: "Robert Watson" In-Reply-To: MIME-Version: 1.0 References: <20def4870811270441n6b201076k715e1c7e1adc8781@mail.gmail.com> X-Mailman-Approved-At: Thu, 27 Nov 2008 20:25:37 +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 Cc: jfv@freebsd.org, freebsd-hackers@freebsd.org, Yony Yossef , freebsd-net@freebsd.org Subject: Re: IFCAP_LRO on 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: Thu, 27 Nov 2008 20:11:36 -0000 On Thu, Nov 27, 2008 at 4:51 AM, Robert Watson wrote: > > On Thu, 27 Nov 2008, Yony Yossef wrote: > > Is there a native interface for LRO in FreeBSD 7? I can't find any use for >> IFCAP_LRO but notifying the driver if to use or not to use this offload. >> >> If not, is it planned for FreeBSD 8? >> > > IFCAP_LRO is a capability/policy flag allowing drivers to declare support > for LRO, and for administrators to enable/disable it if present. Drivers > can either provide their own implementation (mxge, nxge) or use the system > implementation (cxgb, igb). I'm slightly surprised to see that igb > references tcp_lro_init() but not IFCAP_LRO -- perhaps lro isn't yet fully > hooked up, or perhaps there's a bug? I believe all of the above applies to > 7.1 but not 7.0, except possibly mxge supporting LRO in 7.0. > Been so busy internally that I did not even realize that this capability had been created, I need to change both igb and ixgbe to use it. Thanks for pointing this out, Jack From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 20:30: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 EE8E7106564A for ; Thu, 27 Nov 2008 20:30:04 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.230]) by mx1.freebsd.org (Postfix) with ESMTP id BE15D8FC16 for ; Thu, 27 Nov 2008 20:30:04 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1051454rvf.43 for ; Thu, 27 Nov 2008 12:30:04 -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=PvqPenuvVpYGz9DmeETLhn87yArBGIcTaZeZ4PNSXPQ=; b=B3mCIB79WLmMl20iP1LQhboYSUrl1tXTOo8PQ4xqzDf7YuxR9ImMSI7gS+qKXCct1+ dta9uCTIojoAJsr4paU3EpJU/AuAt+Dtj3Uy+p0lGlZ3QRN55yQvqNu2ulfp4KgTBG09 V7O7+ehgVE8okt95vFa/lbTzn45A+DXtT0XhE= 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=xOtokCxxL5htD4vOgF2/iCEnDqEMLB1RuD3CN+8eB6qsCOHplzSmWX3JRMTHrgRj9Q xR+X05i+8+m5gQAINf9zqH9vH7C+TDD6Kwm7iwzyUvd0LSEHJjtOFuOkK1WzMUJ1W47T tL4X7zmqcg9xLJqwe4m3TMlkiNc3Qykb2Y9qo= Received: by 10.140.127.13 with SMTP id z13mr3500953rvc.145.1227817804147; Thu, 27 Nov 2008 12:30:04 -0800 (PST) Received: by 10.140.158.13 with HTTP; Thu, 27 Nov 2008 12:30:04 -0800 (PST) Message-ID: <7d6fde3d0811271230p512d1325i591e9711caa432d8@mail.gmail.com> Date: Thu, 27 Nov 2008 12:30:04 -0800 From: "Garrett Cooper" To: "Kevin Day" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com> <2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com> <20081126190545.17b79195@bhuda.mired.org> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEB4@polaris.maxiscale.com> <861vwx4fd5.fsf@ds4.des.no> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEBF@polaris.maxiscale.com> <86myfl15cl.fsf@ds4.des.no> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEC4@polaris.maxiscale.com> <86wsepymw0.fsf@ds4.des.no> Cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= , Mike Meyer , Peter Steele , freebsd-hackers@freebsd.org Subject: Re: FreeBSD boot menu is missing 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, 27 Nov 2008 20:30:05 -0000 On Thu, Nov 27, 2008 at 12:03 PM, Kevin Day wrote: > > On Nov 27, 2008, at 1:44 PM, Dag-Erling Sm=F8rgrav wrote: >> >> I wouldn't use a sysinstall script. >> >> Set up a file system (say /nfsroot) on an NFS server in your lab. > > > Just in case anyone needs a real step-by-step guide to getting a diskless > PXE/NFS boot going, I wrote this up a little while ago. > > http://sigsegv.org/wiki/How_to_do_a_PXE_netboot_install_of_FreeBSD > > The existing documentation was either a bit out of date, glossed over som= e > of it or just flat out didn't work for me. Takes an existing running syst= em, > clones it into /nfsroot, enables dhcpd/tftpd/nfsd, and relies on rc.diskl= ess > to make the magic happen after boot. That's a good brief guide, but a lot of the information is already contained in: . That reminds me that I need to add some documentation for booting OpenFirmware Mac's with Netboot (some experiences that I had at Cisco that I wanted to pass down for others). -Garrett From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 21:06:29 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 A97B8106564A for ; Thu, 27 Nov 2008 21:06:29 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id F0A078FC13 for ; Thu, 27 Nov 2008 21:06:28 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: (qmail invoked by alias); 27 Nov 2008 20:39:46 -0000 Received: from p54A3F275.dip.t-dialin.net (EHLO tron.homeunix.org) [84.163.242.117] by mail.gmx.net (mp041) with SMTP; 27 Nov 2008 21:39:46 +0100 X-Authenticated: #1673122 X-Provags-ID: V01U2FsdGVkX1+kjU9aGVCkpW4HIVB4ILKfqDVLp+EPMxg7rqL6PD OJK86Sz9Bt1IBu Message-ID: <492F0591.7050807@gmx.de> Date: Thu, 27 Nov 2008 21:39:45 +0100 From: Christoph Mallon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.42 Subject: New C compiler and analyzer lang/cparser in ports 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, 27 Nov 2008 21:06:29 -0000 A few days ago libFIRM[1] and cparser were added to the ports tree. If you want to see, what other compilers besides GCC have to offer, this might be of interest for you. libFIRM is a modern optimizing intermediate representation (IR) library. cparser is a C compiler providing many useful warnings and uses libFIRM for optimization and code generation. libFIRM is a library implementing a modern graph based IR for compilers, which exclusively operates on program graphs in SSA-form. It is developed at the IPD at the Universität Karlsruhe (TH)[2]. SSA is maintained beginning at the construction of the IR graph until assembler code is emitted. libFIRM offers many analyses and optimizations, provides extensive debugging support and includes a backend framework. At the moment it can produce code for 32bit x86 processors. There are also unfinished backends for ARM, MIPS and PPC32. The backend uses a novel SSA based register allocator and includes several algorithms for instruction scheduling, spilling, copy coalescing and basic block scheduling. All stages of the compilation process can be dumped and inspected with our graph viewer yComp[3]. cparser is a C compiler, which can parse C89 and C99 as well as many GCC and some MSVC extensions. The handled GCC extensions include __attribute__, inline assembler, computed goto and statement expressions. The compiler driver is compatible with with GCC (-fxxx, -Wxxx, -M, ...). It also provides many useful analyses for warnings - for some examples see below. Take a look at the examples below to get a glimpse of what cparser and libFIRM have to offer. You can find more information about them at http://www.libfirm.org. Of course, they are capable of compiling non-trivial programs like the SPEC INT2000 suite and Quake 3[4]. If I have sparked your interest in cparser and libFIRM, try the port lang/cparser. If you have any questions, suggestions or problems regarding cparser and libFIRM, please feel free to contact us. Regards Christoph Examples -------- One goal is to provide concise error messages, which help to pinpoint the cause of the problem. This is achieved by using a handwritten recursive descent parser, which includes some heuristics to produce sensible error messages. A further aim is to restart parsing immediately after a parse error, in order to avoid subsequent errors. In this way, the number of stray errors after common problems, like a missing #include or a misspelled type name, is minimized. Here is a small example: 1 struct X { 2 unsigned lng x; 3 unsigned int y; 4 }; 5 vodi f(struct X* p) { p.x = 23; } 6 void g(struct X* p) { p->y = p.z; } parse_error.c:2: error: discarding stray 'symbol lng' in declaration specifier parse_error.c:5: error: 'symbol vodi' does not name a type parse_error.c:5: error: request for member 'x' in something not a struct or union, but 'struct X*' parse_error.c:6: error: request for member 'z' in something not a struct or union, but 'struct X*' parse_error.c:6: error: 'struct X*' has no member named 'z' For comparison, these are the error messages by GCC 4.2.1: parse_error.c:2: error: expected ':', ',', ';', '}' or '__attribute__' before 'x' parse_error.c:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'f' parse_error.c: In function 'g': parse_error.c:6: error: 'struct X' has no member named 'y' parse_error.c:6: error: request for member 'z' in something not a structure or union cparser can detect a large number of undesirable constructs and warns about them. Here are a few examples: * unused and never read variables 1 #include 2 void f(void) 3 { 4 int x; 5 if ((x = rand())) 6 x = x + 1; 7 } write_only.c:4: warning: variable 'x' is never read 'x' is warned about, because it is only read to calculate its own new value. GCC does not detect this. Similar cases to line 5 have been found by Coverity in the FreeBSD source code recently[5]. * unreachable code 1 #include 2 #include 3 int main(void) 4 { 5 for (int i = 0; i != 10; ++i) { 6 if (rand() == 23) /* mind the missing {} */ 7 puts("ouch"); 8 return 1; 9 } 10 return 0; 11 } unreachable.c:5: warning: step of for-statement is unreachable GCC does not warn here. * format string checker for char and wide char (wchar_t) functions 1 #include 2 #include 3 int main(int argc, char* argv[]) 4 { 5 printf("%u %s", argc); 6 wprintf(L"%S", "hello", 42); 7 return 0; 8 } format.c:5: warning: argument type 'int' does not match conversion specifier '%u' at position 1 format.c:5: warning: too few arguments for format string format.c:6: warning: argument type 'char*' does not match conversion specifier '%S' at position 1 format.c:6: warning: 2 arguments but only 1 format specifier GCC is only capable of checking char, but not wchar_t, format strings. * missing return statments 1 int f(int x) 2 { 3 switch (x) { 4 case 42: return 0; 5 case 23: break; 6 default: return 1; 7 } 8 } missing_return.c:5: warning: control reaches end of non-void function The location is exactly pinpointed: The last statement before leaving the function is the break. In contrast GCC refers to line 8. * typical security warnings 1 #include 2 #include 3 void f(char* x) 4 { 5 if (getpid || &*&x || x == "bla") {} 6 } security.c:5: warning: the address of 'getpid' will always evaluate as 'true' security.c:5: warning: the address of 'x' will always evaluate as 'true' security.c:5: warning: comparison with string literal results in unspecified behaviour * missing and redundant declarations 1 static void f(void); 2 int x; 3 static void f(void) {} decl.c:2: warning: no previous declaration for 'int x' decl.c:1: warning: unnecessary static forward declaration for 'void f(void)' The warning about 'x' is a typical indicator for a missing header include or that the variable should be static. The first declaration of 'f' is unnecessary, because there is no use before the definition of the function. The generated assembler is heavily annotated. Some example C source code: 1 #include 2 #include 3 int f(void) 4 { 5 int x = rand(); 6 if (rand()) 7 puts("bla"); 8 return x; 9 } In the resulting assembler output below you see: * list of predecessors and estimated execution frequency for every basic block /* .L897: preds: 1034, freq: 0.500000 */ * comments telling the correspoding node in the intermediate representation and the original source line (if available) of an instruction. The numbers in [] are internal node counters, which can be referred to in yComp or be used in conjunction with the debugging features of libFIRM. /* ia32_CallT[1086:53] annotate.c:6 */ * function begin/end markers (good for scripting) # -- Begin f # -- End f The resulting assembler output: .section .text .Ltext0: # -- Begin f .p2align 4,,15 .globl f .type f, @function f: /* .L1034: preds: none, freq: 1.000000 */ subl $4, %esp /* be_IncSPIu[1001:12] */ call rand /* ia32_CallT[1059:26] ann.c:5 */ movl %eax, (%esp) /* ia32_StoreM[1213:171] */ call rand /* ia32_CallT[1086:53] ann.c:6 */ testl %eax, %eax /* ia32_TestIu[1220:178] ann.c:6 */ jne .L776 /* ProjX[805:139] ann.c:6 */ /* fallthrough to .L897 */ /* ProjX[806:140] ann.c:6 */ /* .L897: preds: 1034, freq: 0.500000 */ popl %eax /* ia32_PopT[1218:176] */ ret /* be_ReturnX[1031:125] ann.c:8 */ .p2align 4,,7 .L776: /* preds: 1034, freq: 0.500000 */ pushl $Lstr.168 /* ia32_PushT[1223:181] ann.c:7 */ call puts /* ia32_CallT[1118:85] ann.c:7 */ addl $4, %esp /* be_IncSPIu[982:113] */ popl %eax /* ia32_PopT[1221:179] */ ret /* be_ReturnX[1020:107] ann.c:8 */ .size f, .-f # -- End f .section .rodata .type Lstr.168, @object .size Lstr.168, 4 Lstr.168: .string "bla" ---- [1] http://www.libfirm.org/ [2] http://www.info.uni-karlsruhe.de/ [3] http://www.info.uni-karlsruhe.de/software.php/id=6&lang=en [4] specifically ioquake3 [5] for example see http://lists.freebsd.org/pipermail/svn-src-all/2008-November/001623.html From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 21:10: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 B0AC21065679 for ; Thu, 27 Nov 2008 21:10:11 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [91.121.44.19]) by mx1.freebsd.org (Postfix) with ESMTP id 79D2C8FC17 for ; Thu, 27 Nov 2008 21:10:11 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from baby-jane.lamaiziere.net (246.10.87-79.rev.gaoland.net [79.87.10.246]) by smtp.lamaiziere.net (Postfix) with ESMTPA id B26FF63366E; Thu, 27 Nov 2008 22:10:09 +0100 (CET) Received: from baby-jane (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id CCE66666F25; Thu, 27 Nov 2008 22:10:08 +0100 (CET) Date: Thu, 27 Nov 2008 22:10:07 +0100 From: Patrick =?ISO-8859-15?Q?Lamaizi=E8re?= To: ancelgray Message-ID: <20081127221007.31c07ed8@baby-jane> In-Reply-To: <20713056.post@talk.nabble.com> References: <20080121170155.GC51116@hamlet.SetFilePointer.com> <20713056.post@talk.nabble.com> Organization: /dave/nulle X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i386-apple-darwin9.3.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: Hardware support for AMD Geode CS5536 audio? 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, 27 Nov 2008 21:10:11 -0000 Le Wed, 26 Nov 2008 19:30:41 -0800 (PST), ancelgray a écrit : Hi, > To AMD CS5536 users: > > This is Andrew Gray. I have finished the audio driver for the AMD > CS5536 companion > chip. It is working on a PC Engines Alix 1C low power board under > FreeBSD 7.0. > It can be found at: > > http://modelofreality.org/snd_amd5536.html You cannot include a file under the GPL license without being contaminated. Even a simple .h with only some #define. I suggest you to use the #define from the auglx OpenBSD's driver, it's free and better documented. http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/arch/i386/pci/auglx.c I don't have the hardware to test. My 0,02 euros. Regards. From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 21:14:47 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 255CB1065686 for ; Thu, 27 Nov 2008 21:14:47 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id CFD118FC17 for ; Thu, 27 Nov 2008 21:14:46 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=YLt33bQbaPK04A6AO4uemjHSohbOXBYHlDzZ4jdrxp68TQFTISP7zHLloWNxGJ1nCZbrYPxBPkma67rR1USWq/QEXgxn8A5d5t2SZvvmtYTSd2I3hPov75DpfXuCaAS7LRv47sHpNUgOSvNPuY3ZO5p5fC6PIcMgbus1PWged8k=; Received: from phoenix.codelabs.ru (ppp83-237-104-199.pppoe.mtu-net.ru [83.237.104.199]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1L5oCD-0002ri-7J; Fri, 28 Nov 2008 00:14:45 +0300 Date: Fri, 28 Nov 2008 00:14:43 +0300 From: Eygene Ryabinkin To: Christoph Mallon Message-ID: References: <492F0591.7050807@gmx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="n8g4imXOkfNTN/H1" Content-Disposition: inline In-Reply-To: <492F0591.7050807@gmx.de> Sender: rea-fbsd@codelabs.ru Cc: freebsd-hackers@freebsd.org Subject: Re: New C compiler and analyzer lang/cparser in ports 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, 27 Nov 2008 21:14:47 -0000 --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Christoph, good day. Thu, Nov 27, 2008 at 09:39:45PM +0100, Christoph Mallon wrote: > A few days ago libFIRM[1] and cparser were added to the ports tree. If > you want to see, what other compilers besides GCC have to offer, this > might be of interest for you. libFIRM is a modern optimizing > intermediate representation (IR) library. cparser is a C compiler > providing many useful warnings and uses libFIRM for optimization and > code generation. [...] The whole description looks like that of LLVM GCC port, http://llvm.org/ Do you know something about that project and if yes, could you, please, provide brief comparison of these two? Thanks! --=20 Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual =20 )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook=20 {_.-``-' {_/ # --n8g4imXOkfNTN/H1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkvDcMACgkQthUKNsbL7YjrGQCfSqV6/3bLvs4eEibiiiGPpTeh +ssAoIVUu3rpWcMq6KYLnUQirC8+QnTM =lMDK -----END PGP SIGNATURE----- --n8g4imXOkfNTN/H1-- From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 21:57: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 6A16D1065672 for ; Thu, 27 Nov 2008 21:57:04 +0000 (UTC) (envelope-from max@love2party.net) Received: from mout-bounce.kundenserver.de (mout-bounce.kundenserver.de [212.227.17.2]) by mx1.freebsd.org (Postfix) with ESMTP id 00CC58FC13 for ; Thu, 27 Nov 2008 21:57:03 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-061-141.pools.arcor-ip.net [88.66.61.141]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis) id 0ML25U-1L5or749Al-0003CX; Thu, 27 Nov 2008 22:57:02 +0100 Received: (qmail 92314 invoked from network); 27 Nov 2008 21:57:01 -0000 Received: from fbsd8.laiers.local (192.168.4.151) by laiers.local with SMTP; 27 Nov 2008 21:57:01 -0000 From: Max Laier Organization: FreeBSD To: freebsd-hackers@freebsd.org Date: Thu, 27 Nov 2008 22:57:00 +0100 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; i386; ; ) References: <492F0591.7050807@gmx.de> In-Reply-To: <492F0591.7050807@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811272257.01287.max@love2party.net> X-Provags-ID: V01U2FsdGVkX18hd5P4t1LpBuAL3Qi8+0YDeU47l74fW11m83t HKnkKQ8449z1oq1skRavMbXPowKkpfvnZyDefG0Bb5rOP6wzAe dQt5cb3hjcqqqQ85EjP3w== Cc: Christoph Mallon Subject: Re: New C compiler and analyzer lang/cparser in ports 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, 27 Nov 2008 21:57:04 -0000 On Thursday 27 November 2008 21:39:45 Christoph Mallon wrote: > A few days ago libFIRM[1] and cparser were added to the ports tree. If > you want to see, what other compilers besides GCC have to offer, this > might be of interest for you. libFIRM is a modern optimizing > intermediate representation (IR) library. cparser is a C compiler > providing many useful warnings and uses libFIRM for optimization and > code generation. Nice stuff! I remember from a practical work with libFIRM that it is quite pleasant to work with (though there is a bit of a learning curve). How are the chances of this code staying under GPL2? I suppose there is no chance to get it dual-licensed under BSDL as well? In addition, how much work is it to build missing backends? It seems like there is no amd64 or sparc support at the moment? -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 22:22:25 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 88EBD1065675 for ; Thu, 27 Nov 2008 22:22:25 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id E83AA8FC12 for ; Thu, 27 Nov 2008 22:22:24 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: (qmail invoked by alias); 27 Nov 2008 22:22:23 -0000 Received: from p54A3F275.dip.t-dialin.net (EHLO tron.homeunix.org) [84.163.242.117] by mail.gmx.net (mp051) with SMTP; 27 Nov 2008 23:22:23 +0100 X-Authenticated: #1673122 X-Provags-ID: V01U2FsdGVkX1+3eQJBSt239ZPFYl1dvjVkLgX1Ax7FJV0jLRH8fV eF/hpy0hYAQtoY Message-ID: <492F1D9E.9040607@gmx.de> Date: Thu, 27 Nov 2008 23:22:22 +0100 From: Christoph Mallon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: Eygene Ryabinkin References: <492F0591.7050807@gmx.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.55 Cc: freebsd-hackers@freebsd.org Subject: Re: New C compiler and analyzer lang/cparser in ports 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, 27 Nov 2008 22:22:25 -0000 Eygene Ryabinkin schrieb: > Christoph, good day. > > Thu, Nov 27, 2008 at 09:39:45PM +0100, Christoph Mallon wrote: >> A few days ago libFIRM[1] and cparser were added to the ports tree. If >> you want to see, what other compilers besides GCC have to offer, this >> might be of interest for you. libFIRM is a modern optimizing >> intermediate representation (IR) library. cparser is a C compiler >> providing many useful warnings and uses libFIRM for optimization and >> code generation. > [...] > > The whole description looks like that of LLVM GCC port, http://llvm.org/ > Do you know something about that project and if yes, could you, please, > provide brief comparison of these two? Both LLVM and FIRM use SSA as an important aspect of their IR. FIRM uses it more extensively in backend. The whole FIRM backend operates on program graphs in SSA form. Spilling and register allocation are decoupled: First spilling is done and after that registers are allocated. There are several spilling algorithms available. The best so far is one based on the idea of Belady's algorithm and it produces very good results. Our novel approach to register allocation and copy coalescing was developed as PhD thesis by Sebastian hack. LLVM uses a more classical approach. It has a combined register allocation and spilling phase using a modified linear scan algorithm. LLVM not only needs an instruction schedule, but also a block schedule. FIRM does block scheduling after register allocation is done. The SSA based spilling of FIRM leads to better code (i.e. less spill and reloads) in most cases. A paper by Matthias Braun and Sebastian Hack submitted to the next CC elaborates on this subject. In the middle end both systems are quite similar, but there are some notable differences. LLVM uses instructions scheduled in basic blocks whereas FIRM resembles the "sea of nodes" proposed by Click and has no schedule in the "middleend". Actually a schedule is introduced after instruction selection. This is necessary, so spilling and register allocation can operator. To be more precise our representation is called an "explicit dependency graph": All necessary dependencies (we use dependencies, not (data) flow) are modelled as edges in the program graph. We use no temporary variables, but every node in the graph represents a value. If a node produces several results, projection nodes are used to get the different aspects. Memory is modelled as SSA value, too. You can have a look at this in our online demo of the compiler. The link is on our website. You can also read a bit more about FIRM there, too. You mentioned LLVM GCC. FIRM only has a stale GCC frontend, which is not maintained anymore. Currently there are three frontends available: C and Java using the Edison Design Group frontend and our own C frontend called "cparser". The latter is probably the more interesting option for you. Did you find the frontend examples interesting or are you mainly interested in optimization and backend aspects? Regards Christoph From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 22:39:06 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 0A83F1065673 for ; Thu, 27 Nov 2008 22:39:06 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id B06A68FC13 for ; Thu, 27 Nov 2008 22:39:05 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=PGMT2xvPDCEU6UysP22bfeERaX+R0ttr0KW8m48aIoJ7oWKYnlu5ybgISHDSdYpNMdPqxbmYg5QsE3WbUjc5lynIidh9BHNTLQnmv3rQAp82tDQxDWnB43ppsLK884okoH4Pqmmm5zdH2jerJYr6BA8wvjzZxIuhsJ8lBdrfgGg=; Received: from phoenix.codelabs.ru (ppp83-237-104-199.pppoe.mtu-net.ru [83.237.104.199]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1L5pVo-0008mw-G9; Fri, 28 Nov 2008 01:39:04 +0300 Date: Fri, 28 Nov 2008 01:39:02 +0300 From: Eygene Ryabinkin To: Christoph Mallon Message-ID: References: <492F0591.7050807@gmx.de> <492F1D9E.9040607@gmx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1ccMZA6j1vT5UqiK" Content-Disposition: inline In-Reply-To: <492F1D9E.9040607@gmx.de> Sender: rea-fbsd@codelabs.ru Cc: freebsd-hackers@freebsd.org Subject: Re: New C compiler and analyzer lang/cparser in ports 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, 27 Nov 2008 22:39:06 -0000 --1ccMZA6j1vT5UqiK Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Christoph, Thu, Nov 27, 2008 at 11:22:22PM +0100, Christoph Mallon wrote: > Both LLVM and FIRM use SSA as an important aspect of their IR. FIRM uses [...] Very interesting, thanks for a good review! > Did you find the frontend examples interesting or are you mainly > interested in optimization and backend aspects? Both ;)) Frontends for code generation and optimization/backends for playing with their guts and learning interesting things. Thanks again! --=20 Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual =20 )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook=20 {_.-``-' {_/ # --1ccMZA6j1vT5UqiK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkvIYYACgkQthUKNsbL7YiNtACfSgxbKfvn9Y1cLxUNbHVqNNvp EEEAoIYskU+Dd+27x4TKCLnT4zeXK6OR =VQMd -----END PGP SIGNATURE----- --1ccMZA6j1vT5UqiK-- From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 27 22:48: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 B05A71065672 for ; Thu, 27 Nov 2008 22:48:56 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 1BC168FC18 for ; Thu, 27 Nov 2008 22:48:55 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: (qmail invoked by alias); 27 Nov 2008 22:48:53 -0000 Received: from p54A3F275.dip.t-dialin.net (EHLO tron.homeunix.org) [84.163.242.117] by mail.gmx.net (mp023) with SMTP; 27 Nov 2008 23:48:53 +0100 X-Authenticated: #1673122 X-Provags-ID: V01U2FsdGVkX1+pJrobeOmpAuAIkmAPx57ahvc98Yh1wtLZZ43Fgl k4gmk6DxCrpnWO Message-ID: <492F23D5.3000009@gmx.de> Date: Thu, 27 Nov 2008 23:48:53 +0100 From: Christoph Mallon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: Max Laier References: <492F0591.7050807@gmx.de> <200811272257.01287.max@love2party.net> In-Reply-To: <200811272257.01287.max@love2party.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57 Cc: freebsd-hackers@freebsd.org Subject: Re: New C compiler and analyzer lang/cparser in ports 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, 27 Nov 2008 22:48:56 -0000 Max Laier schrieb: > On Thursday 27 November 2008 21:39:45 Christoph Mallon wrote: >> A few days ago libFIRM[1] and cparser were added to the ports tree. If >> you want to see, what other compilers besides GCC have to offer, this >> might be of interest for you. libFIRM is a modern optimizing >> intermediate representation (IR) library. cparser is a C compiler >> providing many useful warnings and uses libFIRM for optimization and >> code generation. > > Nice stuff! I remember from a practical work with libFIRM that it is quite > pleasant to work with (though there is a bit of a learning curve). Yes, some design desicions of FIRM seem odd at first - like the use of data dependencies instead of data flow, but once you "get it" it's quite easy. Also you constantly have to maintain SSA form. Sometimes I seems to be a hassle, but usually it prevents you from doing stupid things and when you think about how to do the same thing in non-SSA, you realise how much more hassle that would be. (-: > How are the chances of this code staying under GPL2? I suppose there is no > chance to get it dual-licensed under BSDL as well? I do not want to speculate about this. libFIRM is an university project and I have no idea how hard something like relicensing would be. > In addition, how much work is it to build missing backends? It seems like > there is no amd64 or sparc support at the moment? AMD64 should not be too hard. It is (naturally) very similar to IA32, so basically some extensions to the instruction selection and the ABI transformation should suffice. Other backends need some more work, but a simple instruction selector can be done quite fast. Of course, efficiently using all features of the target machine is considerably more work. If the target is sufficiently "RISCy", all the later phases like spilling and register allocation can directly be used. There are architecures, which are very fancy and need much custom code, but none of the usual architectures like ARM and MIPS fall into this category. There are unfinished backends for other architecures, but the major obstacle to support more backends is the lack of manpower. If you know somebody, who wants to work as Hiwi or who is interested in a study or diploma thesis, send him to us. (-: Regards Christoph From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 28 00:37: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 9F4B11065673 for ; Fri, 28 Nov 2008 00:37:17 +0000 (UTC) (envelope-from kevin@your.org) Received: from tokyo01.jp.mail.your.org (tokyo01.jp.mail.your.org [204.9.54.5]) by mx1.freebsd.org (Postfix) with ESMTP id 553F38FC13 for ; Fri, 28 Nov 2008 00:37:17 +0000 (UTC) (envelope-from kevin@your.org) Received: from tokyo01.jp.mail.your.org (localhost.your.org [127.0.0.1]) by tokyo01.jp.mail.your.org (Postfix) with ESMTP id 4CF322AD56CD; Fri, 28 Nov 2008 00:37:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=your.org; h=cc:message-id :from:to:in-reply-to:content-type:content-transfer-encoding :mime-version:subject:date:references; s=selector1; bh=5pH+A6GX8 /RYCPc2iPG+mL5hJ9k=; b=H8qQxdLWsZ1h8+z7BgpuojZoYm+7AwU7o6gX8Sm0b uHwdrIf3agEPqP1w71O58mbyeXLFu6KtwlPTh1m5Eow7/WRTrw6RK3r8RPog53ja IXNXPpYrm09hBSaGRpWEM7HMKVYz9K/YAUs6u4pTT5yXWhi5ardFd8hliOpEn9l7 9E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=your.org; h=cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references; q=dns; s=selector1; b=qwoGm+J/cIhL5WtF ThZkwY3nCZslZmHTKNwqbyLGau4g6SRVMMMeicGL6rFd29gaOTrksNa7arNN2LCD g6GjE+U7iVb7UUaCMZ8jLol+QUFglWtYhNyoPWYvEAaDcE95uIjR5F3zlnUHdAH6 PREUoc0F0D68+1xR/8zNhlxOerU= Received: from mail.your.org (server3-a.your.org [64.202.112.67]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by tokyo01.jp.mail.your.org (Postfix) with ESMTPS id 19E202AD55E8; Fri, 28 Nov 2008 00:37:16 +0000 (UTC) Received: from [IPv6:2002:451f:630b:1::1] (unknown [IPv6:2002:451f:630b:1::1]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.your.org (Postfix) with ESMTPSA id 37CF2A0A414; Fri, 28 Nov 2008 00:37:24 +0000 (UTC) Message-Id: From: Kevin Day To: "Garrett Cooper" In-Reply-To: <7d6fde3d0811271230p512d1325i591e9711caa432d8@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Thu, 27 Nov 2008 18:37:12 -0600 References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com> <2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com> <20081126190545.17b79195@bhuda.mired.org> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEB4@polaris.maxiscale.com> <861vwx4fd5.fsf@ds4.des.no> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEBF@polaris.maxiscale.com> <86myfl15cl.fsf@ds4.des.no> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEC4@polaris.maxiscale.com> <86wsepymw0.fsf@ds4.des.no> <7d6fde3d0811271230p512d1325i591e9711caa432d8@mail.gmail.com> X-Mailer: Apple Mail (2.929.2) Cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= , freebsd-hackers@freebsd.org Subject: Re: FreeBSD boot menu is missing 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, 28 Nov 2008 00:37:17 -0000 On Nov 27, 2008, at 2:30 PM, Garrett Cooper wrote: > On Thu, Nov 27, 2008 at 12:03 PM, Kevin Day wrote: >> Just in case anyone needs a real step-by-step guide to getting a >> diskless >> PXE/NFS boot going, I wrote this up a little while ago. >> >> http://sigsegv.org/wiki/How_to_do_a_PXE_netboot_install_of_FreeBSD >> >> The existing documentation was either a bit out of date, glossed >> over some >> of it or just flat out didn't work for me. Takes an existing >> running system, >> clones it into /nfsroot, enables dhcpd/tftpd/nfsd, and relies on >> rc.diskless >> to make the magic happen after boot. > > That's a good brief guide, but a lot of the information is already > contained in: >. > > That reminds me that I need to add some documentation for booting > OpenFirmware Mac's with Netboot (some experiences that I had at Cisco > that I wanted to pass down for others). Saying this carefully so I don't sound like I'm volunteering to update a bunch of docs... :) The problems I encountered with that PXE guide is: * It's now 5 floppies instead of 2 to get sysinstall going. The PXE loader can't handle this (keeps prompting you for the next floppy). Alfred's changes to loader.rc don't work anymore. * The loader has problems with launching gzipped kernels brought over PXE for some reason. I dunno when this started. * vnconfig is now mdconfig * His guide was just to get sysinstall running, not end up with a usable diskless workstation. * It doesn't mention the dhcp option "root-path", which was where I kept getting stuck. It worked flawlessly when 4.0 was -CURRENT, but it's a bit out of date in a few places. From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 28 09: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 4ECAA106564A for ; Fri, 28 Nov 2008 09:08:23 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 0971F8FC18 for ; Fri, 28 Nov 2008 09:08:23 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id B173A6D449; Fri, 28 Nov 2008 09:08:21 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 84E79844FF; Fri, 28 Nov 2008 10:08:21 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Garrett Cooper" References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com> <2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com> <20081126190545.17b79195@bhuda.mired.org> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEB4@polaris.maxiscale.com> <861vwx4fd5.fsf@ds4.des.no> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEBF@polaris.maxiscale.com> <86myfl15cl.fsf@ds4.des.no> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEC4@polaris.maxiscale.com> <86wsepymw0.fsf@ds4.des.no> <7d6fde3d0811271230p512d1325i591e9711caa432d8@mail.gmail.com> Date: Fri, 28 Nov 2008 10:08:21 +0100 In-Reply-To: <7d6fde3d0811271230p512d1325i591e9711caa432d8@mail.gmail.com> (Garrett Cooper's message of "Thu, 27 Nov 2008 12:30:04 -0800") Message-ID: <86skpcz08q.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Mike Meyer , Peter Steele , Kevin Day Subject: Re: FreeBSD boot menu is missing 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, 28 Nov 2008 09:08:23 -0000 "Garrett Cooper" writes: > That's a good brief guide, but a lot of the information is already > contained in: > . That's five years out of date, and even five years ago it was a ridiculously complicated way of doing what is essentially a very simple operation. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 28 09:43: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 AA2CF1065672 for ; Fri, 28 Nov 2008 09:43:40 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 6BC9C8FC12 for ; Fri, 28 Nov 2008 09:43:40 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 6DFDC6D43F; Fri, 28 Nov 2008 09:43:39 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 51D22844FF; Fri, 28 Nov 2008 10:43:39 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Patrick =?utf-8?Q?Lamaizi=C3=A8re?= References: <20080121170155.GC51116@hamlet.SetFilePointer.com> <20713056.post@talk.nabble.com> <20081127221007.31c07ed8@baby-jane> Date: Fri, 28 Nov 2008 10:43:39 +0100 In-Reply-To: <20081127221007.31c07ed8@baby-jane> ("Patrick =?utf-8?Q?Lamai?= =?utf-8?Q?zi=C3=A8re=22's?= message of "Thu, 27 Nov 2008 22:10:07 +0100") Message-ID: <86hc5syylw.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: ancelgray , freebsd-hackers@freebsd.org Subject: Re: Hardware support for AMD Geode CS5536 audio? 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, 28 Nov 2008 09:43:40 -0000 Patrick Lamaizi=C3=A8re writes: > You cannot include a file under the GPL license without being > contaminated. Even a simple .h with only some #define. On the contrary, as was settled in SCO v. IBM, constant and structure definitions are not copyrightable if they are dictated by external factors, such as compatibility with existing software or hardware. There are even cases in which actual code is not copyrightable, specifically if the algorithm it implements is so simple that no reasonable programmer would have implemented it in any other way. (SCO tried to argue, among other things, that Linux had stolen errno.h from SCO Unix) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 28 11:18: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 7430A1065672 for ; Fri, 28 Nov 2008 11:18:35 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id F28E28FC18 for ; Fri, 28 Nov 2008 11:18:34 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by ey-out-2122.google.com with SMTP id 6so558035eyi.7 for ; Fri, 28 Nov 2008 03:18:33 -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=JB0VZx403hTTqbed433gjAH077WMLTaJoY5iZ5uYUfs=; b=rufbsJUhWjPJDQAF3lGn3CHaULonLWa7cfn2DOo+58m44vzgxDna34gXs/HcbC4qxM HTDQIZRnsiB8osEyylLUVSsYB9wNrHnKNqBlwEkP8FilpHQddBsw28igoHuDCbNzOSls 5jjHotqKH6litgeIuifSv6HBf/5P2pK4U1gE4= 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=YxOntpnlehAeugV1KEf5BgvuJUakczmiOJuixcopvDTo828Iz0D9s4GZcel7ljPOAU HumjdDUz+HCOjPOh0nrVAvdwlPSGrLN7jQ8K8u+/wxS+aBSK9rcfmcg/lDSqi0bSyz99 qaSzQeP+/dVRMueFYTEStkXOnQhksaxqZ+iT0= Received: by 10.103.231.15 with SMTP id i15mr3063890mur.88.1227871113325; Fri, 28 Nov 2008 03:18:33 -0800 (PST) Received: by 10.103.137.8 with HTTP; Fri, 28 Nov 2008 03:18:33 -0800 (PST) Message-ID: Date: Fri, 28 Nov 2008 09:18:33 -0200 From: "Carlos A. M. dos Santos" To: "=?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?=" In-Reply-To: <86hc5syylw.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20080121170155.GC51116@hamlet.SetFilePointer.com> <20713056.post@talk.nabble.com> <20081127221007.31c07ed8@baby-jane> <86hc5syylw.fsf@ds4.des.no> Cc: ancelgray , freebsd-hackers@freebsd.org, =?ISO-8859-1?Q?Patrick_Lamaizi=E8re?= Subject: Re: Hardware support for AMD Geode CS5536 audio? 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, 28 Nov 2008 11:18:35 -0000 On Fri, Nov 28, 2008 at 7:43 AM, Dag-Erling Sm=F8rgrav wrote: > Patrick Lamaizi=E8re writes: >> You cannot include a file under the GPL license without being >> contaminated. Even a simple .h with only some #define. This is not correct, as DES explained. Anyway, the amd5536.h file has a much more serious problem: it contains a license statement but not the name of the copyright owner, which is mandatory. Anonymous contents can not be licensed. > On the contrary, as was settled in SCO v. IBM, constant and structure > definitions are not copyrightable if they are dictated by external > factors, such as compatibility with existing software or hardware. > > There are even cases in which actual code is not copyrightable, > specifically if the algorithm it implements is so simple that no > reasonable programmer would have implemented it in any other way. > > (SCO tried to argue, among other things, that Linux had stolen errno.h > from SCO Unix) > > DES > -- > Dag-Erling Sm=F8rgrav - des@des.no I mostly agree with you, but considering my previous experiences with GPL-ed header files and their copyright owners(1), I would prefer not to take the risk. Reference 1. http://cvsweb.xfree86.org/cvsweb/xc/lib/GLw/README.txt?rev=3D1.2 --=20 cd /usr/ports/sysutils/life make clean From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 28 11:20: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 9E02F1065673 for ; Fri, 28 Nov 2008 11:20:11 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 09FB18FC0C for ; Fri, 28 Nov 2008 11:20:10 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: (qmail invoked by alias); 28 Nov 2008 11:20:09 -0000 Received: from p54A3F209.dip.t-dialin.net (EHLO tron.homeunix.org) [84.163.242.9] by mail.gmx.net (mp049) with SMTP; 28 Nov 2008 12:20:09 +0100 X-Authenticated: #1673122 X-Provags-ID: V01U2FsdGVkX185mkUynBc5fuhkjFzmBSAO5HMyfWzQtY1+LcVdBm BvbDoa+XubgTjZ Message-ID: <492FD3E7.6000205@gmx.de> Date: Fri, 28 Nov 2008 12:20:07 +0100 From: Christoph Mallon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: Alexander Leidinger References: <492F0591.7050807@gmx.de> <20081128093858.57826oi96gmzliww@webmail.leidinger.net> In-Reply-To: <20081128093858.57826oi96gmzliww@webmail.leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.54 Cc: freebsd-hackers@freebsd.org Subject: Re: New C compiler and analyzer lang/cparser in ports 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, 28 Nov 2008 11:20:11 -0000 Alexander Leidinger schrieb: > Quoting Christoph Mallon (from Thu, 27 Nov > 2008 21:39:45 +0100): > >> cparser is a C compiler, which can parse C89 and C99 as well as many >> GCC and some MSVC extensions. The handled GCC extensions include >> __attribute__, inline assembler, computed goto and statement >> expressions. The compiler driver is compatible with with GCC (-fxxx, >> -Wxxx, -M, ...). It also provides many useful analyses for warnings - >> for some examples see below. > > How much of the GCC stuff in /usr/include/cdefs.h would work with > cparser? Info: this is the major part one has to do to make another > compiler ready to compile our kernel. I guess, you mean /usr/include/sys/cdefs.h. Let's have a look. #define __GNUCLIKE_ASM 3 #define __GNUCLIKE_MATH_BUILTIN_CONSTANTS cparser supports GCC style inline assembler (except for x87 floating point constraints, which are not implemented, yet) and also supports builtins like __builtin_nanf. #define __GNUCLIKE___TYPEOF 1 #define __GNUCLIKE___OFFSETOF 1 cparser supports __typeof__ and __builtin_offsetof #define __GNUCLIKE___SECTION 1 This is missing. #define __GNUCLIKE_ATTRIBUTE_MODE_DI 1 The __attribute__((mode($FOO)) insanity is supported. # define __GNUCLIKE_CTOR_SECTION_HANDLING 1 __attribute__((constructor)) and destructor are supported. #define __GNUCLIKE_BUILTIN_CONSTANT_P 1 # define __GNUCLIKE_BUILTIN_VARARGS 1 # define __GNUCLIKE_BUILTIN_STDARG 1 # define __GNUCLIKE_BUILTIN_VAALIST 1 cparser handles these GCC builtins. #define __CC_SUPPORTS_INLINE 1 #define __CC_SUPPORTS___INLINE 1 #define __CC_SUPPORTS___INLINE__ 1 I think we support all alternative spellings with any number of underscores for all keywords. (: I'll skip some simple stuff now, which also works. #define __dead2 __attribute__((__noreturn__)) #define __pure2 __attribute__((__const__)) #define __unused __attribute__((__unused__)) #define __used __attribute__((__used__)) #define __packed __attribute__((__packed__)) #define __aligned(x) __attribute__((__aligned__(x))) #define __section(x) __attribute__((__section__(x))) All of these are parsed and except for __section__ are handled, e.g. __noreturn__ is used for optimization. We also have -Wmissing-noreturn, which warns about functions, which should have this attribute. I'm skipping more attribute stuff. #define __weak_reference(sym,alias) \ __asm__(".weak " #alias); \ __asm__(".equ " #alias ", " #sym) global asm statements are supported, too. The compiler driver is compatible with GCC, but we need to support more switches. This is a matter of time and digging through GCC documentation. Regards Christoph From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 28 11:33: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 D0C7F1065672 for ; Fri, 28 Nov 2008 11:33:44 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.189]) by mx1.freebsd.org (Postfix) with ESMTP id 30C7D8FC13 for ; Fri, 28 Nov 2008 11:33:43 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by gv-out-0910.google.com with SMTP id n8so278391gve.39 for ; Fri, 28 Nov 2008 03:33:43 -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=i1iObVWZ97mEXdFZFZ9F+QGxKUjbgxC2909vopUWWow=; b=Fvqzoe2y+XrkqeBuJvYUA6mkbAHQMd6Hvq1rT+waATea30Ouw3OuriITTUKtTMhXlb H1ms2fsHobTDt2/r/qpRZsL+5HgL+YGAhwlmnFbQPKzhNIG2uAZavc2d02LT0BWWb2mF KDd+dxeI/SpWf1plBIXyxIieP70ePuPgIL5iE= 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=mGXCKMD+VQiMAS/ls5gjlr1mJz2SXLn9JUKOEB39G34lDb2prtduFakF9Ipd/N5aaS NaHg1QUAK3Yl9Gwp1miHw9MEfWkdOoprM9bP+AmlZB1z5IbSN1o83ISDJeOXwYXFdEHW ULailhKdD1V5mhIvAVK8xstwZDJ+pufSdOJqM= Received: by 10.103.221.5 with SMTP id y5mr3066393muq.66.1227872022749; Fri, 28 Nov 2008 03:33:42 -0800 (PST) Received: by 10.103.137.8 with HTTP; Fri, 28 Nov 2008 03:33:42 -0800 (PST) Message-ID: Date: Fri, 28 Nov 2008 09:33:42 -0200 From: "Carlos A. M. dos Santos" To: ancelgray In-Reply-To: <20713056.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080121170155.GC51116@hamlet.SetFilePointer.com> <20713056.post@talk.nabble.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Hardware support for AMD Geode CS5536 audio? 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, 28 Nov 2008 11:33:44 -0000 On Thu, Nov 27, 2008 at 1:30 AM, ancelgray wrote: > > To AMD CS5536 users: > > This is Andrew Gray. I have finished the audio driver for the AMD CS5536 > companion > chip. It is working on a PC Engines Alix 1C low power board under FreeBSD > 7.0. > It can be found at: > > http://modelofreality.org/snd_amd5536.html > > Let me know how it goes. > > Andrew Gray > > ancelgray AT y a h o o DOT com Andrew, Thanks for the contribution. I have a spare HP thin client with AMD Geode in which I can give this driver a try, if I find some time available next week. I'm a bit concerned about the copyrights, however, as outlined below. The amd5536.c informs that it is "derived from Bruce R. Montegue's AMD CS5530 audio driver and the Linux CS5535 ALSA driver". I did not find the original source files, but supposing that they are licensed under GPL you will need a written permission from the owners to redistribute the code under a different licensing terms. From a strictly legal point of view, even paraphrasing a code may be considered copy. The amd5536.h contains a license statement but not the name of the licensor (copyright owner), which is mandatory. Anonymous contents can not be licensed. -- cd /usr/ports/sysutils/life make clean From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 28 08:39: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 9785E1065673 for ; Fri, 28 Nov 2008 08:39:16 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 411F98FC12 for ; Fri, 28 Nov 2008 08:39:16 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2CE0A.dip.t-dialin.net [217.226.206.10]) by redbull.bpaserver.net (Postfix) with ESMTP id A40C62E0D7; Fri, 28 Nov 2008 09:39:08 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 9609A11161; Fri, 28 Nov 2008 09:38:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1227861539; bh=+gKzXUyta3FKAy+/TGjd3cP+TsGDXS6zM h4RyiKzX4Y=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=TKzeVWlGNMfCByHHw9S2YGd9aisJmHl5u7k5DC5xqwlFhzrABv4BLEyC8X+S1xkuC LHxCikvEAWMhF+9cTw4JvedwdbYiyHBNMBbpndNiPXoGrSmYbAolEiRyD0MP7gzssAB cRk3om0507SCMOa2A83cF0THOTFtNTJD87UhRURRvbNwQFqlwycjnpEDkay3sip4+GE /zASyu3WO2iZ8HCgrsYKifPZFmxCC+8npuMwlyEeNcHZO9qMlSipEpKobOrANGMYX30 VrbxzUuByB7a4i5YdBE78R0mOoa/P1kuTYCH+Vx9dkcCWdWXF0yGDQQzFF6z6iURfgv tJBZEBVpw== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id mAS8cxlG078011; Fri, 28 Nov 2008 09:38:59 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Fri, 28 Nov 2008 09:38:58 +0100 Message-ID: <20081128093858.57826oi96gmzliww@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 28 Nov 2008 09:38:58 +0100 From: Alexander Leidinger To: Christoph Mallon References: <492F0591.7050807@gmx.de> In-Reply-To: <492F0591.7050807@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: A40C62E0D7.EC8E6 X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.9, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Fri, 28 Nov 2008 12:24:11 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: New C compiler and analyzer lang/cparser in ports 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, 28 Nov 2008 08:39:16 -0000 Quoting Christoph Mallon (from Thu, 27 Nov 2008 21:39:45 +0100): > cparser is a C compiler, which can parse C89 and C99 as well as many > GCC and some MSVC extensions. The handled GCC extensions include > __attribute__, inline assembler, computed goto and statement > expressions. The compiler driver is compatible with with GCC (-fxxx, > -Wxxx, -M, ...). It also provides many useful analyses for warnings > - for some examples see below. How much of the GCC stuff in /usr/include/cdefs.h would work with cparser? Info: this is the major part one has to do to make another compiler ready to compile our kernel. Bye, Alexander. -- What this country needs is a good five-cent nickel. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 28 13:12: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 9808B1065672; Fri, 28 Nov 2008 13:12:40 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 8873C8FC0A; Fri, 28 Nov 2008 13:12:39 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA23909; Fri, 28 Nov 2008 15:12:36 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <492FEE43.5060703@icyb.net.ua> Date: Fri, 28 Nov 2008 15:12:35 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org, freebsd-usb@FreeBSD.org References: <4911BA93.9030006@icyb.net.ua> <491ABFCD.3060309@icyb.net.ua> <491AC502.9000507@icyb.net.ua> <20081112121410.GA24629@icarus.home.lan> <491ACA19.2040008@icyb.net.ua> <20081112123315.GA24907@icarus.home.lan> <491AD0CB.8050309@icyb.net.ua> <20081112132124.GA25637@icarus.home.lan> <491ADB3B.2090000@icyb.net.ua> <492E952A.80104@icyb.net.ua> <492E9F45.2090404@icyb.net.ua> In-Reply-To: <492E9F45.2090404@icyb.net.ua> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: ukbd attachment and root mount 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, 28 Nov 2008 13:12:40 -0000 on 27/11/2008 15:23 Andriy Gapon said the following: > I increased debug level in uhub and also switched mouse and keyboard > ports hoping that order might matter. It didn't. > > Here's fresh usbdevs output snippet: > Controller /dev/usb2: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > uhub2 > port 1 addr 3: low speed, power 100 mA, config 1, USB Keyboard(0x0101), > CHESEN(0x0a81), rev 1.10 > ukbd0 > uhid0 > port 2 addr 2: low speed, power 98 mA, config 1, USB-PS/2 Optical > Mouse(0xc040), Logitech(0x046d), rev 24.30 > ums0 > > And here's a new snippet from cold explore dmesg: > uhub2: uhub_explore: port 1 status 0x0100 0x0001 > + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > + So, hm, it looks like a change in connection status is reported but > current status is reported as not connected. > + I wonder why? For now I am blaming this on the keyboard. My wild un-educated guess is that it takes it too long to come back after controller reset. I don't have any other explanation at the moment. I'll try to get another keyboard (from different vendor) and play with it. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 28 13: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 6788D106564A for ; Fri, 28 Nov 2008 13:28:41 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 167C58FC2D for ; Fri, 28 Nov 2008 13:28:39 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA24342; Fri, 28 Nov 2008 15:28:36 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <492FF203.5060405@icyb.net.ua> Date: Fri, 28 Nov 2008 15:28:35 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: freebsd-hardware@freebsd.org, freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: dd if=/dev/mem can hang a machine? 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, 28 Nov 2008 13:28:41 -0000 I have a new machine with DG33TL mainboard (ICH9/G33). In a course of some hacking I ran dd if=/dev/mem ... to scan all memory, this caused the machine to hang. I tried to reproduce and this is 100% reproducible. I am not used to such behavior. In older days I could scan all the memory without any issues. Could this be related to some modern form of memory-mapped IO? Or to Intel Management Engine (that seems t bite into DRAM)? Or something else? Just wondering. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 28 14:45:30 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 E74D1106564A; Fri, 28 Nov 2008 14:45:30 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 9701A8FC1E; Fri, 28 Nov 2008 14:45:30 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2CE0A.dip.t-dialin.net [217.226.206.10]) by redbull.bpaserver.net (Postfix) with ESMTP id 4A7762E0D7; Fri, 28 Nov 2008 15:45:24 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id B220A16B81; Fri, 28 Nov 2008 15:45:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1227883516; bh=CXCrnJ0BoW6kNiFEX/9byiAMA1exMlH3F Qeg4T6TlpA=; h=Message-ID:Date:From:To:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding; b=RSRb6Y5J1mwsrO6eKi3wfXAi qteajV4XgJy8Tb53JY8txyqGRl39/DXPLgJn8vjXcQOWhqWJHHiNKJnKKRtDAfKVQ5b tnNcN9mv/PIOJiQ2jjFGU1RltGBDqteko3hiWBVv1M27QDqLUZ/zYXXYaZNfoLc9CXk SGEUq3lYmlo/qNkbRgpOUyQEC7fW60FuDu3YUAIrf3x09ygccRkSEs9sSkllCVtXYMO cDxgdXlKtgFA3dSlb/eUkQK6IIDj1wOeW6IOpZeBvzG2h9FVMbLT1IJgC2WE6BM9PCr ZTUWK47Cr/juC+5f5WeiayVjuPljRLZtYM/y3kcsyvrZAuv/9w== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id mASEjGJL040829; Fri, 28 Nov 2008 15:45:16 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Fri, 28 Nov 2008 15:45:14 +0100 Message-ID: <20081128154514.82247fe47bn83lkw@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 28 Nov 2008 15:45:14 +0100 From: Alexander Leidinger To: current@freebsd.org, hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 4A7762E0D7.1EED4 X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.9, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Fri, 28 Nov 2008 17:34:23 +0000 Cc: Subject: HOWTO in wiki: adding custom dtrace probes in the kernel 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, 28 Nov 2008 14:45:31 -0000 Hi, while working on adding dtrace probes to the linuxulator, I thought it may be interesting for some people to know how to do this, so I added some text/examples into the wiki how to add static dtrace probes in the kernel: http://wiki.freebsd.org/HOWTO-dtrace-sdt If you are interested in the great debugging possibilities of dtrace, don't be afraid to add some probes to the kernel. It's cheap and easy. Bye, Alexander. -- Leela: You buy one pound of underwear and you're on their list forever. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 28 17:38:29 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 045BF1065672 for ; Fri, 28 Nov 2008 17:38:29 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.170]) by mx1.freebsd.org (Postfix) with ESMTP id CD5D48FC18 for ; Fri, 28 Nov 2008 17:38:28 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1571476wfg.7 for ; Fri, 28 Nov 2008 09:38:28 -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=kGs5EH5R7o4xDZjMi/GT6n2Ekg+pbPBadCvhh7tkKsQ=; b=FOdsNhLo3dVX2PtFs+cRNz/ye1YwRiEoy9GkhFfOcSktzo2wrTp8h7heiUjpwXWXjO CHVe37QZsNIt1IGfBsZ7Ois7npVNXGX+pYd68uW2yCTdQ6xNbOJ2RbFMtdTtvv6IS3hz u3RPLFSGcgQaEEbTs0FnbR70lCgU3BusbWZq8= 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=L+2iGWaKNPbDSbsfVMKaJTgidHVLm6hoVKE6tYW9ZbuPqHMSfKcs/5uQn/ZLZYhqF6 UX8HHgtICx6BidFxkJ+m7tM3Sclyy+OD6Ux9MT7X8iNTUtpz42QedjIwCXHBwuDvtmTG +jDeLbXOo4k13tCVzKoNhLf+QemCwOdlelEE8= Received: by 10.142.246.19 with SMTP id t19mr3281360wfh.332.1227892473331; Fri, 28 Nov 2008 09:14:33 -0800 (PST) Received: by 10.142.180.20 with HTTP; Fri, 28 Nov 2008 09:14:33 -0800 (PST) Message-ID: <1bd550a00811280914p19e35e15xf0130d652406bf89@mail.gmail.com> Date: Fri, 28 Nov 2008 18:14:33 +0100 From: "=?ISO-8859-1?Q?Fernando_Apestegu=EDa?=" To: "FreeBSD Hackers" In-Reply-To: <1bd550a00811280033x4803b05cyf83446ae15f47086@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1bd550a00811280033x4803b05cyf83446ae15f47086@mail.gmail.com> Subject: Fwd: FBSD 7.1 BETA2 and RTL8168/8111 problem 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, 28 Nov 2008 17:38:29 -0000 Hi, I forward my orginal mail to freebsd-questions. I hope someone can shed some light here... ---------- Forwarded message ---------- From: Fernando Apestegu=EDa Date: Fri, Nov 28, 2008 at 9:33 AM Subject: FBSD 7.1 BETA2 and RTL8168/8111 problem To: FreeBSD Hi all, I recently installed FreeBSD 7.1 BETA2 on my system. During installation using FTP option, I could notice the following: After some random time (two, five or six minutes, for instance) the installation stalled and sysinstall lost the connection. I was taken back to the "Select FTP site" screen, and I had to configure my NIC again. Then, the install resumed and I got a usable system (MINIMAL + docs + manpages) But the problem persists. From time to time, it seems the kernel can't see the NIC. It happens during normal operation and no message is shown in /var/log/messages. ifconfig doesn't show my 're0' device, so I can't run dhclient on it and I have to reboot. I have to say that sometimes, even when I reboot, the NIC (RTL8168/8111 PCI Express) is not present. This device works fine in the same computer with either Vista or Fedora 9, though I have to say I had similar problems with earlier versions of Fedora (device disappearing or not present after boot), but after a kernel upgrade everything run smoothly. Does FreeBSD use the same driver than Linux does? Anybody else with this problem? Thanks in advance. From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 28 19:22: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 EB348106564A for ; Fri, 28 Nov 2008 19:22:55 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id B308B8FC0C for ; Fri, 28 Nov 2008 19:22:55 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from feathers.peganest.com ([IPv6:2001:4d48:ad51:32:21b:21ff:fe1c:3ce]) (authenticated bits=0) by hercules.mthelicon.com (8.14.3/8.14.2) with ESMTP id mASJMr39063332 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Fri, 28 Nov 2008 19:22:55 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc Cleaft Organization: Feathers To: freebsd-hackers@freebsd.org Date: Fri, 28 Nov 2008 19:22:53 +0000 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; amd64; ; ) References: <1bd550a00811280033x4803b05cyf83446ae15f47086@mail.gmail.com> <1bd550a00811280914p19e35e15xf0130d652406bf89@mail.gmail.com> In-Reply-To: <1bd550a00811280914p19e35e15xf0130d652406bf89@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200811281922.53179.ken@mthelicon.com> Cc: Fernando =?iso-8859-1?q?Apestegu=EDa?= Subject: Re: Fwd: FBSD 7.1 BETA2 and RTL8168/8111 problem 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, 28 Nov 2008 19:22:56 -0000 On Friday 28 November 2008 17:14:33 Fernando Apestegu=EDa wrote: > Hi, > > I forward my orginal mail to freebsd-questions. I hope someone can > shed some light here... > > > ---------- Forwarded message ---------- > From: Fernando Apestegu=EDa > Date: Fri, Nov 28, 2008 at 9:33 AM > Subject: FBSD 7.1 BETA2 and RTL8168/8111 problem > To: FreeBSD > > > Hi all, > > I recently installed FreeBSD 7.1 BETA2 on my system. During > installation using FTP option, I could notice the following: > > After some random time (two, five or six minutes, for instance) the > installation stalled and sysinstall lost the connection. I was taken > back to the "Select FTP site" screen, and I had to configure my NIC > again. Then, the install resumed and I got a usable system (MINIMAL + > docs + manpages) > > But the problem persists. From time to time, it seems the kernel can't > see the NIC. It happens during normal operation and no message is > shown in /var/log/messages. ifconfig doesn't show my 're0' device, so > I can't run dhclient on it and I have to reboot. I have to say that > sometimes, even when I reboot, the NIC (RTL8168/8111 PCI Express) is > not present. > > This device works fine in the same computer with either Vista or > Fedora 9, though I have to say I had similar problems with earlier > versions of Fedora (device disappearing or not present after boot), > but after a kernel upgrade everything run smoothly. > > Does FreeBSD use the same driver than Linux does? Anybody else with > this problem? > Hi Fernando,=20 I have seen this problem on my machine as well with both 7.X and 8.0-curre= nt.=20 I am using a RTL8111C chip on a ICH9 GigaByte GA-48X-DS5 motherboard.=20 If the problem you are experiencing is the same as mine, the clue will be = in=20 the dmesg. If you take a look, you may see an error message saying somethin= g=20 about a MAC without a PHY (I cant remember the exact message). The motherbo= ard=20 I have has 2 ethernet ports on it, and randomly it would be missing one or= =20 both of them.=20 I gave up on trying to get mine to work and turned off the ethernet option= in=20 BIOS and installed an Intel Pro/1000 based card. I have found the em driver= to=20 be rock stable.=20 Peg From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 29 04:52:25 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 269AC1065675 for ; Sat, 29 Nov 2008 04:52:25 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id A68A48FC0A for ; Sat, 29 Nov 2008 04:52:24 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 5220 invoked by uid 2001); 29 Nov 2008 04:25:43 -0000 Date: Fri, 28 Nov 2008 22:25:43 -0600 From: "Rick C. Petty" To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20081129042543.GA5094@keira.kiwi-computer.com> References: <2ACA3DE8F9758A48B8BE2C7A847F91F240CE6B@polaris.maxiscale.com> <20081126153510.6062cd55@bhuda.mired.org> <2ACA3DE8F9758A48B8BE2C7A847F91F240CE99@polaris.maxiscale.com> <20081126190545.17b79195@bhuda.mired.org> <2ACA3DE8F9758A48B8BE2C7A847F91F240CEB4@polaris.maxiscale.com> <861vwx4fd5.fsf@ds4.des.no> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <861vwx4fd5.fsf@ds4.des.no> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD boot menu is missing X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd2008@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2008 04:52:25 -0000 On Thu, Nov 27, 2008 at 11:45:10AM +0100, Dag-Erling Smørgrav wrote: > > Just make sure you leave a few unallocated blocks at the end of the disk > (for gmirror metadata). In most cases, this happens automatically, Well, you only need to leave room for 512 bytes or one hard drive sector, in the case of gmirror. I've never seen a drive that ends exactly on a cylinder boundary; hardware RAID assumes this too. I would like to hear of a drive which is an exact cylinder multiple and how hardware RAID handles those situations. I always just assume there's extra space that's not consumed. -- Rick C. Petty From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 29 11:40: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 5217D1065678 for ; Sat, 29 Nov 2008 11:40:53 +0000 (UTC) (envelope-from laladelausanne@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id 011CB8FC1F for ; Sat, 29 Nov 2008 11:40:52 +0000 (UTC) (envelope-from laladelausanne@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so704671yxb.13 for ; Sat, 29 Nov 2008 03:40:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=UYIsVLXP8HVm9JOA3aFYdrWZgnQX0RFk2dUnqX8ngQQ=; b=OKqZrj6Fbw6NTAGFRFV7qoBOT/B3ykW10BNafFTIXP4DFL1QSVkc02feHlxXL40fvP wwDZv2vo/PCQgWeb17bD1xKxt6z27vscxNKKPpTWzhzwQwYJd6GsczTu7rAshe5oLvan yNJnn79+a9YdSGPljzo6CJfOm6yVs2neOKQgw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=xogrQolLnAa+ZcgDbpL3tgq9ylmcEkp94rmfOm4P+ItIbvWNHx4FVy38fFVPq+3I91 MB80dsHF0s2/IKm/SorM4A11VjvLEB/9wRTtT/Y6NTMDx5Md3ey/nwzg8v4A/Llo2HBD YakYXZn9EjgUxpM4jhXJmHVL3cnbg5Bmrft2k= Received: by 10.103.171.20 with SMTP id y20mr3563280muo.122.1227958849941; Sat, 29 Nov 2008 03:40:49 -0800 (PST) Received: from ?192.168.1.11? (dyn.144-85-135-130.dsl.vtx.ch [144.85.135.130]) by mx.google.com with ESMTPS id u9sm2442036muf.4.2008.11.29.03.40.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 29 Nov 2008 03:40:49 -0800 (PST) Message-Id: <2A1A4C21-8A2D-4151-BCA0-5FAE1D3BBE86@gmail.com> From: =?UTF-8?Q?Nikola_Kne=C5=BEevi=C4=87?= To: freebsd-hackers@freebsd.org In-Reply-To: <711D7381-D852-4B6B-991A-84BA6DEFB679@gmail.com> Content-Type: multipart/mixed; boundary=Apple-Mail-17-543544471 Mime-Version: 1.0 (Apple Message framework v929.2) Date: Sat, 29 Nov 2008 12:40:47 +0100 References: <711D7381-D852-4B6B-991A-84BA6DEFB679@gmail.com> X-Mailer: Apple Mail (2.929.2) Subject: Re: How to build kernel module spread on subdirectories? 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, 29 Nov 2008 11:40:53 -0000 --Apple-Mail-17-543544471 Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable On 25 Nov 2008, at 15:20 , Nikola Kne=C5=BEevi=C4=87 wrote: > I tried to move from OBJS into SRCS (main BSDmakefile now has: SRCS+=3D=20= > $(ELEMENT_SRCS)), by using something like: > # subdir0 > ELEMENT_SRCS__x =3D\ > subdir1/file0.cc \ > subdir1/file1.cc > > ... > > But this fails during the linking phase, because the linker is =20 > called with subdir1/file0.o, instead of just file0.o. > > To make something clear, I didn't just rewrite the GNUmakefile to =20 > BSDmakefile, I also followed some of the logic used to build kernel =20= > modules. I'm including bsd.kmod.ko, list sources in SRCS, don't have =20= > any explicit rule to build .o out of .cc/.c. There is no all: =20 > target, as well. Hi, since there were no replies, I went into the various .mk's, and I =20 found some inconsistencies when building modules. If you have a file =20 in a different directory, below the directory where you BSDmakefile =20 is, objects won't be linked nor cleaned properly. Default .c rule builds the object file in the .OBJDIR. But, when we =20 have files with absolute paths in SRCS, they get transfered verbatim =20 to OBJS, transforming only the suffix .c -> .o. When we want to build =20= the module, final rule is (at least on amd64): ${FULLPROG}: ${OBJS} ${LD} ... -o ${.TARGET} ${OBJS} which is wrong, because linker gets the absolute paths to .o files, =20 which do not exist at that place. It would be better to use ${OBJS:T} So I propose the attached patch kmod.ko to circumvent this problem. While I'm at it, I've attached another patch for /usr/share/mk/sys.mk, =20= which resolves a problem when one uses g++ during a building of a =20 kernel module. Cheers, Nikola =20= --Apple-Mail-17-543544471 Content-Disposition: attachment; filename=kmod.mk.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="kmod.mk.patch" Content-Transfer-Encoding: 7bit --- kmod.mk.orig 2008-11-29 12:28:54.000000000 +0100 +++ kmod.mk 2008-11-29 12:27:26.000000000 +0100 @@ -193,7 +193,7 @@ .else ${FULLPROG}: ${OBJS} .endif - ${LD} ${LDFLAGS} -r -d -o ${.TARGET} ${OBJS} + ${LD} ${LDFLAGS} -r -d -o ${.TARGET} ${OBJS:T} .if defined(EXPORT_SYMS) .if ${EXPORT_SYMS} != YES .if ${EXPORT_SYMS} == NO @@ -251,7 +251,7 @@ ${ECHO} ${.TARGET} "->" $$path ; \ ln -sf $$path ${.TARGET} -CLEANFILES+= ${PROG} ${KMOD}.kld ${OBJS} +CLEANFILES+= ${PROG} ${KMOD}.kld ${OBJS:T} .if defined(DEBUG_FLAGS) CLEANFILES+= ${FULLPROG} ${PROG}.symbols --Apple-Mail-17-543544471 Content-Disposition: attachment; filename=sys.mk.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="sys.mk.patch" Content-Transfer-Encoding: 7bit --- sys.mk~ 2008-09-05 16:30:26.000000000 +0200 +++ sys.mk 2008-09-16 14:59:40.000000000 +0200 @@ -62,7 +62,7 @@ .endif CXX ?= c++ -CXXFLAGS ?= ${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes:N-Wno-pointer-sign} +CXXFLAGS ?= ${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes:N-Wno-pointer-sign:S/-ffreestanding/-fno-builtin/g} CPP ?= cpp --Apple-Mail-17-543544471-- From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 29 15:23:52 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 A57E21065672 for ; Sat, 29 Nov 2008 15:23:52 +0000 (UTC) (envelope-from brucem@mail.cruzio.com) Received: from cruzio.com (dsl-63-249-85-132.cruzio.com [63.249.85.132]) by mx1.freebsd.org (Postfix) with ESMTP id 57CE98FC18 for ; Sat, 29 Nov 2008 15:23:52 +0000 (UTC) (envelope-from brucem@mail.cruzio.com) Received: from mail.cruzio.com (localhost [127.0.0.1]) by cruzio.com (8.12.10/8.12.10) with ESMTP id mAT8MFk2000304; Sat, 29 Nov 2008 00:22:16 -0800 (PST) (envelope-from brucem@mail.cruzio.com) Received: (from brucem@localhost) by mail.cruzio.com (8.12.10/8.12.10/Submit) id mAT8MFtl000303; Sat, 29 Nov 2008 00:22:15 -0800 (PST) (envelope-from brucem) Date: Sat, 29 Nov 2008 00:22:15 -0800 (PST) From: "Bruce R. Montague" Message-Id: <200811290822.mAT8MFtl000303@mail.cruzio.com> To: freebsd-hackers@freebsd.org Cc: unixmania@gmail.com, ancelgray@yahoo.com Subject: Re: Hardware support for AMD Geode CS5536 audio? 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, 29 Nov 2008 15:23:52 -0000 Hi, re Carlos A. M. dos Santos comment: > The amd5536.c informs that it is "derived from Bruce R. Montegue's AMD > CS5530 audio driver and the Linux CS5535 ALSA driver". I did not find > the original source files, but supposing that they are licensed under > GPL you will need a written permission from the owners to redistribute > the code under a different licensing terms. For orignal source: http://63.249.85.132/gx_audio/Makefile http://63.249.85.132/gx_audio/ns_geode.h http://63.249.85.132/gx_audio/ns_geode.c Doc: http://63.249.85.132/gx_audio/index.html I wrote the CS5530 audio driver referenced around 2001, it was always a FreeBSD driver under a modern BSD-license. The driver was never GPL-licensed. The audio driver was developed on FreeBSD during a contract for NatSemi (who owned the Geode at the time, they had just brought Cyrix). The driver was part of an effort to "undo" drivers that had been put into the Geode's "hypervisor" (sort of an extended ACPI that provided device emulators ("device models"); it turned out that was considered reverse engineering hardware and so was a no-no). The driver was done from scratch, from the manuals, with occasional help from Cyrix engineers. As I recall, FreeBSD helped a little with the final debugging of the Geode hardware, booting a picobsd floppy became part of the standard test suite. At the time, I found it convenient to email floppy-sized picobsd systems that demonstrated a hardware bug to remote hardware engineers. -bruce From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 29 23:06:52 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 C54601065670 for ; Sat, 29 Nov 2008 23:06:52 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id 82EC88FC0A for ; Sat, 29 Nov 2008 23:06:52 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so754464yxb.13 for ; Sat, 29 Nov 2008 15:06:51 -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:user-agent :mime-version:to:subject:x-enigmail-version:openpgp:content-type :content-transfer-encoding:from; bh=aRWYoZrmKluD6vM7xl6bHqHGmxju9EWbssNas1qEiaU=; b=Qk3DR8lXE4CDJjRg+r9YX82eCgb1PD6DRXV9Mg0iKJ+SkWRrz1QAaKLdigFD3i4MmR Wh7Bh0+cMyxgQF0Uw4UtwjSiUYEjJf7Lb0C1n7NznxxGj8Q6HCJaVlw4kJ9Wwj3u1Cr9 cJ+VHFYqxlwa8oBDgLEb10fm/nApodCN6633M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:subject :x-enigmail-version:openpgp:content-type:content-transfer-encoding :from; b=klDadQBktSkyE0tZO78UcsQG9xDS/rKyQROi5V9twXivNgpRx2xReY6uiH80bu9aTf i4taS3GstF5aCigLR/H2m0s9sQWhCG9CxRFu7d9CYuxVAaK/U/nq+CgHRz7l8Tb0amzT BYf8Wo9p4T981fwRJ61fWDLaE0O8qsGmnuL58= Received: by 10.90.91.9 with SMTP id o9mr1081664agb.117.1228000011945; Sat, 29 Nov 2008 15:06:51 -0800 (PST) Received: from aargh.lan (ool-182d26f3.dyn.optonline.net [24.45.38.243]) by mx.google.com with ESMTPS id 6sm3118354agb.22.2008.11.29.15.06.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 29 Nov 2008 15:06:51 -0800 (PST) Message-ID: <4931CB02.9070904@gmail.com> Date: Sat, 29 Nov 2008 18:06:42 -0500 User-Agent: Mozilla (X11; U; FreeBSD i386; en-US; ) Gecko Thunderbird Mnenhy/0.7.5.666 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.95.7 OpenPGP: id=E9C2CCD1; url=pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit From: Eitan Adler Subject: keeping track of local modifications 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, 29 Nov 2008 23:06:52 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm starting to work on local modifications to freeBSD and I was thinking of how to keep track of my local modifications. My first thought was to make a svn repo and and keep the freeBSD source as a "vendor branch". Has anyone else done this? What else do you do to keep track of local modifications? Note: I'm tracking -STABLE; not -CURRENT. As an aside can anyone point me to a relatively easy bug/feature that I can work on as a beginner C coder? - -- Eitan Adler GNU Key fingerptrint: 2E13 BC16 5F54 0FBD 62ED 42B6 B65F 24AB E9C2 CCD1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkxywIACgkQtl8kq+nCzNG9+QCdFZMihzFDBHulzTWKFsTI1i5n 7B4AnRoBW4uU0sCRfMTapO17aY5i5sbD =9Y49 -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 29 23:13: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 639BC1065672 for ; Sat, 29 Nov 2008 23:13:57 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by mx1.freebsd.org (Postfix) with ESMTP id ED6968FC0A for ; Sat, 29 Nov 2008 23:13:56 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-018-042.pools.arcor-ip.net [88.66.18.42]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis) id 0ML25U-1L6Z0d3Ip3-0003Te; Sun, 30 Nov 2008 00:13:55 +0100 Received: (qmail 53337 invoked from network); 29 Nov 2008 23:13:55 -0000 Received: from fbsd8.laiers.local (192.168.4.151) by ns1.laiers.local with SMTP; 29 Nov 2008 23:13:55 -0000 From: Max Laier Organization: FreeBSD To: freebsd-hackers@freebsd.org Date: Sun, 30 Nov 2008 00:13:54 +0100 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; i386; ; ) References: <4931CB02.9070904@gmail.com> In-Reply-To: <4931CB02.9070904@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811300013.54902.max@love2party.net> X-Provags-ID: V01U2FsdGVkX18PS/ddZTwSMAB+nuU2P/fUiM9z93rdPixzK0v 799JPgtXa98T21At3xBrzmu2IhrrwjEosSuzi2ctIn9fzjEk04 5fs1ki4ACUw/uHkfsAhqQ== Cc: Eitan Adler Subject: Re: keeping track of local modifications 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, 29 Nov 2008 23:13:57 -0000 On Sunday 30 November 2008 00:06:42 Eitan Adler wrote: > I'm starting to work on local modifications to freeBSD and I was > thinking of how to keep track of my local modifications. > My first thought was to make a svn repo and and keep the freeBSD source > as a "vendor branch". Has anyone else done this? What else do you do to > keep track of local modifications? > Note: I'm tracking -STABLE; not -CURRENT. Use svk. There is information about how to set that up on the wiki: http://wiki.freebsd.org/SubversionPrimer > As an aside can anyone point me to a relatively easy bug/feature that I > can work on as a beginner C coder? Check http://www.freebsd.org/projects/ideas/ -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 29 23:29:52 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 C8F641065670 for ; Sat, 29 Nov 2008 23:29:52 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id 86BA88FC14 for ; Sat, 29 Nov 2008 23:29:52 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 57D7614D6CDB; Sun, 30 Nov 2008 00:13:24 +0100 (CET) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.mypc.hu ([127.0.0.1]) by localhost (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VdnVb1BeqGsm; Sun, 30 Nov 2008 00:13:19 +0100 (CET) Received: from [192.168.1.105] (catv-80-98-156-89.catv.broadband.hu [80.98.156.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 7C8CD14D2C45; Sun, 30 Nov 2008 00:13:19 +0100 (CET) Message-ID: <4931CC8F.40700@FreeBSD.org> Date: Sun, 30 Nov 2008 00:13:19 +0100 From: =?ISO-8859-1?Q?G=E1bor_K=F6vesd=E1n?= User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Eitan Adler References: <4931CB02.9070904@gmail.com> In-Reply-To: <4931CB02.9070904@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: keeping track of local modifications 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, 29 Nov 2008 23:29:52 -0000 Eitan Adler escribió: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I'm starting to work on local modifications to freeBSD and I was > thinking of how to keep track of my local modifications. > My first thought was to make a svn repo and and keep the freeBSD source > as a "vendor branch". Has anyone else done this? What else do you do to > keep track of local modifications? > Note: I'm tracking -STABLE; not -CURRENT. > I use Mercurial as described here: http://wiki.freebsd.org/LocalMercurial > As an aside can anyone point me to a relatively easy bug/feature that I > can work on as a beginner C coder? > I suggest that you should browse the unassigned problem reports here from the bin category. Regards, -- Gabor Kovesdan EMAIL: gabor@FreeBSD.org WWW: http://www.kovesdan.org