From owner-freebsd-embedded@FreeBSD.ORG Mon Feb 15 11:06:58 2010 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 239A71065696 for ; Mon, 15 Feb 2010 11:06:58 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1162E8FC1B for ; Mon, 15 Feb 2010 11:06:58 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1FB6vmH070275 for ; Mon, 15 Feb 2010 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1FB6vm2070273 for freebsd-embedded@FreeBSD.org; Mon, 15 Feb 2010 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Feb 2010 11:06:57 GMT Message-Id: <201002151106.o1FB6vm2070273@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2010 11:06:58 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/136889 embedded [nanobsd] [path] nanobsd error reporting and other ref o misc/135588 embedded [nanobsd] simple patch for adding amd64 support o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c 4 problems total. From owner-freebsd-embedded@FreeBSD.ORG Wed Feb 17 20:49:24 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BFDA10656C8 for ; Wed, 17 Feb 2010 20:49:24 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 3F3878FC1A for ; Wed, 17 Feb 2010 20:49:24 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id E4D3846B0D; Wed, 17 Feb 2010 15:49:23 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 2F2C08A026; Wed, 17 Feb 2010 15:49:23 -0500 (EST) From: John Baldwin To: freebsd-embedded@freebsd.org Date: Wed, 17 Feb 2010 13:59:27 -0500 User-Agent: KMail/1.12.1 (FreeBSD/7.2-CBSD-20100120; KDE/4.3.1; amd64; ; ) References: <20100211180234.6015b7c6.ray@dlink.ua> In-Reply-To: <20100211180234.6015b7c6.ray@dlink.ua> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201002171359.27822.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Wed, 17 Feb 2010 15:49:23 -0500 (EST) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Alexandr Rybalko Subject: Re: GEOM_MTD X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2010 20:49:24 -0000 On Thursday 11 February 2010 11:02:34 am Alexandr Rybalko wrote: > Hi, > > in attachment GEOM module to support MTD partitioning. > All systems in which I have seen support MTD partitions do it via values in source code. > For more convenient change the partitions, I use hints. > > Example hints file also in attachment. > In this example one of partitions (0x00040000-0x003e0000) split by keyword '--PaCkImGs--' into two partitions ("kernel" and > "roots") > Others think things will be clear from the file itself. Hmm, it appears that the attachment was stripped. Perhaps you could post the code to a public URL? Also, I would suggest that using hint.mtd.X.start="search" might be more intuitive than hint.mtd.X.search="start" Then each partition always had a 'start' and 'end' value. You could just reject hints that have 'search' for both the start and end. -- John Baldwin From owner-freebsd-embedded@FreeBSD.ORG Wed Feb 17 21:21:59 2010 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84F9A106566B; Wed, 17 Feb 2010 21:21:59 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 470B08FC1A; Wed, 17 Feb 2010 21:21:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o1HLB7uO051756; Wed, 17 Feb 2010 14:11:07 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Wed, 17 Feb 2010 14:11:22 -0700 (MST) Message-Id: <20100217.141122.519459540486724915.imp@bsdimp.com> To: jhb@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <201002171359.27822.jhb@freebsd.org> References: <20100211180234.6015b7c6.ray@dlink.ua> <201002171359.27822.jhb@freebsd.org> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: ray@dlink.ua, freebsd-embedded@FreeBSD.org Subject: Re: GEOM_MTD X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2010 21:21:59 -0000 In message: <201002171359.27822.jhb@freebsd.org> John Baldwin writes: : On Thursday 11 February 2010 11:02:34 am Alexandr Rybalko wrote: : > Hi, : > : > in attachment GEOM module to support MTD partitioning. : > All systems in which I have seen support MTD partitions do it via values in : source code. : > For more convenient change the partitions, I use hints. : > : > Example hints file also in attachment. : > In this example one of partitions (0x00040000-0x003e0000) split by keyword : '--PaCkImGs--' into two partitions ("kernel" and : > "roots") : > Others think things will be clear from the file itself. : : Hmm, it appears that the attachment was stripped. Perhaps you could post the : code to a public URL? Also, I would suggest that using : : hint.mtd.X.start="search" : : might be more intuitive than : : hint.mtd.X.search="start" : : Then each partition always had a 'start' and 'end' value. You could just : reject hints that have 'search' for both the start and end. I'm concerned about how general this will be, mostly because I've seen things in the Linux world either pass in the partitioning, or the partitioning was hard coded in the platform files. Warner From owner-freebsd-embedded@FreeBSD.ORG Thu Feb 18 04:34:55 2010 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EC6D106566B; Thu, 18 Feb 2010 04:34:55 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mail.meer.net (mail.meer.net [64.13.141.3]) by mx1.freebsd.org (Postfix) with ESMTP id F0EF58FC17; Thu, 18 Feb 2010 04:34:54 +0000 (UTC) Received: from mail2.meer.net (mail2.meer.net [64.13.141.16]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id o1I4WwMb067082; Wed, 17 Feb 2010 20:32:58 -0800 (PST) (envelope-from gnn@neville-neil.com) Received: from [192.168.0.12] (cpe-68-175-72-246.nyc.res.rr.com [68.175.72.246]) (authenticated bits=0) by mail2.meer.net (8.14.1/8.14.3) with ESMTP id o1I4Wv8U085003 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 17 Feb 2010 20:32:58 -0800 (PST) (envelope-from gnn@neville-neil.com) From: George Neville-Neil Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 17 Feb 2010 23:32:54 -0500 Message-Id: <42B59FCC-7A59-4383-BE4E-366B80B504BF@neville-neil.com> To: embedded@freebsd.org Mime-Version: 1.0 (Apple Message framework v1077) X-Mailer: Apple Mail (2.1077) Cc: Joseph Koshy , fabient@freebsd.org Subject: First cut at hwpmc support on MIPS X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2010 04:34:55 -0000 Hi, I've got this running on my RouterStation Pro, which is a MIPS 24K = (32bit) CPU. Please review and let me know if you have comments. I'd like to commit = this in a week or so. Best, George http://people.freebsd.org/~gnn/mipshwpmc_1.diff From owner-freebsd-embedded@FreeBSD.ORG Thu Feb 18 05:09:22 2010 Return-Path: Delivered-To: embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03DEC106566C; Thu, 18 Feb 2010 05:09:22 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B9C5A8FC13; Thu, 18 Feb 2010 05:09:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o1I54T0U059598; Wed, 17 Feb 2010 22:04:29 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Wed, 17 Feb 2010 22:04:44 -0700 (MST) Message-Id: <20100217.220444.705053590986461614.imp@bsdimp.com> To: gnn@neville-neil.com From: "M. Warner Losh" In-Reply-To: <42B59FCC-7A59-4383-BE4E-366B80B504BF@neville-neil.com> References: <42B59FCC-7A59-4383-BE4E-366B80B504BF@neville-neil.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: jkoshy@FreeBSD.org, embedded@FreeBSD.org, fabient@FreeBSD.org Subject: Re: First cut at hwpmc support on MIPS X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2010 05:09:22 -0000 In message: <42B59FCC-7A59-4383-BE4E-366B80B504BF@neville-neil.com> George Neville-Neil writes: : Hi, : : I've got this running on my RouterStation Pro, which is a MIPS 24K (32bit) CPU. : Please review and let me know if you have comments. I'd like to commit this : in a week or so. : : Best, : George : : http://people.freebsd.org/~gnn/mipshwpmc_1.diff These counters are for the MIPS 24K. Other counters exist on other MIPS processors, so I'd think that you'd want to have at least the name be something less generic. I hate to complain about the name, but I know that the Octeon counters are on the roadmap for some work that is likely going to happen. Plus I think Randal was making noises that he or one of the RMI guys was going to do something similar for the XLR CPU. Warner From owner-freebsd-embedded@FreeBSD.ORG Thu Feb 18 10:27:23 2010 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00E1E106566C for ; Thu, 18 Feb 2010 10:27:23 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 8167F8FC12 for ; Thu, 18 Feb 2010 10:27:22 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id e21so279285fga.13 for ; Thu, 18 Feb 2010 02:27:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=pmlv+9knG4fBl65RJ7Tc17PkEdALQtAEzN8L+dRBcPk=; b=Kz4FyYYOb1jBMcUDNgk8xo/MHXcEwvuUeCEe97kgTSCzgGGLaKVYppB1rGd6QU9NNq XqRKvMYjwf/0C0AS373+YjMSIkelX7tA0bk6robwWC+dxQt16kShreVGt3Qj7KLGS/o+ rxMheqKJMWIcXF8CWGwBR2wh2zQ1qzvkHf1Vo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=a1LNAaIb47N+XXOjv8+shB23HGgKSok69VVg56oBaOzw/GKokZUJttNynpYMRpjY/k J9VK9/G+OYN5gQ5fUro3CDM3E11FsW34FnKGj7FUAL6TlbQ97SrVB48yIgg7jn5rKC7P Dbv9lHka3H4GRd1aDK4B+7KPZAWcMgZesqK9k= Received: by 10.86.233.20 with SMTP id f20mr3255944fgh.30.1266487474147; Thu, 18 Feb 2010 02:04:34 -0800 (PST) Received: from ?10.0.10.4? (54.81.54.77.rev.vodafone.pt [77.54.81.54]) by mx.google.com with ESMTPS id 15sm4566118fxm.10.2010.02.18.02.04.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 18 Feb 2010 02:04:32 -0800 (PST) Sender: Rui Paulo Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: <42B59FCC-7A59-4383-BE4E-366B80B504BF@neville-neil.com> Date: Thu, 18 Feb 2010 10:04:30 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <42B59FCC-7A59-4383-BE4E-366B80B504BF@neville-neil.com> To: George Neville-Neil X-Mailer: Apple Mail (2.1077) Cc: Joseph Koshy , embedded@freebsd.org, fabient@freebsd.org Subject: Re: First cut at hwpmc support on MIPS X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2010 10:27:23 -0000 On 18 Feb 2010, at 04:32, George Neville-Neil wrote: > Hi, >=20 > I've got this running on my RouterStation Pro, which is a MIPS 24K = (32bit) CPU. > Please review and let me know if you have comments. I'd like to = commit this > in a week or so. >=20 > Best, > George >=20 > http://people.freebsd.org/~gnn/mipshwpmc_1.diff >=20 o sys/modules/hwpmc/Makefile: there's some debugging left on o Is it really necessary to add the file to = sys/mips/atheros/files.ar71xx too? I thought sys/conf/files.mips was = sufficient. The rest looks good, thanks. -- Rui Paulo From owner-freebsd-embedded@FreeBSD.ORG Thu Feb 18 10:58:15 2010 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D181106566B; Thu, 18 Feb 2010 10:58:15 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id C0F848FC15; Thu, 18 Feb 2010 10:58:14 +0000 (UTC) Received: from gw ([192.168.10.10] helo=terran) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Ni3MA-0000CC-Fb; Thu, 18 Feb 2010 12:11:38 +0200 Date: Thu, 18 Feb 2010 12:16:36 +0200 From: Alexandr Rybalko To: "M. Warner Losh" Message-Id: <20100218121636.94e9de74.ray@dlink.ua> In-Reply-To: <20100217.141122.519459540486724915.imp@bsdimp.com> References: <20100211180234.6015b7c6.ray@dlink.ua> <201002171359.27822.jhb@freebsd.org> <20100217.141122.519459540486724915.imp@bsdimp.com> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@FreeBSD.org, jhb@FreeBSD.org Subject: Re: GEOM_MTD X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2010 10:58:15 -0000 On Wed, 17 Feb 2010 14:11:22 -0700 (MST) "M. Warner Losh" wrote: >> In message: <201002171359.27822.jhb@freebsd.org> >> John Baldwin writes: >> : On Thursday 11 February 2010 11:02:34 am Alexandr Rybalko wrote: >> : > Hi, >> : > >> : > in attachment GEOM module to support MTD partitioning. >> : > All systems in which I have seen support MTD partitions do it via values in >> : source code. >> : > For more convenient change the partitions, I use hints. >> : > >> : > Example hints file also in attachment. >> : > In this example one of partitions (0x00040000-0x003e0000) split by keyword >> : '--PaCkImGs--' into two partitions ("kernel" and >> : > "roots") >> : > Others think things will be clear from the file itself. >> : >> : Hmm, it appears that the attachment was stripped. Perhaps you could post the >> : code to a public URL? Also, I would suggest that using >> : >> : hint.mtd.X.start="search" >> : >> : might be more intuitive than >> : >> : hint.mtd.X.search="start" >> : >> : Then each partition always had a 'start' and 'end' value. You could just >> : reject hints that have 'search' for both the start and end. >> >> I'm concerned about how general this will be, mostly because I've seen >> things in the Linux world either pass in the partitioning, or the >> partitioning was hard coded in the platform files. >> >> Warner Yeh, I saw a lot of embedded devices, and all boxes describ map of the MTD devices in files under kernel/drivers/mtd/maps. -- Alexandr Rybalko From owner-freebsd-embedded@FreeBSD.ORG Thu Feb 18 10:58:16 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2AA051065695; Thu, 18 Feb 2010 10:58:16 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id D91298FC08; Thu, 18 Feb 2010 10:58:15 +0000 (UTC) Received: from gw ([192.168.10.10] helo=terran) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Ni3Fg-0008Hu-C5; Thu, 18 Feb 2010 12:04:56 +0200 Date: Thu, 18 Feb 2010 12:09:54 +0200 From: Alexandr Rybalko To: John Baldwin Message-Id: <20100218120954.92e6dca8.ray@dlink.ua> In-Reply-To: <201002171359.27822.jhb@freebsd.org> References: <20100211180234.6015b7c6.ray@dlink.ua> <201002171359.27822.jhb@freebsd.org> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org Subject: Re: GEOM_MTD X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2010 10:58:16 -0000 On Wed, 17 Feb 2010 13:59:27 -0500 John Baldwin wrote: >> On Thursday 11 February 2010 11:02:34 am Alexandr Rybalko wrote: >> > Hi, >> > >> > in attachment GEOM module to support MTD partitioning. >> > All systems in which I have seen support MTD partitions do it via values in >> source code. >> > For more convenient change the partitions, I use hints. >> > >> > Example hints file also in attachment. >> > In this example one of partitions (0x00040000-0x003e0000) split by keyword >> '--PaCkImGs--' into two partitions ("kernel" and >> > "roots") >> > Others think things will be clear from the file itself. >> >> Hmm, it appears that the attachment was stripped. Perhaps you could post the >> code to a public URL? http://my.ddteam.net/files/geom_mtd.c http://my.ddteam.net/files/BCM5354.hints >> Also, I would suggest that using >> >> hint.mtd.X.start="search" I thought about it, but without viewing source of resource_int_value not know how to behave resource_int_value on string value. Now I looked up and remade to test "start"/"end" values for string "search", then if fail - get int value. Thanks for review. >> >> might be more intuitive than >> >> hint.mtd.X.search="start" >> >> Then each partition always had a 'start' and 'end' value. You could just >> reject hints that have 'search' for both the start and end. In future we need made allowing search of both start and end, maybe and search for multiple labels with start based on previous slice and. >> >> -- >> John Baldwin -- Alexandr Rybalko From owner-freebsd-embedded@FreeBSD.ORG Thu Feb 18 13:49:09 2010 Return-Path: Delivered-To: embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7193C1065670; Thu, 18 Feb 2010 13:49:09 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mail.meer.net (mail.meer.net [64.13.141.3]) by mx1.freebsd.org (Postfix) with ESMTP id 57E748FC16; Thu, 18 Feb 2010 13:49:09 +0000 (UTC) Received: from mail2.meer.net (mail2.meer.net [64.13.141.16]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id o1IDlKAT075296; Thu, 18 Feb 2010 05:47:20 -0800 (PST) (envelope-from gnn@neville-neil.com) Received: from gnnmac.hudson-trading.com (smtp.hudson-trading.com [209.249.190.9]) (authenticated bits=0) by mail2.meer.net (8.14.1/8.14.3) with ESMTP id o1IDlJg5094250 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 18 Feb 2010 05:47:20 -0800 (PST) (envelope-from gnn@neville-neil.com) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: George Neville-Neil In-Reply-To: <20100217.220444.705053590986461614.imp@bsdimp.com> Date: Thu, 18 Feb 2010 08:47:16 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <614621A8-E7C4-4647-B009-5BDBF0CC26CB@neville-neil.com> References: <42B59FCC-7A59-4383-BE4E-366B80B504BF@neville-neil.com> <20100217.220444.705053590986461614.imp@bsdimp.com> To: "M. Warner Losh" X-Mailer: Apple Mail (2.1077) Cc: jkoshy@FreeBSD.org, embedded@FreeBSD.org, fabient@FreeBSD.org Subject: Re: First cut at hwpmc support on MIPS X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2010 13:49:09 -0000 On Feb 18, 2010, at 00:04 , M. Warner Losh wrote: > In message: <42B59FCC-7A59-4383-BE4E-366B80B504BF@neville-neil.com> > George Neville-Neil writes: > : Hi, > :=20 > : I've got this running on my RouterStation Pro, which is a MIPS 24K = (32bit) CPU. > : Please review and let me know if you have comments. I'd like to = commit this > : in a week or so. > :=20 > : Best, > : George > :=20 > : http://people.freebsd.org/~gnn/mipshwpmc_1.diff >=20 > These counters are for the MIPS 24K. Other counters exist on other > MIPS processors, so I'd think that you'd want to have at least the > name be something less generic. I hate to complain about the name, > but I know that the Octeon counters are on the roadmap for some work > that is likely going to happen. Plus I think Randal was making noises > that he or one of the RMI guys was going to do something similar for > the XLR CPU. Yes, I was originally thinking MIPS24K, but then I thought that too specific. Can anyone point me to a site or docs that give an idea of how the MIPS architectures differ so I can come up with a somewhat intelligent naming scheme? I figure the easiest thing to do for these counters is move to MIPS_24K, must like we have INTEL_FOO. Best, George From owner-freebsd-embedded@FreeBSD.ORG Fri Feb 19 03:01:38 2010 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68896106568B; Fri, 19 Feb 2010 03:01:38 +0000 (UTC) (envelope-from jkoshy.freebsd@gmail.com) Received: from mail-yx0-f172.google.com (mail-yx0-f172.google.com [209.85.210.172]) by mx1.freebsd.org (Postfix) with ESMTP id E968A8FC12; Fri, 19 Feb 2010 03:01:37 +0000 (UTC) Received: by yxe2 with SMTP id 2so9185547yxe.7 for ; Thu, 18 Feb 2010 19:01:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:to:cc :subject:in-reply-to:references:user-agent:mime-version:content-type :from:date; bh=PpZBDsgvFjftXxLrtEqbhHdqrMsnvoE19aqbAOMIsoM=; b=HAfudWfTsPBxYhSO1Wlf539lCUZgaacoqlER0k/6qrYZRXaREbEcRbnQQFEUYNGqow BedMsWICjNlmy7Mg5HBOJTkuBR9H8xbgO2gM1/32PvPf1ETegxJDdqHw8o+MT+L6xR0N YM6eNtbJhyBq0SnaI2mRQq9Gi1DbcepkPlPV0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:to:cc:subject:in-reply-to:references:user-agent :mime-version:content-type:from:date; b=XJHwTmvG1NpG1+E9z3mszjVkGmZudYJ2IFNHizWT5dbBvJUAuaHpyJZ+ed6yeFHIsF UyKxhkxyLLzGZAgw7dvFUZGdkyABIDxkUZCUT13qyTbYgXJ8JKMdgxmDawhpAtJ3EyvQ 4KYBj89uq83CwfvnnwjAqV52XrKHrZ+yTuMLw= Received: by 10.151.59.13 with SMTP id m13mr716153ybk.291.1266547006050; Thu, 18 Feb 2010 18:36:46 -0800 (PST) Received: from moria.unixconsulting.co.in ([122.172.23.214]) by mx.google.com with ESMTPS id 7sm3959016yxd.44.2010.02.18.18.36.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 18 Feb 2010 18:36:44 -0800 (PST) Sender: Joseph Koshy Message-ID: <867hqa9d0h.wl%koshy@unixconsulting.co.in> To: George Neville-Neil In-Reply-To: <42B59FCC-7A59-4383-BE4E-366B80B504BF@neville-neil.com> References: <42B59FCC-7A59-4383-BE4E-366B80B504BF@neville-neil.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.3 (amd64-portbld-freebsd6.3) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII From: Joseph Koshy Date: Fri, 19 Feb 2010 02:30:55 -0000 Cc: embedded@freebsd.org, fabient@freebsd.org Subject: Re: First cut at hwpmc support on MIPS X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2010 03:01:38 -0000 > Please review and let me know if you have comments. I'd like to commit this > in a week or so. > http://people.freebsd.org/~gnn/mipshwpmc_1.diff Nice work! Review comments, adding to those already commented on: 1) There appears to be unnecessary gunk (UTF8?) in the manual page. +.%B "MIPS32 24K Processor Core Family Software User<80><99>s Manual" ... +to a D-cache miss. The LSU can signal a <80><9C>long stall<80><9D> on a D-cache etc. You could use .Bq, .Sq. Plain ASCII quote marks would also work here. 2) The manual page is missing a short description of the capabilities of these PMCs. 3) The code doesn't appear to support sampling; the manual page should mention this. 4) The debug printf() in mips_intr should be removed: +static int +mips_intr(int cpu, struct trapframe *tf) +{ + printf("intr\n"); + return 0; +} 5) It would be help to split "hwpmc_mips.c" into two files: - One for code specific to this PMC family. Say "hwpmc_mips24k.c". - One for "generic" MIPS related code, e.g., code to walk stacks. You should expect that every manufacturer will have their own kind of PMCs, with differing capabilities and programming models. Catering for the variability upfront would be prudent. As commented on by earlier reviewers, you may want to consider changing symbol naming to suit. 56 These definitions will cause trouble on 64 bit MIPS systems: +#define PMCLOG_READADDR PMCLOG_READ32 +#define PMCLOG_EMITADDR PMCLOG_EMIT32 7) From the definitions in the header file, these PMCs appear to support the concept of sampling based on processor mode: +#define MIPS_PMC_USER_ENABLE 0x08 /* Count in USER mode */ +#define MIPS_PMC_SUPER_ENABLE 0x04 /* Count in SUPERVISOR mode */ +#define MIPS_PMC_KERNEL_ENABLE 0x02 /* Count in KERNEL mode */ If that is the case, then you should support those modifiers in libpmc's event parsing. The libpmc code in the patch appears to be a stub: +static int +mips_allocate_pmc(enum pmc_event pe, char *ctrspec __unused, + struct pmc_op_pmcallocate *pmc_config __unused) +{ + switch (pe) { + default: + break; + } + + return (0); +} 8) You can reduce the size of the following table in "hwpmc_mips.c", by treating the pe_counter field as a set of flags. +struct mips_event_code_map { + enum pmc_event pe_ev; /* enum value */ + uint8_t pe_counter; /* Which counter this can be counted in. */ + uint8_t pe_code; /* numeric code */ +}; +const struct mips_event_code_map mips_event_codes[] = { + { PMC_EV_MIPS_CYCLE, 0, 0}, + { PMC_EV_MIPS_CYCLE, 1, 0}, <<<--- repeated information 9) You'd want to support flags that control counting based on processor modes. For this, you would want to pass down flags from userland and change the `pm_mips_evsel' field to suit: +static int +mips_allocate_pmc(int cpu, int ri, struct pmc *pm, + const struct pmc_op_pmcallocate *a) +{ ... + pm->pm_md.pm_mips.pm_mips_evsel = config; 10) If the number and width of these PMCs are fixed, you should document that in the manual page: pmc_md_initialize() { + mips_npmcs = 2; ... + pcd->pcd_width = 32; /* XXX: Fix for 64 bit MIPS */ Regards, Koshy From owner-freebsd-embedded@FreeBSD.ORG Fri Feb 19 14:34:27 2010 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 877E7106566C for ; Fri, 19 Feb 2010 14:34:27 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 488528FC13 for ; Fri, 19 Feb 2010 14:34:26 +0000 (UTC) Received: from gw ([192.168.10.10] helo=terran) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1NiTtK-0006NL-Cl; Fri, 19 Feb 2010 16:31:38 +0200 Date: Fri, 19 Feb 2010 16:36:44 +0200 From: Alexandr Rybalko To: geom@freebsd.org, hackers@freebsd.org, embedded@freebsd.org Message-Id: <20100219163644.da89e882.ray@dlink.ua> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: GEOM_ULZMA X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2010 14:34:27 -0000 Hi, I wrote a module GEOM_ULZMA (such as GEOM_UZIP, but compression with lzma), in connection with this is an issue best left lzma code in the file "geom_ulzma.c" or store lzma library separately. If separately, then where better? Maybe in future make lzma and gzip library kernel interface for embedded? Then in one instance of code, userland can use compression via kernel. -- Alexander Rybalko From owner-freebsd-embedded@FreeBSD.ORG Fri Feb 19 19:00:23 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA17F1065670; Fri, 19 Feb 2010 19:00:23 +0000 (UTC) (envelope-from sinyawwang@huawei.com) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [119.145.14.64]) by mx1.freebsd.org (Postfix) with ESMTP id 897258FC0A; Fri, 19 Feb 2010 19:00:23 +0000 (UTC) Received: from huawei.com (szxga01-in [172.24.2.3]) by szxga01-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0KY3006WKQRG7I@szxga01-in.huawei.com>; Sat, 20 Feb 2010 02:45:16 +0800 (CST) Received: from huawei.com ([172.24.2.119]) by szxga01-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0KY3000PPQRGYJ@szxga01-in.huawei.com>; Sat, 20 Feb 2010 02:45:16 +0800 (CST) Received: from [10.193.36.55] by szxml04-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTPA id <0KY300FRQQR9EV@szxml04-in.huawei.com>; Sat, 20 Feb 2010 02:45:16 +0800 (CST) Date: Fri, 19 Feb 2010 10:45:09 -0800 From: Sin-Yaw Wang To: freebsd-vendors@freebsd.org, freebsd-embedded@freebsd.org Message-id: <4B7EDC35.4060202@huawei.com> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8BIT User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) X-Mailman-Approved-At: Fri, 19 Feb 2010 20:14:20 +0000 Cc: Subject: embedded solutions? X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2010 19:00:23 -0000 Hi, I am not a member of these mailing lists. Please reply to me directly. I am looking for vendors that offer embedded solutions based on FreeBSD. Does such list exist? If you are one, can you contact me? Thank you. -- Sin-Yaw Wang 王星耀 From owner-freebsd-embedded@FreeBSD.ORG Sat Feb 20 12:23:06 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E1191065670; Sat, 20 Feb 2010 12:23:06 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.freebsd.org (Postfix) with ESMTP id 9B7488FC08; Sat, 20 Feb 2010 12:23:05 +0000 (UTC) Received: from park.js.berklix.net (p549A72B7.dip.t-dialin.net [84.154.114.183]) (authenticated bits=0) by tower.berklix.org (8.14.2/8.14.2) with ESMTP id o1KBhIpe051007; Sat, 20 Feb 2010 11:43:18 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by park.js.berklix.net (8.13.8/8.13.8) with ESMTP id o1KBh97H008502; Sat, 20 Feb 2010 12:43:09 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.3/8.14.3) with ESMTP id o1KBgxMr022144; Sat, 20 Feb 2010 12:43:04 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201002201143.o1KBgxMr022144@fire.js.berklix.net> To: Sin-Yaw Wang From: "Julian H. Stacey" Organization: http://www.berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://www.berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Fri, 19 Feb 2010 10:45:09 PST." <4B7EDC35.4060202@huawei.com> Date: Sat, 20 Feb 2010 12:42:59 +0100 Sender: jhs@berklix.com Cc: freebsd-vendors@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: embedded solutions? X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2010 12:23:06 -0000 Hi, Sin-Yaw Wang wrote: > Hi, I am not a member of these mailing lists. Please reply to me directly. > > I am looking for vendors that offer embedded solutions based on FreeBSD. > Does such list exist? If you are one, can you contact me? > > Thank you. http://www.freebsd.org/commercial/hardware.html Hardware Vendors, Mostly PC http://www.freebsd.org/commercial/consult_bycat.html Consulting Services Global, By region, then sorted alphabetic by name http://www.berklix.com/consultants/ FreeBSD Commercial Consultants Index Global, Geographic Sorted http://www.berklix.com/ My company & associates could be interested. Others on list embedded@ may be interested too, what do you need developed ? budget, timescale, documentation available etc. compatibility with what protocols & products ? URLs/Web Refs ? PS List freebsd-vendors@freebsd.org was set up for vendors of CDs, DVDs List freebsd-embedded@freebsd.org your best bet I guess. Cheers, Julian -- Julian Stacey: BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Mail plain text not quoted-printable, HTML or Base64 http://www.asciiribbon.org