From owner-freebsd-current@freebsd.org Sat Dec 30 20:03:27 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 ABA05EA9EA5 for ; Sat, 30 Dec 2017 20:03:27 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6E9206A4F2 for ; Sat, 30 Dec 2017 20:03:27 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [93.209.229.136] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1eVNLi-0005Q5-Ox; Sat, 30 Dec 2017 21:03:18 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id vBUK3IBs074607 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 30 Dec 2017 21:03:18 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id vBUK3Hor074606; Sat, 30 Dec 2017 21:03:17 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sat, 30 Dec 2017 21:03:17 +0100 From: Matthias Apitz To: freebsd-current@freebsd.org Subject: panic: invalid bcd 194 Message-ID: <20171230200317.GA74180@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw" Content-Disposition: inline X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.209.229.136 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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: Sat, 30 Dec 2017 20:03:27 -0000 --wac7ysb48OaltWcw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I've got an older Acer C720 with r314251, which was not booted for some tim= e, and now panics on boot, also in single user mode, saying: =2E.. Dec 30 19:54:26 c720-r314251 kernel: ada0: Command Queueing enabled Dec 30 19:54:26 c720-r314251 kernel: ada0: 244198MB (500118192 512 byte sec= tors) Dec 30 19:54:26 c720-r314251 kernel: WARNING: WITNESS option enabled, expec= t reduced performance. Dec 30 19:54:26 c720-r314251 kernel: Trying to mount root from ufs:/dev/ada= 0p2 [rw,noatime]... panic: invalid bcd 194 =2E.. The message comes from=20 $ find * -type f -exec fgrep "invalid bcd" {} /dev/null \; sys/sys/libkern.h: ("invalid bcd %d", bcd)); $ vim sys/sys/libkern.h =2E.. #define LIBKERN_LEN_BCD2BIN 154 #define LIBKERN_LEN_BIN2BCD 100 #define LIBKERN_LEN_HEX2ASCII 36 static inline u_char bcd2bin(int bcd) { KASSERT(bcd >=3D 0 && bcd < LIBKERN_LEN_BCD2BIN, ("invalid bcd %d", bcd)); return (bcd2bin_data[bcd]); } Any idea what could be damaged the system and what to do or check before re-setup? Thanks matthias --=20 Matthias Apitz, =E2=9C=89 guru@unixarea.de, =E2=8C=82 http://www.unixarea.d= e/ =F0=9F=93=B1 +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub --wac7ysb48OaltWcw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXmn7rBYYViyzy/vBR8z35Hb+nREFAlpH8QIACgkQR8z35Hb+ nRFTThAAh9D2ANmelr072ySVT4+CBysxZONDB3RcsWj3fk4sq2t+EY6aXf5xUiCw X+ezqZBC7BoJCJJg/jl7wXylWVgd17XqulGUGPGpyeLuVlyHdM4OVJmtCdNumEz4 UTy3n9NyPrK4wooU/TSnyBU1x1e+LwRKtVjQwCSbNHV/CksrG4qDXK/efOof2V3B BYxEsQDcybLFa7QEGCugcntLziALGCnU1PDjt0hPdXHF50i6AuD4lX7pvUlMcx8C Lz3CnMal1Eh4opVC6o2QssjnlBMnNIVwJc3u3ooKukaMPCKV56IlZznaD5IxaQLs zuBmvZGcpGXR6RMHaSm2Ak+STV+bue7C9hjYV88Z/nhOMQBjcvTgNcJtO9Z9lWda gssD66s7MYPmBdrCTZD+uXspuG9CBkOL07LD9OLe7H2lTf7Mi1HRrCeIXwHrSn8T dZ7Bw6ApfY3uMKsyflpdrBOuic1VDJ0BNfSoSLd+nuKJFCEijeL8QQEKCzmACtyS fXAP11NTPEvIdR6oPfptanOzqGTTrAlS+b3YORr8PONO8lhzpBISdPE1EPq/vkNr 4U8ozkW4zyOl9CrqmBNC8pnyHOMpiDSmEVwECng/3P2a6/qz+Dkix4ajOQtqS0Dd rQgmlUBNoBSWgyjO2a8McHZ5Q40XLRai5S1V6KrhTil0TCiPNnM= =v9VN -----END PGP SIGNATURE----- --wac7ysb48OaltWcw--