From owner-freebsd-arm@FreeBSD.ORG Mon Mar 9 15:44:59 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 86012131 for ; Mon, 9 Mar 2015 15:44:59 +0000 (UTC) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5194BB90 for ; Mon, 9 Mar 2015 15:44:59 +0000 (UTC) Received: by pdbnh10 with SMTP id nh10so69915721pdb.4 for ; Mon, 09 Mar 2015 08:44:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=f5cczlCEEiMEL33lABXy2AbNyGq48oOw48CueVFoeLU=; b=QzH9+8mK7AveGF4PVb/gTxfEXvcyYz6IbQ9QPoU8CwI6OHNtKrHDRqENRvZHSvRgXM t3RejRQ6MRD7tvzhk+RqUDEJyNIaG5Lq68au7ba8Nps9+WHTyhl5lp98pQzJKe2dcQHh VPWlvrWKguy/91LEGlacIXWdVq6KTLYlNCt2WyzAzvuWqBZG6d9p5bDP31yuTQEGKqpl /yuBjd51RLO8mFbLzjy1s52UIcBM6jPAdQu1OqmqGFXbkRUg3nYvl4fuOOYrzWOc34A/ JD3H5TUWuznu2/w1xcwv92VCB6e3bGvBq9ccc11XYK+4vAjIOIqXEtsy3OhLBsbXrB1c c+2A== X-Gm-Message-State: ALoCoQlYNsbE9Z//2qPf5/NIhh36RIPmRokeHepl85eaEoQeEgF5fq2PZKw2PcdYZKRaKpnMBzHg X-Received: by 10.66.140.39 with SMTP id rd7mr54393068pab.25.1425915892522; Mon, 09 Mar 2015 08:44:52 -0700 (PDT) Received: from [10.64.24.161] ([69.53.236.236]) by mx.google.com with ESMTPSA id ci17sm19799310pdb.70.2015.03.09.08.44.50 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Mar 2015 08:44:51 -0700 (PDT) Sender: Warner Losh Subject: Re: Oddness with GPT labels on boot Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_3C53E8B7-C77B-4C4D-966C-D45F19643195"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b5 From: Warner Losh In-Reply-To: <70014E4C-FB67-427C-876E-B646EA0B1AA7@gromit.dlib.vt.edu> Date: Mon, 9 Mar 2015 09:44:48 -0600 Message-Id: <4BA1E952-1CD6-4060-8EC5-6EF6272ACDEE@bsdimp.com> References: <20150308221139.687c8f3a@ivory.wynn.com> <70014E4C-FB67-427C-876E-B646EA0B1AA7@gromit.dlib.vt.edu> To: Paul Mather X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2015 15:44:59 -0000 --Apple-Mail=_3C53E8B7-C77B-4C4D-966C-D45F19643195 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Mar 9, 2015, at 8:31 AM, Paul Mather = wrote: >=20 > On Mar 8, 2015, at 10:11 PM, Brett Wynkoop = wrote: >=20 >> Greeting- >>=20 >> So just updated my kernel sources and now I have this oddness = happening: >>=20 >> No suitable dump device was found. >> Starting file system checks: >> /dev/mmcsd0s2a: FILE SYSTEM CLEAN; SKIPPING CHECKS >> /dev/mmcsd0s2a: clean, 560326 free (12950 frags, 68422 blocks, 0.7% >> fragmentation) ugen1.2: at usbus1 >> umass0: on >> usbus1 umass0: SCSI over Bulk-Only; quirks =3D 0xc100 >> umass0:0:0: Attached to scbus0 >> da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 >> da0: Removable Direct Access SCSI-5 device >> da0: Serial Number 4C532000071129119192 >> da0: 40.000MB/s transfers >> da0: 15267MB (31266816 512 byte sectors: 255H 63S/T 1946C) >> da0: quirks=3D0x2 >> Can't stat /dev/gpt/bbexport: No such file or directory >> Can't stat /dev/gpt/bbexport: No such file or directory >> THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY: >> ufs: /dev/gpt/bbexport (/export) >> Unknown error; help! >> ERROR: ABORTING BOOT (sending SIGTERM to parent)! >> Mar 8 22:04:47 init: /bin/sh on /etc/rc terminated abnormally, going >> to single user mode Enter full pathname of shell or RETURN for = /bin/sh: >> # fsck -p >> /dev/mmcsd0s2a: FILE SYSTEM CLEAN; SKIPPING CHECKS >> /dev/mmcsd0s2a: clean, 560326 free (12950 frags, 68422 blocks, 0.7% >> fragmentation) /dev/gpt/bbexport: FILE SYSTEM CLEAN; SKIPPING CHECKS >> /dev/gpt/bbexport: clean, 3375570 free (114 frags, 421932 blocks, = 0.0% >> fragmentation) >> # >>=20 >> Note I did nothing more than run fsck -p as soon as I was at >> the /bin/sh prompt. >>=20 >> # uname -a >> FreeBSD 11.0-CURRENT FreeBSD 11.0-CURRENT #6 r279797: Sun Mar 8 >> 21:22:04 EDT 2015 >> wynkoop@beaglebone.wynn.com:/usr/src/sys/arm/compile/BB-BEW arm >> # >>=20 >> Before this kernel I had no problem with the filesystem being checked >> and mounting at boot. >>=20 >> I have not rebuilt world, but I am at a loss as to how that could be >> the problem. Note above that it said it could not >> find /dev/gpt/bbexport. >>=20 >> I have even put the late param in /etc/fstab for /dev/gpt/bbexport to >> see if that would help. >=20 >=20 > One thing that caught me very recently is that when the DTrace code = went in, the BEAGLEBONE kernel config file also grew this line: >=20 > makeoptions MODULES_OVERRIDE=3D"opensolaris dtrace dtrace/lockstat = dtrace/profile dtrace/fbt" >=20 >=20 > That has the effect of only building those modules. If, like me, you = were using GEOM labels (which, from the above, it looks like you are = using GPT labels), via the geom_label module, then you'd get some = breakage with any new kernel, as the /dev/gpt devices would not appear = and your file systems would not be mountable. :-( >=20 > If you rely on the vanilla BEAGLEBONE kernel then this might be your = problem. >=20 > So, I suggest you either comment that out (and revert to building all = modules) or add a nomakeoptions somewhere. (I use another kernel config = file that includes BEAGLEBONE and then disables some things via = nooptions and nomakeoptions.) Or grab r279814 where I change the bogus MODULES_OVERRIDE to the correct = MODULES_EXTRA. We want to add dtrace to BEAGLEBONE, not only build = dtrace. Warner --Apple-Mail=_3C53E8B7-C77B-4C4D-966C-D45F19643195 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJU/b/wAAoJEGwc0Sh9sBEALxoQAL+mpYHN7E5qY8kUKG5BUsey te7UvBlB2Iq3w6Fu3MlmgWFpn00qTcOeILbfX02uVQoTYKhtEiobv0hx/GtNKZ8J WdWbtkE23ULtBkApNU6pARC+B09yhTmuYttN0QG5sPfzX/gO+uOrvj8U8nKnT9or vJ9SOX+nix9HfwqVPZiqma1MvGhCyvlaUqHGNWBkaJ5OKwYdY2L+C86aLCbQK8RK 48y7jgjnStFfjt8WhEHcLeBDjz4aniMzCyvi5RWo35ZEkQTt3MGIJ1hNLT8IqbFd 5GcXAoV8qJ4N4j4LmLlxo20Mm6UdvbHGPXK5VlIUlXzgi64Gs0rtIs8YWWnMFVS7 8e40fm0Yb/B4B4/kutSQv7Lll1KHnbBz1+JvnKiI7XINxJdNRdMCZlXXuU3vga0h kiXDvf093BybOx0n3WClKdtBpy8q7dsjY55p5A8dHaLjgLEohjrOyL66bLSoiWsv 0uMFHf2/cE5nLJ+Cw72PayIzosPmvW4IpvfRJ2rZT102eyTUHL22xOf+SzDZbiZn 57g5lbpe1ir0NN4/aM2xYoghHDpZIcRuqFQ+rkcQaUAMAUAKTYnmckCuDblNti1C o9xfRZpWbqh2UWguBz63WKKVnQRb4cbpbDZau+atscLi+qPgUjBvCHjW5wb1ndf5 /nPuqVy+bpbWj2CcKoiJ =C3GM -----END PGP SIGNATURE----- --Apple-Mail=_3C53E8B7-C77B-4C4D-966C-D45F19643195--