From owner-freebsd-current@freebsd.org Fri Oct 6 19:47:14 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A457EE40336 for ; Fri, 6 Oct 2017 19:47:14 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1E9BA6D77F for ; Fri, 6 Oct 2017 19:47:13 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) Received: from thor.intern.walstatt.dynvpn.de ([77.180.85.189]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LgptO-1dTzB81Bhe-00oJn9; Fri, 06 Oct 2017 21:47:04 +0200 Date: Fri, 6 Oct 2017 21:46:57 +0200 From: "O. Hartmann" To: Warner Losh Cc: "O. Hartmann" , FreeBSD CURRENT Subject: Re: r324353: boot failure: failed with error 19 Message-ID: <20171006214657.3dc4f2f6@thor.intern.walstatt.dynvpn.de> In-Reply-To: References: <20171006151008.04af417d@thor.intern.walstatt.dynvpn.de> Organization: WALSTATT User-Agent: OutScare 3.1415926 X-Operating-System: ImNotAnOperatingSystem 3.141592527 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/WuK_BzX0dMrO9H.2caqcyA3"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:atk3V5Gkk1VHRuwMit42siXRw2eKHVXgG9nD9W7heq6frcbD9DE PhMTazDVtjEn0iAF2wPDVHL24xQLDRokrWyrpgBWbrizHHDeYDaAK0REkgdaqfNzT94Ca27 Wj4vvI+mBmofVoY7dBwdglxpbZQe2Df4xXRoXoVg1yBKtnZdYehiXdReyA7HoUb0irzHDDy 41ot80MKl2h1e8ZcR1bDA== X-UI-Out-Filterresults: notjunk:1;V01:K0:RxhqKX8tsmk=:77SB/3es2jjvyN14I7ZdDp Nu3VNEihPyKOfPKmO8X+9zNMOsUTzU0tmbfo1Or5d0O8zHfgVL+WZt3Qxjq64jsHJyF7Pv68F aiKMr99NdDcvZGiZqBgpFlG2Bogo3xJ1bnufcQ4vC8TeSQBOmEfYW6sa17dmFdqEc5QAbYbyw CiGTldNACfWYOkzF/s1xHnYceLZWIJmTTF6ZNSP1dfzhL9bCxDt3tJxzmZ85GNhFHH+sNzJQF iAyx+1y+gelT5AurbkBgXOCioEAbEKtY4x8slnLQ1MiYAgMkM+i2XHOCmlqJAPsNEjeB04ivB UI5NrQZoSdCuBkAxDstkBiG0geYHCx9ZKK2u9XI1Fs5rqQap5ufkADCA3T6HPcVh38vASShcQ +Qck2sSdppEpmmSI2W1MR7Zj1bL6Z1qtmBT90UwzW/2rN9Lav3BBFf2TSCuupZYCQ+JzULYwO xJmG1uOi7I5zcS3kflyMyI/S9RgNi/upHqva9pyNgoMtjMMOMxfLTADwBcswcbzBtYyw69J+b fEsrmhfWFo9HGXsicgGvi3P4YMeLYw6F4bwGLf2dSa4BTg8LCer58cAzpHAvwp4TO/pQRz8Y5 M6JuQWmP7JMWH/Bj2chehIU3bmJRA672A6DyxpuF/Ao+WJ+t5GL8Qy7fdZshUr/nweZIxLgxu jKD/+Ww0UpBZhAYD0l8CFLqkiWSYEdkj5i6+IfTxCR+SqAkSWYq1r8NPjaFuvNugZfYDgEnMI K24+n5D3XgkD05gAPEt1aETuTLiDMmYobgjbvyCAGqPKd3kBZQ2cZ9OFwpD8ohJ0cLnO9jgji tMLK+kUlefVgWiuRFLvHZkYzbfiAA== X-Mailman-Approved-At: Fri, 06 Oct 2017 20:14:56 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Oct 2017 19:47:14 -0000 --Sig_/WuK_BzX0dMrO9H.2caqcyA3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Am Fri, 6 Oct 2017 07:10:44 -0700 Warner Losh schrieb: > On Fri, Oct 6, 2017 at 6:10 AM, O. Hartmann wrot= e: >=20 > > I run a small appliance on an APU from PCengines. This box is bootet via > > SD card, the > > image is created by a modified NanoBSD, which creates GPT/UEFI > > partitioning and booting > > images. > > > > That worked until two days ago (I do not track the revision numer) when= I > > wrote (via dd) > > the last image out. Today, I tried to boot r324353 and it fails at tthe > > boot loader: > > > > > > mountroot: waiting for device /dev/ufs/dsks1a... > > Mounting from ufs:/dev/ufs/dsks1a failed with error 19. > > =20 >=20 > That's odd... But likely a race.... It could be that dd'ing the new > partition, however, was made from an image that didn't have the proper ufs > label. The images I write out seem to have the correct /dev/gpt/ entries, but the = /dev/ufs entries are missing. Writing labels with glabel produces entries in /dev/l= abel/, but I still miss those in /dev/ufs/. This is more than confusing. >=20 > What's the rev of the last version that worked? As I wrote before, I do not track and since the image has been overwritten,= I do not know. But it isn't older than two days. >=20 > Warner >=20 >=20 > > I can proceed by manually issuing at the loader propmpt > > > > ufs:/dev/gpt/dsks1a > > > > and booting proceeds as expected. > > > > > > Something seems wrong with the UFS labeling lately. > > > > The gpt layout looks like this: > > > > gpart show -l: > > =20 > > =3D> 40 60751792 mmcsd0 GPT (29G) =20 > > 40 130 1 boot (65K) > > 170 6 - free - (3.0K) > > 176 2057288 2 dsks1a [bootme] (1.0G) > > 2057464 2061725 3 dsks2a (1.0G) > > 4119189 1048576 4 dsks3 (512M) > > 5167765 55584067 - free - (27G) > > > > From dmesg. I can provide this last output: > > > > [...] > > mmcsd0: 31GB at mmc0 > > 50.0MHz/4bit/65535-block Trying to mount root from ufs:/dev/ufs/dsks1a > > [ro]... > > uhub0: 4 ports with 4 removable, self powered > > Root mount waiting for: usbus1 > > uhub1: 2 ports with 2 removable, self powered > > Root mount waiting for: usbus1 > > ugen1.2: at usbus1 > > uhub2 on uhub1 > > uhub2: = on > > usbus1 > > uhub2: 4 ports with 4 removable, self powered > > mountroot: waiting for device /dev/ufs/dsks1a... > > Mounting from ufs:/dev/ufs/dsks1a failed with error 19. > > > > Loader variables: > > vfs.root.mountfrom=3Dufs:/dev/ufs/dsks1a > > vfs.root.mountfrom.options=3Dro > > > > Manual root filesystem specification: > > : [options] > > Mount using filesystem > > and with the specified (optional) option list. > > > > eg. ufs:/dev/da0s1a > > zfs:tank > > cd9660:/dev/cd0 ro > > (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) > > > > ? List valid disk boot devices > > . Yield 1 second (for background tasks) > > Abort manual input > > =20 > > mountroot> Trying to mount root from ufs:/dev/ufs/dsk1a\^[[D\^[[D\^[[D\= ^[[Cs =20 > > []... > > mountroot: waiting for device /dev/ufs/dsk1a\^[[D\^[[D\^[[D\^[[Cs... > > random: unblocking device. > > arc4random: no preloaded entropy cache > > Mounting from ufs:/dev/ufs/dsk1a\^[[D\^[[D\^[[D\^[[Cs failed with error > > 19. > > =20 > > mountroot> Invalid file system specification. =20 > > =20 > > mountroot> Trying to mount root from ufs:/dev/gpt/dsks1a []... =20 > > arc4random: no preloaded entropy cache > > GEOM_ELI: Device gpt/swap.eli created. > > GEOM_ELI: Encryption: AES-XTS 128 > > GEOM_ELI: Crypto: hardware > > Link state changed to up > > > > [...] > > > > > > Can someone look into this? > > > > Kind regards, > > > > Oliver > > -- > > O. Hartmann > > > > Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3= =BCr > > Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 = Abs. 4 BDSG). > > =20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" --=20 O. Hartmann Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BCr Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 Abs.= 4 BDSG). --Sig_/WuK_BzX0dMrO9H.2caqcyA3 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWdfdsQAKCRDS528fyFhY lMrWAf9KVGonelLTvdGfisZImVWncva9GmvTbNvPjd39o+JUkVeaP+iEt32KIBi1 s7G6TinCezT2J8qTWC0fcXVLg3G8Af9l37KUlASxRAPdU7Ijo0ZO2sYo3PQ4Tyy8 ElIC8Sku0Ro2er4QScczWIsKw0Pejwkk+M8lfwHVWlVFn3Nrxd+8 =qzwk -----END PGP SIGNATURE----- --Sig_/WuK_BzX0dMrO9H.2caqcyA3--