From owner-freebsd-arm@freebsd.org Mon Aug 6 10:44:30 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 5EDFC1052FED for ; Mon, 6 Aug 2018 10:44:30 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BCD1072AF6 for ; Mon, 6 Aug 2018 10:44:29 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 7bafa1ba; Mon, 6 Aug 2018 12:44:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=GR5XQdtGK9mkdionqYsqKohdWko=; b=J7H+Jm+GqzN7I0QEF08F0sueg/yq qSnqrXXqBaOgIt84mrFQt2h13vWOaCRpyepvEhut05P+oKepx2UWxZxgBMJWwxiv vXWlyaB640sgGx3GTmsJ/9pVM65NQChj7ALsBpD3fmoWzKyHm7uwzPy0G93Eop9y dnB8KZxegp9f5Uk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=b9VNw3tpeaHsVONTSKuvCR+d2JM5qCuc36KGlJhmcHOV67yGDZTgoprg kFiFRZR2DxmWDLZh3NCEOIjAMftQaaZQvg3fNSFp+jywbkMz0WGnvxpiOStBiKtL QTW9nMZXnRKj7Kc3L8V2BG4sakb4GNlFA94qCBdXpdEm+wwHST8= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 25d8e745 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 6 Aug 2018 12:44:22 +0200 (CEST) Date: Mon, 6 Aug 2018 12:44:21 +0200 From: Emmanuel Vadot To: Mark Millard Cc: Mark Millard via freebsd-arm Subject: Re: Attempted large jump to head -r337347 for pine64+ 2GB did not finish the boot: eventual MMC handling problems before root file system is mounted Message-Id: <20180806124421.0b622761272370d2946cac29@bidouilliste.com> In-Reply-To: <0918383D-5A5A-40A0-ADCB-08C500153BE1@yahoo.com> References: <0918383D-5A5A-40A0-ADCB-08C500153BE1@yahoo.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Mon, 06 Aug 2018 10:44:30 -0000 On Mon, 6 Aug 2018 02:48:57 -0700 Mark Millard via freebsd-arm wrote: > I amd64 -> aarch64 cross built -r337347 and installed it > (and 2018.07 u-boot-sunxi-with-spl.bin and loader.efi as > bootaa64.efi) as an update. My attempted synchronization > of loader.conf and ttys and devd.conf may be incorrect. > (Previous to this the Pine64+ 2GB seemed to be working > okay but it was at a very old build.) > > The kernel config has GENERIC included but the various > debug features disabled. (My typical operating > environment.) > > For all I know what the below shows might be expected > at this point. The kernel seems to have problems with > the MMC (that the kernel was loaded from). No other > media are attached. mmcsd0 is really an 128 GiByte > emmc on an adapter. (This historically worked for me.) emmc to sd ? that's weird ... Can you boot -v and post the result please ? > Still, the below may give other general hints about the > status of things for Pine64+ 2GB's. > > The serial console shows . . . > > U-Boot SPL 2018.07 (Aug 02 2018 - 18:42:28 +0000) > DRAM: 2048 MiB > Trying to boot from MMC1 > > > U-Boot 2018.07 (Aug 02 2018 - 18:42:28 +0000) Allwinner Technology > > CPU: Allwinner A64 (SUN50I) > Model: Pine64+ > DRAM: 2 GiB > MMC: SUNXI SD/MMC: 0 > Loading Environment from FAT... *** Warning - bad CRC, using default environment > > Failed (-5) > In: serial > Out: serial > Err: serial > Net: phy interface7 > eth0: ethernet@1c30000 > starting USB... > USB0: USB EHCI 1.00 > USB1: USB OHCI 1.0 > scanning bus 0 for devices... 1 USB Device(s) found > scanning usb for storage devices... 0 Storage Device(s) found > Hit any key to stop autoboot: 0 > switch to partitions #0, OK > mmc0(part 0) is current device > Scanning mmc 0:1... > Found EFI removable media binary efi/boot/bootaa64.efi > libfdt fdt_check_header(): FDT_ERR_BADMAGIC > Scanning disks on usb... > Disk usb0 not ready > Disk usb1 not ready > Disk usb2 not ready > Disk usb3 not ready > Scanning disks on mmc... > MMC Device 1 not found > MMC Device 2 not found > MMC Device 3 not found > Found 3 disks > 477384 bytes read in 25 ms (18.2 MiB/s) > libfdt fdt_check_header(): FDT_ERR_BADMAGIC > ## Starting EFI application at 40080000 ... > Consoles: EFI console > FreeBSD/arm64 EFI loader, Revision 1.1 > > Command line arguments: loader.efi > EFI version: 2.70 > EFI Firmware: Das U-Boot (rev 0.00) > Console: efi (0) > Load Path: /\efi\boot\bootaa64.efi > Load Device: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(1,0x01,0,0x403b,0x1ffe0) > Trying ESP: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(1,0x01,0,0x403b,0x1ffe0) > Setting currdev to disk0p1: > Trying: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(2,0x01,0,0x24400,0xe600000) > Setting currdev to disk0p2: > Loading /boot/defaults/loader.conf > /boot/kernel/kernel text=0x8ce84a data=0x148020+0x72caac syms=[0x8+0x11d000+0x8+0x1108a8] > /boot/entropy size=0x1000 > /boot/kernel/umodem.ko text=0x2168 text=0x1410 data=0x102d0+0xfd40 syms=[0x8+0xf30+0x8+0xb73] > > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel]... > Using DTB provided by EFI at 0x47ffc000. > EHCI failed to shut down host controller. > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2018 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 12.0-CURRENT r337347M arm64 > FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1) > VT: init without driver. > KLD file umodem.ko is missing dependencies > Starting CPU 1 (1) > Starting CPU 2 (2) > Starting CPU 3 (3) > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > random: unblocking device. > random: entropy device external interface > MAP 47fff000 mode 2 pages 1 > MAP 48003000 mode 2 pages 1 > MAP b8f20000 mode 2 pages 1 > MAP bdfb9000 mode 2 pages 2 > kbd0 at kbdmux0 > ofwbus0: > clk_fixed0: on ofwbus0 > clk_fixed1: on ofwbus0 > clk_fixed2: on ofwbus0 > simplebus0: on ofwbus0 > ccu_a64ng0: mem 0x1c20000-0x1c203ff on simplebus0 > iichb0: mem 0x1c2b000-0x1c2b3ff irq 21 on simplebus0 > iicbus0: on iichb0 > regfix0: on ofwbus0 > ccu_sun8i_r0: mem 0x1f01400-0x1f014ff on simplebus0 > psci0: on ofwbus0 > gic0: mem 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 23 on simplebus0 > gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 224 > gpio0: mem 0x1c20800-0x1c20bff irq 12,13,14 on simplebus0 > gpiobus0: on gpio0 > gpio1: mem 0x1f02c00-0x1f02fff irq 26 on simplebus0 > gpiobus1: on gpio1 > generic_timer0: irq 0,1,2,3 on ofwbus0 > Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 > Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 > rtc0: mem 0x1f00000-0x1f00053 irq 24,25 on simplebus0 > rtc0: registered as a time-of-day clock, resolution 1.000000s > awusbphy0: mem 0x1c19400-0x1c19413,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803 on simplebus0 > cpulist0: on ofwbus0 > cpu0: on cpulist0 > cpu1: on cpulist0 > cpu2: on cpulist0 > cpu3: on cpulist0 > aw_mmc0: mem 0x1c0f000-0x1c0ffff irq 4 on simplebus0 > mmc0: on aw_mmc0 > ehci0: mem 0x1c1b000-0x1c1b0ff irq 10 on simplebus0 > usbus0: EHCI version 1.0 > usbus0 on ehci0 > ohci0: mem 0x1c1b400-0x1c1b4ff irq 11 on simplebus0 > usbus1 on ohci0 > gpioc0: on gpio0 > uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 15 on simplebus0 > uart0: console (115384,n,8,1) > iic0: on iicbus0 > gpioc1: on gpio1 > syscon_generic0: mem 0x1c00000-0x1c00fff on simplebus0 > awg0: mem 0x1c30000-0x1c3ffff irq 27 on simplebus0 > miibus0: on awg0 > rgephy0: PHY 0 on miibus0 > rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow > rgephy1: PHY 1 on miibus0 > rgephy1: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow > awg0: Ethernet address: 02:ba:b1:c5:93:b7 > cryptosoft0: > Timecounters tick every 1.000 msec > usbus0: 480Mbps High Speed USB v2.0 > usbus1: 12Mbps Full Speed USB v1.0 > AW_MMC_INT_RESP_TIMEOUT > ugen0.1: at usbus0 > AW_MMC_INT_RESP_TIMEOUT > uhub0: on usbus0 > ugen1.1: at usbus1 > uhub1: on usbus1 > AW_MMC_INT_RESP_TIMEOUT > AW_MMC_INT_RESP_TIMEOUT > AW_MMC_INT_RESP_TIMEOUT > AW_MMC_INT_RESP_TIMEOUT > AW_MMC_INT_RESP_TIMEOUT > AW_MMC_INT_RESP_TIMEOUT > AW_MMC_INT_DATA_END_BIT_ERR > AW_MMC_INT_RESP_TIMEOUT > AW_MMC_INT_RESP_TIMEOUT > AW_MMC_INT_RESP_TIMEOUT > AW_MMC_INT_RESP_TIMEOUT > mmc0: Failed to set VCCQ for card at relative address 2 > uhub1: 1 port with 1 removable, self powered > uhub0: 1 port with 1 removable, self powered > aw_mmc0: controller timeout > aw_mmc0: timeout updating clock > aw_mmc0: controller timeout > aw_mmc0: timeout updating clock > aw_mmc0: controller timeout > aw_mmc0: timeout updating clock > aw_mmc0: controller timeout > aw_mmc0: Spurious interrupt - no active request, rint: 0x00000000 > > mmcsd0: Error reading EXT_CSD Timeout > device_attach: mmcsd0 attach returned 6 > Release APs...done > Trying to mount root from ufs:/dev/ufs/PINE64P2Grootfs [rw,noatime]... > CPU 0: ARM Cortex-A53 r0p4mountroot: waiting for device /dev/ufs/PINE64P2Grootfs... > affinity: 0 > Instruction Set Attributes 0 = > Instruction Set Attributes 1 = <> > Processor Features 0 = > Processor Features 1 = <0> > Memory Model Features 0 = <4k Granule,64k Granule,MixedEndian,S/NS Mem,16bit ASID,1TB PA> > Memory Model Features 1 = <> > Memory Model Features 2 = <32b CCIDX,48b VA> > Debug Features 0 = <2 CTX Breakpoints,4 Watchpoints,6 Breakpoints,PMUv3,Debug v8> > Debug Features 1 = <0> > Auxiliary Features 0 = <0> > Auxiliary Features 1 = <0> > CPU 1: ARM Cortex-A53 r0p4 affinity: 1 > CPU 2: ARM Cortex-A53 r0p4 affinity: 2 > CPU 3: ARM Cortex-A53 r0p4 affinity: 3 > Mounting from ufs:/dev/ufs/PINE64P2Grootfs failed with error 19. > > Loader variables: > vfs.root.mountfrom=ufs:/dev/ufs/PINE64P2Grootfs > vfs.root.mountfrom.options=rw,noatime > > 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 > > mountroot> ? > > List of GEOM managed disk devices: > > > mountroot> > > > > > The "M" in -r337347M is mostly for code tied to powerpc > family experiments. (I try to have a single /usr/src/ > code base.) > > > === > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" -- Emmanuel Vadot