From owner-freebsd-embedded@FreeBSD.ORG Mon Feb 25 11:07:00 2008 Return-Path: Delivered-To: freebsd-embedded@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 584E416A401 for ; Mon, 25 Feb 2008 11:07:00 +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 45AA513C457 for ; Mon, 25 Feb 2008 11:07:00 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1PB70A8032919 for ; Mon, 25 Feb 2008 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1PB6xN3032915 for freebsd-embedded@FreeBSD.org; Mon, 25 Feb 2008 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 25 Feb 2008 11:06:59 GMT Message-Id: <200802251106.m1PB6xN3032915@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, 25 Feb 2008 11:07:00 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/15876 embedded [picobsd] PicoBSD message of the day problems o misc/28255 embedded [picobsd] picobsd documentation still references old . o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/101228 embedded [nanobsd] [patch] Two more entries for FlashDevice.sub 5 problems total. From owner-freebsd-embedded@FreeBSD.ORG Mon Feb 25 14:35:36 2008 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 B446B16A402; Mon, 25 Feb 2008 14:35:36 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og112.obsmtp.com (exprod7og112.obsmtp.com [64.18.2.177]) by mx1.freebsd.org (Postfix) with ESMTP id 4035913C461; Mon, 25 Feb 2008 14:35:32 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from source ([66.129.224.36]) by exprod7ob112.postini.com ([64.18.6.12]) with SMTP; Mon, 25 Feb 2008 06:35:28 PST Received: from pi-smtp.jnpr.net ([10.10.2.36]) by emailsmtp55.jnpr.net with Microsoft SMTPSVC(6.0.3790.1830); Mon, 25 Feb 2008 06:31:47 -0800 Received: from antipi.jnpr.net ([10.10.2.34]) by pi-smtp.jnpr.net with Microsoft SMTPSVC(5.0.2195.6713); Mon, 25 Feb 2008 09:30:30 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 25 Feb 2008 09:30:32 -0500 Message-ID: <0FCFCF6165E968449991746EB91D614D010318EC@antipi.jnpr.net> In-Reply-To: <33A08235-8501-432E-BB89-0F4A44D7F39A@mac.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: /dev/cfi NOR flash driver Thread-Index: Ach2Qj+6ysGyQEKFQY2zLxCFTr+dnwBeDNGg References: <47C01F1B.3020107@FreeBSD.org> <47C03036.4040409@FreeBSD.org><9C903216-6C19-4D6F-80D2-27C161845567@mac.com><20080223.093044.282837835.imp@bsdimp.com> <33A08235-8501-432E-BB89-0F4A44D7F39A@mac.com> From: "Andrew Duane" To: "Marcel Moolenaar" , "M. Warner Losh" X-OriginalArrivalTime: 25 Feb 2008 14:30:30.0809 (UTC) FILETIME=[F92BF890:01C877BA] Cc: bms@freebsd.org, freebsd-embedded@freebsd.org Subject: RE: /dev/cfi NOR flash driver 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, 25 Feb 2008 14:35:36 -0000 Havig worked on projects with both NOR and NAND before, there isn't much value to be had in combining them. The operations and control flows just aren't close enough to make it worthwhile. However, both need to support filesystems, hence both will need GEOM support. I'm working on NOR, but will likely be punting on full write support, at least for now. Or project only needs "wipe-and-rewrite" support, so I may just have a separate path (from the original CFI driver) for that. Also, what were you referring to with "eraseblock" operation? The concept of eraseblocks is critical, as when a page is written, an entire eraseblock needs to be "allocated" and updated. It can get tricky, knowing which sectors in an eraseblock are available, and when a new one needs to be allocated. owner-freebsd-embedded@freebsd.org wrote: > On Feb 23, 2008, at 8:30 AM, M. Warner Losh wrote: >=20 > > In message: <9C903216-6C19-4D6F-80D2-27C161845567@mac.com> > > Marcel Moolenaar writes: > > > We should have this integrated with CVS shortly. > >=20 > > cool! > >=20 > > btw, do you implement the mtd partitioning from Linux or not? >=20 > No, cfi(4) is just a simple driver that allows reading > and writing to NOR flash through the device special file. >=20 > The thought is to put some layering on top of it, which > deals more with how the NOR flash is being used. If there's > a file system on the NOR flash, then I expect we'll have it hooked up > to GEOM.=20 >=20 > I've been thinking about NAND flash and file systems and > so on and maybe we should merge the NAND and NOR flashes > and come up with a more generic sub-system. We could keep > MTD in mind, but after a quick read I'm not sure I like > their notion of only operating on the "eraseblock". It > seems to ignore the ability to read and write pages and > the fact that OOB is on a per-page level... >=20 > Anyway: I'll just import it. It has proven very useful for > us already in its current form and shape and if we want > to come up with something generic that encapsulates both > NOR and NAND, I'm sure that there's cut-n-paste value in having the > driver...=20 >=20 > Thoughts? /Andrew From owner-freebsd-embedded@FreeBSD.ORG Mon Feb 25 17:11:09 2008 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 A91C416A403; Mon, 25 Feb 2008 17:11:09 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.83]) by mx1.freebsd.org (Postfix) with ESMTP id 97F8213C4EF; Mon, 25 Feb 2008 17:11:09 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp009-s [10.150.69.72]) by smtpoutm.mac.com (Xserve/smtpout020/MantshX 4.0) with ESMTP id m1PHB0lw025764; Mon, 25 Feb 2008 09:11:00 -0800 (PST) Received: from mini-g4.jnpr.net (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mac.com (Xserve/asmtp009/MantshX 4.0) with ESMTP id m1PHAq1h001520 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 25 Feb 2008 09:10:53 -0800 (PST) Message-Id: From: Marcel Moolenaar To: Andrew Duane In-Reply-To: <0FCFCF6165E968449991746EB91D614D010318EC@antipi.jnpr.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Mon, 25 Feb 2008 09:10:52 -0800 References: <47C01F1B.3020107@FreeBSD.org> <47C03036.4040409@FreeBSD.org> <9C903216-6C19-4D6F-80D2-27C161845567@mac.com> <20080223.093044.282837835.imp@bsdimp.com> <33A08235-8501-432E-BB89-0F4A44D7F39A@mac.com> <0FCFCF6165E968449991746EB91D614D010318EC@antipi.jnpr.net> X-Mailer: Apple Mail (2.919.2) Cc: bms@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: /dev/cfi NOR flash driver 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, 25 Feb 2008 17:11:09 -0000 On Feb 25, 2008, at 6:30 AM, Andrew Duane wrote: > Havig worked on projects with both NOR and NAND before, there isn't > much > value to be had in combining them. The operations and control flows > just > aren't close enough to make it worthwhile. I didn't mean to write a signle driver to handle both, but rather a single infratsructure in which both live. > Also, what were you referring to with "eraseblock" operation? The > concept of eraseblocks is critical, as when a page is written, an > entire > eraseblock needs to be "allocated" and updated. It can get tricky, > knowing which sectors in an eraseblock are available, and when a new > one > needs to be allocated. The OOB/metadata is on a per-page level. You don't have to erase a block just to write to a page when you know it's erased already. In particular: you can always flip a bit from 1 to 0. You need to erase to flip it from 0 to 1. That may be used to design an algorithm that uses the page as the primary granularity, while doing the erase on the block level. An algorithm like that would probably bundle pages with equivalent write frequencies in the same block... In any case: I don't know of any algorithms so I don't know if such an approach would be efficient at all. It may be something that just isn't going to work well and that you might as well use the block as the primary granularity. At this time I just don't see a reason to close the door on more advanced algorithms... -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-embedded@FreeBSD.ORG Mon Feb 25 23:07:39 2008 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 5A83316A402 for ; Mon, 25 Feb 2008 23:07:39 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id D774F13C447 for ; Mon, 25 Feb 2008 23:07:38 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8s) with ESMTP id 233383370-1834499 for multiple; Mon, 25 Feb 2008 18:09:37 -0500 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m1PN7Cr5010859; Mon, 25 Feb 2008 18:07:13 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-embedded@freebsd.org Date: Mon, 25 Feb 2008 17:43:06 -0500 User-Agent: KMail/1.9.7 References: <47B50E1B.4000102@denninger.net> <47B8D60A.70000@jellydonut.org> In-Reply-To: <47B8D60A.70000@jellydonut.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802251743.06886.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 25 Feb 2008 18:07:13 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/5994/Mon Feb 25 15:29:09 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Subject: Re: VIA EDEN board-based unit 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, 25 Feb 2008 23:07:39 -0000 On Sunday 17 February 2008 07:49:14 pm Michael Proto wrote: > > Karl Denninger wrote: > > I was able to load it successfully off a CD. > > > > The PXE boot fails. It loads the kernel, and then chokes. No idea why. > > > > This is what the system identifies as: > > > > Copyright (c) 1992-2007 The FreeBSD Project. > > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > > The Regents of the University of California. All rights reserved. > > FreeBSD is a registered trademark of The FreeBSD Foundation. > > FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 > > root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC > > Timecounter "i8254" frequency 1193182 Hz quality 0 > > CPU: VIA/IDT Unknown (1196.92-MHz 686-class CPU) > > Origin = "CentaurHauls" Id = 0x6d0 Stepping = 0 > > > > > Completely unrelated, but may save you a search later on. Your VIA C7's > CPU ID is identical to mine (0x6d0), which the 6 and 7-series kernels > don't detect as such (evident by the "VIA/IDT Unknown" CPU in your > dmesg). If you want to use the padlock crypto features of the CPU you > will need to patch the initcpu.c and identcpu.c files in /sys/i386/i386 > and build a new kernel. The patch below works under 6.3-RELEASE Committed a variation (called it C7 Eden) to HEAD and will MFC in a few days. -- John Baldwin From owner-freebsd-embedded@FreeBSD.ORG Sat Mar 1 22:27:14 2008 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 184E31065672 for ; Sat, 1 Mar 2008 22:27:14 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.freebsd.org (Postfix) with ESMTP id DF70A8FC1E for ; Sat, 1 Mar 2008 22:27:13 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: (qmail 11218 invoked from network); 1 Mar 2008 22:27:13 -0000 Received: from marconi.jellydonut.org (HELO localhost) ([216.27.165.148]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 1 Mar 2008 22:27:13 -0000 Received: from plato.localnet (192.168.0.11) by marconi.localnet Message-ID: <47C9D836.7060609@jellydonut.org> Date: Sat, 01 Mar 2008 17:27:02 -0500 From: Michael Proto User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: John Baldwin References: <47B50E1B.4000102@denninger.net> <47B8D60A.70000@jellydonut.org> <200802251743.06886.jhb@freebsd.org> In-Reply-To: <200802251743.06886.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org Subject: Re: VIA EDEN board-based unit 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, 01 Mar 2008 22:27:14 -0000 John Baldwin wrote: >> Completely unrelated, but may save you a search later on. Your VIA C7's >> CPU ID is identical to mine (0x6d0), which the 6 and 7-series kernels >> don't detect as such (evident by the "VIA/IDT Unknown" CPU in your >> dmesg). If you want to use the padlock crypto features of the CPU you >> will need to patch the initcpu.c and identcpu.c files in /sys/i386/i386 >> and build a new kernel. The patch below works under 6.3-RELEASE > > Committed a variation (called it C7 Eden) to HEAD and will MFC in a few days. > Thank you!! This will save me from having to patch my source tree every time I refresh! -Proto