From owner-freebsd-embedded@FreeBSD.ORG Mon May 31 01:16:53 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E7D8106566C for ; Mon, 31 May 2010 01:16:53 +0000 (UTC) (envelope-from pierre@userid.org) Received: from mail.storm.ca (unknown [IPv6:2607:f0b0:0:6:209:87:239:66]) by mx1.freebsd.org (Postfix) with ESMTP id 434D68FC0A for ; Mon, 31 May 2010 01:16:53 +0000 (UTC) Received: from mail.userid.org (pandora.userid.org [216.106.102.33]) by mail.storm.ca (8.14.2+Sun/8.14.2) with ESMTP id o4V0RV5S023868 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 30 May 2010 20:27:36 -0400 (EDT) Received: from [IPv6:2607:f0b0:1:3800:1406:740f:3344:31f1] (unknown [IPv6:2607:f0b0:1:3800:1406:740f:3344:31f1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pierre) by mail.userid.org (Postfix) with ESMTP id 41C552C779E for ; Sun, 30 May 2010 20:27:21 -0400 (EDT) Message-ID: <4C030271.3090807@userid.org> Date: Sun, 30 May 2010 20:27:29 -0400 From: Pierre Lamy User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-embedded@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-userid-MailScanner-Information: Please contact the ISP for more information X-userid-MailScanner-ID: 41C552C779E.A0445 X-userid-MailScanner: Found to be clean X-userid-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.001, required 6, autolearn=not spam, NO_RELAYS -0.00) X-userid-MailScanner-From: pierre@userid.org X-Spam-Status: No Subject: Trying to understand the boot process 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, 31 May 2010 01:16:53 -0000 I've got a nice little Atom box with a CF and hard drive, and I can currently boot NanoBSD off the flash no problem. I would like to optionally select the HD as a bootable device, and it does show up in the boot: 1 FreeBSD 3 FreeBSD 5 Drive 1 Now, I have already set a slice and put /boot in ad4s1a, and FreeBSD is manually installed out of a chroot'ed install (tar'd on seperate system and extracted correctly to the appropriate local HD filesystem) but I can't figure out how to actually get it booted, it seems to be missing the MBR? I have already RTFM, and used bsdlabel -B ad4s1, and also tried fdisk -B. I simply get the "Reboot and select proper boot device or insert boot media..." message. Does anyone have any suggestions? My second question is how to label the boot options so that 1 says NanoBSD, 3 doesn't show up at all, and 5 days FreeBSD. -Pierre From owner-freebsd-embedded@FreeBSD.ORG Mon May 31 02:26:14 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 537C61065670 for ; Mon, 31 May 2010 02:26:14 +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 EFF758FC12 for ; Mon, 31 May 2010 02:26:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o4V2L1xv002327; Sun, 30 May 2010 20:21:01 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 30 May 2010 20:21:08 -0600 (MDT) Message-Id: <20100530.202108.506052712838313159.imp@bsdimp.com> To: pierre@userid.org From: "M. Warner Losh" In-Reply-To: <4C030271.3090807@userid.org> References: <4C030271.3090807@userid.org> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org Subject: Re: Trying to understand the boot process 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, 31 May 2010 02:26:14 -0000 In message: <4C030271.3090807@userid.org> Pierre Lamy writes: : I've got a nice little Atom box with a CF and hard drive, and I can : currently boot NanoBSD off the flash no problem. : : I would like to optionally select the HD as a bootable device, and it : does show up in the boot: : : 1 FreeBSD : 3 FreeBSD : 5 Drive 1 : : Now, I have already set a slice and put /boot in ad4s1a, and FreeBSD : is manually installed out of a chroot'ed install (tar'd on seperate : system and extracted correctly to the appropriate local HD filesystem) : but I can't figure out how to actually get it booted, it seems to be : missing the MBR? : : I have already RTFM, and used bsdlabel -B ad4s1, and also tried fdisk : -B. I simply get the "Reboot and select proper boot device or insert : boot media..." message. : : Does anyone have any suggestions? Try turning on packet mode. : My second question is how to label the boot options so that 1 says : NanoBSD, 3 doesn't show up at all, and 5 days FreeBSD. You'd have to hack boot0 to do that, and it is very short of space. Good luck... Warner From owner-freebsd-embedded@FreeBSD.ORG Mon May 31 11:06:53 2010 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C14C0106567E for ; Mon, 31 May 2010 11:06:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AEEBC8FC19 for ; Mon, 31 May 2010 11:06:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o4VB6r4P045956 for ; Mon, 31 May 2010 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4VB6rre045954 for freebsd-embedded@FreeBSD.org; Mon, 31 May 2010 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 31 May 2010 11:06:53 GMT Message-Id: <201005311106.o4VB6rre045954@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, 31 May 2010 11:06:53 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/136889 embedded [nanobsd] [path] nanobsd error reporting and other ref p misc/135588 embedded [nanobsd] simple patch for adding amd64 support o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c 4 problems total. From owner-freebsd-embedded@FreeBSD.ORG Wed Jun 2 14:20:36 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65A721065686 for ; Wed, 2 Jun 2010 14:20:36 +0000 (UTC) (envelope-from jceel@semihalf.com) Received: from smtp.semihalf.com (smtp.semihalf.com [213.17.239.109]) by mx1.freebsd.org (Postfix) with ESMTP id 0E7258FC27 for ; Wed, 2 Jun 2010 14:20:35 +0000 (UTC) Received: from localhost (unknown [213.17.239.109]) by smtp.semihalf.com (Postfix) with ESMTP id 53D20C42DB; Wed, 2 Jun 2010 16:10:13 +0200 (CEST) X-Virus-Scanned: by amavisd-new at semihalf.com Received: from smtp.semihalf.com ([213.17.239.109]) by localhost (smtp.semihalf.com [213.17.239.109]) (amavisd-new, port 10024) with ESMTP id Wuzp9Xkr4Bza; Wed, 2 Jun 2010 16:10:12 +0200 (CEST) Received: from jot.semihalf.com (cardhu.semihalf.com [213.17.239.108]) by smtp.semihalf.com (Postfix) with ESMTPA id 908DEC42D5; Wed, 2 Jun 2010 16:10:12 +0200 (CEST) Message-ID: <4C066519.9030204@semihalf.com> Date: Wed, 02 Jun 2010 16:05:13 +0200 From: Jakub Klama User-Agent: Thunderbird 2.0.0.23 (X11/20100324) MIME-Version: 1.0 To: freebsd-embedded@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: pyunyh@gmail.com Subject: Booting over NFS - PHY autonegotiation issues 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, 02 Jun 2010 14:20:36 -0000 Hi, We have a problem booting FreeBSD from NFS root after upgrade to newest HEAD on Marvell 88F6281 (using driver mge) and Freescale MPC8572 (using driver tsec). Problem is related to changes in sys/net/route.h (RT_LINK_IS_UP macro) and PHY autonegotation, similar to: http://lists.freebsd.org/pipermail/freebsd-ppc/2010-March/004134.html Here's output from Marvell 88F6281: #v+ (...) WARNING: WITNESS option enabled, expect reduced performance. WARNING: DIAGNOSTIC option enabled, expect reduced performance. Root mount waiting for: usbus0 uhub0: 1 port with 1 removable, self powered Trying to mount root from nfs:10.0.0.201:/nfsroot/mv6281-2/ krpc_call: sosend: 65 NFS_ROOT: NFSv3 mount failed (error: 65). Trying NFSv2 ... krpc_call: sosend: 65 nfs_mountroot: md_mount(): 65 ROOT MOUNT ERROR: If you have invalid mount options, reboot, and first try the following from the loader prompt: set vfs.root.mountfrom.options=rw and then remove invalid mount options from /etc/fstab. Trying to mount root from nfs: ifaddr cache = 0xc3e18500 is deleted nfs_mountroot: RTM_ADD: 17 ROOT MOUNT ERROR: (...) #v- We've managed changes that prevents restarting autonegotiation and allows to boot from NFS correctly, based on investigating other PHY drivers (such as rlphy) and mii_phy_setmedia(): on Marvell (mge/e1000phy): #v+ --- a/sys/dev/mii/e1000phy.c +++ b/sys/dev/mii/e1000phy.c @@ -349,7 +349,9 @@ e1000phy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) break; if (IFM_SUBTYPE(ife->ifm_media) == IFM_AUTO) { - e1000phy_mii_phy_auto(esc); + if ((PHY_READ(sc, MII_BMCR) & BMCR_AUTOEN) == 0 || + (sc->mii_flags & MIIF_FORCEANEG)) + e1000phy_mii_phy_auto(esc); break; } #v- and on MPC8572 (tsec/ciphy): #v+ --- a/sys/dev/mii/ciphy.c +++ b/sys/dev/mii/ciphy.c @@ -176,13 +176,12 @@ ciphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) switch (IFM_SUBTYPE(ife->ifm_media)) { case IFM_AUTO: -#ifdef foo /* * If we're already in auto mode, just return. */ if (PHY_READ(sc, CIPHY_MII_BMCR) & CIPHY_BMCR_AUTOEN) - return (0); -#endif + break; + (void) mii_phy_auto(sc); break; #v- Is this preferred way to fix this issue? Of course, with this fix, manually restarting autonegotiation using 'ifconfig mge0 media auto' doesn't work - but it doesn't work also on other PHY's (we've tested it on rl/rlphy). -- Jakub Klama. From owner-freebsd-embedded@FreeBSD.ORG Thu Jun 3 12:45:08 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9507106567A for ; Thu, 3 Jun 2010 12:45:08 +0000 (UTC) (envelope-from nickmessages@inbox.ru) Received: from fallback4.mail.ru (fallback4.mail.ru [94.100.176.42]) by mx1.freebsd.org (Postfix) with ESMTP id 71FEB8FC15 for ; Thu, 3 Jun 2010 12:45:08 +0000 (UTC) Received: from mx34.mail.ru (mx34.mail.ru [94.100.176.48]) by fallback4.mail.ru (mPOP.Fallback_MX) with ESMTP id 4E6FC200B530 for ; Thu, 3 Jun 2010 16:28:46 +0400 (MSD) Received: from [82.209.212.241] (port=20173 helo=[82.209.212.241]) by mx34.mail.ru with psmtp id 1OK9WC-000CcI-00 for freebsd-embedded@freebsd.org; Thu, 03 Jun 2010 16:27:29 +0400 Date: Thu, 3 Jun 2010 15:26:27 +0300 From: "N.Rybakov" Organization: BTEU X-Priority: 3 (Normal) Message-ID: <498067465.20100603152627@inbox.ru> To: freebsd-embedded@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable X-Mras: Ok Subject: picoBSD building problem X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "N.Rybakov" List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2010 12:45:08 -0000 I have a problem when building an image picobsd.bin in /usr/src/release/picobsd tree on FreeBSD 7.3-STABLE. After starting shell script /usr/src/release/picobsd/build/picobsd I got message (in tail): . . . + find -type f ( -name libc.so.7 -o -name libcrypt.so.4 -o -name libedit.so.6 -o -name libkvm.so.4 -o -name libm.so.5 -o -name libncurses.so.7 -o -name libufs.so4 -o -name libutil.so.7 -o -name libz.so.4 ) find: illegal option -- t find: illegal option -- y find: illegal option -- p find: illegal option -- e find: f: No such file or directory + u_libs=3D # Source tree, i.e. /usr/src is fresh (upated regulary via cvsup) I need help! Thanks! From owner-freebsd-embedded@FreeBSD.ORG Thu Jun 3 14:18:53 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 357C81065673 for ; Thu, 3 Jun 2010 14:18:53 +0000 (UTC) (envelope-from nickmessages@inbox.ru) Received: from fallback1.mail.ru (fallback1.mail.ru [94.100.176.18]) by mx1.freebsd.org (Postfix) with ESMTP id E5C838FC1B for ; Thu, 3 Jun 2010 14:18:50 +0000 (UTC) Received: from mx48.mail.ru (mx48.mail.ru [94.100.176.62]) by fallback1.mail.ru (mPOP.Fallback_MX) with ESMTP id 120008F249C for ; Thu, 3 Jun 2010 16:29:48 +0400 (MSD) Received: from [82.209.212.241] (port=21727 helo=[82.209.212.241]) by mx48.mail.ru with psmtp id 1OK9YP-000Amf-00 for freebsd-embedded@freebsd.org; Thu, 03 Jun 2010 16:29:46 +0400 Date: Thu, 3 Jun 2010 15:26:27 +0300 From: "N.Rybakov" Organization: BTEU X-Priority: 3 (Normal) Message-ID: <498067465.20100603152627@inbox.ru> To: freebsd-embedded@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable X-Mras: Ok Subject: picoBSD building problem X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "N.Rybakov" List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2010 14:18:53 -0000 I have a problem when building an image picobsd.bin in /usr/src/release/picobsd tree on FreeBSD 7.3-STABLE. After starting shell script /usr/src/release/picobsd/build/picobsd I got message (in tail): . . . + find -type f ( -name libc.so.7 -o -name libcrypt.so.4 -o -name libedit.so.6 -o -name libkvm.so.4 -o -name libm.so.5 -o -name libncurses.so.7 -o -name libufs.so4 -o -name libutil.so.7 -o -name libz.so.4 ) find: illegal option -- t find: illegal option -- y find: illegal option -- p find: illegal option -- e find: f: No such file or directory + u_libs=3D # Source tree, i.e. /usr/src is fresh (upated regulary via cvsup) I need help! Thanks! From owner-freebsd-embedded@FreeBSD.ORG Thu Jun 3 14:22:39 2010 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45496106564A for ; Thu, 3 Jun 2010 14:22:39 +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 09E648FC08 for ; Thu, 3 Jun 2010 14:22:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o53EEjIs055911; Thu, 3 Jun 2010 08:14:46 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 03 Jun 2010 08:14:58 -0600 (MDT) Message-Id: <20100603.081458.913557797367178190.imp@bsdimp.com> To: nickmessages@inbox.ru From: "M. Warner Losh" In-Reply-To: <498067465.20100603152627@inbox.ru> References: <498067465.20100603152627@inbox.ru> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@FreeBSD.org Subject: Re: picoBSD building problem 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, 03 Jun 2010 14:22:39 -0000 In message: <498067465.20100603152627@inbox.ru> "N.Rybakov" writes: : I have a problem when building an image picobsd.bin in : /usr/src/release/picobsd tree on FreeBSD 7.3-STABLE. After : starting shell script : /usr/src/release/picobsd/build/picobsd I got message (in tail): : . : . : . : + find -type f ( -name libc.so.7 -o -name libcrypt.so.4 -o -name : libedit.so.6 -o -name libkvm.so.4 -o -name libm.so.5 -o -name : libncurses.so.7 -o -name libufs.so4 -o -name libutil.so.7 -o -name : libz.so.4 ) : find: illegal option -- t : find: illegal option -- y : find: illegal option -- p : find: illegal option -- e : find: f: No such file or directory : + u_libs= : # : : Source tree, i.e. /usr/src is fresh (upated regulary via cvsup) : I need help! : Thanks! Looks like an environment variable not set. A quick grep of the tree isn't enlightening, however. My suggestion is to check the docs to make sure that you've set all the required variables before building. Maybe DESTDIR? Warner