From owner-freebsd-embedded@FreeBSD.ORG Mon Feb 18 01:15:58 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 8084F16A419 for ; Mon, 18 Feb 2008 01:15:58 +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 56A3713C45D for ; Mon, 18 Feb 2008 01:15:58 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: (qmail 16268 invoked from network); 18 Feb 2008 00:49:17 -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 ; 18 Feb 2008 00:49:17 -0000 Received: from plato.localnet (192.168.0.11) by marconi.localnet Message-ID: <47B8D60A.70000@jellydonut.org> Date: Sun, 17 Feb 2008 19:49:14 -0500 From: Michael Proto User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Karl Denninger References: <47B50E1B.4000102@denninger.net> In-Reply-To: <47B50E1B.4000102@denninger.net> 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: Mon, 18 Feb 2008 01:15:58 -0000 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 --- /usr/src/sys/i386/i386/identcpu.c.orig 2007-09-28 04:26:16.000000000 -0400 +++ /usr/src/sys/i386/i386/identcpu.c 2008-01-23 01:30:58.000000000 -0500 @@ -563,6 +563,7 @@ break; goto via_common; case 0x6a0: + case 0x6d0: strcpy(cpu_model, "VIA C7 Esther"); via_common: do_cpuid(0xc0000000, regs); --- /usr/src/sys/i386/i386/initcpu.c.orig 2008-01-23 00:13:02.000000000 -0500 +++ /usr/src/sys/i386/i386/initcpu.c 2008-01-23 00:11:59.000000000 -0500 @@ -680,6 +680,7 @@ break; /* fall through. */ case 0x6a0: + case 0x6d0: init_via(); break; default: -Proto From owner-freebsd-embedded@FreeBSD.ORG Mon Feb 18 11:07:06 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 2582316A419 for ; Mon, 18 Feb 2008 11:07:06 +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 13DF313C4E9 for ; Mon, 18 Feb 2008 11:07:06 +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 m1IB75tJ039350 for ; Mon, 18 Feb 2008 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1IB75fU039346 for freebsd-embedded@FreeBSD.org; Mon, 18 Feb 2008 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Feb 2008 11:07:05 GMT Message-Id: <200802181107.m1IB75fU039346@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, 18 Feb 2008 11:07:06 -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 Thu Feb 21 18:06:08 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 9E0A216A407 for ; Thu, 21 Feb 2008 18:06:08 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og105.obsmtp.com (exprod7og105.obsmtp.com [64.18.2.163]) by mx1.freebsd.org (Postfix) with ESMTP id 51A4913C461 for ; Thu, 21 Feb 2008 18:06:08 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from source ([66.129.224.36]) by exprod7ob105.postini.com ([64.18.6.12]) with SMTP; Thu, 21 Feb 2008 10:06:04 PST Received: from pi-smtp.jnpr.net ([10.10.2.36]) by emailsmtp55.jnpr.net with Microsoft SMTPSVC(6.0.3790.1830); Thu, 21 Feb 2008 10:05:08 -0800 Received: from antipi.jnpr.net ([10.10.2.34]) by pi-smtp.jnpr.net with Microsoft SMTPSVC(5.0.2195.6713); Thu, 21 Feb 2008 13:04:04 -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: Thu, 21 Feb 2008 13:04:03 -0500 Message-ID: <0FCFCF6165E968449991746EB91D614D010315DA@antipi.jnpr.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: /dev/cfi NOR flash driver Thread-Index: Ach0tCRuWwltmYiBQp22KVIUeoVwAg== From: "Andrew Duane" To: X-OriginalArrivalTime: 21 Feb 2008 18:04:04.0562 (UTC) FILETIME=[251C8320:01C874B4] Subject: /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: Thu, 21 Feb 2008 18:06:08 -0000 I have the NOR flash driver that Bill Paul wrote for 6.x, and have been getting it going on our MIPS-based boards. One major missing piece is all the GEOM stuff for making it behave as a disk drive to mount filesystems on. Is this really missing, or did whoever grabbed it for our 6.1 port just get too early a version? If it is missing, is this something that's worth back-offering to the FreeBSD community? -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr aduane@juniper.net Westford, MA 01886-3418 =20 From owner-freebsd-embedded@FreeBSD.ORG Thu Feb 21 18:16:06 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 A99C116A406 for ; Thu, 21 Feb 2008 18:16:06 +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 6675613C4E8 for ; Thu, 21 Feb 2008 18:16:06 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m1LIDoI7001912; Thu, 21 Feb 2008 11:13:50 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 21 Feb 2008 11:14:10 -0700 (MST) Message-Id: <20080221.111410.-1844002568.imp@bsdimp.com> To: aduane@juniper.net From: "M. Warner Losh" In-Reply-To: <0FCFCF6165E968449991746EB91D614D010315DA@antipi.jnpr.net> References: <0FCFCF6165E968449991746EB91D614D010315DA@antipi.jnpr.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: 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: Thu, 21 Feb 2008 18:16:06 -0000 In message: <0FCFCF6165E968449991746EB91D614D010315DA@antipi.jnpr.net> "Andrew Duane" writes: : I have the NOR flash driver that Bill Paul wrote for 6.x, and have been : getting it going on our MIPS-based boards. One major missing piece is : all the GEOM stuff for making it behave as a disk drive to mount : filesystems on. Cool. Speaking of mips, we have the merged Juniper 6.1 mips code dump and the community mips2 code base booting on Cavium hardware and the malta board in simulation. I hope to test it out on ADM5120 based hardware sometime this week. : Is this really missing, or did whoever grabbed it for our 6.1 port just : get too early a version? If it is missing, is this something that's : worth back-offering to the FreeBSD community? I know that John Birrell sent me a nor driver that had been geomified. It was on the order of 500 lines or so, but lacked write support. I'd be very interested in having a more complete driver in FreeBSD. It is useful in many contexts.... Ideally against -current, but if it is a choice of between 'a diff against 6.1' and 'nothing' I'd take the former. Warner From owner-freebsd-embedded@FreeBSD.ORG Sat Feb 23 13:46:17 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 290E916A400 for ; Sat, 23 Feb 2008 13:46:17 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.freebsd.org (Postfix) with ESMTP id E77AF13C465 for ; Sat, 23 Feb 2008 13:46:16 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 56591999BB; Sat, 23 Feb 2008 08:26:53 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Sat, 23 Feb 2008 08:26:53 -0500 X-Sasl-enc: hy2ipjgyaDNyFjrFxRnONWLIM2WOEDo6RHdL9FJ45cY7 1203773213 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id D2A75FC7D; Sat, 23 Feb 2008 08:26:52 -0500 (EST) Message-ID: <47C01F1B.3020107@FreeBSD.org> Date: Sat, 23 Feb 2008 13:26:51 +0000 From: "Bruce M. Simpson" User-Agent: Thunderbird 2.0.0.9 (X11/20080207) MIME-Version: 1.0 To: Andrew Duane References: <0FCFCF6165E968449991746EB91D614D010315DA@antipi.jnpr.net> In-Reply-To: <0FCFCF6165E968449991746EB91D614D010315DA@antipi.jnpr.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Sat, 23 Feb 2008 13:46:17 -0000 Andrew Duane wrote: > I have the NOR flash driver that Bill Paul wrote for 6.x, and have been > getting it going on our MIPS-based boards. One major missing piece is > all the GEOM stuff for making it behave as a disk drive to mount > filesystems on. > > Is this really missing, or did whoever grabbed it for our 6.1 port just > get too early a version? If it is missing, is this something that's > worth back-offering to the FreeBSD community? > I haven't seen this cfi driver of which you speak, can you please point me at it? There is John Birrell's NAND driver for the ARM's onboard flash controller which does the necessary disk creation in Perforce: //depot/projects/arm/src/sys/arm/s3c2xx0 I still think it's important that we have some kind of support for the Linux MTD partition format, manufacturers have a habit of shipping hardware which uses this because Linux did catch us all napping. later BMS From owner-freebsd-embedded@FreeBSD.ORG Sat Feb 23 14:39:53 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 8960016A40E for ; Sat, 23 Feb 2008 14:39:53 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.freebsd.org (Postfix) with ESMTP id 49DD113C4E9 for ; Sat, 23 Feb 2008 14:39:52 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 84DF399FEC; Sat, 23 Feb 2008 09:39:52 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Sat, 23 Feb 2008 09:39:52 -0500 X-Sasl-enc: SX2S9MJubOQrJK1vgr8eM2F03nR/lKiryvk3Zw0hQm+4 1203777592 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 024BA29BE8; Sat, 23 Feb 2008 09:39:51 -0500 (EST) Message-ID: <47C03036.4040409@FreeBSD.org> Date: Sat, 23 Feb 2008 14:39:50 +0000 From: "Bruce M. Simpson" User-Agent: Thunderbird 2.0.0.9 (X11/20080207) MIME-Version: 1.0 To: Andrew Duane References: <0FCFCF6165E968449991746EB91D614D010315DA@antipi.jnpr.net> <47C01F1B.3020107@FreeBSD.org> In-Reply-To: <47C01F1B.3020107@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Sat, 23 Feb 2008 14:39:53 -0000 Bruce M. Simpson wrote: > Andrew Duane wrote: >> I have the NOR flash driver that Bill Paul wrote for 6.x, and have been >> getting it going on our MIPS-based boards. One major missing piece is >> all the GEOM stuff for making it behave as a disk drive to mount >> filesystems on. >> >> Is this really missing, or did whoever grabbed it for our 6.1 port just >> get too early a version? If it is missing, is this something that's >> worth back-offering to the FreeBSD community? > > I haven't seen this cfi driver of which you speak, can you please > point me at it? I see that this diff: http://people.freebsd.org/~marcel/e500.diff contains this CFI code under a 3-clause BSD license. It would be good if it were available in a more consumable format. This CFI support is much needed. cheers BMS From owner-freebsd-embedded@FreeBSD.ORG Sat Feb 23 14:57:46 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 61BEC16A401; Sat, 23 Feb 2008 14:57:46 +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 0577413C507; Sat, 23 Feb 2008 14:57:45 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m1NEtSda045403; Sat, 23 Feb 2008 07:55:28 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 23 Feb 2008 07:55:51 -0700 (MST) Message-Id: <20080223.075551.915266248.imp@bsdimp.com> To: bms@freebsd.org From: "M. Warner Losh" In-Reply-To: <47C01F1B.3020107@FreeBSD.org> References: <0FCFCF6165E968449991746EB91D614D010315DA@antipi.jnpr.net> <47C01F1B.3020107@FreeBSD.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: 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: Sat, 23 Feb 2008 14:57:46 -0000 In message: <47C01F1B.3020107@FreeBSD.org> "Bruce M. Simpson" writes: : I still think it's important that we have some kind of support for the : Linux MTD partition format, manufacturers have a habit of shipping : hardware which uses this because Linux did catch us all napping. I've gone to start writing geom_mtd.c several times, but nothing ever came of it because other issues kept coming up. warner From owner-freebsd-embedded@FreeBSD.ORG Sat Feb 23 14:57:51 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 369BF16A475; Sat, 23 Feb 2008 14:57:51 +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 E3CE613C465; Sat, 23 Feb 2008 14:57:50 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m1NEuNP2045405; Sat, 23 Feb 2008 07:56:23 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 23 Feb 2008 07:56:47 -0700 (MST) Message-Id: <20080223.075647.1380258154.imp@bsdimp.com> To: bms@freebsd.org From: "M. Warner Losh" In-Reply-To: <47C03036.4040409@FreeBSD.org> References: <0FCFCF6165E968449991746EB91D614D010315DA@antipi.jnpr.net> <47C01F1B.3020107@FreeBSD.org> <47C03036.4040409@FreeBSD.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: 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: Sat, 23 Feb 2008 14:57:51 -0000 In message: <47C03036.4040409@FreeBSD.org> "Bruce M. Simpson" writes: : Bruce M. Simpson wrote: : > Andrew Duane wrote: : >> I have the NOR flash driver that Bill Paul wrote for 6.x, and have been : >> getting it going on our MIPS-based boards. One major missing piece is : >> all the GEOM stuff for making it behave as a disk drive to mount : >> filesystems on. : >> : >> Is this really missing, or did whoever grabbed it for our 6.1 port just : >> get too early a version? If it is missing, is this something that's : >> worth back-offering to the FreeBSD community? : > : > I haven't seen this cfi driver of which you speak, can you please : > point me at it? : : I see that this diff: : http://people.freebsd.org/~marcel/e500.diff : : contains this CFI code under a 3-clause BSD license. It would be good if : it were available in a more consumable format. This CFI support is much : needed. It is in //depot/projects/e500/sys/dev/cfi right now. Warner From owner-freebsd-embedded@FreeBSD.ORG Sat Feb 23 16:16:55 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 6661916A421; Sat, 23 Feb 2008 16:16:55 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.72]) by mx1.freebsd.org (Postfix) with ESMTP id 51E2E13C447; Sat, 23 Feb 2008 16:16:55 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp007-s [10.150.69.70]) by smtpoutm.mac.com (Xserve/smtpout009/MantshX 4.0) with ESMTP id m1NG5f3t028027; Sat, 23 Feb 2008 08:05:41 -0800 (PST) Received: from [10.20.1.111] (dsl093-166-098.sfo2.dsl.speakeasy.net [66.93.166.98]) (authenticated bits=0) by mac.com (Xserve/asmtp007/MantshX 4.0) with ESMTP id m1NG5dNX013270 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 23 Feb 2008 08:05:40 -0800 (PST) Message-Id: <9C903216-6C19-4D6F-80D2-27C161845567@mac.com> From: Marcel Moolenaar To: "Bruce M. Simpson" In-Reply-To: <47C03036.4040409@FreeBSD.org> 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: Sat, 23 Feb 2008 08:05:39 -0800 References: <0FCFCF6165E968449991746EB91D614D010315DA@antipi.jnpr.net> <47C01F1B.3020107@FreeBSD.org> <47C03036.4040409@FreeBSD.org> X-Mailer: Apple Mail (2.919.2) Cc: 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: Sat, 23 Feb 2008 16:16:55 -0000 On Feb 23, 2008, at 6:39 AM, Bruce M. Simpson wrote: > Bruce M. Simpson wrote: >> Andrew Duane wrote: >>> I have the NOR flash driver that Bill Paul wrote for 6.x, and have >>> been >>> getting it going on our MIPS-based boards. One major missing piece >>> is >>> all the GEOM stuff for making it behave as a disk drive to mount >>> filesystems on. >>> >>> Is this really missing, or did whoever grabbed it for our 6.1 port >>> just >>> get too early a version? If it is missing, is this something that's >>> worth back-offering to the FreeBSD community? >> >> I haven't seen this cfi driver of which you speak, can you please >> point me at it? > > I see that this diff: > http://people.freebsd.org/~marcel/e500.diff > > contains this CFI code under a 3-clause BSD license. It would be > good if it were available in a more consumable format. This CFI > support is much needed. We should have this integrated with CVS shortly. What do you mean with consumable format? -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-embedded@FreeBSD.ORG Sat Feb 23 16:29:37 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 CE08E16A407 for ; Sat, 23 Feb 2008 16:29:37 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og109.obsmtp.com (exprod7og109.obsmtp.com [64.18.2.171]) by mx1.freebsd.org (Postfix) with ESMTP id 8753813C457 for ; Sat, 23 Feb 2008 16:29:37 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from source ([66.129.224.36]) by exprod7ob109.postini.com ([64.18.6.12]) with SMTP; Sat, 23 Feb 2008 08:29:34 PST Received: from proton.jnpr.net ([10.10.2.37]) by emailsmtp56.jnpr.net with Microsoft SMTPSVC(6.0.3790.3959); Sat, 23 Feb 2008 08:28:08 -0800 Received: from antipi.jnpr.net ([10.10.2.34]) by proton.jnpr.net with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Feb 2008 11:26:58 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Sat, 23 Feb 2008 11:26:14 -0500 Message-ID: <0FCFCF6165E968449991746EB91D614D142EBE@antipi.jnpr.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: /dev/cfi NOR flash driver Thread-Index: Ach2KfVEZxYQ1epBQHuxKyE1LZDoEQADtnEu References: <0FCFCF6165E968449991746EB91D614D010315DA@antipi.jnpr.net> <47C01F1B.3020107@FreeBSD.org> <47C03036.4040409@FreeBSD.org> From: "Andrew Duane" To: "Bruce M. Simpson" X-OriginalArrivalTime: 23 Feb 2008 16:26:58.0801 (UTC) FILETIME=[E9836E10:01C87638] Cc: 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: Sat, 23 Feb 2008 16:29:37 -0000 That includes the code I have, all under sys/dev/cfi. I don't know what a "3-clause BSD" license is, or what constitutes a = more consumable format though. For now, I'm going to just work on adding = GEOM support to this driver, and then see about getting it pushed back = to whoever wants it. -----Original Message----- From: Bruce M. Simpson [mailto:bms@FreeBSD.org] Sent: Sat 2/23/2008 9:39 AM To: Andrew Duane Cc: freebsd-embedded@FreeBSD.org Subject: Re: /dev/cfi NOR flash driver =20 Bruce M. Simpson wrote: > Andrew Duane wrote: >> I have the NOR flash driver that Bill Paul wrote for 6.x, and have = been >> getting it going on our MIPS-based boards. One major missing piece is >> all the GEOM stuff for making it behave as a disk drive to mount >> filesystems on. >> >> Is this really missing, or did whoever grabbed it for our 6.1 port = just >> get too early a version? If it is missing, is this something that's >> worth back-offering to the FreeBSD community? =20 > > I haven't seen this cfi driver of which you speak, can you please=20 > point me at it? I see that this diff: http://people.freebsd.org/~marcel/e500.diff contains this CFI code under a 3-clause BSD license. It would be good if = it were available in a more consumable format. This CFI support is much=20 needed. cheers BMS From owner-freebsd-embedded@FreeBSD.ORG Sat Feb 23 16:31: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 106CC16A402; Sat, 23 Feb 2008 16:31:36 +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 B3E0613C468; Sat, 23 Feb 2008 16:31:35 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m1NGUKRL046504; Sat, 23 Feb 2008 09:30:20 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 23 Feb 2008 09:30:44 -0700 (MST) Message-Id: <20080223.093044.282837835.imp@bsdimp.com> To: xcllnt@mac.com From: "M. Warner Losh" In-Reply-To: <9C903216-6C19-4D6F-80D2-27C161845567@mac.com> References: <47C01F1B.3020107@FreeBSD.org> <47C03036.4040409@FreeBSD.org> <9C903216-6C19-4D6F-80D2-27C161845567@mac.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: Sat, 23 Feb 2008 16:31:36 -0000 In message: <9C903216-6C19-4D6F-80D2-27C161845567@mac.com> Marcel Moolenaar writes: : We should have this integrated with CVS shortly. cool! btw, do you implement the mtd partitioning from Linux or not? Warner From owner-freebsd-embedded@FreeBSD.ORG Sat Feb 23 17:33:37 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 E482B16A400; Sat, 23 Feb 2008 17:33:37 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.81]) by mx1.freebsd.org (Postfix) with ESMTP id D4ACA13C459; Sat, 23 Feb 2008 17:33:37 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp007-s [10.150.69.70]) by smtpoutm.mac.com (Xserve/smtpout018/MantshX 4.0) with ESMTP id m1NHXXE8025290; Sat, 23 Feb 2008 09:33:33 -0800 (PST) Received: from [10.20.1.111] (dsl093-166-098.sfo2.dsl.speakeasy.net [66.93.166.98]) (authenticated bits=0) by mac.com (Xserve/asmtp007/MantshX 4.0) with ESMTP id m1NHXV1Y002307 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 23 Feb 2008 09:33:32 -0800 (PST) Message-Id: <33A08235-8501-432E-BB89-0F4A44D7F39A@mac.com> From: Marcel Moolenaar To: "M. Warner Losh" In-Reply-To: <20080223.093044.282837835.imp@bsdimp.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Sat, 23 Feb 2008 09:33:31 -0800 References: <47C01F1B.3020107@FreeBSD.org> <47C03036.4040409@FreeBSD.org> <9C903216-6C19-4D6F-80D2-27C161845567@mac.com> <20080223.093044.282837835.imp@bsdimp.com> 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: Sat, 23 Feb 2008 17:33:38 -0000 On Feb 23, 2008, at 8:30 AM, M. Warner Losh wrote: > In message: <9C903216-6C19-4D6F-80D2-27C161845567@mac.com> > Marcel Moolenaar writes: > : We should have this integrated with CVS shortly. > > cool! > > btw, do you implement the mtd partitioning from Linux or not? No, cfi(4) is just a simple driver that allows reading and writing to NOR flash through the device special file. 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. 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... 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... Thoughts? -- Marcel Moolenaar xcllnt@mac.com