From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 1 01:57:28 2009 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 D7936106566B; Thu, 1 Jan 2009 01:57:28 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 40E868FC14; Thu, 1 Jan 2009 01:57:27 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so1073364ugs.39 for ; Wed, 31 Dec 2008 17:57: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:date:from:to :subject:cc:mime-version:content-type:content-transfer-encoding :content-disposition; bh=RYV4QJEFzJi6vExaVuu1qYM01wn9RxsiFoiXXghjnsA=; b=O6X3PI6+JUcgRsxNY8nRJJCXp73IEkOIFGLJycMK/zM9urJx0G2h4Em367doMGBW9t BQbg2y6vIClEwJRQNHGTrH1wZrgcwjGfLWvsVUPu1ZLC1GpMvpMSB8294NMPF3ynomd7 PB0lxvmtl8XXnrU9NcdHCciJyjA8Mjnl9vL/A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition; b=F9NogrnXGFdeLDNBbAHuj6rqNfi6kbDEqmggikdLE4JFfERch7CoT5I5Q7ie2x27iu FJtYidAy0Aq9I16sHm58TUbo3s8dWWnTLvCFCV4g5swFIVe9DkkRjJlOp1l54uId/Q9e m234eTfo71mQhSFAAWR+d7COM2k6exaxlf7Dk= Received: by 10.67.89.15 with SMTP id r15mr10879862ugl.59.1230775046957; Wed, 31 Dec 2008 17:57:26 -0800 (PST) Received: by 10.67.88.9 with HTTP; Wed, 31 Dec 2008 17:57:26 -0800 (PST) Message-ID: <7d6fde3d0812311757t7b7f6830jb1351d550ceeacd9@mail.gmail.com> Date: Wed, 31 Dec 2008 17:57:26 -0800 From: "Garrett Cooper" To: "Garrett Cooper" , "FreeBSD Hackers" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: czander@nvidia.com Subject: Posting a bounty for the nVidia 64-bit wishlist 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, 01 Jan 2009 01:57:29 -0000 Hello Hackers, I have a request related to making FreeBSD to be a viable platform on AMD/Intel 64-bit architectures, such that functionality as requested by Chris (see: ). Please note that some of these things would also no doubt positively affect other groups (ATI, Intel, etc) when writing x*64 drivers for FreeBSD, so the list isn't just necessarily just applicable to nVidia. If someone could list a number of sys/... files that I could look at in order to get a brief grasp of what needs to be modified to support proper 64-bit architecture vmem, pmap, etc, that would be extremely helpful; I want to establish a reasonable timeframe and skill set required for the task set, so I can establish a reasonable monetary figure and/or resources to donate to the project. Also, if anyone else is interested in this pursuit (I know there are quite a few), feel free to contact me so we can coordinate our efforts and pool our resources to get these sets of loose ends finally tied up to have a more accessible FreeBSD based desktop. Thanks! -Garrett From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 1 05:28:05 2009 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 BBD311065680 for ; Thu, 1 Jan 2009 05:28:05 +0000 (UTC) (envelope-from agh@coolrhaug.com) Received: from mail5.qnetau.com (mail5.qnetau.com [202.146.209.190]) by mx1.freebsd.org (Postfix) with ESMTP id F29468FC14 for ; Thu, 1 Jan 2009 05:28:04 +0000 (UTC) (envelope-from agh@coolrhaug.com) Received: (qmail 78338 invoked by uid 399); 1 Jan 2009 05:01:22 -0000 Received: from unknown (HELO madcat.localnet) (202.89.181.71) by mail5.qnetau.com with ESMTPM; 1 Jan 2009 05:01:22 -0000 X-Originating-IP: 202.89.181.71 From: Alastair Hogge To: freebsd-hackers@freebsd.org Date: Thu, 1 Jan 2009 14:03:13 +0900 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; i386; ; ) References: <7d6fde3d0812311757t7b7f6830jb1351d550ceeacd9@mail.gmail.com> In-Reply-To: <7d6fde3d0812311757t7b7f6830jb1351d550ceeacd9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901011403.13435.agh@coolrhaug.com> Cc: Garrett Cooper , czander@nvidia.com, Garrett Cooper Subject: Re: Posting a bounty for the nVidia 64-bit wishlist 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, 01 Jan 2009 05:28:06 -0000 On Thursday 01 January 2009 10:57:26 Garrett Cooper wrote: > Hello Hackers, > I have a request related to making FreeBSD to be a viable platform > on AMD/Intel 64-bit architectures, such that functionality as > requested by Chris (see: > ). Please note that > some of these things would also no doubt positively affect other > groups (ATI, Intel, etc) when writing x*64 drivers for FreeBSD, so the > list isn't just necessarily just applicable to nVidia. > If someone could list a number of sys/... files that I could look > at in order to get a brief grasp of what needs to be modified to > support proper 64-bit architecture vmem, pmap, etc, that would be > extremely helpful; I want to establish a reasonable timeframe and > skill set required for the task set, so I can establish a reasonable > monetary figure and/or resources to donate to the project. > Also, if anyone else is interested in this pursuit (I know there > are quite a few), feel free to contact me so we can coordinate our > efforts and pool our resources to get these sets of loose ends finally > tied up to have a more accessible FreeBSD based desktop. > Thanks! > -Garrett Are you aware of the efforts the PC-BSD project is making? http://trac.pcbsd.org/browser/freebsd-projects/nvidia-work Thanks -Alastair From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 1 13:18:00 2009 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 237691065670; Thu, 1 Jan 2009 13:18:00 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id CE7328FC1C; Thu, 1 Jan 2009 13:17:59 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 1441F9CB339; Thu, 1 Jan 2009 14:02:38 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BLNKLbtJzMTF; Thu, 1 Jan 2009 14:02:34 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 444D99CB33C; Thu, 1 Jan 2009 14:02:34 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id n01D2W6U026354; Thu, 1 Jan 2009 14:02:32 +0100 (CET) (envelope-from rdivacky) Date: Thu, 1 Jan 2009 14:02:32 +0100 From: Roman Divacky To: Alastair Hogge Message-ID: <20090101130232.GA26197@freebsd.org> References: <7d6fde3d0812311757t7b7f6830jb1351d550ceeacd9@mail.gmail.com> <200901011403.13435.agh@coolrhaug.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200901011403.13435.agh@coolrhaug.com> User-Agent: Mutt/1.4.2.3i Cc: Garrett Cooper , freebsd-hackers@freebsd.org, czander@nvidia.com, Garrett Cooper Subject: Re: Posting a bounty for the nVidia 64-bit wishlist 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, 01 Jan 2009 13:18:00 -0000 On Thu, Jan 01, 2009 at 02:03:13PM +0900, Alastair Hogge wrote: > On Thursday 01 January 2009 10:57:26 Garrett Cooper wrote: > > Hello Hackers, > > I have a request related to making FreeBSD to be a viable platform > > on AMD/Intel 64-bit architectures, such that functionality as > > requested by Chris (see: > > ). Please note that > > some of these things would also no doubt positively affect other > > groups (ATI, Intel, etc) when writing x*64 drivers for FreeBSD, so the > > list isn't just necessarily just applicable to nVidia. > > If someone could list a number of sys/... files that I could look > > at in order to get a brief grasp of what needs to be modified to > > support proper 64-bit architecture vmem, pmap, etc, that would be > > extremely helpful; I want to establish a reasonable timeframe and > > skill set required for the task set, so I can establish a reasonable > > monetary figure and/or resources to donate to the project. > > Also, if anyone else is interested in this pursuit (I know there > > are quite a few), feel free to contact me so we can coordinate our > > efforts and pool our resources to get these sets of loose ends finally > > tied up to have a more accessible FreeBSD based desktop. > > Thanks! > > -Garrett > Are you aware of the efforts the PC-BSD project is making? > > http://trac.pcbsd.org/browser/freebsd-projects/nvidia-work wow, is anyone working on this being review/integrated? From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 1 18:31:06 2009 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 6C5C2106564A for ; Thu, 1 Jan 2009 18:31:06 +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 326FD8FC18 for ; Thu, 1 Jan 2009 18:31:06 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from baby-jane.lamaiziere.net (81-65-128-47.rev.numericable.fr [81.65.128.47]) by smtp.lamaiziere.net (Postfix) with ESMTPA id A9F6263366E for ; Thu, 1 Jan 2009 19:31:04 +0100 (CET) Received: from baby-jane-lamaiziere-net.local (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id 792F268FFC4 for ; Thu, 1 Jan 2009 19:31:03 +0100 (CET) Date: Thu, 1 Jan 2009 19:31:02 +0100 From: Patrick =?ISO-8859-15?Q?Lamaizi=E8re?= To: freebsd-hackers@freebsd.org Message-ID: <20090101193102.2ebbbd53@baby-jane-lamaiziere-net.local> 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=US-ASCII Content-Transfer-Encoding: 7bit Subject: hifn(4) few small changes 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, 01 Jan 2009 18:31:06 -0000 Hello and happy new year, I would like to suggest few changes in the hifn driver: diff between CURRENT: http://user.lamaiziere.net/patrick/hifn-010109/hifn-patch.txt hifn_attach() - Useless bzero of softc hifn_detach() - Return EBUSY if there is active session - Free the sessions - Use callout_drain() instead callout_stop() hifn_rng() - Remove the unused macro RANDOM_BITS hifn_newsession() - Add and use a rwlock to lock the sessions (sc->sc_sessions_lock). - Remove useless bzero of the sessions (use malloc with M_ZERO) - Use arc4rand() instead read_random() hifn_freesession() - Use a rwlock to lock the sessions hifn_process() - Use a rwlock to lock the sessions. In the current driver there is no lock to protect the sessions in hifn_process() but the sessions can be reallocated in hifn_newsession(). I think this is the cause of PR kern/91407 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=kern/91407 hifn_callback() - Use a rwlock to lock the sessions. I've tested on a Soekris vpn 1411 (hifn 7955) with ipsec and openssl. Regards. (With big thanks to Mike Tancsa) From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 1 21:44:17 2009 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 4DEA71065670; Thu, 1 Jan 2009 21:44:17 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id CCF038FC12; Thu, 1 Jan 2009 21:44:16 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by an-out-0708.google.com with SMTP id c2so2206060anc.13 for ; Thu, 01 Jan 2009 13:44:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:x-mailer :mime-version:subject:date:cc; bh=XsUy3kJX8WlLlev5Jctnzh/ZI7YjLdSLhrikBZxFAhI=; b=tjaVQdEXnwxgbi2r2K1xBIasR8P2FKJrraOfx9knOZL/giATdDFxxsXdwWsW5+plyP I0iGD8i+B1NJm3ET2eil00QwPd+D6X7uuglHUaxMJqgXg6QpAr7Olk1Rz1LiJglf/qEn 4m8CdZ49AgxQSNEZaIUsYPDV4zXP59QthlPN8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:x-mailer:mime-version:subject:date:cc; b=D8a/dMQn/v32yf/CMKCpzbpCUVoEkHaCc3abxPARjJ8Fhorkb98rTmwsd9eEKhrt9p kSul1LvDcGhzTNVB7RylsrT8c4PYhtmmKGO4SW/ck2GE2bvgXkEP1g/jiF6Zax8HmcX+ q3aMyyHT2c/b2yflD4OocaUvybtv/9cjYe8Ts= Received: by 10.100.111.11 with SMTP id j11mr9555913anc.15.1230846256093; Thu, 01 Jan 2009 13:44:16 -0800 (PST) Received: from ?10.99.161.78? ([32.159.157.231]) by mx.google.com with ESMTPS id c9sm35350291ana.59.2009.01.01.13.44.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Jan 2009 13:44:14 -0800 (PST) References: <7d6fde3d0812311757t7b7f6830jb1351d550ceeacd9@mail.gmail.com> <200901011403.13435.agh@coolrhaug.com> <20090101130232.GA26197@freebsd.org> Message-Id: <03CD2B60-80A5-49D8-A504-DE2D68D643E7@gmail.com> From: Garrett Cooper To: Roman Divacky In-Reply-To: <20090101130232.GA26197@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPhone Mail (5G77) Mime-Version: 1.0 (iPhone Mail 5G77) Date: Thu, 1 Jan 2009 13:44:02 -0800 Cc: "freebsd-hackers@freebsd.org" , "czander@nvidia.com" , Alastair Hogge , Garrett Cooper Subject: Re: Posting a bounty for the nVidia 64-bit wishlist 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, 01 Jan 2009 21:44:17 -0000 On Jan 1, 2009, at 5:02, Roman Divacky wrote: > On Thu, Jan 01, 2009 at 02:03:13PM +0900, Alastair Hogge wrote: >> On Thursday 01 January 2009 10:57:26 Garrett Cooper wrote: >>> Hello Hackers, >>> I have a request related to making FreeBSD to be a viable >>> platform >>> on AMD/Intel 64-bit architectures, such that functionality as >>> requested by Chris (see: >>> ). Please note that >>> some of these things would also no doubt positively affect other >>> groups (ATI, Intel, etc) when writing x*64 drivers for FreeBSD, so >>> the >>> list isn't just necessarily just applicable to nVidia. >>> If someone could list a number of sys/... files that I could look >>> at in order to get a brief grasp of what needs to be modified to >>> support proper 64-bit architecture vmem, pmap, etc, that would be >>> extremely helpful; I want to establish a reasonable timeframe and >>> skill set required for the task set, so I can establish a reasonable >>> monetary figure and/or resources to donate to the project. >>> Also, if anyone else is interested in this pursuit (I know there >>> are quite a few), feel free to contact me so we can coordinate our >>> efforts and pool our resources to get these sets of loose ends >>> finally >>> tied up to have a more accessible FreeBSD based desktop. >>> Thanks! >>> -Garrett >> Are you aware of the efforts the PC-BSD project is making? >> >> http://trac.pcbsd.org/browser/freebsd-projects/nvidia-work > > wow, is anyone working on this being review/integrated? I wasn't aware of that either. I'd be more than happy to support that work if it makes it back into the main tree. Thanks! -Garrett From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 02:11:54 2009 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 103DB106564A for ; Fri, 2 Jan 2009 02:11:54 +0000 (UTC) (envelope-from freebsd@bitfreak.org) Received: from srv.twinthornes.com (srv.twinthornes.com [65.75.198.146]) by mx1.freebsd.org (Postfix) with ESMTP id E27C38FC18 for ; Fri, 2 Jan 2009 02:11:53 +0000 (UTC) (envelope-from freebsd@bitfreak.org) Received: from [10.9.70.104] (c-76-27-226-62.hsd1.or.comcast.net [76.27.226.62]) by srv.twinthornes.com (Postfix) with ESMTPSA id B352924C6C for ; Thu, 1 Jan 2009 17:55:43 -0800 (PST) Message-ID: <495D7421.1090208@bitfreak.org> Date: Thu, 01 Jan 2009 17:55:45 -0800 From: Darren Pilgrim User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Is the FreeBSD clock UTC or TAI? 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, 02 Jan 2009 02:11:54 -0000 This came up during discussion of leap seconds and why UTC and TAI are different. My question is, does FreeBSD's internal clock use UTC or TAI for timekeeping? That is, is wallclock calculated from an exact count of the number of seconds since epoch (TAI), then adjusted with a leap seconds table to match UTC, or does it internally use UTC and have code to deal with the ambiguous seconds that occur at each leap second? From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 02:41:05 2009 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 803CB1065686 for ; Fri, 2 Jan 2009 02:41:05 +0000 (UTC) (envelope-from shilp.kamal@yahoo.com) Received: from n75.bullet.mail.sp1.yahoo.com (n75.bullet.mail.sp1.yahoo.com [98.136.44.51]) by mx1.freebsd.org (Postfix) with SMTP id 10A268FC1B for ; Fri, 2 Jan 2009 02:41:05 +0000 (UTC) (envelope-from shilp.kamal@yahoo.com) Received: from [69.147.65.151] by n75.bullet.mail.sp1.yahoo.com with NNFMP; 02 Jan 2009 02:27:44 -0000 Received: from [69.147.84.123] by t5.bullet.mail.sp1.yahoo.com with NNFMP; 02 Jan 2009 02:27:44 -0000 Received: from [127.0.0.1] by omp209.mail.sp1.yahoo.com with NNFMP; 02 Jan 2009 02:27:44 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 751358.50163.bm@omp209.mail.sp1.yahoo.com Received: (qmail 23549 invoked by uid 60001); 2 Jan 2009 02:27:44 -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=h6v9D3dG8i2gaUG4Bj9q860/5Mz5p0Bmy6ScilMRz1MSPgd+1a5S0XChrBrPCBAuxyciN6zfmEs3BRaPMNG+gB1XQ0vUzjRNXcPBotXoDFijWkDJkAiVNC6o/whcedPCx391iAl7rlq4r4ZAQKndZ4ru1qr+TA6oJSO8QDP0cws=; X-YMail-OSG: INRoujMVM1lIfvtwfW0xdWybxM.oMZAbDpKeC50z68soPXXCyYsrA.ZGcuwdyWVN0attLMo2VcAd6BJO_wC8q5uHRhuSklvWjdSxatdjWmqQcwxH3eNrxhnzGtwxDPay9cY.fxoWPSijRMem4VkqFcV75fU- Received: from [71.142.201.57] by web45407.mail.sp1.yahoo.com via HTTP; Thu, 01 Jan 2009 18:27:44 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Thu, 1 Jan 2009 18:27:44 -0800 (PST) From: Kamlesh Patel To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <387210.21917.qm@web45407.mail.sp1.yahoo.com> Cc: freebsd-questions@freebsd.org Subject: FreeBSD kernel Debugging tools for Virtual Memory Module X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: shilp.kamal@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2009 02:41:05 -0000 Hi Friends, Happy New Year, I am working on Virtual Memory parts of FreeBSD OS. My Problem is, whenever i modify little code of vmpage.c file i need to build the whole kernel to check the modification and i even am not able to debug the kernel code. Could anyone please inform me kernel Debugging tools for FreeBSD OS? Kamlesh MS CS, CSUS From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 03:29:53 2009 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 C4625106566C for ; Fri, 2 Jan 2009 03:29:53 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 800788FC26 for ; Fri, 2 Jan 2009 03:29:53 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-255-48-78.bredband.comhem.se ([83.255.48.78]:61248 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1LIajQ-0000kF-5I for freebsd-hackers@freebsd.org; Fri, 02 Jan 2009 04:29:52 +0100 Received: (qmail 90472 invoked from network); 2 Jan 2009 04:29:49 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 2 Jan 2009 04:29:49 +0100 Received: (qmail 34119 invoked by uid 1001); 2 Jan 2009 04:29:49 +0100 Date: Fri, 2 Jan 2009 04:29:49 +0100 From: Erik Trulsson To: Darren Pilgrim Message-ID: <20090102032949.GA33780@owl.midgard.homeip.net> References: <495D7421.1090208@bitfreak.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <495D7421.1090208@bitfreak.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-IP: 83.255.48.78 X-Scan-Result: No virus found in message 1LIajQ-0000kF-5I. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1LIajQ-0000kF-5I 699e4318d919f1a30083e628fbcd9aca Cc: freebsd-hackers@freebsd.org Subject: Re: Is the FreeBSD clock UTC or TAI? 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, 02 Jan 2009 03:29:54 -0000 On Thu, Jan 01, 2009 at 05:55:45PM -0800, Darren Pilgrim wrote: > This came up during discussion of leap seconds and why UTC and TAI are > different. My question is, does FreeBSD's internal clock use UTC or TAI > for timekeeping? That is, is wallclock calculated from an exact count > of the number of seconds since epoch (TAI), then adjusted with a leap > seconds table to match UTC, or does it internally use UTC and have code > to deal with the ambiguous seconds that occur at each leap second? I think the answer is no. Instead I believe FreeBSD follows the POSIX rules which mandates using UTC, while completely ignoring the concept of leap seconds. There was a long thread over on freebsd-current@ in early January 2006 titled "FreeBSD handles leapsecond correctly" that discussed this at length. (The general consensus seems to have been that leap seconds are evil and a PITA and essentially impossible to handle 'correctly' since various standards differ on how they should be handled. What to do about them is less clear however.) -- Erik Trulsson ertr1013@student.uu.se From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 05:33:44 2009 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 B93FB106566B for ; Fri, 2 Jan 2009 05:33:44 +0000 (UTC) (envelope-from lazaax.und@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by mx1.freebsd.org (Postfix) with ESMTP id 8F2758FC0C for ; Fri, 2 Jan 2009 05:33:44 +0000 (UTC) (envelope-from lazaax.und@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so7478622rvf.43 for ; Thu, 01 Jan 2009 21:33:44 -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=pqASlrAaZ674tyKYuVh0kvM6nmIo/4d6KiDwvPlqE58=; b=FEdhHOG4kupMMRGNsfYY8KJXKeSr/lU0s8lV8HnqLx6aXU+kozlcFIkYdjhrivW3ly 3S0VVbvKuFIz22AESleTePZqYHBYeDyDnRz5ryc9FjE1UMjJzFlZ5/JwNJYgQpjpgWuZ wvD47v3ezEXBDnlSpIt31ImVifcVku02avSp4= 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=MICeJQY7AswKF2PycfL5Pqxfy9tXPvn08c67ox5NXLxBosgzYJt3tZ96PhoZQib+hz nAW3o31uP+cUSx1SSu4ajCvmJfeAeO9+bDoqfjhp4FfiHwR7OEUEWmdBuV/JRF6TSpU0 0olX1uWMUNvNsDCuDbk9pxrs0mu/GnmQdojTg= Received: by 10.141.52.3 with SMTP id e3mr8677157rvk.157.1230874424139; Thu, 01 Jan 2009 21:33:44 -0800 (PST) Received: by 10.141.205.20 with HTTP; Thu, 1 Jan 2009 21:33:44 -0800 (PST) Message-ID: <4374ff010901012133i6cbe920du28cdf4c829f2990d@mail.gmail.com> Date: Thu, 1 Jan 2009 23:33:44 -0600 From: "lazaax -" 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: imac g4 dont boot 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, 02 Jan 2009 05:33:45 -0000 hi, hackers, i need a help with a imac g4,i put the power cable and i push the power botton to turn on the mac and it makes a sound at start but the porblem is that dont boot, and keep like panic o somthing like that, i want to try install freebsd to this mac o restore the sistema mac that was installed, thanks people...... -- Leon Chavez Colima, Mexico "lazaax" From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 03:28:20 2009 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 681AD106566C for ; Fri, 2 Jan 2009 03:28:20 +0000 (UTC) (envelope-from mehulc87@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.169]) by mx1.freebsd.org (Postfix) with ESMTP id 38FA58FC16 for ; Fri, 2 Jan 2009 03:28:19 +0000 (UTC) (envelope-from mehulc87@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so8544000wfg.7 for ; Thu, 01 Jan 2009 19:28:19 -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=d9PmkMiEHORrETs/ZbnIpMv+uzrlYvoQHPD6suvaBWw=; b=N0RwGYva15x8U9kpMqX54inKB3AW2RCYWP7UHxcEGNSLhARuQmh2ax8HohEewO4HE9 vba9+JZCDBg+xJWtBoIFubH3A6v7U7szsj7VinVLqiDmHWziDW412tMVaDGREa3FWI3g I4YH9Q9poio5wpyp+VCwx51JkWYnmxaPRpXnk= 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=jTEJs7Oi/ahioPCoSlltF5KdwZEkHcxwZlG8ottZelETuWqA4Rpt4Ozv++L/9/+XYy wplWLqAbcHoW+1IfCXIf4rTp68TqgtV87r/ZhZbSCMZNEi/YmTZngu6CGoAdNUraK5Pg /2oNhbWAhBq9BLL1FTLAqWcxgLgMflXv08ci0= Received: by 10.142.88.4 with SMTP id l4mr7161126wfb.117.1230864961867; Thu, 01 Jan 2009 18:56:01 -0800 (PST) Received: by 10.143.110.4 with HTTP; Thu, 1 Jan 2009 18:56:01 -0800 (PST) Message-ID: <251d650c0901011856n20dd48efuc6a5ef714320e1cf@mail.gmail.com> Date: Fri, 2 Jan 2009 08:26:01 +0530 From: "Mehul Chadha" To: shilp.kamal@yahoo.com In-Reply-To: <387210.21917.qm@web45407.mail.sp1.yahoo.com> MIME-Version: 1.0 References: <387210.21917.qm@web45407.mail.sp1.yahoo.com> X-Mailman-Approved-At: Fri, 02 Jan 2009 05:54:00 +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: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: FreeBSD kernel Debugging tools for Virtual Memory Module 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, 02 Jan 2009 03:28:20 -0000 Hi kamlesh, Happy New Year. I am not aware of the debugging tools in freebsd available right now in the market. But I am working on a virtual mode freebsd project similar to what UML does in linux. This will help in executing the entire OS in the user space of real OS running on HW. This will be the best debugging tool to debug all the non architecture specific code in freebsd. The project is specially catered to problems similar to what you are facing. We are expecting the project to be completed in next 3 months. Regards, Mehul On Fri, Jan 2, 2009 at 7:57 AM, Kamlesh Patel wrote: > Hi Friends, Happy New Year, > > I am working on Virtual Memory parts of FreeBSD OS. My Problem is, whenever > i modify little code of vmpage.c file i need to build the whole kernel to > check the modification and i even am not able to debug the kernel code. > > Could anyone please inform me kernel Debugging tools for FreeBSD OS? > > Kamlesh > MS CS, CSUS > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 07:40:38 2009 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 0E1E6106564A for ; Fri, 2 Jan 2009 07:40:38 +0000 (UTC) (envelope-from pranavpeshwe@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id B710F8FC14 for ; Fri, 2 Jan 2009 07:40:37 +0000 (UTC) (envelope-from pranavpeshwe@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2845411ywe.13 for ; Thu, 01 Jan 2009 23:40: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:cc:in-reply-to:mime-version:content-type:references; bh=Yc43JoJOvgW6j8ci31ieDITdqkNqKFCNGhuJLqy633s=; b=fZuAXiK4YhJXjl6bu4lHskWNJ4io+IYGcs4xlQGjsT+v5T1j4gdsVbPpj0vKEuvxkH bn6N1HiWyEHyiabu3PSTcdNza/wRh0DgYpN4tdi6zrPqGyZoAgJVyVthuRpurXZ49IFZ d5ToC4uczb7ThVakP1Vd45D9b7/tdUufwVQyA= 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=Rszi00STf+f9Qc1hpXc3CjToO/6v6R78fwg8V/aPemlHS1t66nUi4vlszDr4vIl4r5 yc8xcoKCvbJrkYYAqaf+wI3aHcF69nrGMugLyirHqDlqfsOslW88glXS9bdiXgxU3ii1 vvmp7YILejAti9WWPRplHHtRVzIH4mdENv7OA= Received: by 10.151.150.13 with SMTP id c13mr5553166ybo.243.1230880208246; Thu, 01 Jan 2009 23:10:08 -0800 (PST) Received: by 10.151.121.2 with HTTP; Thu, 1 Jan 2009 23:10:08 -0800 (PST) Message-ID: Date: Fri, 2 Jan 2009 12:40:08 +0530 From: "Pranav Peshwe" To: shilp.kamal@yahoo.com In-Reply-To: <387210.21917.qm@web45407.mail.sp1.yahoo.com> MIME-Version: 1.0 References: <387210.21917.qm@web45407.mail.sp1.yahoo.com> 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: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: FreeBSD kernel Debugging tools for Virtual Memory Module 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, 02 Jan 2009 07:40:38 -0000 On Fri, Jan 2, 2009 at 7:57 AM, Kamlesh Patel wrote: > Hi Friends, Happy New Year, > > I am working on Virtual Memory parts of FreeBSD OS. My Problem is, whenever > i modify little code of vmpage.c file i need to build the whole kernel to > check the modification and i even am not able to debug the kernel code. > > Could anyone please inform me kernel Debugging tools for FreeBSD OS? > Hi, ddb and kgdb are two useful and often indispensable tools for kernel debugging on FBSD. ddb won't allow you source level debugging, kgdb will, but you'll need an extra machine. Dtrace from the Solaris world is being ported to FBSD, that too can be useful at times. You can find more information in the FBSD developers handbook here - http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html AFAIK, if you are modifying the kernel source directly there is no option but to recompile all the changed and dependent files. I do not know whether it works out of the box, but you can try using ccache to speed up the compilation. HTH. Best regards, Pranav http://pranavsbrain.peshwe.com From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 08:51:41 2009 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 AB91C1065672; Fri, 2 Jan 2009 08:51:41 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (ns1.bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id 884F38FC08; Fri, 2 Jan 2009 08:51:41 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 8F5A35B05; Fri, 2 Jan 2009 00:46:09 -0800 (PST) To: "Pranav Peshwe" In-reply-to: Your message of "Fri, 02 Jan 2009 12:40:08 +0530." References: <387210.21917.qm@web45407.mail.sp1.yahoo.com> Comments: In-reply-to "Pranav Peshwe" message dated "Fri, 02 Jan 2009 12:40:08 +0530." Date: Fri, 02 Jan 2009 00:46:09 -0800 From: Bakul Shah Message-Id: <20090102084609.8F5A35B05@mail.bitblocks.com> Cc: freebsd-hackers@freebsd.org, shilp.kamal@yahoo.com, freebsd-questions@freebsd.org Subject: Re: FreeBSD kernel Debugging tools for Virtual Memory Module 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, 02 Jan 2009 08:51:42 -0000 > ddb and kgdb are two useful and often indispensable tools for kernel > debugging on FBSD. ddb won't allow you source level debugging, kgdb will, > but you'll need an extra machine. If the code you are debugging doesn't depend on specific hardware, one option is to run FreeBSD (with the kernel being debugged) under qemu and run kgdb on the host FreeBSD. Something like In Window1 $ qemu -s freebsd-disk-img ... In Window2 $ cd $ kgdb kernel.debug (gdb) target remote localhost:1234 (gdb) detach Ending remote debugging. (gdb) q $ Note: I have not tried this recently but it should work. > AFAIK, if you are modifying the kernel source directly there is no option > but to recompile all the changed and dependent files. Well... there used to be a debugger called ups with a builtin C interpreter. It allowed you to add code at run time. This was quite handy when you wanted to temporarily patch things up and continue debugging or set conditional breakpoints or insert assertion verification code on the fly. The C interpreter is worth adding to gdb but I am not sure if any of ups code can be reused. See http://ups.sourceforge.net/ From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 08:08:56 2009 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 0DA74106567A for ; Fri, 2 Jan 2009 08:08:56 +0000 (UTC) (envelope-from dougb@dougbarton.us) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id 99EF78FC12 for ; Fri, 2 Jan 2009 08:08:55 +0000 (UTC) (envelope-from dougb@dougbarton.us) Received: (qmail 31511 invoked by uid 399); 2 Jan 2009 07:42:14 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 2 Jan 2009 07:42:14 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <495DC554.9030408@dougbarton.us> Date: Thu, 01 Jan 2009 23:42:12 -0800 From: Doug Barton User-Agent: Thunderbird 2.0.0.18 (X11/20081128) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 02 Jan 2009 12:23:27 +0000 Cc: Subject: bsd.obj.mk does not set CANONICALOBJDIR correctly when TARGET_ARCH and MAKEOBJDIRPREFIX are set 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, 02 Jan 2009 08:08:56 -0000 In working on cross-platform support for mergemaster I came across the following problem. I set MAKEOBJDIRPREFIX to be that of the temproot environment, which works fine when you do not specify a TARGET_ARCH. When you do specify TARGET_ARCH there is a conflict between src/Makefile.inc1 and share/mk/bsd.obj.mk. The former does this: .if ${MACHINE} == ${TARGET} && !defined(CROSS_BUILD_TESTING) OBJTREE= ${MAKEOBJDIRPREFIX} .else OBJTREE= ${MAKEOBJDIRPREFIX}/${TARGET} .endif however the latter does this: .if defined(MAKEOBJDIRPREFIX) CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR} .else CANONICALOBJDIR:=/usr/obj${.CURDIR} .endif When trying to install the stuff in src/etc/sendmail install(1) cannot find the file because it is built in /obj but it's looking for it in /obj/$target The simplest fix I found was to do the following in bsd.obj.mk: Index: bsd.obj.mk =================================================================== --- bsd.obj.mk (revision 186676) +++ bsd.obj.mk (working copy) @@ -43,7 +43,7 @@ .include .if defined(MAKEOBJDIRPREFIX) -CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR} +CANONICALOBJDIR:=${OBJTREE}${.CURDIR} .else CANONICALOBJDIR:=/usr/obj${.CURDIR} .endif However I would be happy with any solution that makes it work. It's trivial to test with 'mergemaster -i -D -A arm' Doug From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 08:56:16 2009 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 5F43D106566B; Fri, 2 Jan 2009 08:56:16 +0000 (UTC) (envelope-from eugen@kuzbass.ru) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.freebsd.org (Postfix) with ESMTP id B579B8FC08; Fri, 2 Jan 2009 08:56:15 +0000 (UTC) (envelope-from eugen@kuzbass.ru) Received: from www.svzserv.kemerovo.su (eugen@localhost [127.0.0.1]) by www.svzserv.kemerovo.su (8.13.8/8.13.8) with ESMTP id n028LHQl079659; Fri, 2 Jan 2009 15:21:17 +0700 (KRAT) (envelope-from eugen@www.svzserv.kemerovo.su) Received: (from eugen@localhost) by www.svzserv.kemerovo.su (8.13.8/8.13.8/Submit) id n028LHs2079658; Fri, 2 Jan 2009 15:21:17 +0700 (KRAT) (envelope-from eugen) Date: Fri, 2 Jan 2009 15:21:17 +0700 From: Eugene Grosbein To: Kamlesh Patel Message-ID: <20090102082117.GA78125@svzserv.kemerovo.su> References: <387210.21917.qm@web45407.mail.sp1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <387210.21917.qm@web45407.mail.sp1.yahoo.com> User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Fri, 02 Jan 2009 12:23:39 +0000 Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: FreeBSD kernel Debugging tools for Virtual Memory Module 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, 02 Jan 2009 08:56:16 -0000 On Thu, Jan 01, 2009 at 06:27:44PM -0800, Kamlesh Patel wrote: > I am working on Virtual Memory parts of FreeBSD OS. My Problem is, whenever i modify little code of vmpage.c file i need to build the whole kernel to check the modification and i even am not able to debug the kernel code. > > Could anyone please inform me kernel Debugging tools for FreeBSD OS? First, you need to recompile source you change for sure :-) But you have not rebuild all other files all the time. You need to add to your /etc/src.conf (or /etc/make.conf for 6.x and earlier): MODULES_WITH_WORLD=yes This will skip rebuilding of all modules during 'make buildkernel' but you MUST to copy all modules from /boot/kernel to /boot/modules (all files other than /boot/kernel/kernel*) if you do this. Otherwise, you'll lose modules and system may not boot due to missing vital modules like acpi.ko Then, if you do not change kernel config file, recompile your changes with command (only second time and then): cd /usr/src; make NO_KERNELDEPEND=yes NO_KERNELCLEAN=yes buildkernel So, your rebuild time changes drastically: no modules rebuild, no other sources rebuild other that you touched last time. It will relink previously compiled object code with your changes only, that's way much quicker. Reinstall kernel and reboot. Second, you should use some kind of virtual machine (like qemu from ports) to speedup your development cycle even more: install the system into virtual machine and you'll need not another box to debug the kernel and need not rebuild your development box. Test your changes with the system installed into VM and reboot it only. Use ddb or kgdb already noted here. Eugene Grosbein From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 17:44:37 2009 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 0C3F4106566B for ; Fri, 2 Jan 2009 17:44:37 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from mail-bw0-f19.google.com (mail-bw0-f19.google.com [209.85.218.19]) by mx1.freebsd.org (Postfix) with ESMTP id 58CE38FC1A for ; Fri, 2 Jan 2009 17:44:36 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by bwz12 with SMTP id 12so17418291bwz.19 for ; Fri, 02 Jan 2009 09:44: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 :content-transfer-encoding:content-disposition:references; bh=p6kJMtEMzyem8oNQuoVWK7Rz8PDbvi+oWg0NcDSmnD8=; b=XmmqAYYF5WhtRhahtW5G5Lm3UmUBFVnyQldy5d7dY265L4DidS4RMk23NEb5q3iSB+ T9mTFITVjwXYIFWiQRcAxL5gg33aeBuDBcTwW4Tm5N1jVT4DCLyZOCCeDrZwUVSiTGe4 m8cu3t1Q9mytPgsazFhgV2Ql4vgfkUBJUbhoE= 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=PJpCn21+rJH61zT0TsIIeO9nrx21jGbbOHAW3/0BJT8o4PS9SJz8mdGNoR9O4FaFrE ITwyTmVxEk07vVMwykRn1j+h5DNGlhqPyJ3Sb5zjgC4IgvZZ+kW26T6OOPrkyKcdqdrU qDuoTTvt/zlry2NagNu3so7HeqbiaKB5b7kr8= Received: by 10.103.239.10 with SMTP id q10mr6448389mur.67.1230918274890; Fri, 02 Jan 2009 09:44:34 -0800 (PST) Received: by 10.103.137.8 with HTTP; Fri, 2 Jan 2009 09:44:34 -0800 (PST) Message-ID: Date: Fri, 2 Jan 2009 15:44:34 -0200 From: "Carlos A. M. dos Santos" To: "lazaax -" In-Reply-To: <4374ff010901012133i6cbe920du28cdf4c829f2990d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4374ff010901012133i6cbe920du28cdf4c829f2990d@mail.gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: imac g4 dont boot 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, 02 Jan 2009 17:44:37 -0000 On Fri, Jan 2, 2009 at 3:33 AM, lazaax - wrote: > hi, hackers, > i need a help with a imac g4,i put the power cable > and i push the power botton to turn on the mac and it makes a sound at > start but the porblem is that dont boot, and keep like panic o > somthing like that, i want to try install freebsd to this mac o > restore the sistema mac that was installed, > > thanks people...... If you don't have FreeBSD installed on the machine then this is not a FreeBSD-related problem. At least not yet. :-) I suggest you to ask for help on at a Mac-specific forums, instead of asking at freebsd-hackers. The purpose of this list is discussing FreeBSD hacking and development. It is not for general user support. You will likely get better results asking at freebsd-questions. The purpose of each list is shown here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/eresources.html#ERESOURCES-MAIL -- cd /usr/ports/sysutils/life make clean From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 19:06:22 2009 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 64B291065673 for ; Fri, 2 Jan 2009 19:06:22 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 162DA8FC21 for ; Fri, 2 Jan 2009 19:06:21 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2906730ywe.13 for ; Fri, 02 Jan 2009 11:06:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:x-mailer :mime-version:subject:date:cc; bh=dRpCfHAXgryGqUnKdSjtHZcNaP+l8hwf0O+bPw8P6K4=; b=ReEnwJoakBh2YtHe77N45zGfiiJHAUQNyTJ2hvjf34iS9+kq13hdZGBIqlTTR/xniT kUOyhYLVJ3VU09S/CxBrDde8H5XqyJK7wi8/FgrJX/jE9yIvhNwHafCdaPHAA/GhALBP smXQZ7n6j0uxceqJKDVFN5Sg7+nkFmTFpJf7w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:x-mailer:mime-version:subject:date:cc; b=TkBA8wlWOxaEK7RgzMyx9xDtkhfRTKwChDeBfUuyFYUaaScoeMvend2Hgrb4fc8S0i zsn0D0YsOhzeG5Ii+6lPrc8Pd+KtFPQ0BPXKynum3y5H0iDvpo3Hyh1sinCm1DLwA92C 3NMbVUNwuRJqNiKs5fzOrQHNLHnHp++xiCD4U= Received: by 10.100.163.15 with SMTP id l15mr9934383ane.128.1230923181182; Fri, 02 Jan 2009 11:06:21 -0800 (PST) Received: from ?10.88.62.48? ([32.156.137.7]) by mx.google.com with ESMTPS id b37sm31770101ana.50.2009.01.02.11.06.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 02 Jan 2009 11:06:20 -0800 (PST) References: <4374ff010901012133i6cbe920du28cdf4c829f2990d@mail.gmail.com> Message-Id: <6C034DD4-8B6B-4457-9184-42010BAE155C@gmail.com> From: Garrett Cooper To: "Carlos A. M. dos Santos" In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPhone Mail (5G77) Mime-Version: 1.0 (iPhone Mail 5G77) Date: Fri, 2 Jan 2009 11:06:09 -0800 Cc: "freebsd-hackers@freebsd.org" , lazaax - Subject: Re: imac g4 dont boot 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, 02 Jan 2009 19:06:22 -0000 On Jan 2, 2009, at 9:44, "Carlos A. M. dos Santos" wrote: > On Fri, Jan 2, 2009 at 3:33 AM, lazaax - wrote: >> hi, hackers, >> i need a help with a imac g4,i put the power cable >> and i push the power botton to turn on the mac and it makes a sound >> at >> start but the porblem is that dont boot, and keep like panic o >> somthing like that, i want to try install freebsd to this mac o >> restore the sistema mac that was installed, >> >> thanks people...... > > If you don't have FreeBSD installed on the machine then this is not a > FreeBSD-related problem. At least not yet. :-) > > I suggest you to ask for help on at a Mac-specific forums, instead of > asking at freebsd-hackers. The purpose of this list is discussing > FreeBSD hacking and development. It is not for general user support. > You will likely get better results asking at freebsd-questions. The > purpose of each list is shown here: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/eresources.html#ERESOURCES-MAIL > > -- > cd /usr/ports/sysutils/life > make clean Asking on ppc@freebsd.org would probably be more appropriate as it's a ppc based mac and the install directions vary. Cheers, -Garrett From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 3 11:17:43 2009 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 82B2D106566B for ; Sat, 3 Jan 2009 11:17:43 +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 5B6438FC08 for ; Sat, 3 Jan 2009 11:17:43 +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 ESMTPS id 0281D46B1A; Sat, 3 Jan 2009 06:17:43 -0500 (EST) Date: Sat, 3 Jan 2009 11:17:42 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Ilias Marinos In-Reply-To: <20081201133333.GA6445@marinos.ceid.upatras.gr> Message-ID: References: <20081201133333.GA6445@marinos.ceid.upatras.gr> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: TPM Device Driver - FreeBSD 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, 03 Jan 2009 11:17:43 -0000 On Mon, 1 Dec 2008, Ilias Marinos wrote: > We are two undergraduate students studying computer engineering and > informatics at Patra's University, Greece. We are currently working on our > diploma thesis which is about developing a driver for the TPM (Trusted > Platform Module) for FreeBSD.We think that TPM can enhance security in > FreeBSD and could be a great addition to the TrustedBSD project. > > We are still in the begining of the project and since this is our first > effort in implementing a device driver we are trying to gather and read all > available documentation on the subject first. However, we were unable to > find a source of information related to how the BSD kernel and device > communication is implemented and we would greatly appreciate it if you could > point us one; either in form of a book or an article/tutorial. > > Last but not least, we'd like to make clear that we are oppossed to any > DRM-related use of this device, however we believe that the TPM can be used > in security or cryptographic applications. Hi Marinos, Mellos, I was wondering if you had managed to find the information you were looking for, and if you'd had any luck with putting together a TPM driver as yet? thanks, Robert N M Watson Computer Laboratory University of Cambridge > > Best Regards, > Marinos Ilias > Mellos Seraphim > > > -- > echo "Sysadmin know better bash than english." | sed s/min/mins/ \ > | sed 's/better bash/bash better/' > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >