From owner-freebsd-arm@freebsd.org Thu Feb 8 03:55:51 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 58C4FEF6945 for ; Thu, 8 Feb 2018 03:55:51 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mouf.net", Issuer "mouf.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E2A5270F62 for ; Thu, 8 Feb 2018 03:55:50 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from lrrr.mouf.net (cpe-24-163-43-246.nc.res.rr.com [24.163.43.246]) (authenticated bits=0) by mouf.net (8.14.9/8.14.9) with ESMTP id w183tdq7076510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 8 Feb 2018 03:55:45 GMT (envelope-from swills@FreeBSD.org) Subject: Re: Trouble with SoftIron Overdrive 1000 + USB To: Jon Brawn , freebsd-arm@freebsd.org References: <79D41C3C-152C-4C58-A7AB-B2C3544DFDA3@brawn.org> From: Steve Wills Message-ID: Date: Wed, 7 Feb 2018 22:55:33 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <79D41C3C-152C-4C58-A7AB-B2C3544DFDA3@brawn.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mouf.net [199.48.129.64]); Thu, 08 Feb 2018 03:55:45 +0000 (UTC) X-Spam-Status: No, score=1.3 required=4.5 tests=RCVD_IN_RP_RNBL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mouf.net X-Virus-Scanned: clamav-milter 0.99.2 at mouf.net X-Virus-Status: Clean X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Feb 2018 03:55:51 -0000 I'm seeing errors booting my Pine64 on r328835: CPU 1: ARM Cortex-A53 r0p4 affinity: 1 CPU 2: ARM Cortex-A53 r0p4 affinity: 2 CPU 3: ARM Cortex-A53 r0p4 affinity: 3 ugen0.1: at usbus0 ugen1.1: at usbus1 ugen2.1: at usbus2 ugen3.1: at usbus3 uhub0: on usbus0 uhub_attach: getting USB 2.0 HUB descriptor failed,error=USB_ERR_SHORT_XFER device_attach: uhub0 attach returned 6 usbus0: Root HUB problem, error=USB_ERR_NO_ROOT_HUB uhub0: on usbus2 uhub_attach: getting USB 2.0 HUB descriptor failed,error=USB_ERR_SHORT_XFER device_attach: uhub0 attach returned 6 usbus2: uhub2: Root HUB problem, error=USB_ERR_NO_ROOT_HUB on usbus1 uhub_attach: getting USB 2.0 HUB descriptor failed,error=USB_ERR_SHORT_XFER device_attach: uhub2 attach returned 6 usbus1: uhub1: Root HUB problem, error=USB_ERR_NO_ROOT_HUB on usbus3 uhub_attach: getting USB 2.0 HUB descriptor failed,error=USB_ERR_SHORT_XFER device_attach: uhub1 attach returned 6 usbus3: Root HUB problem, error=USB_ERR_NO_ROOT_HUB Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]... mountroot: waiting for device /dev/mmcsd0s2a... Mounting from ufs:/dev/mmcsd0s2a failed with error 19. Loader variables: vfs.root.mountfrom=ufs:/dev/mmcsd0s2a 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> Not sure if it's related. Running r325046 has no issue. Steve On 02/03/2018 00:46, Jon Brawn wrote: > Wotcha Gang! > > From time to time I take the 12.0 Current mini-memstick image that is newest and do an install on a SoftIron Overdrive 1000 box (quad Cortex-A57, aarch64). Usually there’s nothing to report, and everything goes just swimmingly, and I mess around with the installed system for a while, rebuild the kernel perhaps, nothing too heavy duty. > > Anyway, I’ve just tried this with r328637, and it didn’t work very well, however, I don’t have the FreeBSD skills to understand what’s really going wrong. I’ve added the boot log to this email, inline, at the end. It all goes wrong when it is trying to mount the root filesystem from the USB memory stick. It’s claiming to be perpetually waiting for usbus0. As you can see from the boot log, it detects that there’s a usbus0 ‘thing’ there, and there are no warnings or errors that I can see relating to USB, but the bus never seems to come ready. > > Is there anyone out there that can help me to debug this please? > > Jon. > > NOTICE: BL3-1: > NOTICE: BL3-1: Built : 14:04:15, Apr 9 2016 > INFO: BL3-1: Initializing runtime services > INFO: BL3-1: Preparing for EL3 exit to normal world > INFO: BL3-1: Next image address = 0x8000e80000 > INFO: BL3-1: Next image spsr = 0x3c9 > UEFI Interactive Shell v2.1 > EDK II > UEFI v2.60 (SoftIron Overdrive 1000, 0x00010000) > Mapping table > FS1: Alias(s):HD1b65535a1:;BLK4: > PciRoot(0x1)/Pci(0x0,0x0)/Sata(0x1,0xFFFF,0x0)/HD(1,GPT,535754EE-EECD-11E7-8543-E0FFF70020A6,0x28,0x64000) > FS0: Alias(s):HD0a0b:;BLK1: > PcieRoot(0x0)/Pci(0x2,0x2)/Pci(0x0,0x0)/USB(0x0,0x0)/HD(1,GPT,CAB2BA96-0772-11E8-952D-0CC47AD8B808,0x3,0x640) > BLK3: Alias(s): > PciRoot(0x1)/Pci(0x0,0x0)/Sata(0x1,0xFFFF,0x0) > BLK5: Alias(s): > PciRoot(0x1)/Pci(0x0,0x0)/Sata(0x1,0xFFFF,0x0)/HD(2,GPT,5357E647-EECD-11E7-8543-E0FFF70020A6,0x64028,0x73F9BFF8) > BLK6: Alias(s): > PciRoot(0x1)/Pci(0x0,0x0)/Sata(0x1,0xFFFF,0x0)/HD(3,GPT,535936C9-EECD-11E7-8543-E0FFF70020A6,0x74000020,0x706D67) > BLK0: Alias(s): > PcieRoot(0x0)/Pci(0x2,0x2)/Pci(0x0,0x0)/USB(0x0,0x0) > BLK2: Alias(s): > PcieRoot(0x0)/Pci(0x2,0x2)/Pci(0x0,0x0)/USB(0x0,0x0)/HD(2,GPT,CAB2BA9A-0772-11E8-952D-0CC47AD8B808,0x643,0xF89E0) > Press ESC in 1 seconds to skip startup.nsh or any other key to continue. > Shell> BOOTaa64.efi > >>> FreeBSD EFI boot block > Loader path: /boot/loader.efi > > Initializing modules: ZFS UFS > Load Path: \efi\boot\BOOTaa64.efi > Load Device: PcieRoot(0x0)/Pci(0x2,0x2)/Pci(0x0,0x0)/USB(0x0,0x0)/HD(1,GPT,CAB2BA96-0772-11E8-952D-0CC47AD8B808,0x3,0x640) > BootCurrent: 0006 > BootOrder: 0006 0000 0001 0002 > Probing 7 block devices.........* done > ZFS found no pools > UFS found 1 partition > Consoles: EFI console > Command line arguments: loader.efi > Image base: 0x81f6449000 > EFI version: 2.60 > EFI Firmware: SoftIron Overdrive 1000 (rev 1.00) > > FreeBSD/arm64 EFI loader, Revision 1.1 > (Thu Feb 1 16:48:10 UTC 2018 root@releng3.nyi.freebsd.org) > EFI boot environment > Loading /boot/defaults/loader.conf > /boot/kernel/kernel text=0x8372ce data=0xb2450+0x443acc syms=[0x8+0x111408+0x8+0x103ad6] > | > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel]... > Using DTB provided by EFI at 0x801fe00000. > 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 #0 r328637: Thu Feb 1 16:51:20 UTC 2018 > root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 > FreeBSD clang version 6.0.0 (branches/release_60 323338) (based on LLVM 6.0.0) > WARNING: WITNESS option enabled, expect reduced performance. > VT: init without driver. > module_register: cannot register gic/gicv2m from kernel; already loaded from kernel > Module gic/gicv2m failed to register: 17 > Starting CPU 1 (1) > Starting CPU 2 (100) > Starting CPU 3 (101) > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > arc4random: no preloaded entropy cache > MAP 81fb830000 mode 2 pages 992 > MAP 81fbdb0000 mode 2 pages 592 > MAP 81fffd0000 mode 2 pages 32 > random: entropy device external interface > kbd0 at kbdmux0 > ofwbus0: > simplebus0: on ofwbus0 > clk_fixed0: on simplebus0 > clk_fixed1: on simplebus0 > clk_fixed2: on simplebus0 > clk_fixed3: on simplebus0 > clk_fixed4: on simplebus0 > clk_fixed5: on simplebus0 > clk_fixed6: on simplebus0 > clk_fixed7: on simplebus0 > clk_fixed8: on simplebus0 > clk_fixed9: on simplebus0 > clk_fixed10: on simplebus0 > psci0: on ofwbus0 > gic0: mem 0xe1110000-0xe1110fff,0xe112f000-0xe1130fff,0xe1140000-0xe114ffff,0xe1160000-0xe116ffff irq 4 on ofwbus0 > gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 448 > generic_timer0: irq 5,6,7,8 on ofwbus0 > Timecounter "ARM MPCore Timecounter" frequency 250000000 Hz quality 1000 > Event timer "ARM MPCore Eventtimer" frequency 250000000 Hz quality 1000 > efirtc0: registered as a time-of-day clock, resolution 1.000000s > cpulist0: on ofwbus0 > cpu0: on cpulist0 > cpu1: on cpulist0 > cpu2: on cpulist0 > cpu3: on cpulist0 > pmu0: irq 0,1,2,3 on ofwbus0 > ahci0: mem 0xe0300000-0xe03effff irq 9 on simplebus0 > ahci0: AHCI v1.30 with 8 6Gbps ports, Port Multiplier supported > ahcich0: at channel 0 on ahci0 > ahcich1: at channel 1 on ahci0 > uart0: mem 0xe1010000-0xe1010fff irq 13 on simplebus0 > uart0: console (115200,n,8,1) > pcib0: mem 0xf0000000-0xffffffff on simplebus0 > pci0: on pcib0 > pcib1: at device 2.2 on pci0 > pci1: on pcib1 > xhci0: mem 0x40100000-0x4010ffff,0x40110000-0x40110fff,0x40111000-0x40111fff at device 0.0 on pci1 > xhci0: 32 bytes context size, 64-bit DMA > usbus0 on xhci0 > pcib2: at device 2.3 on pci0 > pci2: on pcib2 > mskc0: port 0x1000-0x10ff mem 0x40000000-0x40003fff at device 0.0 on pci2 > msk0: on mskc0 > msk0: Using defaults for TSO: 65518/35/2048 > msk0: Ethernet address: e0:ff:f7:00:20:a6 > miibus0: on msk0 > e1000phy0: PHY 0 on miibus0 > e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > cryptosoft0: > Timecounters tick every 1.000 msec > usbus0: 5.0Gbps Super Speed USB v3.0 > ugen0.1: <0x1b73 XHCI root HUB> at usbus0 > uhub0: <0x1b73 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 > ada0 at ahcich1 bus 0 scbus1 target 0 lun 0 > ada0: ACS-3 ATA SATA 3.x device > ada0: Serial Number WD-WMC6Y0P7NL00 > ada0: 600.000MB/s transfers (SATA 3.x, UDMA5, PIO 8192bytes) > ada0: Command Queueing enabled > ada0: 953869MB (1953525168 512 byte sectors) > Release APs > CPU 0: ARM Cortex-A57 r1p2 affinity: 0 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,16TB 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-A57 r1p2 affinity: 0 1 > CPU 2: ARM Cortex-A57 r1p2 affinity: 1 0 > CPU 3: ARM Cortex-A57 r1p2 affinity: 1 1 > WARNING: WITNESS option enabled, expect reduced performance. > arc4random: no preloaded entropy cache > Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]... > Root mount waiting for: usbus0 > uhub0: 4 ports with 4 removable, self powered > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > usbd_setup_device_desc: getting device descriptor at addr 1 failed, USB_ERR_TIMEOUT > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > usbd_setup_device_desc: getting device descriptor at addr 1 failed, USB_ERR_TIMEOUT > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > usbd_setup_device_desc: getting device descriptor at addr 1 failed, USB_ERR_TIMEOUT > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > usbd_setup_device_desc: getting device descriptor at addr 1 failed, USB_ERR_TIMEOUT > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > usbd_setup_device_desc: getting device descriptor at addr 1 failed, USB_ERR_TIMEOUT > ugen0.2: at usbus0 (disconnected) > uhub_reattach_port: could not allocate new device > mountroot: waiting for device /dev/ufs/FreeBSD_Install... > Mounting from ufs:/dev/ufs/FreeBSD_Install failed with error 19. > > Loader variables: > vfs.root.mountfrom=ufs:/dev/ufs/FreeBSD_Install > vfs.root.mountfrom.options=ro,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: > diskid/DISK-WD-WMC6Y0P7NL00p3 diskid/DISK-WD-WMC6Y0P7NL00p2 diskid/DISK-WD-WMC6Y0P7NL00p1 gptid/535936c9-eecd-11e7-8543-e0fff70020a6 gptid/5357e647-eecd-11e7-8543-e0fff70020a6 gptid/535754ee-eecd-11e7-8543-e0fff70020a6 diskid/DISK-WD-WMC6Y0P7NL00 ada0p3 ada0p2 ada0p1 ada0 > > mountroot> > > >