From owner-freebsd-embedded@freebsd.org Fri Sep 16 15:35:48 2016 Return-Path: <owner-freebsd-embedded@freebsd.org> Delivered-To: freebsd-embedded@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 78740BDD755 for <freebsd-embedded@mailman.ysv.freebsd.org>; Fri, 16 Sep 2016 15:35:48 +0000 (UTC) (envelope-from mike@sentex.net) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 67639E43 for <freebsd-embedded@freebsd.org>; Fri, 16 Sep 2016 15:35:48 +0000 (UTC) (envelope-from mike@sentex.net) Received: by mailman.ysv.freebsd.org (Postfix) id 66B2DBDD754; Fri, 16 Sep 2016 15:35:48 +0000 (UTC) Delivered-To: embedded@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 66638BDD753 for <embedded@mailman.ysv.freebsd.org>; Fri, 16 Sep 2016 15:35:48 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1-64-7-128-1.sentex.ca (smarthost1jail.sentex.ca [IPv6:2607:f3e0:0:c::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 222F1E42 for <embedded@freebsd.org>; Fri, 16 Sep 2016 15:35:47 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (pyroxene.sentex.ca [199.212.134.18]) by smarthost1-64-7-128-1.sentex.ca (8.15.2/8.14.8) with ESMTP id u8GFZkaQ075646 for <embedded@freebsd.org>; Fri, 16 Sep 2016 15:35:47 GMT (envelope-from mike@sentex.net) To: "freebsd-embedded@freebsd.org" <embedded@freebsd.org> From: Mike Tancsa <mike@sentex.net> Subject: mmcsd0 / sdhci issues ? Organization: Sentex Communications Message-ID: <ddb2b000-8f04-91a8-5041-6e697b9564a0@sentex.net> Date: Fri, 16 Sep 2016 11:35:45 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Dedicated and Embedded Systems <freebsd-embedded.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-embedded>, <mailto:freebsd-embedded-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-embedded/> List-Post: <mailto:freebsd-embedded@freebsd.org> List-Help: <mailto:freebsd-embedded-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-embedded>, <mailto:freebsd-embedded-request@freebsd.org?subject=subscribe> X-List-Received-Date: Fri, 16 Sep 2016 15:35:48 -0000 Hi All, We are hoping to start rolling out the newer PC-Engine's APU2s in the near future, but am seeing a lot of sporadic disk errors off the SD cards. Any idea if this is a driver issue ? BIOS issue ? SD card issue ? g_vfs_done():mmcsd0s1a[WRITE(offset=543662080, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=543666176, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=543670272, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=543682560, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=543690752, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=543694848, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=570163200, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=623194112, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=623198208, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=623206400, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=676225024, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=676229120, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=676237312, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=782368768, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=782372864, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=782376960, length=4096)]error = 5 g_vfs_done():mmcsd0s1a[WRITE(offset=808841216, length=4096)]error = 5 sdhci_pci0-slot0: mmcsd0: Got AutoCMD12 error 0x0001, but there is no active command. Error indicated: 1 Timeout sdhci_pci0-slot0: ============== REGISTER DUMP ============== sdhci_pci0-slot0: Sys addr: 0x027cf000 | Version: 0x00001001 sdhci_pci0-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000003 sdhci_pci0-slot0: Argument: 0x000ac19f | Trn mode: 0x00000037 sdhci_pci0-slot0: Present: 0x01ef0000 | Host ctl: 0x00000007 sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000107 sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00000000 sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00fb sdhci_pci0-slot0: AC12 err: 0x00000001 | Slot int: 0x000000ff sdhci_pci0-slot0: Caps: 0x31fe3fb2 | Max curr: 0x00c80064 sdhci_pci0-slot0: =========================================== g_vfs_done():mmcsd0s1a[READ(offset=360882176, length=1536)]error = 5 apart from a reboot via watchdog, is there any way to better recover from this error ? ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-embedded@freebsd.org Fri Sep 16 23:30:05 2016 Return-Path: <owner-freebsd-embedded@freebsd.org> Delivered-To: freebsd-embedded@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 2785BBDD9F2 for <freebsd-embedded@mailman.ysv.freebsd.org>; Fri, 16 Sep 2016 23:30:05 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 0F06B828 for <freebsd-embedded@freebsd.org>; Fri, 16 Sep 2016 23:30:05 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: by mailman.ysv.freebsd.org (Postfix) id 063DCBDD9F0; Fri, 16 Sep 2016 23:30:05 +0000 (UTC) Delivered-To: embedded@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 036BCBDD9EF for <embedded@mailman.ysv.freebsd.org>; Fri, 16 Sep 2016 23:30:04 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A2CC8827 for <embedded@freebsd.org>; Fri, 16 Sep 2016 23:30:04 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) for embedded@freebsd.org with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from <ohartman@zedat.fu-berlin.de>) id <1bl2Zu-001uDD-OB>; Sat, 17 Sep 2016 01:29:54 +0200 Received: from x5ce12eb5.dyn.telefonica.de ([92.225.46.181] helo=thor.walstatt.dynvpn.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) for embedded@freebsd.org with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (envelope-from <ohartman@zedat.fu-berlin.de>) id <1bl2Zu-000sJf-Fq>; Sat, 17 Sep 2016 01:29:54 +0200 Date: Sat, 17 Sep 2016 01:29:49 +0200 From: "O. Hartmann" <ohartman@zedat.fu-berlin.de> To: "freebsd-embedded@freebsd.org" <embedded@freebsd.org> Subject: CURRENT: PCengines APU2C4 SanDisk UltraFit USB 3.0 32G failure: error 19 Message-ID: <20160917012949.64df9887.ohartman@zedat.fu-berlin.de> Organization: FU Berlin X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/WicxzU/6jq8961bpeMPR8OW"; protocol="application/pgp-signature" X-Originating-IP: 92.225.46.181 X-ZEDAT-Hint: A X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Dedicated and Embedded Systems <freebsd-embedded.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-embedded>, <mailto:freebsd-embedded-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-embedded/> List-Post: <mailto:freebsd-embedded@freebsd.org> List-Help: <mailto:freebsd-embedded-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-embedded>, <mailto:freebsd-embedded-request@freebsd.org?subject=subscribe> X-List-Received-Date: Fri, 16 Sep 2016 23:30:05 -0000 --Sig_/WicxzU/6jq8961bpeMPR8OW Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Trying to use a SanDisk 32GB UltraFit USB 3.0 Flash drive as boot device wi= th a PCengine APU2C4, booting recent CURRENT (r305893) fails with error 19: [...] ugen1.2: <vendor 0x0438> at usbus1 uhub2 on uhub1 uhub2: <vendor 0x0438 product 0x7900, class 9/0, rev 2.00/0.18, addr 2> on = usbus1 ugen0.2: <SanDisk> at usbus0 umass0 on uhub0 umass0: <SanDisk Ultra Fit, class 0/0, rev 2.10/1.00, addr 1> on usbus0 umass0: SCSI over Bulk-Only; quirks =3D 0xc100 umass0:2:0: Attached to scbus2 uhub2: 4 ports with 4 removable, self powered mountroot: waiting for device /dev/ufs/Rs1a... Mounting from ufs:/dev/ufs/Rs1a failed with error 19. The very same NanoBSD image put to SD or USB 2.0 flash drive does boot! I tried tinyLinux with the same flash drive and it worked.=20 Are there any hints how to make this flash drive work? Kind regards, oh --Sig_/WicxzU/6jq8961bpeMPR8OW Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJX3IBtAAoJEOgBcD7A/5N8zL4H/02Ze2P6rzi/Fv/TJ43u7A0v 8FaHrpDYo+7k0SSaQakZUCg12/zbywqt0ADd2CjIb2uQs8GkFl2s6tOgbUWA5SnS T1/cs+3ZfYrjVjM9F0iw1272MWNUsgFiqDikvYwds898KKiW7Ly0DHDLQrPXNU+1 Dbrsf21MaCXwN7RkbqhlokrIE01KXZ22UKl27CO9CSWDKSVUBGnKXtLH46ZjSbn0 +czMVVYau7t50ndltym94TenNRUbZBCo/ccokt5EnkARaUctgabSf8R7jGE+QB20 nvneI4EIzpJrv6wSFAysnBQIBzSpZerH3DQIKJvTbYIzTsTVYIprECxcz29Owaw= =vBTo -----END PGP SIGNATURE----- --Sig_/WicxzU/6jq8961bpeMPR8OW--