From owner-freebsd-embedded@FreeBSD.ORG Sun Mar 9 02:05:03 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 1D84C106567F for ; Sun, 9 Mar 2008 02:05:03 +0000 (UTC) (envelope-from gofe-freebsd-embedded@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id CDBAC8FC29 for ; Sun, 9 Mar 2008 02:05:02 +0000 (UTC) (envelope-from gofe-freebsd-embedded@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JY9oc-0008R5-Bm for freebsd-embedded@freebsd.org; Sun, 09 Mar 2008 00:55:02 +0000 Received: from mar92-9-82-237-75-54.fbx.proxad.net ([82.237.75.54]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Mar 2008 00:55:02 +0000 Received: from gilles.ganault by mar92-9-82-237-75-54.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Mar 2008 00:55:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-embedded@freebsd.org From: Gilles Date: Sun, 09 Mar 2008 01:52:46 +0100 Lines: 21 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: mar92-9-82-237-75-54.fbx.proxad.net X-Newsreader: Forte Agent 3.1/32.783 Sender: news Subject: FreeBSD on a CompactFlash 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: Sun, 09 Mar 2008 02:05:03 -0000 Hello After giving CF-based distros a try to run an Asterisk PBX, the conclusion is that they're nice... as long as the apps they offer are fine with you... which they aren't, so, if possible, I'd like to use a regular FreeBSD distro, so I can install whatever application I need. At this point, I seem to have understood that there are two ways to do this: - use a reduced FreeBSD that's been built from the get-go to run off a CF card (ie. it's small, and doesn't trash the card with too many write accesses) - install FreeBSD on the server, and run a script like nanoBSD that will build a compact image, ready to be dd'ed to the card. Am I correct? Are there tips and traps to know about before giving it a go? Thank you. From owner-freebsd-embedded@FreeBSD.ORG Sun Mar 9 02:30:07 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 60A7B106567D for ; Sun, 9 Mar 2008 02:30:07 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 3B4868FC32 for ; Sun, 9 Mar 2008 02:30:07 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id EDE5061BBA2; Sat, 8 Mar 2008 18:30:06 -0800 (PST) Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20269-06; Sat, 8 Mar 2008 18:30:06 -0800 (PST) Received: from [10.47.1.110] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id CE6A361BB9C; Sat, 8 Mar 2008 18:30:05 -0800 (PST) Message-ID: <47D34BAD.3020609@miralink.com> Date: Sat, 08 Mar 2008 18:30:05 -0800 From: Sean Bruno User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: Gilles References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Sat Mar 8 18:30:06 2008 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 47d34bae76131804284693 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.499 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.499 X-Spam-Level: Cc: freebsd-embedded@freebsd.org Subject: Re: FreeBSD on a CompactFlash 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: Sun, 09 Mar 2008 02:30:07 -0000 Gilles wrote: > Hello > > After giving CF-based distros a try to run an Asterisk PBX, the > conclusion is that they're nice... as long as the apps they offer are > fine with you... which they aren't, so, if possible, I'd like to use a > regular FreeBSD distro, so I can install whatever application I need. > > At this point, I seem to have understood that there are two ways to do > this: > > - use a reduced FreeBSD that's been built from the get-go to run off a > CF card (ie. it's small, and doesn't trash the card with too many > write accesses) > > - install FreeBSD on the server, and run a script like nanoBSD that > will build a compact image, ready to be dd'ed to the card. > > Am I correct? Are there tips and traps to know about before giving it > a go? > > Thank you. > > The NANOBSD how to in the handbook is all I used to get up and running. I'm using the transcend 512 MB flash and it's more than enough for me. To really use NANOBSD effectively, you do need a "buildserver" to create the images. Sean From owner-freebsd-embedded@FreeBSD.ORG Sun Mar 9 02:36:52 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 22C551065673 for ; Sun, 9 Mar 2008 02:36:52 +0000 (UTC) (envelope-from vibarus@googlemail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.237]) by mx1.freebsd.org (Postfix) with ESMTP id CB5978FC1D for ; Sun, 9 Mar 2008 02:36:51 +0000 (UTC) (envelope-from vibarus@googlemail.com) Received: by qb-out-0506.google.com with SMTP id a10so1214824qbd.7 for ; Sat, 08 Mar 2008 18:36:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.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=rpHAQ5bCOqMnHVTG0Knpklbtq5OHTFvahyAeP2Kj1Lg=; b=AND0RVjFs7iXKCv33JZpYvgDnythgriFtu4lkN90JnmdPshwefEmqorfR3ixcoGJaSIt+3V6a0U0FJAarB1JkVlTDDnk89SyjL6rYDOWBSvIuqnDrctEXQbGd2gJ/SxnGKEwyjCvTcgS7HekDPj6KcrMuhnhovM4aOImaMHpAZM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.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=o9o/fPxeJBLGZ6xZpm8aWgPlNukQbWGbkA9745jnlzLukvGYw7RPiCxnQbMJ19z/QpMcLtjQRD0prfEG44YPIT+7Jbr/wAZEoTdhsKedvX4GutBlIeJwHezBcOKri7zVYBrp8ORJfihGJa6BK5g4Tt5K7Abb5yMwHa7mzIv9gyo= Received: by 10.142.232.20 with SMTP id e20mr1326118wfh.160.1205029246115; Sat, 08 Mar 2008 18:20:46 -0800 (PST) Received: by 10.142.246.20 with HTTP; Sat, 8 Mar 2008 18:20:46 -0800 (PST) Message-ID: Date: Sun, 9 Mar 2008 03:20:46 +0100 From: "Vincent Barus" To: Gilles In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-embedded@freebsd.org Subject: Re: FreeBSD on a CompactFlash 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: Sun, 09 Mar 2008 02:36:52 -0000 On Sun, Mar 9, 2008 at 1:52 AM, Gilles wrote: > Hello > > After giving CF-based distros a try to run an Asterisk PBX, the > conclusion is that they're nice... as long as the apps they offer are > fine with you... which they aren't, so, if possible, I'd like to use a > regular FreeBSD distro, so I can install whatever application I need. > > At this point, I seem to have understood that there are two ways to do > this: > > - use a reduced FreeBSD that's been built from the get-go to run off a > CF card (ie. it's small, and doesn't trash the card with too many > write accesses) > > - install FreeBSD on the server, and run a script like nanoBSD that > will build a compact image, ready to be dd'ed to the card. > > Am I correct? Are there tips and traps to know about before giving it > a go? > > Thank you. > > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.org" > Hi Gilles, that's right. [1] is a How To for creating a FreeBSD to work on solid state devices. [2] and [3] are Tiny- and NanoBSD which provide tools and scripts to create a FreeBSD for e.g. embedded Systems on CF. [4] is a nice Wiki for TinyBSD. HTH, ~ vb From owner-freebsd-embedded@FreeBSD.ORG Mon Mar 10 01:29:56 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 8B95E106566B; Mon, 10 Mar 2008 01:29:56 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from mx-out-04.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by mx1.freebsd.org (Postfix) with ESMTP id 061A18FC18; Mon, 10 Mar 2008 01:29:55 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from mx-av-02.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-04.forthnet.gr (8.13.8/8.13.8) with ESMTP id m29NpC5r010997; Mon, 10 Mar 2008 01:51:12 +0200 Received: from MX-IN-02.forthnet.gr (mx-in-02.forthnet.gr [193.92.150.185]) by mx-av-02.forthnet.gr (8.14.1/8.14.1) with ESMTP id m29NpCv7005742; Mon, 10 Mar 2008 01:51:12 +0200 Received: from kobe.laptop (ppp231-69.adsl.forthnet.gr [77.49.10.69]) by MX-IN-02.forthnet.gr (8.14.2/8.14.2) with ESMTP id m29NpAh4032202; Mon, 10 Mar 2008 01:51:12 +0200 Authentication-Results: MX-IN-02.forthnet.gr smtp.mail=keramida@freebsd.org; spf=permerror Authentication-Results: MX-IN-02.forthnet.gr header.from=keramida@freebsd.org; sender-id=permerror Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m29NpAfA029417; Mon, 10 Mar 2008 01:51:10 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m29Np8Ww029416; Mon, 10 Mar 2008 01:51:08 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Mon, 10 Mar 2008 01:51:08 +0200 From: Giorgos Keramidas To: Jean Milanez Melo Message-ID: <20080309235108.GA29312@kobe.laptop> References: <1194819232.1047.19.camel@workstation.martenvijn.nl> <20071115013208.GA3497@kobe.laptop> <1195151049.3240.10.camel@workstation.martenvijn.nl> <20071115190615.GA2775@kobe.laptop> <1195169880.3240.46.camel@workstation.martenvijn.nl> <1205006382.1390.4.camel@workstation.martenvijn.nl> <20080308202258.GB2331@kobe.laptop> <47D2FD93.5060801@freebsdbrasil.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47D2FD93.5060801@freebsdbrasil.com.br> Cc: freebsd-small@freebsd.org, freebsd-embedded@freebsd.org Subject: TinyBSD article for the doc/ tree [was: Re: tinybsd qemu small howto] 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, 10 Mar 2008 01:29:56 -0000 On 2008-03-08 17:56, Jean Milanez Melo wrote: >Giorgos Keramidas wrote: >> [about] >> http://martenvijn.nl/trac/wiki/TinyBSD >> >> That's ok. If you ever feel like writing an article-like thing >> about ``Building tiny BSD images'', you are most welcome. Reading >> the current Wiki page, I see that you definitely `have it', i.e. you >> don't have any particular problems in writing up clear, >> understandable, well-organized documentation :) > > Hello, > > I already updated the tinybsd URL with the new features. Maybe it > could be a good point to start. That looks good, indeed! > There are anyone avaliable to sgml it? That would be me. > The URL is: > > http://www.tinybsd.org/tinybsd/Documentation An SGML article, with most of the text being just an adaptation of the tinybsd/Documentation wiki page is now online at: http://people.freebsd.org/~keramida/tinybsd-20080310-01/article.sgml A preformatted version of the article is available in the same directory. You can read it at: http://people.freebsd.org/~keramida/tinybsd-20080310-01/article.html Can you please review the article? It would be interesting to know: - If there are technical errors in what I wrote. My first TinyBSD build is running as I'm typing this, so I don't really count as an experienced TinyBSD user. - If there is something else you would like me to add. - If there are parts you don't like about the text, sections that we should rewrite, fix, and so on. There are also a few parts which I haven't completely converted yet, and some places where I have questions about MFSROOT images and config file changes. I'll experiment a bit with the TinyBSD image I'm building now, but if you can help me fill in the last few sections, it would be nice :) You can see how I'm considering to organize the remaining sections by reading the SGML comments in the `article.sgml' file. From owner-freebsd-embedded@FreeBSD.ORG Mon Mar 10 04:10:11 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 AB85D1065673 for ; Mon, 10 Mar 2008 04:10:11 +0000 (UTC) (envelope-from gofe-freebsd-embedded@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 7721B8FC1B for ; Mon, 10 Mar 2008 04:10:11 +0000 (UTC) (envelope-from gofe-freebsd-embedded@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JYZKs-0003sI-UZ for freebsd-embedded@freebsd.org; Mon, 10 Mar 2008 04:10:02 +0000 Received: from cpe-65-189-187-156.columbus.res.rr.com ([65.189.187.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Mar 2008 04:10:02 +0000 Received: from dsamms by cpe-65-189-187-156.columbus.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Mar 2008 04:10:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-embedded@freebsd.org From: David Samms Date: Sun, 09 Mar 2008 23:45:28 -0400 Lines: 30 Message-ID: References: <200803031807.53588.aj@siegel-tech.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cpe-65-189-187-156.columbus.res.rr.com User-Agent: Thunderbird 2.0.0.9 (X11/20080214) In-Reply-To: <200803031807.53588.aj@siegel-tech.net> Sender: news Subject: Re: Building my first gateway firewall with wireless support 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, 10 Mar 2008 04:10:11 -0000 Aaron Siegel wrote: > Hello > > My almost ten year old pc that has been running 24/7 as a firewall gateway is > about to die. (Of course it is running Freebsd) I would like to build a > embedded gateway, DNS server, with DDNS client, wireless access point, > IPSEC , and firewall. > > I appreciate some guidance, some helpfull links, or maybe share some of your > experiences. I hobbyist not a developer. I do not expect this to be easy. > > My dream access point would have two interfaces one protect by IPSEC vpn and > an unsecured (just a cheap linksys device connected to the LAN). The big > question how much processor power will I need to support one to ten clients? > > The LAN will support a couple of desktops, and maybe a toy server (backup mail > server). > > I am looking at Soekris 48xx and if needed the vpn board.. As of now I like to > stick with x86 platform. Any other suggestions? > > Thank You > Aaron I would check put PC Engines ALIX board with 3 Nics, Wireless and a optional IDE interface. If you want to take the easy way check out the pfsense project. Detailed screen shots of pfSense are available here http://www.nw-ds.com/?tab=products&link=1&sub=1 From owner-freebsd-embedded@FreeBSD.ORG Mon Mar 10 11:06:59 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 53EFD1065713 for ; Mon, 10 Mar 2008 11:06:59 +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 5981F8FC26 for ; Mon, 10 Mar 2008 11:06:59 +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 m2AB6xTJ086496 for ; Mon, 10 Mar 2008 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2AB6wIH086492 for freebsd-embedded@FreeBSD.org; Mon, 10 Mar 2008 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 10 Mar 2008 11:06:58 GMT Message-Id: <200803101106.m2AB6wIH086492@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, 10 Mar 2008 11:06:59 -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 Mar 10 15:45:13 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 13B64106566C for ; Mon, 10 Mar 2008 15:45:13 +0000 (UTC) (envelope-from jmelo@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (capeta.freebsdbrasil.com.br [201.48.151.3]) by mx1.freebsd.org (Postfix) with SMTP id 583A38FC19 for ; Mon, 10 Mar 2008 15:45:11 +0000 (UTC) (envelope-from jmelo@freebsdbrasil.com.br) Received: (qmail 2757 invoked from network); 10 Mar 2008 12:45:10 -0300 Received: from unknown (HELO ?10.69.69.66?) (jmelo@201.48.151.226) by capeta.freebsdbrasil.com.br with SMTP; 10 Mar 2008 12:45:10 -0300 Message-ID: <47D55781.4050308@freebsdbrasil.com.br> Date: Mon, 10 Mar 2008 12:45:05 -0300 From: Jean Milanez Melo User-Agent: Thunderbird 1.5.0.14 (Macintosh/20071210) MIME-Version: 1.0 To: Giorgos Keramidas References: <1194819232.1047.19.camel@workstation.martenvijn.nl> <20071115013208.GA3497@kobe.laptop> <1195151049.3240.10.camel@workstation.martenvijn.nl> <20071115190615.GA2775@kobe.laptop> <1195169880.3240.46.camel@workstation.martenvijn.nl> <1205006382.1390.4.camel@workstation.martenvijn.nl> <20080308202258.GB2331@kobe.laptop> <47D2FD93.5060801@freebsdbrasil.com.br> <20080309235108.GA29312@kobe.laptop> In-Reply-To: <20080309235108.GA29312@kobe.laptop> X-Enigmail-Version: 0.94.3.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-small@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: TinyBSD article for the doc/ tree [was: Re: tinybsd qemu small howto] 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, 10 Mar 2008 15:45:13 -0000 Giorgos Keramidas wrote: > > An SGML article, with most of the text being just an adaptation of the > tinybsd/Documentation wiki page is now online at: > > http://people.freebsd.org/~keramida/tinybsd-20080310-01/article.sgml > > A preformatted version of the article is available in the same directory. > You can read it at: > > http://people.freebsd.org/~keramida/tinybsd-20080310-01/article.html > That's great Giorgos! Thanks for your help. :) > Can you please review the article? It would be interesting to know: > > - If there are technical errors in what I wrote. My first TinyBSD > build is running as I'm typing this, so I don't really count as > an experienced TinyBSD user. There are no errors, everything is ok. > > - If there is something else you would like me to add. > The article is very objective and i think that is what we want to. Congratz! :) > - If there are parts you don't like about the text, sections that > we should rewrite, fix, and so on. No, that's ok, very good as i said, please just change only my mail address to jmelo@freebsd.org. > > There are also a few parts which I haven't completely converted yet, and > some places where I have questions about MFSROOT images and config file > changes. I'll experiment a bit with the TinyBSD image I'm building now, > but if you can help me fill in the last few sections, it would be nice :) > Oks, what are your questions about MFSROOT and config files? About the last sections i'll organize what i wrote and will send it to you by private mail. > You can see how I'm considering to organize the remaining sections by > reading the SGML comments in the `article.sgml' file. > I have a sugestion: what do you think about create a new handbook session called "embedded" and add both nanobsd and tinybsd article? i think it could be better. Cheers, -- Jean From owner-freebsd-embedded@FreeBSD.ORG Mon Mar 10 20:10:49 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 B633D10656A4 for ; Mon, 10 Mar 2008 20:10:49 +0000 (UTC) (envelope-from dduong@goldenmunky.org) Received: from goldenmunky.org (206-248-139-62.dsl.teksavvy.com [206.248.139.62]) by mx1.freebsd.org (Postfix) with ESMTP id 59C4E8FC28 for ; Mon, 10 Mar 2008 20:10:49 +0000 (UTC) (envelope-from dduong@goldenmunky.org) Received: from localhost (localhost [127.0.0.1]) by goldenmunky.org (Postfix) with ESMTP id 5EC9E202232 for ; Mon, 10 Mar 2008 15:41:30 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mercury.goldenmunky.org X-Spam-Score: -4.162 X-Spam-Level: X-Spam-Status: No, score=-4.162 tagged_above=-1000 required=2 tests=[ALL_TRUSTED=-1.8, AWL=0.237, BAYES_00=-2.599] Received: from goldenmunky.org ([127.0.0.1]) by localhost (mercury.goldenmunky.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xutuAsRWpSkj for ; Mon, 10 Mar 2008 15:41:14 -0400 (EDT) Received: from [192.168.2.11] (unknown [192.168.2.11]) by goldenmunky.org (Postfix) with ESMTP id 39FAE202231 for ; Mon, 10 Mar 2008 15:41:14 -0400 (EDT) Message-ID: <47D58EE6.7080805@goldenmunky.org> Date: Mon, 10 Mar 2008 14:41:26 -0500 From: David Duong User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 CC: freebsd-embedded@freebsd.org References: <200803031807.53588.aj@siegel-tech.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Building my first gateway firewall with wireless support 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, 10 Mar 2008 20:10:49 -0000 David Samms wrote: > Aaron Siegel wrote: >> Hello >> >> My almost ten year old pc that has been running 24/7 as a firewall >> gateway is about to die. (Of course it is running Freebsd) I would >> like to build a embedded gateway, DNS server, with DDNS client, >> wireless access point, IPSEC , and firewall. >> I appreciate some guidance, some helpfull links, or maybe share some >> of your experiences. I hobbyist not a developer. I do not expect this >> to be easy. >> My dream access point would have two interfaces one protect by IPSEC >> vpn and an unsecured (just a cheap linksys device connected to the >> LAN). The big question how much processor power will I need to >> support one to ten clients? >> The LAN will support a couple of desktops, and maybe a toy server >> (backup mail server). >> >> I am looking at Soekris 48xx and if needed the vpn board.. As of now I >> like to stick with x86 platform. Any other suggestions? >> >> Thank You >> Aaron > > I would check put PC Engines ALIX board with 3 Nics, Wireless and a > optional IDE interface. If you want to take the easy way check out the > pfsense project. > > Detailed screen shots of pfSense are available here > http://www.nw-ds.com/?tab=products&link=1&sub=1 > > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.org" I also recommend the Via Epia SN-Series mini-itx board: http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id=550 Already has 2 NICs and is at 1.8ghz with fan or 1ghz for fanless. The reason why for this is because it has enough cpu power for you for present/future projects. From owner-freebsd-embedded@FreeBSD.ORG Mon Mar 10 21:12:16 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 479F9106566B; Mon, 10 Mar 2008 21:12:16 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-out-01.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by mx1.freebsd.org (Postfix) with ESMTP id 91EFF8FC27; Mon, 10 Mar 2008 21:12:15 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-av-02.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-01.forthnet.gr (8.13.8/8.13.8) with ESMTP id m2ALCCfX001847; Mon, 10 Mar 2008 23:12:12 +0200 Received: from MX-IN-04.forthnet.gr (mx-in-04.forthnet.gr [193.92.150.163]) by mx-av-02.forthnet.gr (8.14.1/8.14.1) with ESMTP id m2ALCCYC023047; Mon, 10 Mar 2008 23:12:12 +0200 Received: from kobe.laptop (adsl35-48.kln.forthnet.gr [77.49.162.48]) by MX-IN-04.forthnet.gr (8.14.2/8.14.2) with ESMTP id m2ALC33D002037; Mon, 10 Mar 2008 23:12:05 +0200 Authentication-Results: MX-IN-04.forthnet.gr smtp.mail=keramida@ceid.upatras.gr; spf=neutral Authentication-Results: MX-IN-04.forthnet.gr header.from=keramida@ceid.upatras.gr; sender-id=neutral Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m2ALC3Oh002992; Mon, 10 Mar 2008 23:12:03 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m2ALBwKl002991; Mon, 10 Mar 2008 23:11:58 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 10 Mar 2008 23:11:58 +0200 From: Giorgos Keramidas To: Jean Milanez Melo Message-ID: <20080310211158.GB1838@kobe.laptop> References: <1194819232.1047.19.camel@workstation.martenvijn.nl> <20071115013208.GA3497@kobe.laptop> <1195151049.3240.10.camel@workstation.martenvijn.nl> <20071115190615.GA2775@kobe.laptop> <1195169880.3240.46.camel@workstation.martenvijn.nl> <1205006382.1390.4.camel@workstation.martenvijn.nl> <20080308202258.GB2331@kobe.laptop> <47D2FD93.5060801@freebsdbrasil.com.br> <20080309235108.GA29312@kobe.laptop> <47D55781.4050308@freebsdbrasil.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47D55781.4050308@freebsdbrasil.com.br> Cc: freebsd-small@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: TinyBSD article for the doc/ tree [was: Re: tinybsd qemu small howto] 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, 10 Mar 2008 21:12:16 -0000 On 2008-03-10 12:45, Jean Milanez Melo wrote: >Giorgos Keramidas wrote: >> An SGML article, with most of the text being just an adaptation of the >> tinybsd/Documentation wiki page is now online at: >> >> http://people.freebsd.org/~keramida/tinybsd-20080310-01/article.sgml >> >> A preformatted version of the article is available in the same directory. >> You can read it at: >> >> http://people.freebsd.org/~keramida/tinybsd-20080310-01/article.html > > That's great Giorgos! Thanks for your help. :) Neat. >> - If there are parts you don't like about the text, sections that >> we should rewrite, fix, and so on. > > No, that's ok, very good as i said, please just change only my mail > address to jmelo@freebsd.org. Done, and a new copy uploaded (in place). >> There are also a few parts which I haven't completely converted yet, and >> some places where I have questions about MFSROOT images and config file >> changes. I'll experiment a bit with the TinyBSD image I'm building now, >> but if you can help me fill in the last few sections, it would be nice :) > > Oks, what are your questions about MFSROOT and config files? If one is using an MFSROOT image, config changes have to be saved on disk, right? What is the preferred way of doing this in TinyBSD images? My intuition would be to search for /dev/da0 partitions, mount them as read-write, edit the configuration, and unmount. Does that sound ok? > About the last sections i'll organize what i wrote and will send it to > you by private mail. Excellent! I'll wait for the new text :) > I have a sugestion: what do you think about create a new handbook > session called "embedded" and add both nanobsd and tinybsd article? i > think it could be better. That's a worthy goal. When we finish writing up the TinyBSD text and polishing any final details, it will be a good idea to work with Daniel (who wrote about NanoBSD) and add a Handbook chapter called `Embedded FreeBSD'. There's a lot of interest in embedding FreeBSD these days, so my guess is people are going to love reading about it :) From owner-freebsd-embedded@FreeBSD.ORG Tue Mar 11 18:05:54 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 009E7106567B for ; Tue, 11 Mar 2008 18:05:54 +0000 (UTC) (envelope-from jmelo@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (capeta.freebsdbrasil.com.br [201.48.151.3]) by mx1.freebsd.org (Postfix) with SMTP id 3126A8FC1A for ; Tue, 11 Mar 2008 18:05:52 +0000 (UTC) (envelope-from jmelo@freebsdbrasil.com.br) Received: (qmail 44381 invoked from network); 11 Mar 2008 15:05:51 -0300 Received: from unknown (HELO ?10.69.69.66?) (jmelo@201.48.151.226) by capeta.freebsdbrasil.com.br with SMTP; 11 Mar 2008 15:05:51 -0300 Message-ID: <47D6C9FA.7030505@freebsdbrasil.com.br> Date: Tue, 11 Mar 2008 15:05:46 -0300 From: Jean Milanez Melo User-Agent: Thunderbird 1.5.0.14 (Macintosh/20071210) MIME-Version: 1.0 To: Giorgos Keramidas References: <1194819232.1047.19.camel@workstation.martenvijn.nl> <20071115013208.GA3497@kobe.laptop> <1195151049.3240.10.camel@workstation.martenvijn.nl> <20071115190615.GA2775@kobe.laptop> <1195169880.3240.46.camel@workstation.martenvijn.nl> <1205006382.1390.4.camel@workstation.martenvijn.nl> <20080308202258.GB2331@kobe.laptop> <47D2FD93.5060801@freebsdbrasil.com.br> <20080309235108.GA29312@kobe.laptop> <47D55781.4050308@freebsdbrasil.com.br> <20080310211158.GB1838@kobe.laptop> In-Reply-To: <20080310211158.GB1838@kobe.laptop> X-Enigmail-Version: 0.94.3.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-small@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: TinyBSD article for the doc/ tree [was: Re: tinybsd qemu small howto] 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: Tue, 11 Mar 2008 18:05:54 -0000 Giorgos Keramidas wrote: > If one is using an MFSROOT image, config changes have to be saved on > disk, right? What is the preferred way of doing this in TinyBSD images? It's a problem yet, at moment the users can't save the changes when they are using MFSROOT. I hope i can fix it soon... > > My intuition would be to search for /dev/da0 partitions, mount them as > read-write, edit the configuration, and unmount. Does that sound ok? Yes, it's a could thing to do. > >> About the last sections i'll organize what i wrote and will send it to >> you by private mail. > > Excellent! I'll wait for the new text :) oks. :) > >> I have a sugestion: what do you think about create a new handbook >> session called "embedded" and add both nanobsd and tinybsd article? i >> think it could be better. > > That's a worthy goal. When we finish writing up the TinyBSD text and > polishing any final details, it will be a good idea to work with Daniel > (who wrote about NanoBSD) and add a Handbook chapter called `Embedded > FreeBSD'. There's a lot of interest in embedding FreeBSD these days, so > my guess is people are going to love reading about it :) > Is great hear it from you. Thanks :) -- Jean From owner-freebsd-embedded@FreeBSD.ORG Wed Mar 12 15:37: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 3F957106566C for ; Wed, 12 Mar 2008 15:37:58 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id CAB0F8FC12 for ; Wed, 12 Mar 2008 15:37:56 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so279938uge.37 for ; Wed, 12 Mar 2008 08:36:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=BhWrsAoVl9eaupsMkuBupW0JrKa54VjiVIcfKXX+WUE=; b=ma3hTbdR1pqe9yQuciFX7cN0lhXGTIF61FSLVh80Trj6LcGhs0bvddN+SzVyCL/e937Q0Iwb0QKHh/7+nuHlI58ne1T8i4gnewt9IufnQWRowd5B7sWamQbev0joag5E3OUw7YS57k/kSqHfva5qjyMb3Q6G7Ma0I8g/MX0DvfI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=stcwRq34A0raJlykv14GZG7h0EWlaQ+ojp/Uc++FsY0Yuu3KpFL89vv3va3D82lBh4f+UEj11QjmS8C1BhUovMnxkt2XH4njbf4iLdOH8fSe6TqUs4irPjD49el+xLcHb0e0H8GCbTk1cdFE9aZBR+J7xjhdN9TLQVvbeLJk8qM= Received: by 10.142.171.6 with SMTP id t6mr3474859wfe.38.1205334693326; Wed, 12 Mar 2008 08:11:33 -0700 (PDT) Received: by 10.142.204.7 with HTTP; Wed, 12 Mar 2008 08:11:33 -0700 (PDT) Message-ID: Date: Wed, 12 Mar 2008 17:11:33 +0200 From: "Jacques Fourie" To: freebsd-embedded@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Booting FreeBSD on MPC8540 eval board 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, 12 Mar 2008 15:37:58 -0000 Hi, I'm trying to get FreeBSD current (checked out the sources yesterday) to boot on a Freescale MPC8540 evaluation board. After installing a u-boot snapshot that has the u-boot API used by FreeBSD's ubldr I can load a FreeBSD kernel but the last message I see on the console is "Kernel entry at 0x1000100 ...". I have used the default MPC85XX kernel configuration file when compiling the FreeBSD kernel. For u-boot I added CONFIG_API and CFG_CMD_ELF to include/configs/MPC8540EVAL.h Unfortunately my debugging setup is not as complete as I would like it to be - struggling to get the CodeWarrior USB Tap working - so debugging this problem is a bit difficult at the moment. Is the kernel console support working for this platform? Jacques From owner-freebsd-embedded@FreeBSD.ORG Wed Mar 12 16:00:27 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 A6EBC1065671 for ; Wed, 12 Mar 2008 16:00:27 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 41D888FC33 for ; Wed, 12 Mar 2008 16:00:22 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id m2CFi34T008842; Wed, 12 Mar 2008 09:44:09 -0600 Received: from localhost (unknown [127.0.0.1]) by mail.semihalf.com (Postfix) with ESMTP id E76EE143A1; Wed, 12 Mar 2008 16:54:25 +0100 (CET) Received: from mail.semihalf.com ([127.0.0.1]) by localhost (mail.semihalf.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29137-08; Wed, 12 Mar 2008 16:54:24 +0100 (CET) Message-ID: <47D7FA35.30204@semihalf.com> Date: Wed, 12 Mar 2008 16:43:49 +0100 From: Rafal Jaworowski MIME-Version: 1.0 To: Jacques Fourie References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at semihalf.com Cc: freebsd-embedded@freebsd.org Subject: Re: Booting FreeBSD on MPC8540 eval board 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, 12 Mar 2008 16:00:27 -0000 Jacques Fourie wrote: > > I'm trying to get FreeBSD current (checked out the sources yesterday) > to boot on a Freescale MPC8540 evaluation board. After installing a > u-boot snapshot that has the u-boot API used by FreeBSD's ubldr I can > load a FreeBSD kernel but the last message I see on the console is > "Kernel entry at 0x1000100 ...". I have used the default MPC85XX > kernel configuration file when compiling the FreeBSD kernel. For > u-boot I added CONFIG_API and CFG_CMD_ELF to > include/configs/MPC8540EVAL.h > > Unfortunately my debugging setup is not as complete as I would like it > to be - struggling to get the CodeWarrior USB Tap working - so > debugging this problem is a bit difficult at the moment. Is the kernel > console support working for this platform? > Before booting the kernel you need to set your console address in FreeBSD loader. I'm not sure which UART port is actually used on the MC8540EVAL, but one of the following should work: set hw.uart.console=mm:0xfef04500 set hw.uart.console=mm:0xfef04600 Rafal From owner-freebsd-embedded@FreeBSD.ORG Thu Mar 13 08:38:44 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 B4D581065672 for ; Thu, 13 Mar 2008 08:38:44 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.170]) by mx1.freebsd.org (Postfix) with ESMTP id 9177C8FC35 for ; Thu, 13 Mar 2008 08:38:44 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: by wf-out-1314.google.com with SMTP id 25so3303527wfa.7 for ; Thu, 13 Mar 2008 01:38:43 -0700 (PDT) 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=j2GDuo/Qn5WxIGqu48WQ2voP4J72MoTAdpoGPXFoegY=; b=i/RObsM/4Ku37EzeL13m7ctJuniTiZtNLPbHwN+pwHzT+JHV7DwsN/J33A354ihg+SqWU0HzAa1+66iNoD9LXkEY0jNFNw7fZmpqRsykbLVFW1qx8zMoHM8irVB2aM8EGs4rm/k0go8mvgVmkr+1oy/llbKdvHe37FBbtM64ZF0= 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=ZArTmClkY+sQ/LvVft057JRKcAr4F4VQy1/wKIh6C3PBZhm3mmbPF6/g8OmwJgWCXkk89lEpzv2tNGzb1LOZWiUrcURvqpKNvlPGVABZ9pt8jkFf/lWdOeTz4tnQnsU++UxgQ5VtcYK7dnLo+mfImOZ1tZHgMKQFZ7zsUQmzQ8s= Received: by 10.143.33.19 with SMTP id l19mr4028834wfj.18.1205397523859; Thu, 13 Mar 2008 01:38:43 -0700 (PDT) Received: by 10.142.204.7 with HTTP; Thu, 13 Mar 2008 01:38:43 -0700 (PDT) Message-ID: Date: Thu, 13 Mar 2008 10:38:43 +0200 From: "Jacques Fourie" To: "Rafal Jaworowski" In-Reply-To: <47D7FA35.30204@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47D7FA35.30204@semihalf.com> Cc: freebsd-embedded@freebsd.org Subject: Re: Booting FreeBSD on MPC8540 eval board 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, 13 Mar 2008 08:38:44 -0000 On Wed, Mar 12, 2008 at 5:43 PM, Rafal Jaworowski wrote: > > Jacques Fourie wrote: > > > > I'm trying to get FreeBSD current (checked out the sources yesterday) > > to boot on a Freescale MPC8540 evaluation board. After installing a > > u-boot snapshot that has the u-boot API used by FreeBSD's ubldr I can > > load a FreeBSD kernel but the last message I see on the console is > > "Kernel entry at 0x1000100 ...". I have used the default MPC85XX > > kernel configuration file when compiling the FreeBSD kernel. For > > u-boot I added CONFIG_API and CFG_CMD_ELF to > > include/configs/MPC8540EVAL.h > > > > Unfortunately my debugging setup is not as complete as I would like it > > to be - struggling to get the CodeWarrior USB Tap working - so > > debugging this problem is a bit difficult at the moment. Is the kernel > > console support working for this platform? > > > > Before booting the kernel you need to set your console address in FreeBSD > loader. I'm not sure which UART port is actually used on the MC8540EVAL, but > one of the following should work: > > set hw.uart.console=mm:0xfef04500 > set hw.uart.console=mm:0xfef04600 > > Rafal > Thanks - 'set hw.uart.console=mm:0xfef04500' fixed the console output for me. >From the console output I can see that miibus_probe() is failing for all three ethernet devices. Here is the console output : Kernel entry at 0x1000100 ... GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2008 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 8.0-CURRENT #3: Wed Mar 12 14:47:16 SAST 2008 jacques@jf70.test.com:/usr/obj/powerpc/usr/home/jacques/fbsd8_src/usr/src/sys/MPC85XX WARNING: WITNESS option enabled, expect reduced performance. Timecounter "decrementer" frequency 33000000 Hz quality 0 cpu0: Freescale e500v1 core revision 2.0 cpu0: HID0 80004000 real memory = 251658240 (240 MB) avail memory = 245501952 (234 MB) nexus0: ocpbus0: on nexus0 uart0: <16550 or compatible> iomem 0xfef04500-0xfef0450f irq 58 on ocpbus0 uart0: [FILTER] uart0: console (115384,n,8,1) uart1: <16550 or compatible> iomem 0xfef04600-0xfef0460f irq 58 on ocpbus0 uart1: [FILTER] tsec0: iomem 0xfef24000-0xfef24fff irq 45,46,50 on ocpbus0 tsec0: MII failed to find PHY! device_attach: tsec0 attach returned 6 tsec1: iomem 0xfef25000-0xfef25fff irq 51,52,56 on ocpbus0 tsec1: MII failed to find PHY! device_attach: tsec1 attach returned 6 tsec2: iomem 0xfef26000-0xfef26fff irq 47,48,49 on ocpbus0 tsec2: MII failed to find PHY! device_attach: tsec2 attach returned 6 openpic0: iomem 0xfef40000-0xfef600b3 on ocpbus0 Timecounters tick every 10.000 msec bootpc_init: wired to interface 'tsec1' panic: bootpc_init: Could not find interface specified by BOOTP_WIRED_TO: tsec1 Here is some output obtained from uboot : MPC8540EVAL=> mii device MII devices: 'TSEC0' 'TSEC1' 'FEC' Current device: 'TSEC0' MPC8540EVAL=> mii info PHY 0x02: OUI = 0x04DE, Model = 0x0E, Rev = 0x02, 10baseT, HDX PHY 0x04: OUI = 0x5043, Model = 0x06, Rev = 0x02, 100baseT, FDX PHY 0x07: OUI = 0x5043, Model = 0x06, Rev = 0x02, 10baseT, HDX PHY 0x1F: OUI = 0x0000, Model = 0x00, Rev = 0x00, 10baseT, HDX MPC8540EVAL=> PHY 0x02: OUI = 0x04DE, Model = 0x0E, Rev = 0x02, 10baseT, HDX PHY 0x04: OUI = 0x5043, Model = 0x06, Rev = 0x02, 100baseT, FDX PHY 0x07: OUI = 0x5043, Model = 0x06, Rev = 0x02, 10baseT, HDX PHY 0x1F: OUI = 0x0000, Model = 0x00, Rev = 0x00, 10baseT, HDX Do I need some additional mods in the miibus code that is not in CVS? Jacques From owner-freebsd-embedded@FreeBSD.ORG Thu Mar 13 10:46:05 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 991331065670 for ; Thu, 13 Mar 2008 10:46:05 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 771CB8FC23 for ; Thu, 13 Mar 2008 10:46:05 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id m2DAk3vu025636; Thu, 13 Mar 2008 04:46:04 -0600 Received: from localhost (unknown [127.0.0.1]) by mail.semihalf.com (Postfix) with ESMTP id 3D5F6143B5; Thu, 13 Mar 2008 11:56:41 +0100 (CET) Received: from mail.semihalf.com ([127.0.0.1]) by localhost (mail.semihalf.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16338-05; Thu, 13 Mar 2008 11:56:39 +0100 (CET) Message-ID: <47D905E8.5020608@semihalf.com> Date: Thu, 13 Mar 2008 11:46:00 +0100 From: Rafal Jaworowski MIME-Version: 1.0 To: Jacques Fourie References: <47D7FA35.30204@semihalf.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at semihalf.com Cc: freebsd-embedded@freebsd.org Subject: Re: Booting FreeBSD on MPC8540 eval board 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, 13 Mar 2008 10:46:05 -0000 Jacques Fourie wrote: > Thanks - 'set hw.uart.console=mm:0xfef04500' fixed the console output for me. > From the console output I can see that miibus_probe() is failing for > all three ethernet devices. > > Here is the console output : > *snip* > > Here is some output obtained from uboot : > > MPC8540EVAL=> mii device > MII devices: 'TSEC0' 'TSEC1' 'FEC' > Current device: 'TSEC0' > MPC8540EVAL=> mii info > PHY 0x02: OUI = 0x04DE, Model = 0x0E, Rev = 0x02, 10baseT, HDX > PHY 0x04: OUI = 0x5043, Model = 0x06, Rev = 0x02, 100baseT, FDX > PHY 0x07: OUI = 0x5043, Model = 0x06, Rev = 0x02, 10baseT, HDX > PHY 0x1F: OUI = 0x0000, Model = 0x00, Rev = 0x00, 10baseT, HDX > MPC8540EVAL=> > PHY 0x02: OUI = 0x04DE, Model = 0x0E, Rev = 0x02, 10baseT, HDX > PHY 0x04: OUI = 0x5043, Model = 0x06, Rev = 0x02, 100baseT, FDX > PHY 0x07: OUI = 0x5043, Model = 0x06, Rev = 0x02, 10baseT, HDX > PHY 0x1F: OUI = 0x0000, Model = 0x00, Rev = 0x00, 10baseT, HDX > > Do I need some additional mods in the miibus code that is not in CVS? > I don't think so, just having miibus should suffice. The problem you're having is likely caused by a different MAC-PHY topology than is for CDS boards the port was mainly tested on. The hidden assumption we currently have requires a 1:1 mapping between TSEC units and PHY numbers they are 'routed' to. We don't deal too well with other/mixed MAC-PHY topologies that various systems can have. Please try this patch, or manipulate in a similar way, you'll get the idea: diff --git a/sys/dev/tsec/if_tsec.c b/sys/dev/tsec/if_tsec.c index a5aff35..bd3854b 100644 --- a/sys/dev/tsec/if_tsec.c +++ b/sys/dev/tsec/if_tsec.c @@ -1561,7 +1561,7 @@ tsec_miibus_readreg(device_t dev, int ph sc = device_get_softc(dev); - if (device_get_unit(dev) != phy) + if (phy != 4 || phy != 7) return (0); sc = tsec0_sc; Another thing, but not critical, is that we somehow seem to treat the third Ethernet controller as TSEC, which it isn't -- 8540 has FEC in addition to the two TSEC units, but FEC isn't supported at the moment at all, no driver etc. Rafal PS. Please boot with -v flag so that we can see more verbose output. From owner-freebsd-embedded@FreeBSD.ORG Thu Mar 13 12:54:31 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 324BA106566B for ; Thu, 13 Mar 2008 12:54:31 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.172]) by mx1.freebsd.org (Postfix) with ESMTP id E46538FC2A for ; Thu, 13 Mar 2008 12:54:30 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: by wf-out-1314.google.com with SMTP id 25so3389682wfa.7 for ; Thu, 13 Mar 2008 05:54:30 -0700 (PDT) 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=49xI0CW9pIIW4t8SO4cvZ+LdbhrhD46ahpgInVj0K/M=; b=YQ0mdZczbgczpkw/zYXwI7dgfAFNhIcNvD+/AtZKGKHzk0bRB6xBbjkHH4gKGhUM+pfuvXYjF5MI8rOPzW2jcSup7dZdBB+Cp8PexJAvm93INn+6uspQ2dW9WqFORgicyoI3osAmHKIj0PsfbxDGpDjyOVFL+41yeqqGdyzaq5c= 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=k2a3AqwA33u8Tl2vRjqBZXXE8uyU6bI/6gIYyd4fNGOK7oO3SXt9LVsNS08zJBrePnaaL+bYdWHBYPmzUPGvkSclCxm3EhH+AJZKWta62gZsIEXgyGbEn4ucirSNTKD4nvmMgCeuCjBlExIwJz88WSAMmgG6EG7U1r6+cGM2c/U= Received: by 10.142.221.19 with SMTP id t19mr4058191wfg.100.1205412870445; Thu, 13 Mar 2008 05:54:30 -0700 (PDT) Received: by 10.142.204.7 with HTTP; Thu, 13 Mar 2008 05:54:30 -0700 (PDT) Message-ID: Date: Thu, 13 Mar 2008 14:54:30 +0200 From: "Jacques Fourie" To: "Rafal Jaworowski" In-Reply-To: <47D91CAF.9010000@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47D7FA35.30204@semihalf.com> <47D905E8.5020608@semihalf.com> <47D91CAF.9010000@semihalf.com> Cc: freebsd-embedded@freebsd.org Subject: Re: Booting FreeBSD on MPC8540 eval board 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, 13 Mar 2008 12:54:31 -0000 On Thu, Mar 13, 2008 at 2:23 PM, Rafal Jaworowski wrote: > Jacques Fourie wrote: > > Thanks! After changing the patch to 'if (phy != 4 && phy != 7)' the > > kernel boots. > > I see some lock order reversals but it looks like a generic issue in current. > > > > Thanks again for the excellent work in porting FreeBSD to this platform. > > > > Great, please send a booting log :) I'm interested as I don't have access to > 8540 right now and it's good to know it worked on this variation too without > major problems. Please CC the group as previously so that other people can > learn from your experience if anyone else approaches runninig this on 8540. > > Rafal Sorry, I forgot to cc the list in my previous mail. I'll write up a small howto describing how I got FreeBSD to boot and post it to the list. Here is my dmesg for 'boot -v' L1 D-cache enabled L1 I-cache enabled Copyright (c) 1992-2008 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 8.0-CURRENT #13: Thu Mar 13 13:28:28 SAST 2008 jacques@jf70.test.com:/usr/home/jacques/fbsd8_src/usr/src/sys/powerpc/compile/MPC85XX WARNING: WITNESS option enabled, expect reduced performance. Preloaded elf kernel "/boot/kernel/kernel" at 0xc0441000. Timecounter "decrementer" frequency 33000000 Hz quality 0 cpu0: Freescale e500v1 core revision 2.0 cpu0: HID0 80004000 real memory = 251658240 (240 MB) Physical memory chunk(s): 0x00000000 - 0x00ffffff, 16777216 bytes (4096 pages) 0x02000000 - 0x0fb4ffff, 229965824 bytes (56144 pages) avail memory = 245501952 (234 MB) null: random: mem: nfslock: pseudo-device nexus0: ocpbus0: on nexus0 ocpbus0: PORDEVSR=80030107, PORDEVSR2=cf040001 uart0: <16550 or compatible> iomem 0xfef04500-0xfef0450f irq 58 on ocpbus0 uart0: [FILTER] uart0: fast interrupt uart0: console (115384,n,8,1) uart1: <16550 or compatible> iomem 0xfef04600-0xfef0460f irq 58 on ocpbus0 uart1: [FILTER] uart1: fast interrupt tsec0: iomem 0xfef24000-0xfef24fff irq 45,46,50 on ocpbus0 miibus0: on tsec0 e1000phy0: PHY 4 on miibus0 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto e1000phy1: PHY 7 on miibus0 e1000phy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto tsec0: bpf attached tsec0: Ethernet address: 00:01:af:07:9b:8a tsec0: [MPSAFE] tsec0: [ITHREAD] tsec0: [MPSAFE] tsec0: [ITHREAD] tsec0: [MPSAFE] tsec0: [ITHREAD] tsec1: iomem 0xfef25000-0xfef25fff irq 51,52,56 on ocpbus0 miibus1: on tsec1 e1000phy2: PHY 4 on miibus1 e1000phy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto e1000phy3: PHY 7 on miibus1 e1000phy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto tsec1: bpf attached tsec1: Ethernet address: 00:01:af:07:9b:8b tsec1: [MPSAFE] tsec1: [ITHREAD] tsec1: [MPSAFE] tsec1: [ITHREAD] tsec1: [MPSAFE] tsec1: [ITHREAD] tsec2: iomem 0xfef26000-0xfef26fff irq 47,48,49 on ocpbus0 miibus2: on tsec2 e1000phy4: PHY 4 on miibus2 e1000phy4: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto e1000phy5: PHY 7 on miibus2 e1000phy5: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto tsec2: bpf attached tsec2: Ethernet address: 00:01:af:07:9b:8c tsec2: [MPSAFE] tsec2: [ITHREAD] tsec2: [MPSAFE] tsec2: [ITHREAD] tsec2: [MPSAFE] tsec2: [ITHREAD] openpic0: iomem 0xfef40000-0xfef600b3 on ocpbus0 openpic0: Version 1.2, supports 1 CPUs and 56 irqs procfs registered Timecounters tick every 10.000 msec lo0: bpf attached bootpc_init: wired to interface 'tsec1' Sending DHCP Discover packet from interface tsec1 (00:01:af:07:9b:8b) Received DHCP Offer packet on tsec1 from 10.7.146.1 (accepted) (no root path) Received DHCP Offer packet on tsec1 from 10.7.146.1 (ignored) (no root path) Sending DHCP Request packet from interface tsec1 (00:01:af:07:9b:8b) Received DHCP Ack packet on tsec1 from 10.7.146.1 (accepted) (got root path) tsec1 at 10.7.140.53 server 10.7.146.1 boot file /tftpboot/kernel.mpc8540 subnet mask 255.255.255.0 router 10.7.140.1 rootfs 10.7.140.99:/usr/home/jacques/fbsd8_e500_world Adjusted interface tsec1 WARNING: WITNESS option enabled, expect reduced performance. lock order reversal: 1st 0xc2fe4e94 devfs (devfs) @ kern/vfs_subr.c:2063 2nd 0xc2faed94 devfsmount (devfsmount) @ fs/devfs/devfs_vnops.c:201 KDB: stack backtrace: 0xca667bc8: at kdb_backtrace+0x4c 0xca667bd8: at witness_checkorder+0x704 0xca667c28: at _sx_xlock+0x8c 0xca667c48: at devfs_allocv+0x13c 0xca667c88: at devfs_root+0x5c 0xca667cb8: at set_rootvnode+0x44 0xca667ce8: at vfs_mountroot+0x344 0xca667d48: at start_init+0x88 0xca667da8: at fork_exit+0xb4 0xca667dc8: at fork_trampoline+0xc Trying to mount root from nfs:10.7.140.99:/usr/home/jacques/fbsd8_e500_world NFS ROOT: 10.7.140.99:/usr/home/jacques/fbsd8_e500_world lock order reversal: 1st 0xc2fe4b4c nfs (nfs) @ kern/vfs_subr.c:2063 2nd 0xc3086000 vfslock (vfslock) @ kern/vfs_subr.c:364 KDB: stack backtrace: 0xca667998: at kdb_backtrace+0x4c 0xca6679a8: at witness_checkorder+0x704 0xca6679f8: at _lockmgr_args+0x200 0xca667a58: at vfs_busy+0x190 0xca667a78: at lookup+0x820 0xca667b08: at namei+0x368 0xca667b88: at kern_unlink+0x8c 0xca667c38: at vfs_mountroot_try+0x430 0xca667ce8: at vfs_mountroot+0x428 0xca667d48: at start_init+0x88 0xca667da8: at fork_exit+0xb4 0xca667dc8: at fork_trampoline+0xc start_init: trying /sbin/init lock order reversal: 1st 0xc2d8a048 user map (user map) @ vm/vm_map.c:3111 2nd 0xc2fe491c nfs (nfs) @ kern/vfs_subr.c:2063 KDB: stack backtrace: 0xca667a10: at kdb_backtrace+0x4c 0xca667a20: at witness_checkorder+0x704 0xca667a70: at _lockmgr_args+0x200 0xca667ad0: at vop_stdlock+0x3c 0xca667ae0: at VOP_LOCK1_APV+0xec 0xca667b00: at _vn_lock+0xfc 0xca667b50: at vget+0x104 0xca667b90: at vnode_pager_lock+0x1c8 0xca667bd0: at vm_fault+0x20c 0xca667ce0: at trap_pfault+0x13c 0xca667d10: at trap+0xb0 0xca667dd0: user ISI trap by 0x1815c2c: srr1=0x2d000 r1=0x7fffdee0 cr=0x24000048 xer=0 ctr=0 From owner-freebsd-embedded@FreeBSD.ORG Thu Mar 13 13:56:54 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 7E0571065675 for ; Thu, 13 Mar 2008 13:56:54 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id 1449C8FC2C for ; Thu, 13 Mar 2008 13:56:54 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: by wf-out-1314.google.com with SMTP id 25so3412127wfa.7 for ; Thu, 13 Mar 2008 06:56:53 -0700 (PDT) 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=0UeJTWW3so6vM2GZF8iKKoDKQQkMX8VePPJE7c/j4xo=; b=UK8szRLINlV2TmYcWZH6JGJKsT7ejCyIeyyXz8y/rafPg61IdGWi9r3KuhfvG2ye9sgQl3V7PO61sBmEX4bZH1FGxlOQuD2zbkSDNPujy7i/nBEzPEr3pgFPL8d32ym7y07jGxVvqmcvTuZBBB0son5JAzPBKMM5nLB78+gqTb4= 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=pWgw292Xo9KshXH3nrVPOzJ0jWwxv2X7Sq6OznGxBzpWeyVrBLkmC5Zjtosrk9c08g3rYYtVkqZdygIjQ7nrkQga81tX6kjpcw2lz3p/rgV3yizYCovKJ60VUZC6WAv5iEzs0tbesLuMyCNEDPQETljqnYubUwjTd0f8iM8/l5k= Received: by 10.142.141.21 with SMTP id o21mr4119016wfd.84.1205416613755; Thu, 13 Mar 2008 06:56:53 -0700 (PDT) Received: by 10.142.204.7 with HTTP; Thu, 13 Mar 2008 06:56:53 -0700 (PDT) Message-ID: Date: Thu, 13 Mar 2008 15:56:53 +0200 From: "Jacques Fourie" To: freebsd-embedded@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Howto boot FreeBSD on MPC8540EVAL 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, 13 Mar 2008 13:56:54 -0000 Hi, For the benefit of the list I'll describe how I got FreeBSD current to boot on a MPC8540EVAL platform. This basically consisted of installing a newer version of u-boot onto the flash and some minor kernel modifications (thanks for all the help Rafal). u-boot installation --------------------- The MPC8540EVAL ships with u-boot pre-installed. Unfortunately the version on mine was too old to contain the api module used by the FreeBSD bootloader. Here is a short summary of how I installed a newer version: * Downloaded a snapshot of u-boot 1.3.2 (Close to release at time of writing) * Added the following to include/configs/MPC8540EVAL.h : #define CONFIG_MII 1 #define CONFIG_API 1 #define CONFIG_CMD_ELF #define CONFIG_CMD_CONSOLE #define CONFIG_CMD_MII * Compiled u-boot on a Linux box with the toolchain that ships with the Metrowerks BSP for this platform. I tried to compile using the FreeBSD cross compiler but ran into some problems with the binutils and gcc combination. * Setup a tftp server on a FreeBSD7.0 box by editing the appropriate entry in inetd.conf (and starting inetd). * Setup a dhcpd server * Copy the new u-boot.bin to the tftp root directory * Boot the MPC8540EVAL and write the new u-boot onto the flash : MPC8540EVAL=> tftpboot 0x100000 ubnew.bin MPC8540EVAL=> protect off 0xfff80000 0xffffffff MPC8540EVAL=> era 0xfff80000 0xffffffff MPC8540EVAL=> cp.b 0x100000 0xfff80000 ${filesize} MPC8540EVAL=> setenv filesize MPC8540EVAL=> saveenv MPC8540EVAL=> protect on 0xfff80000 0xffffffff MPC8540EVAL=> reset FreeBSD ----------- I performed the following steps on a FreeBSD 7.0-RELEASE installation. * Checkout latest sources from -current * Apply the following patch to src/sys/dev/tsec/if_tsec.c: index a5aff35..bd3854b 100644 --- a/sys/dev/tsec/if_tsec.c +++ b/sys/dev/tsec/if_tsec.c @@ -1561,7 +1561,7 @@ tsec_miibus_readreg(device_t dev, int ph sc = device_get_softc(dev); - if (device_get_unit(dev) != phy) + if (phy != 4 && phy != 7) return (0); sc = tsec0_sc; * Cross-compile FreeBSD powerpc world and kernel using MPC85XX kernel config * Do a 'make installworld DESTDIR=/some/dir' * Edit /some/dir/boot/loader.conf and add the line 'hw.uart.console="mm:0xfef04500"' * NFS export /some/dir * Added the 'root-path' option to the DHCP server to point to this directory. * Copy ubldr from src/sys/boot/powerpc/uboot/ubldr to the tftp root directory * Boot into new u-boot, download ubldr and execute it: MPC8540EVAL=> tftpboot 0x100000 ubldr MPC8540EVAL=> bootelf 0x100000 If all goes well you'll now see the boot loader loading and then booting the kernel. Jacques From owner-freebsd-embedded@FreeBSD.ORG Thu Mar 13 15:09:54 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 BB7901065671 for ; Thu, 13 Mar 2008 15:09:54 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 7B4A68FC2B for ; Thu, 13 Mar 2008 15:09:54 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id m2DF9qjY021538; Thu, 13 Mar 2008 09:09:53 -0600 Received: from localhost (unknown [127.0.0.1]) by mail.semihalf.com (Postfix) with ESMTP id CCB6614418; Thu, 13 Mar 2008 16:20:31 +0100 (CET) Received: from mail.semihalf.com ([127.0.0.1]) by localhost (mail.semihalf.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25665-06; Thu, 13 Mar 2008 16:20:30 +0100 (CET) Message-ID: <47D943BE.7090000@semihalf.com> Date: Thu, 13 Mar 2008 16:09:50 +0100 From: Rafal Jaworowski MIME-Version: 1.0 To: Jacques Fourie References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at semihalf.com Cc: freebsd-embedded@freebsd.org Subject: Re: Howto boot FreeBSD on MPC8540EVAL 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, 13 Mar 2008 15:09:54 -0000 Jacques Fourie wrote: > > For the benefit of the list I'll describe how I got FreeBSD current to > boot on a MPC8540EVAL platform. This basically consisted of installing > a newer version of u-boot onto the flash and some minor kernel > modifications (thanks for all the help Rafal). > Thanks for the howto, Jacques. I'm glad it worked on your board; I was planning :) to put together the 85xx installation notes on www/wiki one day, so when it happens I'll merge your instructions too. Rafal From owner-freebsd-embedded@FreeBSD.ORG Thu Mar 13 16:20:03 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 BC1381065673 for ; Thu, 13 Mar 2008 16:20:03 +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 5FE8F8FC1D for ; Thu, 13 Mar 2008 16:20:03 +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 m2DGH019074054; Thu, 13 Mar 2008 10:17:00 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 13 Mar 2008 10:17:42 -0600 (MDT) Message-Id: <20080313.101742.849736598.imp@bsdimp.com> To: jacques.fourie@gmail.com From: "M. Warner Losh" In-Reply-To: References: 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: Howto boot FreeBSD on MPC8540EVAL 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, 13 Mar 2008 16:20:03 -0000 Thanks Jacques. I've taken your write up and put it on the FreeBSD wiki. I was lame and named the page wrong, but otherwise it is your instructions http://wiki.freebsd.org/Eval8547Boot Maybe Rafal will be able to expand on this start :-) Warner From owner-freebsd-embedded@FreeBSD.ORG Thu Mar 13 16:38:04 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 A57EA106566B for ; Thu, 13 Mar 2008 16:38:04 +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 DBACC8FC22 for ; Thu, 13 Mar 2008 16:38:03 +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 m2DGZh75074340; Thu, 13 Mar 2008 10:35:43 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 13 Mar 2008 10:36:26 -0600 (MDT) Message-Id: <20080313.103626.-2033498281.imp@bsdimp.com> To: jacques.fourie@gmail.com From: "M. Warner Losh" In-Reply-To: <20080313.101742.849736598.imp@bsdimp.com> References: <20080313.101742.849736598.imp@bsdimp.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: freebsd-embedded@freebsd.org Subject: Re: Howto boot FreeBSD on MPC8540EVAL 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, 13 Mar 2008 16:38:04 -0000 In message: <20080313.101742.849736598.imp@bsdimp.com> "M. Warner Losh" writes: : Thanks Jacques. I've taken your write up and put it on the FreeBSD : wiki. I was lame and named the page wrong, but otherwise it is your : instructions : : http://wiki.freebsd.org/Eval8547Boot : : Maybe Rafal will be able to expand on this start :-) I've moved this page to http://wiki.freebsd.org/Eval8540Boot with a pointer from the old page. Thanks again Jacques! Warner From owner-freebsd-embedded@FreeBSD.ORG Thu Mar 13 16:58:29 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 B3878106566B for ; Thu, 13 Mar 2008 16:58:29 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.66]) by mx1.freebsd.org (Postfix) with ESMTP id 954938FC24 for ; Thu, 13 Mar 2008 16:58:29 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp007-s [10.150.69.70]) by smtpoutm.mac.com (Xserve/smtpout003/MantshX 4.0) with ESMTP id m2DGwRuL016653; Thu, 13 Mar 2008 09:58:28 -0700 (PDT) Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mac.com (Xserve/asmtp007/MantshX 4.0) with ESMTP id m2DGwKCM026601 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 13 Mar 2008 09:58:21 -0700 (PDT) Message-Id: <62FE92BB-0272-46A7-BDA9-5992FDE2F2D9@mac.com> From: Marcel Moolenaar To: Rafal Jaworowski In-Reply-To: <47D905E8.5020608@semihalf.com> 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: Thu, 13 Mar 2008 09:58:20 -0700 References: <47D7FA35.30204@semihalf.com> <47D905E8.5020608@semihalf.com> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-embedded@freebsd.org Subject: Re: Booting FreeBSD on MPC8540 eval board 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, 13 Mar 2008 16:58:29 -0000 On Mar 13, 2008, at 3:46 AM, Rafal Jaworowski wrote: >> Here is some output obtained from uboot : >> >> MPC8540EVAL=> mii device >> MII devices: 'TSEC0' 'TSEC1' 'FEC' >> Current device: 'TSEC0' >> MPC8540EVAL=> mii info >> PHY 0x02: OUI = 0x04DE, Model = 0x0E, Rev = 0x02, 10baseT, HDX >> PHY 0x04: OUI = 0x5043, Model = 0x06, Rev = 0x02, 100baseT, FDX >> PHY 0x07: OUI = 0x5043, Model = 0x06, Rev = 0x02, 10baseT, HDX >> PHY 0x1F: OUI = 0x0000, Model = 0x00, Rev = 0x00, 10baseT, HDX >> MPC8540EVAL=> >> PHY 0x02: OUI = 0x04DE, Model = 0x0E, Rev = 0x02, 10baseT, HDX >> PHY 0x04: OUI = 0x5043, Model = 0x06, Rev = 0x02, 100baseT, FDX >> PHY 0x07: OUI = 0x5043, Model = 0x06, Rev = 0x02, 10baseT, HDX >> PHY 0x1F: OUI = 0x0000, Model = 0x00, Rev = 0x00, 10baseT, HDX >> >> Do I need some additional mods in the miibus code that is not in CVS? >> > > I don't think so, just having miibus should suffice. The problem > you're having > is likely caused by a different MAC-PHY topology than is for CDS > boards the > port was mainly tested on. > > The hidden assumption we currently have requires a 1:1 mapping > between TSEC > units and PHY numbers they are 'routed' to. We don't deal too well > with > other/mixed MAC-PHY topologies that various systems can have. We fixed this at Juniper. If you're done with TSEC for now, I can backport the changes... -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-embedded@FreeBSD.ORG Thu Mar 13 17:03: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 73784106566C for ; Thu, 13 Mar 2008 17:03:53 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 3250B8FC17 for ; Thu, 13 Mar 2008 17:03:53 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id m2DH3nfH019543; Thu, 13 Mar 2008 11:03:52 -0600 Received: from localhost (unknown [127.0.0.1]) by mail.semihalf.com (Postfix) with ESMTP id 9CC5E1431E; Thu, 13 Mar 2008 18:14:28 +0100 (CET) Received: from mail.semihalf.com ([127.0.0.1]) by localhost (mail.semihalf.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32328-05; Thu, 13 Mar 2008 18:14:27 +0100 (CET) Message-ID: <47D95E72.1050904@semihalf.com> Date: Thu, 13 Mar 2008 18:03:46 +0100 From: Rafal Jaworowski MIME-Version: 1.0 To: Marcel Moolenaar References: <47D7FA35.30204@semihalf.com> <47D905E8.5020608@semihalf.com> <62FE92BB-0272-46A7-BDA9-5992FDE2F2D9@mac.com> In-Reply-To: <62FE92BB-0272-46A7-BDA9-5992FDE2F2D9@mac.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at semihalf.com Cc: freebsd-embedded@freebsd.org Subject: Re: Booting FreeBSD on MPC8540 eval board 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, 13 Mar 2008 17:03:53 -0000 Marcel Moolenaar wrote: >> I don't think so, just having miibus should suffice. The problem >> you're having >> is likely caused by a different MAC-PHY topology than is for CDS >> boards the >> port was mainly tested on. >> >> The hidden assumption we currently have requires a 1:1 mapping between >> TSEC >> units and PHY numbers they are 'routed' to. We don't deal too well with >> other/mixed MAC-PHY topologies that various systems can have. > > We fixed this at Juniper. If you're done with TSEC for now, I > can backport the changes... > Hi Marcel, Feel free to commit your fixes. I'm reworking the TSEC driver structure that we discussed, but it's not ready yet, so go ahead. Rafal