From owner-freebsd-arm@freebsd.org Sun Aug 19 13:25:25 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5239108C971 for ; Sun, 19 Aug 2018 13:25:25 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic315-8.consmr.mail.gq1.yahoo.com (sonic315-8.consmr.mail.gq1.yahoo.com [98.137.65.32]) (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 3A3EA75855 for ; Sun, 19 Aug 2018 13:25:25 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: BafFRMoVM1lc5n784nr710ssEzVpDxyxkIIjmnLoYzRWh_kVL7ImM_6TLhvcEp6 vC8rcIJR3HKJTqgNBA1EmGEr73LKFK4lloNSjOUstQZIQ_QsKDC.kRwqV2uEcLnlJ5rsgpbbDLhR _m.biOIBfkAlWygiwhFVKsQqUw99YIiDyynT2WRZuJMObrrKormehrtxLT7YzvKWisnFZorYkRh. gKT3Ok74VgEgtoG2d3OEOhloGAWQ.riss4T.Sj7ZL0cvixk3wxw6vVr2te58yoxuBXrSJtvLZZfO lKDw52JeVsY.oVYWeva7z4xzcrJv2Rb.LACkPxp61jkXJOCi6PJgp5s.nLL5ok2oDaOZxPSEe5Z4 8.zPyfXU2PQjenux4J7AoDT2.l1bpmztaB2DLaSqXF7qm_rRIQ0b_cxYP_kl9oNELSLqM9FIKmk4 fYSCsHG5gWLzcZe9RxIA_Jtxl7XhpjI8SgjvnDV.zrO._rBF65lvSfACXRatPW81PQ0MZc7vwxF5 rZoNHIuSzhUR_7.Ci2scEyog.dxYaotBDMaWVfj4F.HTSQxdcziNZyQtH8bteDJZZHpjE68yhV9h .HdxC_ZuuqDzT04zx3DZ8jzfxCPCsSirN3DZAdSiOOCI5ojUrLLk5sn2Dzq3aRdXFWWrM6MjJpLB Le2fDSfi3FzcfMm1nznJ0lpCXbN.RGsTeMjRiL4WEMjtYYsB_XNJ6QvTZhWJBClf6RZ9cmoLv55O kbbFU0pNq_WYkqvzQ.2tP6lmg73ez7mPADz6APCAAScLNOfTuOy6Tv4jD4m6sUYAjQiORPYHfWBC EYrTCoLbMXH01bYqpbIpS.dpSp1A9ujJdScTNRpDzAgXSZztT1CJ6fMYwOl0K9FhPXmgQ1oSPtDx kvbZPXql97qhvbRZLmJ6_SKl7sSQF8e26gu7_DIxxuYyyyJqtmkcgy6mWvnqgIJhBmPprEiHigzA cN5dk.s2WHBBx0zjVmlIaM9ITsjtyKTf.pFbzOg7xUxzUnOAMqGfl8DcjgunDjTg9o_9r.QQAexT YUfbM_nh1 Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Sun, 19 Aug 2018 13:25:22 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp422.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 633137caaf37996875aa90789cbcca87; Sun, 19 Aug 2018 13:15:12 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: [PINE64] mmcsd0: aw_mmc0: Error indicated From: Mark Millard In-Reply-To: <20180819141538.1eb442ef@thor.intern.walstatt.dynvpn.de> Date: Sun, 19 Aug 2018 06:15:11 -0700 Cc: "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <20180819141538.1eb442ef@thor.intern.walstatt.dynvpn.de> To: "O. Hartmann" X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Aug 2018 13:25:25 -0000 On 2018-Aug-19, at 5:15 AM, O. Hartmann wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 >=20 > Running 12-CURRENT for a while now on a PINE64+, 2GB RAM from SD, I = face since months > those errors regarding the aw_mmc controller: >=20 > [...] >=20 > aw_mmc0: controller timeout > aw_mmc0: timeout updating clock > mmcsd0: Error indicated: 1 Timeout > g_vfs_done():ufs/rootfs[WRITE(offset=3D3281551360, length=3D4096)]error = =3D 5 > aw_mmc0: controller timeout > aw_mmc0: timeout updating clock > mmcsd0: Error indicated: 1 Timeout > g_vfs_done():ufs/rootfs[WRITE(offset=3D3282788352, length=3D4096)]error = =3D 5 > aw_mmc0: controller timeout > aw_mmc0: timeout updating clock > mmcsd0: Error indicated: 1 Timeout > g_vfs_done():ufs/rootfs[WRITE(offset=3D3283681280, length=3D32768)]error= =3D 5 >=20 > [...] >=20 > ... and a while, the system ic completely stuck and needs hard reset. >=20 > I can remember this error since I played around with 12-CURRENT on the = PINE64 and that is > on various revisions since December 2017. >=20 > Is this related to some known issues or could this be related to my = hardware? >=20 > System is: >=20 > FreeBSD 12.0-CURRENT #13 r336753: Fri Jul 27 06:02:30 CEST 2018 arm64 >=20 > I have a custom-built kernel with some add-ons like IPFW. >=20 [These notes are based on a normal sdcard, not my historical e.MCC on an adapter. The e.MMC context no longer directly boots.] I've been running head -r337400 with then-modern: A) /boot/efi/dtb/ (/boot/efi being a mount of the msdosfs, dtb/ being copy of target media's UFS /boot/dtb/ ) B) /boot/efi/EFI/BOOT/bootaa64.efi (copy of . . ./stand/efi/loader/loader.efi from the build tree) and with -r476715 /usr/port 's: C) sysutils/u-boot-pine64 (via /usr/local/share/u-boot/u-boot-pine64/u-boot-sunxi-with-spl.bin = dd'd) My boot sdcard has a full installworld installkernel but I normally have its /etc/fstab edited to redirect the root file system (and swap = partition) to a USB drive. But I've had no operational troubles so far when booted to the sdcard = (via an edit if its /etc.fstab file to self-reference the root file system). For reference: mmcsd0: 32GB MFG 07/2017 by 3 SD> at mmc0 = 50.0MHz/4bit/32768-block The kernel is from: # more /usr/src/sys/arm64/conf/GENERIC-NODBG=20 # # GENERIC -- Custom configuration for the arm64/aarch64 # include "GENERIC" ident GENERIC-NODBG makeoptions DEBUG=3D-g # Build kernel with gdb(1) = debug symbols options ALT_BREAK_TO_DEBUGGER options KDB # Enable kernel debugger support # For minimum debugger support (stable branch) use: #options KDB_TRACE # Print a stack trace for a = panic options DDB # Enable the kernel debugger # Extra stuff: #options VERBOSE_SYSINIT # Enable verbose sysinit = messages #options BOOTVERBOSE=3D1 #options BOOTHOWTO=3DRB_VERBOSE #options KTR #options KTR_MASK=3DKTR_TRAP ##options KTR_CPUMASK=3D0xF #options KTR_VERBOSE # Disable any extra checking for. . . nooptions DEADLKRES # Enable the deadlock resolver nooptions INVARIANTS # Enable calls of extra sanity = checking nooptions INVARIANT_SUPPORT # Extra sanity checks of = internal structures, required by INVARIANTS nooptions WITNESS # Enable checks to detect = deadlocks and cycles nooptions WITNESS_SKIPSPIN # Don't run witness on spinlocks = for speed nooptions DIAGNOSTIC nooptions MALLOC_DEBUG_MAXZONES # Separate malloc(9) zones nooptions BUF_TRACKING nooptions FULL_BUF_TRACKING Notes: I do get the two messages during boot: mmc0: ACMD42 failed, RESULT: 4 mmc0: Card at relative address 43690 failed to set bus width but things seem to be operating fine. Because of my use of WITHOUT_BINTUTILS for buildworld buildkernel I added: BUILD_DEPENDS+=3D objdump:devel/binutils to: /usr/ports/sysutils/u-boot-master/Makefile in order for sysutils/u-boot-pine64 to build under poudriere-devel . =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)